實作過程:
1. 下載 Source
svn co http://svn.o-hand.com/repos/poky/trunk poky2. 必須之套件
patch diffstat texi2html cvs svn bzip2 tar gzip gawk makeinfo qemu2.1. 如果你要自行編譯qemu for poky還須安裝
gcc-3.4, libsdl1.2-dev, zlib1g-dev3. 設定環境
source poky-init-build-env4. 編譯 Image
卻定/bin/ls -> bash,如果為dash在編譯perl-native時會有問題
bitbake oh-image-pda5. Try it :)
cd ~/poky/build/tmp/deploy/images6. 編譯qemu
poky-qemu zImage-qemuarm.bin oh-image-pda-qemuarm.ext2
bitbake -c build qemu7. 編譯完qemu之後,會放在 $OEROOT/build/tmp/work/armv5te-poky-linux-gnueabi內,使用自行編譯的qemu執行poky
PS:如需移除套件可使用 bitbake -c clean $packname
sudo ~/poky/build/tmp/work/armv5te-poky-linux-gnueabi/qemu-0.8.2+cvs20060723-r4/install/qemu/usr/bin/qemu-system-arm -kernel zImage-qemuarm.bin -append "root=/dev/sda console=ttyAMA0 console=tty0 mem=64M" -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=/home/blue119/poky/scripts/poky-qemu-ifup -M versatilepb -hda oh-image-pda-qemuarm.ext2 -usb -usbdevice wacom-tablet
No comments:
Post a Comment