dev.nlited.com

>>

Yocto Speed Run

<<<< prev
next >>>>

2015-12-22 22:03:29 chip Page 1481 📢 PUBLIC

Dec 22 2015

OK, now I know what I am doing... I rebuild the yocto environment, starting from creating the Overo directory. Started at 10:20am (18:20 GMT).



yocto: cd /src/yocto mkdir overo cd overo curl -O http://commondatastorage.googleapis.com/git-repo-downloads/repo > repo chmod a+x repo sudo mv repo /usr/local/bin repo init -u git://github.com/gumstix/Gumstix-YoctoProject-Repo.git repo sync

10:27> Before investing any more time in this reincarnation, I want to make sure the instance will stop and restart without losing any data. Yes, it survived.

I resume the yocto build. The fetchall was launched at 18:34:34 GMT and completed at 18:42:52. The image build was launched at 18:43:33 and completed as 19:48:11, just over an hour.


yocto: export TEMPLATECONF=meta-gumstix-extras/conf source ./poky/oe-init-build-env export PARALLEL_MAKE="-j 8" bitbake -c fetchall gumstix-console-image bitbake gumstix-console-image

In the meantime, I modified the mknirvanacard.sh script and cooked a boot disk from the image I created last night. Miraculously, it booted up!
root@overo:~# uname -a Linux overo 3.18.18-custom #1 SMP Tue Dec 22 06:43:36 UTC 2015 armv7l GNU/Linux root@overo:~#

SUCCESS!

11:50> The bitbake has finished. I pull the image files down to my local computer. I am using a Windows host machine and a Ubuntu/Linux VM (using VMware Workstation 11.1.2). I am using Putty on my Windows machine to connect to vekolako, so it is easiest to copy the files into a shared folder using Putty's pscp and the ssh key in the vekolako configuration. It takes about 10 minutes to download the files over my 2Mb DSL connection. (Which is about the same time it takes vekolako to pull the entire Yocto universe.)

Windows: cd Z:\Share\overo pscp -load vekolako chip@52.9.67.205:/src/yocto/overo/build/tmp/deploy/images/overo/MLO . pscp -load vekolako chip@52.9.67.205:/src/yocto/overo/build/tmp/deploy/images/overo/u-boot.img . pscp -load vekolako chip@52.9.67.205:/src/yocto/overo/build/tmp/deploy/images/overo/zImage . pscp -load vekolako chip@52.9.67.205:/src/yocto/overo/build/tmp/deploy/images/overo/gumstix-console-image-overo.tar.bz2 .

Then run my mkboot.sh script to format the microSD boot disk and populate it. It takes about 3 minutes to format the card (depending on its capacity) and 3-4 minutes to copy the rootfs files.

Ubuntu: cd ~/vekolako sudo -E ./mkboot.sh /mnt/hgfs/Share/overo/ /dev/sdb
Overo: Poky (Yocto Project Reference Distro) 1.8 overo ttyO2 overo login: root root@overo:~# uname -a Linux overo 3.18.18-custom #1 SMP Tue Dec 22 19:12:44 UTC 2015 armv7l GNU/Linux root@overo:~#

Double Success! Like most things, it looks simple after it's done.



WebV7 (C)2018 nlited | Rendered by tikope in 62.511ms | 3.17.183.187