I am trying to install SDK for QorIQ, while installing the host environment on ubuntu 12.04 I am not able to understand what "host-prepare" would be in ./scripts/host-prepare.sh command.
Solved! Go to Solution.
Hello Hitu,
The above is not correct, please refer to the following.
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
root ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm
root ALL = NOPASSWD: /usr/bin/apt-get
<your_account> ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm
ctrl+X to exit, select Y to save.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Yiping Wang
I have installed the QorIQ-SDK-V1.6-20140619-yocto in ubuntu 12.04 but white running the command "scripts/host-prepare.sh".
I am getting this error
root@embedded-HP-Z210-SFF-Workstation:~/QorIQ-SDK-V1.6-20140619-yocto# ./scripts/host-prepare.sh
Error:
Verifying sudo permission to execute apt-get command.
I ran the command: sudo -S -l which returned:
Matching Defaults entries for root on this host:
env_reset,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
User root may run the following commands on this host:
(ALL : ALL) ALL
This means you don't have sudo permission without password to execute
apt-get command as root. This is needed to install host packages correctly.
To configure this, as root using the command "/usr/sbin/visudo",
and add the following line in the User privilege section:
root ALL = NOPASSWD: /usr/bin/apt-get
Hello Hitu,
Because packages need to be installed on your host, so you should have sudo permission without password to execute apt-get command as root. The prompt message has already told you what to do.
You could choose one of the following method.
1.As root using the command "/usr/sbin/visudo",
and add the following line in the User privilege section:
root ALL = NOPASSWD: /usr/bin/apt-get
2. Execute this script "sudo scripts/host-prepare.sh".
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Yiping Wang
I tried this option and edited the file by adding root ALL = NOPASSWD: /usr/bin/apt-get in User privilege section.
when I executed the script nothing happened and now I am unable to login as sudo
embedded@embedded-HP-Z210-SFF-Workstation:~$ sudo -s
sudo: >>> /etc/sudoers: syntax error near line 31 <<<
sudo: parse error in /etc/sudoers near line 31
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
and If I am running the command in su the the following error occurs:
embedded@embedded-HP-Z210-SFF-Workstation:~/QorIQ-SDK-V1.6-20140619-yocto$ su scripts/host-prepare.sh
Unknown id: scripts/host-prepare.sh
How should i resume the system and run the script.
Hello Hitu,
Please refer to the last section of /etc/sudoers on my host.
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
root ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm
root ALL = NOPASSWD: /usr/bin/apt-get
b25805 ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm
If you problem remains, please attach your /etc/sudoers file.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Yiping Wang
I not able to access the /etc/sudoers the error is "access denied"
How should I enable sudo again..
regards
Hitu
Hello Hitu,
Is it possible for you to login the system with "root"(admin) permission?
You could edit /etc/sudoers under "root" account.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
HI Yiping Wang
I am not able to login as root.
I have edited the /etc/sudoers fale as directed by you: the file looks like this now:
This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
root ALL = NOPASSWD: /usr/bin/apt-get
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
root ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm
root ALL = NOPASSWD: /usr/bin/apt-get
b25805 ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
But I am not able to save it how should I save it and is it correct?
regds
Hitu
Hello Hitu,
The above is not correct, please refer to the following.
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
root ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm
root ALL = NOPASSWD: /usr/bin/apt-get
<your_account> ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm
ctrl+X to exit, select Y to save.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Yiping Wang
The scrip runs patially
while running the script I got this warning:
WARNING: The following packages cannot be authenticated!
libdbus-1-3 libsigsegv2 gawk openjdk-6-jre-lib java-common default-jre-headless ca-certificates-java tzdata tzdata-java openjdk-6-jre-headless
libgif4 openjdk-6-jre libatk-wrapper-java libatk-wrapper-java-jni libdb4.8 libunistring0 libgettextpo0 libpcrecpp0 libapr1 libaprutil1 libsvn1
tex-common lmodern wget m4 autoconf autotools-dev automake libtimedate-perl libdpkg-perl dpkg-dev build-essential chrpath cvs diffstat libosp5
libostyle1c2 openjade docbook-dsssl gettext intltool-debian po-debconf texlive-common texlive-doc-base luatex texlive-binaries texlive-base
texlive-latex-base texlive-fonts-recommended texlive-latex-recommended tipa jadetex lynx-cur lynx libsgmls-perl sgmlspl libsp1c2 sp docbook-utils
fakeroot libxml-commons-resolver1.1-java libxml-commons-external-java libxerces2-java libjaxp1.3-java libxalan2-java libapache-pom-java libbsf-java
libavalon-framework-java libcommons-io-java libcommons-parent-java libcommons-logging-java java-wrappers libbatik-java libxmlgraphics-commons-java
libfop-java fop liberror-perl git-man git git-core groff lacheck latex-xcolor pgf latex-beamer libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libasound2-dev libavahi-common-dev libdbus-1-dev libavahi-client-dev libbonobo2-common zlib1g-dev libpng12-dev libslang2-dev
libcaca-dev libencode-locale-perl libhttp-date-perl libfile-listing-perl libfont-afm-perl libpcre3-dev libglib2.0-dev liburi-perl
libhtml-tagset-perl libhtml-parser-perl liblwp-mediatypes-perl libhttp-message-perl libhtml-form-perl libhtml-tree-perl libhtml-format-perl
libhttp-cookies-perl libhttp-daemon-perl libhttp-negotiate-perl libice-dev libsocket6-perl libio-socket-inet6-perl libnet-ssleay-perl
libio-socket-ssl-perl libjline-java libltdl-dev libnet-http-perl libwww-robotrules-perl libwww-perl liblwp-protocol-https-perl
libsys-hostname-long-perl libmail-sendmail-perl libmailtools-perl libpulse-dev librhino-java libsaxon-java libsm-dev libxt-dev libsdl1.2-dev
libstring-crc32-perl libtool libxml-parser-perl texlive-generic-recommended texlive-pstricks prosper ps2eps psutils python-pysqlite2 rhino
subversion texi2html texinfo texlive-extra-utils texlive-font-utils texlive-fonts-recommended-doc texlive-latex-base-doc
texlive-latex-recommended-doc texlive-luatex texlive-pstricks-doc tofrodos ttf-dejavu-extra xsltproc icedtea-6-jre-cacao icedtea-6-jre-jamvm
icedtea-netx-common icedtea-netx
Install these packages without verification [y/N]? y
0% [Waiting for headers]
regds
HItu
Hi Yiping Wang
I am getting this error too :
Err http://in.archive.ubuntu.com/ubuntu/ precise/main gawk i386 1:3.1.8+dfsg-0.1ubuntu1
Connection failed [IP: 91.189.92.200 80]
Hi Yiping Wang
I have installed the scrips successfully. Thanks..
redgs
Hitu
Hi Yiping Wang
I tried running /etc/sudoers
embedded@embedded-HP-Z210-SFF-Workstation:~$ /etc/sudoers
Error:
! !bash: /etc/sudoers: Permission denied
In the etc/sudoers there is a read me file which on opening gives the error could not be opened.
Hello Hitu Sharma,
The script scripts/host-prepare.sh is used to install some necessary packages on your local build host for the bitbake build environment, and this script has been designed to support all the official Linux OSs.
Please refer to the following log, you will understand what this script has already done.
Checking for new repos for mirrors
Package flex-2.5.35-8.el6.x86_64 already installed and latest version
Package gcc-4.4.7-4.el6.x86_64 already installed and latest version
Package redhat-rpm-config-9.0.3-42.el6.centos.noarch already installed and latest version
Package rpm-build-4.8.0-37.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package patch-2.6-6.el6.x86_64 already installed and latest version
Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version
Package gettext-0.17-16.el6.x86_64 already installed and latest version
Package automake-1.11.1-4.el6.noarch already installed and latest version
Package bison-2.4.1-5.el6.x86_64 already installed and latest version
Package libtool-2.2.6-15.5.el6.x86_64 already installed and latest version
Package autoconf-2.63-5.1.el6.noarch already installed and latest version
Package gcc-c++-4.4.7-4.el6.x86_64 already installed and latest version
Package binutils-2.20.51.0.2-5.36.el6.x86_64 already installed and latest version
Package patchutils-0.3.1-3.1.el6.x86_64 already installed and latest version
Package byacc-1.9.20070509-7.el6.x86_64 already installed and latest version
Package indent-2.2.10-7.el6.x86_64 already installed and latest version
Package systemtap-2.3-4.el6_5.x86_64 already installed and latest version
Package diffstat-1.51-2.el6.x86_64 already installed and latest version
Package elfutils-0.152-1.el6.x86_64 already installed and latest version
Package cvs-1.11.23-16.el6.x86_64 already installed and latest version
Package rcs-5.7-37.el6.x86_64 already installed and latest version
Package subversion-1.6.11-10.el6_5.x86_64 already installed and latest version
Package gcc-gfortran-4.4.7-4.el6.x86_64 already installed and latest version
Package 1:doxygen-1.6.1-6.el6.x86_64 already installed and latest version
Package intltool-0.41.0-1.1.el6.noarch already installed and latest version
Package git-1.7.1-3.el6_4.1.x86_64 already installed and latest version
Package ctags-5.8-2.el6.x86_64 already installed and latest version
Package cscope-15.6-6.el6.x86_64 already installed and latest version
Package swig-1.3.40-6.el6.x86_64 already installed and latest version
Warning: Group development does not have any packages.
No packages in any requested group available to install or update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Setting up Install Process
Package texlive-2007-57.el6_2.x86_64 already installed and latest version
Package gawk-3.1.7-10.el6.x86_64 already installed and latest version
Package sqlite-devel-3.6.20-1.el6.x86_64 already installed and latest version
Package 2:vim-common-7.2.411-1.8.el6.x86_64 already installed and latest version
Package redhat-lsb-4.0-7.el6.centos.x86_64 already installed and latest version
Package xz-4.999.9-0.3.beta.20091007git.el6.x86_64 already installed and latest version
Package python-devel-2.6.6-52.el6.x86_64 already installed and latest version
Package zlib-devel-1.2.3-29.el6.x86_64 already installed and latest version
Package perl-String-CRC32-1.4-9.el6.x86_64 already installed and latest version
Package dos2unix-3.1-37.el6.x86_64 already installed and latest version
Package python-2.6.6-52.el6.x86_64 already installed and latest version
Package m4-1.4.13-5.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package wget-1.12-1.11.el6_5.x86_64 already installed and latest version
Package curl-7.19.7-37.el6_5.3.x86_64 already installed and latest version
Package ftp-0.17-54.el6.x86_64 already installed and latest version
Package 2:tar-1.23-11.el6.x86_64 already installed and latest version
Package bzip2-1.0.5-7.el6_0.x86_64 already installed and latest version
Package gzip-1.3.12-19.el6_4.x86_64 already installed and latest version
Package unzip-6.0-1.el6.x86_64 already installed and latest version
Package 4:perl-5.10.1-136.el6.x86_64 already installed and latest version
Package texinfo-4.13a-8.el6.x86_64 already installed and latest version
Package texi2html-1.82-5.1.el6.noarch already installed and latest version
Package diffstat-1.51-2.el6.x86_64 already installed and latest version
Package openjade-1.3.2-36.el6.x86_64 already installed and latest version
Package docbook-style-dsssl-1.79-10.el6.noarch already installed and latest version
Package sed-4.2.1-10.el6.x86_64 already installed and latest version
Package docbook-style-xsl-1.75.2-6.el6.noarch already installed and latest version
Package docbook-dtds-1.0-51.el6.noarch already installed and latest version
Package docbook-utils-0.6.14-25.el6.noarch already installed and latest version
Package bc-1.06.95-1.el6.x86_64 already installed and latest version
Package glibc-devel-2.12-1.132.el6_5.4.x86_64 already installed and latest version
Package pcre-7.8-6.el6.x86_64 already installed and latest version
Package pcre-devel-7.8-6.el6.x86_64 already installed and latest version
Package groff-1.18.1.4-21.el6.x86_64 already installed and latest version
Package linuxdoc-tools-0.9.65-3.el6.x86_64 already installed and latest version
Package patch-2.6-6.el6.x86_64 already installed and latest version
Package cmake-2.6.4-5.el6.x86_64 already installed and latest version
Package 1:tcl-devel-8.5.7-6.el6.x86_64 already installed and latest version
Package gettext-0.17-16.el6.x86_64 already installed and latest version
Package ncurses-5.7-3.20090208.el6.x86_64 already installed and latest version
Package apr-1.3.9-5.el6_2.x86_64 already installed and latest version
Package SDL-devel-1.2.14-3.el6.x86_64 already installed and latest version
Package mesa-libGL-devel-9.2-0.5.el6_5.2.x86_64 already installed and latest version
Package mesa-libGLU-devel-9.2-0.5.el6_5.2.x86_64 already installed and latest version
Package gnome-doc-utils-0.18.1-1.el6.noarch already installed and latest version
Package autoconf-2.63-5.1.el6.noarch already installed and latest version
Package automake-1.11.1-4.el6.noarch already installed and latest version
Package libtool-2.2.6-15.5.el6.x86_64 already installed and latest version
Package xterm-253-1.el6.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Setting up Install Process
Package chrpath-0.13-7.el6.x86_64 already installed and latest version
Nothing to do
Python version 2.x( 2.7.3 or greater) is required. For example, install 2.7.3 at /opt/python-2.7.3:
(1) wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
(2) tar -zxvf Python-2.7.3.tgz
(3) cd Python-2.7.3
(4) ./configure --prefix=/opt/python-2.7.3 && make
(5) su -
(6) make install
Then execute the following command and re-run this script:
export PATH=/opt/python-2.7.3/bin:$PATH
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Yiping Wang
I am trying to run the script in the cdrom directory but I am getting the error
root@ubuntu:/mnt/cdrom# ./scripts/host-prepare.sh
"bash: ./scripts/host-prepare.sh: No such file or directory"
Please let me know how to proceed further
Hello Hitu Sharma,
You have installed both Source and Cache Binary ISOs, right?
Then go to the installation path, and run this command.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi
I have mounted the ISO
I am following http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F3069682.htm for installation of SDK.
wrt to the above link I am trying to ./scripts/host-prepare.sh in cdrom directory
root@ubuntu:/mnt/cdrom# ./scripts/host-prepare.sh
ther in I am getting the error.
Error : "bash: ./scripts/host-prepare.sh: No such file or directory"
Hello Hitu Sharma,
Probably I didn't get your meaning, have you performed the following steps?
$ sudo mount -o loop QorIQ-SDK-V1.6-SOURCE-20140619-yocto.iso /mnt/cdrom
$ cd /mnt/cdrom
$ /mnt/cdrom/install
$ sudo umount /mnt/cdrom
$ sudo mount -o loop QorIQ-SDK-V1.6-<ARCH>-CACHE-20140619-yocto.iso /mnt/cdrom
$ cd /mnt/cdrom
$ /mnt/cdrom/install
$ sudo umount /mnt/cdrom
Then go to <install_path>/QorIQ-SDK-V1.6-20140619-yocto and execute "scripts/host-prepare.sh".
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
have you tried my suggestion ?
see my post at 3.40 AM
Hi Catalin
I did tried your suggestion
I got this error
" Unable to fetch some archives, maybe run apt-get update or try with --fix-missing"
I updated ubuntu 12.04 and rerun the command
still same error
Hi,
It seems that the ia32-libs package is no longer present in Ubuntu 12.04,
but maybe this link would be useful
http://askubuntu.com/questions/107230/what-happened-to-the-ia32-libs-package
regards
Catalin