I've got some free time last night, stuff for sale hull so I've decided to build fresh Yocto 1.5 Dora for my UDOO Quad board. stuff for sale hull This is my how-to: FSL layer First of all you will need Yocto FSL layer: $ mkdir -p udoo-quad $ cd udoo-quad $ repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b dora $ repo sync -j10 $ cd fsl-community-bsp-platform Toolchain And FSL toolchain from UDOO site. To use external toolchain you need add the following to conf/local.conf: EXTERNAL_TOOLCHAIN = "/home/builder/udoo/arm-fsl-linux-gnueabi/bin/" TCMODE = "default"
NOTE: I used TCMODE="default" and this led to default (yocto) toolchain in build, stuff for sale hull need to try TCMODE="sourcery". Machine To configure Yocto build you need to add new machine - udoo-quad: fsl-community-bsp-platform$ cat sources/meta-fsl-arm-extra/conf/machine/udoo-quad.conf #@TYPE: Machine #@NAME: UDOO Quad #@SOC: i.MX6Q #@DESCRIPTION: Machine configuration for UDOO Quad include conf/machine/include/imx-base.inc include conf/machine/include/tune-cortexa9.inc SOC_FAMILY = "mx6:mx6q" stuff for sale hull PREFERRED_PROVIDER_virtual/kernel = "linux-unico" PREFERRED_PROVIDER_u-boot = "u-boot-udoo" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-udoo" UBOOT_MACHINE = "udoo_quad_config" SERIAL_CONSOLE = "115200 ttymxc1" MACHINE_FEATURES += " pci wifi" U-Boot UDoo needs its own U-Boot version, OK. Let's add new receipt for it: fsl-community-bsp-platform$ cat sources/meta-fsl-arm/recipes-bsp/u-boot/u-boot-udoo_2013.bb require recipes-bsp/u-boot/u-boot.inc LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://Licenses/README;md5=6bc50ecab884fce80cd3ef3da8852b08" SRC_URI[md5sum] = "c0f064a9e9d1eb3c91ab166a631af080" SRC_URI[sha256sum] = "46273bb1da340814451ef781ee7fba50faf44541c694e2d333d5f351f691d6fa" COMPATIBLE_MACHINE = "(mx6)" DEPENDS_mxs += "elftosb-native openssl-native" PROVIDES += "u-boot" PV="unico" SRCREV = "b48999bc21243676a80f94ff1d2cd78418aca013" SRC_URI = "git://github.com/UDOOboard/U-Boot_Unico-2013.git" S = "${WORKDIR}/git" EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CPPFLAGS}" \ stuff for sale hull HOSTLDFLAGS="-L${STAGING_BASE_LIBDIR_NATIVE} -L${STAGING_LIBDIR_NATIVE}" \ stuff for sale hull HOSTSTRIP=true' stuff for sale hull PACKAGE_ARCH = "${MACHINE_ARCH}" Kernel stuff for sale hull I need to add receipt, but for now I built kernel manually: $ git clone https://github.com/UDOOboard/Kernel_Unico kernel $ cd kernel $ export PATH=$PATH: /bin $ make ARCH=arm UDOO_defconfig $ make -j16 ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- uImage ... $ ls arch/arm/boot/uImage arch/arm/boot/uImage Build $ bitbake core-image-minimal SD card SD card how-to $ sudo dd if=u-boot-udoo-quad.imx of=/dev/sdc bs=512 seek=2 638+0 records in 638+0 records out 326656 bytes (327 kB) copied, 0.174146 s, 1.9 MB/s Run! U-Boot and its config UDOO board => version U-Boot 2013.10-rc3 (Dec 02 2013 - 15:53:52) arm-poky-linux-gnueabi-gcc (GCC) 4.8.1 GNU ld (GNU Binutils) 2.23.2 UDOO board => mmc list FSL_SDHC: 0 UDOO board => mmc dev mmc0 is current device ... UDOO board => print baudrate=115200 boot_dev=mmc dev 0; ext2load mmc 0:1 ${loadaddr} /boot/uImage bootargs=console=ttymxc1,115200 root=/dev/mmcblk0p1 rootwait rw fixrtc rootflags=barrier=1 mem=768M arm_freq=996 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 bootcmd=run boot_dev; bootm ${loadaddr} loadaddr=0x10800000 .... Ho-Ho. Looks like there is a misconfiguration stuff for sale hull in local.conf. Wrong toolchain was used for U-Boot build. Ata-ta. Linux ## Booting kernel from Legacy Image at 10800000 ... Image Name: Linux-3.0.35-g029e851 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4215100 Bytes = 4 MiB Load Address: 10008000 Entry Point: 10008000 Verifying Checksum ... OK Loading Kernel Image ... OK Starting kernel ... [ 0.000000] stuff for sale hull Linux version 3.0.35-g029e851 (builder@svr-rup-blue) (gcc version 4.4.4 (4.4.4_09.06.2010) ) #1 SMP PREEMPT Mon Dec 2 14:41:34 EST 2013 [ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine: SECO i.Mx6 UDOO Board [ 0.000000] Kernel ver: [ 0.000000] Memory policy: ECC disabled, Data cache writealloc [ 0.000000] CPU identified as i.MX6Q, silicon rev 1.2 [ 0.000000] PERCPU: Embedded 7 pages/cpu @8be08000 s5440 r8192 d15040 u32768 ... Sending discover... No lease, failing Mon Dec 2 21:34:00 stuff for sale hull UTC 2013 INIT: Entering runlevel: 5 Starting syslogd/klogd: done Stopping Bootlog daemon: bootlogd.
The funny thing after boot that serial console will be inactive. I had to edit /etc/inittab to get it working as usual: --- /etc/inittab.original +++ /etc/inittab @@ -28,7 +28,7 @@ l6:6:wait:/etc/init.d/rc 6 # Normally stuff for sale hull not re
No comments:
Post a Comment