Hi,
I started late in the game looking at the Yocto Alpha Test, late as in
yesterday morning, so I don't have much other than initial impressions. I've
built it for qemux86 and booted it up in qemu. I'm attaching my raw notes
which details the issues as I ran into them.
The short summary of issues I ran into:
1) Upstream packages that no longer exist
2) Running qemu requiring sudo access
3) qemu segfaulting due to NVIDIA libGL
My host system is FC13. I was able to find and manually install the missing
upstream packages from other sources. The machine I was using was one I could
set up sudo access, but you should be able to run qemu without requiring the
TAP interface and sudo to set it up. I worked around the libGL version by
restoring the FC13 version of libGL.
When actually running the generated image, the only thing I had trouble with
was that my keyboard didn't work, the mappings were all messed up. I started
the virtual keyboard and was able to use that instead. The mouse worked fine.
One other item is that I'm generally leery of things that have me blindly
source things into my shell, as it doesn't give me an easy way to undo whatever
it does. I'd prefer
.../poky-init-build-env poky-4.0-build
be something that you run as a command and it creates a sub-shell, rather than
sourcing it and having it modify my existing shell environment. My alternative
was to first create a sub-shell so that I could ^D and get back to my
unmodified shell environment.
-David Borman, [email protected]
Notes taken by David Borman ([email protected]) during the
Yocto Alpha test. 2/23/2011
===============================================================================
1) The command:
git clone git://git.pokylinux.org/poky.git -branch bernard-5.0-alpha
produced an error that the branch doesn't exist. Turns out it isn't
a branch, but a tag, so:
git checkout bernard-5.0-alpha
worked.
===============================================================================
2) The upstream source for the ncurses patch no longer exists:
NOTE: fetch ftp://invisible-island.net/ncurses/5.7/ncurses-5.7-20100501.patch.gz
ERROR: Function 'Fetcher failure for URL:
'ftp://invisible-island.net/ncurses/5.7/ncurses-5.7-20100501.patch.gz;name=p20100501'.
Unable to fetch URL
ftp://invisible-island.net/ncurses/5.7/ncurses-5.7-20100501.patch.gz;name=p20100501
from any source.' failed
I was able to get a copy of this patch file from another source:
http://build.shr-project.org/shr-unstable/sources/MIT/ncurses/
put it in the "downloads" directory, and then continue the build.
This seems to be a high risk issue for Yocto, as it's stability at
any given point in time is linked to the stability of the upstream
sources.
===============================================================================
3) The location of attr-2.4.44.src.tar.gz has changed:
ERROR: Function 'Fetcher failure for URL:
'http://download.savannah.gnu.org/attr/attr-2.4.44.src.tar.gz'. Unable to fetch
URL http://download.savannah.gnu.org/attr/attr-2.4.44.src.tar.gz from any
source.' failed
ERROR: Logfile of failure stored in:
/home/dborman/Yocto/poky-4.0-build/tmp/work/x86_64-linux/attr-native-2.4.44-r2/temp/log.do_fetch.32323
It is now under
http://download.savannah.gnu.org/releases/attr/attr-2.4.44.src.tar.gz
===============================================================================
4) The files
tzcode2009r.tar.gz
tzdata2009s.tar.gz
tzdata2010o.tar.gz
are no longer available from the upstream source:
ERROR: Function 'Fetcher failure for URL:
'ftp://elsie.nci.nih.gov/pub/tzcode2009r.tar.gz'. Unable to fetch URL
ftp://elsie.nci.nih.gov/pub/tzcode2009r.tar.gz from any source.' failed
ERROR: Logfile of failure stored in:
/home/dborman/Yocto/poky-4.0-build/tmp/work/x86_64-linux/tzcode-native-2009r-r0/temp/log.do_fetch.13268
ERROR: Function 'Fetcher failure for URL:
'ftp://elsie.nci.nih.gov/pub/tzdata2009s.tar.gz'. Unable to fetch URL
ftp://elsie.nci.nih.gov/pub/tzdata2009s.tar.gz from any source.' failed
ERROR: Logfile of failure stored in:
/home/dborman/Yocto/poky-4.0-build/tmp/work/x86_64-linux/tzcode-native-2009r-r0/temp/log.do_fetch.20393
ERROR: Function 'Fetcher failure for URL:
'ftp://elsie.nci.nih.gov/pub/tzdata2010o.tar.gz'. Unable to fetch URL
ftp://elsie.nci.nih.gov/pub/tzdata2010o.tar.gz from any source.' failed
ERROR: Logfile of failure stored in:
/home/dborman/Yocto/poky-4.0-build/tmp/work/i586-poky-linux/tzdata-2010o-r0/temp/log.do_fetch.28235
[dborman@msp-dab-t5500 downloads]$ ftp elsie.nci.nih.gov
Connected to elsie.nci.nih.gov (137.187.215.78).
220 (vsFTPd 2.2.2)
Name (elsie.nci.nih.gov:dborman): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd pub
250 Directory successfully changed.
ftp> dir tzcode*
227 Entering Passive Mode (137,187,215,78,117,101).
150 Here comes the directory listing.
-rw-r--r-- 1 8800 0 193462 Feb 07 13:44 tzcode2011b.tar.gz
226 Directory send OK.
ftp> dir tzdata*
227 Entering Passive Mode (137,187,215,78,235,217).
150 Here comes the directory listing.
-rw-r--r-- 1 8800 0 193030 Feb 07 13:44 tzdata2011b.tar.gz
226 Directory send OK.
This time I discovered I could find the first two of them in:
http://autobuilder.yoctoproject.org/downloads/yocto-0.9/sources/
but the third file I picked up from:
http://tx-us.lunar-linux.org/lunar/mirrors/tzdata2010o.tar.gz
===============================================================================
5) The file:
tinylogin-1.4.tar.bz2
is no longer available upstream.
ERROR: Function 'Fetcher failure for URL:
'http://tinylogin.busybox.net/downloads/tinylogin-1.4.tar.bz2'. Unable to fetch
URL http://tinylogin.busybox.net/downloads/tinylogin-1.4.tar.bz2 from any
source.' failed
ERROR: Logfile of failure stored in:
/home/dborman/Yocto/poky-4.0-build/tmp/work/i586-poky-linux/tinylogin-1.4-r5/temp/log.do_fetch.28540
According to the website http://tinylogin.busybox.net, TinyLogin has
been merged into busybox.
I was able to download it manually from:
http://autobuilder.yoctoproject.org/downloads/yocto-0.9/sources/
===============================================================================
6) The file:
netbase_4.44.tar.gz
is no longer available upstream
ERROR: Function 'Fetcher failure for URL:
'ftp://ftp.debian.org/debian/pool/main/n/netbase/netbase_4.44.tar.gz'. Unable
to fetch URL
ftp://ftp.debian.org/debian/pool/main/n/netbase/netbase_4.44.tar.gz from any
source.' failed
ERROR: Logfile of failure stored in:
/home/dborman/Yocto/poky-4.0-build/tmp/work/qemux86-poky-linux/netbase-4.44-r0/temp/log.do_fetch.14157
This package I found at:
http://autobuilder.pokylinux.org/sources/netbase_4.44.tar.gz
===============================================================================
7) After the build completed, I then ran:
poky-qemu qemux86
and the first thing it wanted to do was to set up a tap interface
using "sudo". When the sudo fails, it exits with no further
information about what went wrong, or how to resolve the issue.
My machine wasn't set up for sudo, so I had to do that before I
could proceed. I don't think it is a good assumption to assume
that everyone has "sudo" access.
===============================================================================
8) When running the script:
source bernard-5.0-alpha/poky-init-build-env poky-4.0-build
if you forgot to "source" it, you get back to a prompt without any
indication that things aren't set up. Personally, I'd rather that
this set be done with a sub-shell instead of sourcing into the
current shell environment, so that:
1) you always would get to a prompt that had the env set up
2) Your existing environment wouldn't be changed. A ^D
would get you back to your old environment.
The current script also assumes the user will be running bash or
some variant of it, and doesn't allow for users that run something
else, e.g. csh or tcsh.
===============================================================================
9) When I finally had sudo set up, and ran:
poky-qemu qemux86
it failed with:
Continuing with the following parameters:
KERNEL:
[/home/dborman/Yocto/poky-4.0-build/tmp/deploy/images/bzImage-qemux86.bin]
ROOTFS:
[/home/dborman/Yocto/poky-4.0-build/tmp/deploy/images/poky-image-sato-qemux86.ext3]
FSTYPE: [ext3]
Setting up tap interface under sudo
[sudo] password for dborman:
Acquiring lockfile for tap0...
which: no distccd in
(:/home/dborman/Yocto/poky-4.0-build/tmp/sysroots/x86_64-linux/usr/bin:/home/dborman/Yocto/bernard-5.0-alpha/scripts:/home/dborman/Yocto/bernard-5.0-alpha/bitbake/bin/:/home/dborman/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin)
Warning: distccd not present, no distcc support loaded.
Running qemu...
/home/dborman/Yocto/poky-4.0-build/tmp/sysroots/x86_64-linux/usr/bin/qemu
-kernel
/home/dborman/Yocto/poky-4.0-build/tmp/deploy/images/bzImage-qemux86.bin -net
nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -hda
/home/dborman/Yocto/poky-4.0-build/tmp/deploy/images/poky-image-sato-qemux86.ext3
-show-cursor -usb -usbdevice wacom-tablet -vga vmware -enable-gl -no-reboot
--append "vga=0 root=/dev/hda mem=128M
ip=192.168.7.2::192.168.7.1:255.255.255.0 "
/home/dborman/Yocto/bernard-5.0-alpha/scripts/poky-qemu-internal: line 449:
22826 Segmentation fault (core dumped) $QEMUBIN -kernel $KERNEL
$QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT
--append "$KERNCMDLINE $SCRIPT_KERNEL_OPT"
Set 'tap0' nonpersistent
Releasing lockfile of preconfigured tap device 'tap0'
Turns out this is due to the libGL libraries installed by the NVIDIA
driver. My workaround, on FC13, is:
# rpm -V mesa-libGL
....L.... /usr/lib64/libGL.so.1
missing /usr/lib64/libGL.so.1.2
# cd /usr/lib64
# mkdir NVIDIA_GL
# mv libGL.la libGL.so.* NVIDIA_GL
# yum reinstall mesa-libGL
After installing the FC version of libGL, qemu now runs.
===============================================================================
10) In playing around with the qemu system , I started up the "Terminal"
application, but my keyboard input was all scrambled. I was able to
start up the virtual keyboard and use it, though that is a slow process
using the mouse to click on keys one-by-one.
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto