Imaging solutions with Free Software & Open Hardware

Who's online

There are currently 0 users online.

[meta-elphel393] By Oleg Dzhimiev: figured out how to make it with *.bbappend

Elphel GIT logs - Wed, 11/13/2013 - 13:37
Oleg Dzhimiev committed changes to the Elphel GIT project meta-elphel393:
figured out how to make it with *.bbappend

[meta-elphel393] By Oleg Dzhimiev: now mii-diag should be included to the ramdisk's /usr/sbin

Elphel GIT logs - Wed, 11/13/2013 - 13:10
Oleg Dzhimiev committed changes to the Elphel GIT project meta-elphel393:
now mii-diag should be included to the ramdisk's /usr/sbin

[meta-elphel393] By Oleg Dzhimiev: added a rewritten recipe for net-tools

Elphel GIT logs - Wed, 11/13/2013 - 12:44
Oleg Dzhimiev committed changes to the Elphel GIT project meta-elphel393:
added a rewritten recipe for net-tools

Yocto tests

Elphel Wiki - Wed, 11/13/2013 - 01:57

Add a patch to a recipe:

Show changes Oleg

[meta-elphel393] By Oleg Dzhimiev: 1. added MACHINES: microzed,zedboard,zc706 2. updated recipes

Elphel GIT logs - Wed, 11/13/2013 - 01:33
Oleg Dzhimiev committed changes to the Elphel GIT project meta-elphel393:
1. added MACHINES: microzed,zedboard,zc706 2. updated recipes

Yocto tests

Elphel Wiki - Wed, 11/13/2013 - 01:27

[ezynq] By Oleg Dzhimiev: updated zc706 config

Elphel GIT logs - Wed, 11/13/2013 - 01:06
Oleg Dzhimiev committed changes to the Elphel GIT project ezynq:
updated zc706 config

[ezynq] By Oleg Dzhimiev: updated configs for other boards

Elphel GIT logs - Wed, 11/13/2013 - 00:46
Oleg Dzhimiev committed changes to the Elphel GIT project ezynq:
updated configs for other boards

Yocto tests

Elphel Wiki - Tue, 11/12/2013 - 15:15

Yocto tests

Elphel Wiki - Tue, 11/12/2013 - 12:41

Add a patch to a recipe:

Show changes Oleg

[meta-elphel393] By Oleg Dzhimiev: forgot to commit the patch file

Elphel GIT logs - Tue, 11/12/2013 - 10:42
Oleg Dzhimiev committed changes to the Elphel GIT project meta-elphel393:
forgot to commit the patch file

[meta-elphel393] By Oleg Dzhimiev: added a patch for xilinx_nandps.c

Elphel GIT logs - Tue, 11/12/2013 - 10:36
Oleg Dzhimiev committed changes to the Elphel GIT project meta-elphel393:
added a patch for xilinx_nandps.c

[meta-ezynq] By Oleg Dzhimiev: removing MACHINE, not needed

Elphel GIT logs - Tue, 11/12/2013 - 09:30
Oleg Dzhimiev committed changes to the Elphel GIT project meta-ezynq:
removing MACHINE, not needed

Yocto tests

Elphel Wiki - Tue, 11/12/2013 - 01:19

← Older revision Revision as of 08:19, 12 November 2013 (10 intermediate revisions not shown)Line 3: Line 3: * Building Linux images for Zynq platform - ARMv7 * Building Linux images for Zynq platform - ARMv7  +==Output targets==  +These names are as they appear in the u-boot configuration header file - actual output files have different names:  +* '''boot.bin''' - u-boot as the first stage bootloader  +* '''devicetree.dtb''' - device tree with described interfaces, zynq registers, interrupts and drivers  +* '''uImage''' - kernel, drivers  +* '''uramdisk.image.gz''' - applications  +Copy them on the micro SD card > run '''boot''' once in the u-boot command line. ==GIT== ==GIT== <font size='2'> <font size='2'>   git clone -b dylan git://git.yoctoproject.org/poky.git   git clone -b dylan git://git.yoctoproject.org/poky.git -  git clone -b dylan https://github.com/Xilinx/meta-xilinx.git meta-xilinx+ cd poky (just for convenience)  +  git clone -b dylan https://github.com/Xilinx/meta-xilinx.git meta-xilinx (not needed)   git clone git://git.code.sf.net/p/elphel/meta-elphel393 meta-elphel393   git clone git://git.code.sf.net/p/elphel/meta-elphel393 meta-elphel393  + git clone git://git.code.sf.net/p/elphel/meta-ezynq meta-ezynq  + git clone -b dylan https://github.com/openembedded/meta-oe.git </font> </font> Line 21: Line 31:   <absolute-path>/meta-xilinx/meta-zedboard \   <absolute-path>/meta-xilinx/meta-zedboard \   <absolute-path>/meta-elphel393 \   <absolute-path>/meta-elphel393 \  + <absolute-path>/meta-ezynq \ </font> </font> * Step 3: Edit ''build/conf/local.conf'' - set MACHINE and other things: * Step 3: Edit ''build/conf/local.conf'' - set MACHINE and other things: Line 26: Line 37:    BB_NUMBER_THREADS = "8" (depends on the PC's CPU)    BB_NUMBER_THREADS = "8" (depends on the PC's CPU)    PARALLEL_MAKE = "-j 8" (depends on the PC's CPU)    PARALLEL_MAKE = "-j 8" (depends on the PC's CPU) -   MACHINE ?= "zedboard"+   MACHINE ?= "elphel393" (based on MACHINE="zedboard" ) </font> </font> ====Notes==== ====Notes==== <font color="red"> <font color="red"> -*MACHINE="zedboard" is used to build the kernel. Doesn't matter for ramdisk.image.gz because the recipes don't have any bbappends for core-images.+* Does ''./oe-init-build-env'' scan all the meta-* dirs in poky? Unlikely.  +</font>  +   +==Build ezynq-u-boot==  +<font size='2'>  + bitbake ezynq-u-boot  +</font>  +====Output====  +* boot.bin  +   +====Notes====  +<font color="red">  +* Is there a way to build it by running ''bitbake elphel393'' (elphel393 is the name of the ramdisk core image - currently coincides with the name of the MACHINE) </font> </font> Line 37: Line 60:   bitbake linux-xlnx   bitbake linux-xlnx </font> </font>  +====Output====  +* uImage (kernel)  +* devicetree.dtb (or some *.dtb) ====Notes==== ====Notes==== <font color="red"> <font color="red"> -* The '''dtc''' script for converting device tree between *.dts and *.dtb formats is built along with the kernel.+* When linux-xlnx is 'clean' it is built with the ramdisk.image.gz by ''bitbake elphel393'', however the boot.bin does not, why? </font> </font> Line 47: Line 73:   bitbake elphel393   bitbake elphel393 </font> </font>  +===Output====  +* uramdisk.image.gz (the file has *.u-boot extension after it's built)  + ====Notes==== ====Notes==== <font size='2'> <font size='2'> Line 57: Line 86:   IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}"   IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}"   IMAGE_INSTALL_append = "python-core"   IMAGE_INSTALL_append = "python-core" -* Why ''python-core'' and not just ''python''?+* Why ''python-core'' and not ''python''? -** ''poky/meta/recipes-devtools/python/python-2.7-manifest.inc'' has a list in PACKAGES items from which should go into IMAGE_INSTALL+** ''poky/meta/recipes-devtools/python/python-2.7-manifest.inc'' has a list in PACKAGES, items from which should go into IMAGE_INSTALL ** Among all there's no ''python'' in the PACKAGES list. ** Among all there's no ''python'' in the PACKAGES list. ** Does '''hob''' install all the PACKAGES if ''python'' is checked? Haven't tried, also the used '''hob''' version doesn't support saving recipes. ** Does '''hob''' install all the PACKAGES if ''python'' is checked? Haven't tried, also the used '''hob''' version doesn't support saving recipes. -* '''(Is there a better solution?)''' Adding packages : '''apache2''', '''php''', '''i2c-tools''', '''mtd-utils''', '''net-tools''' steps:+* '''(Is there a better solution for kubuntu 13.04? in kubuntu 12.10 there are no errors mentioned below - or is it just newer version?)''' Steps for adding packages: -**Clone '''meta-oe''' from OpenEmbedded:  +**Clone '''meta-oe''' from OpenEmbedded (ia already cloned in the GIT-step):     git clone -b dylan https://github.com/openembedded/meta-oe.git   git clone -b dylan https://github.com/openembedded/meta-oe.git **Lines to ''bblayers.conf'': **Lines to ''bblayers.conf'':      <absolute-path>/meta-oe/meta-oe \      <absolute-path>/meta-oe/meta-oe \ -    <absolute-path>/poky/meta-oe/meta-perl \       <absolute-path>/poky/meta-oe/meta-webserver \      <absolute-path>/poky/meta-oe/meta-webserver \ ** ''elphel393.bb'' '''(some discussions mention the leading space is mandatory but somehow it works even without it)''': ** ''elphel393.bb'' '''(some discussions mention the leading space is mandatory but somehow it works even without it)''': Line 73: Line 101:                          mtd-utils \                          mtd-utils \                          net-tools \                          net-tools \  +                        openssh \                          modphp \                          modphp \                          apache2 \                          apache2 \ Line 79: Line 108:   meta-oe/meta-oe/recipes-devtools/php/php.inc:   meta-oe/meta-oe/recipes-devtools/php/php.inc:   PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}"   PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}" -*** PACKAGES includes ''php''. What is installed? (No ''php-cli'': missing /usr/bin/php) Didn't investigate.+*** PACKAGES list includes ''php''. What is installed? (No ''php-cli'': missing /usr/bin/php) Didn't investigate. *** What does hob build if ''php'' is checked? Didn't test. *** What does hob build if ''php'' is checked? Didn't test. -*** Using ''php-cli'' installs php in the /usr/bin/. Tested.  *** Using ''php-cli'' increases the unpacked image size from ~16MB to ~50MB. *** Using ''php-cli'' increases the unpacked image size from ~16MB to ~50MB. **To fix the '''ERROR'''="'''Could not inherit file classes/vala.bbclass'''" in bitbake copy vala.bbclass from oe-core? or delete the conflicting recipes (2?)? **To fix the '''ERROR'''="'''Could not inherit file classes/vala.bbclass'''" in bitbake copy vala.bbclass from oe-core? or delete the conflicting recipes (2?)? **To fix the '''ERROR'''="'''Failed to parse krb5_1.11.3.bb'''" in bitbake delete the directory ''meta-oe/meta-oe/recipes-connectivity/krb5'' **To fix the '''ERROR'''="'''Failed to parse krb5_1.11.3.bb'''" in bitbake delete the directory ''meta-oe/meta-oe/recipes-connectivity/krb5''  +</font>  +</font> ====U-boot and device tree related notes==== ====U-boot and device tree related notes==== * '''The default UNPACKED ramdisk max size for zynq is 16MB - once it gets bigger you get KERNEL PANIC - the solution is [http://forums.xilinx.com/t5/Embedded-Linux/Need-bigger-ramdisk-32MB-on-ZC702/m-p/303457#M5775 modifying the device tree] - then recompile into DTB:''' * '''The default UNPACKED ramdisk max size for zynq is 16MB - once it gets bigger you get KERNEL PANIC - the solution is [http://forums.xilinx.com/t5/Embedded-Linux/Need-bigger-ramdisk-32MB-on-ZC702/m-p/303457#M5775 modifying the device tree] - then recompile into DTB:'''   *.dts, add to '''bootargs''' parameter ''ramdisk_size=32768'' (takes KB), example:   *.dts, add to '''bootargs''' parameter ''ramdisk_size=32768'' (takes KB), example: -  bootargs = "console=ttyPS0,115200 root=/dev/ram rw ip=192.168.1.10 earlyprintk '''ramdisk_size=32768'''";+  bootargs = "console=ttyPS0,115200 root=/dev/ram rw ip=192.168.1.10 earlyprintk '''ramdisk_size=65536'''"; * '''The default COMPRESSED ramdisk max size for zynq is 10MB set in u-boot''' - change according to your needs, example: * '''The default COMPRESSED ramdisk max size for zynq is 10MB set in u-boot''' - change according to your needs, example:   ''zynq_zed.h'':   ''zynq_zed.h'': Line 102: Line 132:   devicetree = 0x3000000 - 0x2A00000 = 0x600000 = 6MB   devicetree = 0x3000000 - 0x2A00000 = 0x600000 = 6MB -</font>+==Build everything all together== -</font>+ bitbake ezynq-u-boot linux-xlnx elphel393 - +==Build toolchain (not necessary)== -==Build toolchain==+ * Step 1: build * Step 1: build <font size='2'> <font size='2'> Oleg

[meta-ezynq] By Oleg Dzhimiev: updated ezynq revision

Elphel GIT logs - Mon, 11/11/2013 - 20:33
Oleg Dzhimiev committed changes to the Elphel GIT project meta-ezynq:
updated ezynq revision

[meta-elphel393] By Oleg Dzhimiev: fixed device tree generation

Elphel GIT logs - Mon, 11/11/2013 - 20:03
Oleg Dzhimiev committed changes to the Elphel GIT project meta-elphel393:
fixed device tree generation

[meta-elphel393] By Oleg Dzhimiev: added elphel393 MACHINE

Elphel GIT logs - Mon, 11/11/2013 - 19:04
Oleg Dzhimiev committed changes to the Elphel GIT project meta-elphel393:
added elphel393 MACHINE

[ezynq] By Oleg Dzhimiev: increased size for uramdisk.image.gz to 32MB

Elphel GIT logs - Sun, 11/10/2013 - 21:35
Oleg Dzhimiev committed changes to the Elphel GIT project ezynq:
increased size for uramdisk.image.gz to 32MB

[ezynq] By Oleg Dzhimiev: increased size for uramdisk.image.gz to 32MB

Elphel GIT logs - Sun, 11/10/2013 - 21:35
Oleg Dzhimiev committed changes to the Elphel GIT project ezynq:
increased size for uramdisk.image.gz to 32MB

Ezynq

Elphel Wiki - Sun, 11/10/2013 - 19:43

← Older revision Revision as of 02:43, 11 November 2013 Line 11: Line 11: * '''boot.bin''' (fsbl is not required to boot) * '''boot.bin''' (fsbl is not required to boot) -==Install meta-toolchain (Ubuntu 13.04)==+==Install meta-toolchain (Kubuntu 13.04)== * * <font size='2'> <font size='2'> Line 23: Line 23: * Run installation script in ''build/tmp/deploy/'' * Run installation script in ''build/tmp/deploy/'' -==Install ezynq (Ubuntu 13.04)==+==Install ezynq (Kubuntu 13.04)== <font size='2'> <font size='2'>   git clone git://git.code.sf.net/p/elphel/ezynq ezynq   git clone git://git.code.sf.net/p/elphel/ezynq ezynq Oleg

Pages

Subscribe to www3.elphel.com aggregator