[meta-freescale] [meta-fsl-arm] SabreLite and u-boot-scripts-boundary

Erik Botö erik.boto at pelagicore.com
Tue May 28 01:17:21 PDT 2013


I just got a hold of a new SabreLite, and when booting this board
u-boot looks for 6x_bootscript just like nitrogen6x boards. I think
this is an untouched u-boot, could someone verify that this is the way
SabreLites are/were shipped?

But when using MACHINE=imx6qsabrelite this file is not shipped on the
sdcard, so I did some comparisons between the nitrogen6x and
imx6qsabrelite machine configs and found that
PREFERRED_PROVIDER_u-boot = "u-boot-boundary" is not set in the
sabrelite case, and the BOOT_SCRIPTS variable either.

Also, the u-boot-scripts-boundary recipe uses ${MACHINE} to find the
right script in ${S}, but there is no board/boundary/imx6qsabrelite/
directory and the scripts in board/boundary/nitrogen6x/ suggest that
they should be used for sabrelite as well.

I have done the modifications below to make it work, if someone can
confirm that this is the way it's supposed to be I can format a proper
patch and mail it.


diff --git a/conf/machine/imx6qsabrelite.conf b/conf/machine/imx6qsabrelite.conf
index 2155ba0..48128e0 100644
--- a/conf/machine/imx6qsabrelite.conf
+++ b/conf/machine/imx6qsabrelite.conf
@@ -10,10 +10,17 @@ SOC_FAMILY = "mx6:mx6q"

 KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx6q-sabrelite.dts"

+PREFERRED_PROVIDER_u-boot = "u-boot-boundary"
 PREFERRED_PROVIDER_virtual/kernel = "linux-boundary"

 UBOOT_MACHINE = "mx6qsabrelite_config"

 SERIAL_CONSOLE = "115200 ttymxc1"

+# Ensure boot scripts will be available at rootfs time
+do_rootfs[depends] += "u-boot-script-boundary:do_deploy"
+# Boot scripts to install
+BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript"
 MACHINE_FEATURES += " pci wifi bluetooth"
diff --git a/recipes-bsp/u-boot/u-boot-script-boundary_git.bb
index 4d5e7db..dad313a 100644
--- a/recipes-bsp/u-boot/u-boot-script-boundary_git.bb
+++ b/recipes-bsp/u-boot/u-boot-script-boundary_git.bb
@@ -15,21 +15,21 @@ inherit deploy

 do_mkimage () {
     uboot-mkimage  -A arm -O linux -T script -C none -a 0 -e 0 \
-                   -n "boot script" -d
board/boundary/${MACHINE}/6x_bootscript.txt \
-                   board/boundary/${MACHINE}/6x_bootscript
+                   -n "boot script" -d
board/boundary/nitrogen6x/6x_bootscript.txt \
+                   board/boundary/nitrogen6x/6x_bootscript

     uboot-mkimage  -A arm -O linux -T script -C none -a 0 -e 0 \
-                   -n "upgrade script" -d
board/boundary/${MACHINE}/6x_upgrade.txt \
-                   board/boundary/${MACHINE}/6x_upgrade
+                   -n "upgrade script" -d
board/boundary/nitrogen6x/6x_upgrade.txt \
+                   board/boundary/nitrogen6x/6x_upgrade

 addtask mkimage after do_compile before do_install

 do_deploy () {
     install -d ${DEPLOYDIR}
-    install ${S}/board/boundary/${MACHINE}/6x_bootscript \
+    install ${S}/board/boundary/nitrogen6x/6x_bootscript \
-    install ${S}/board/boundary/${MACHINE}/6x_upgrade \
+    install ${S}/board/boundary/nitrogen6x/6x_upgrade \

     cd ${DEPLOYDIR}

More information about the meta-freescale mailing list