aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2013-08-26 16:58:21 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2013-08-29 16:14:22 -0300
commit14edbd802b9b6d2181d8b10e14acc8debc708a36 (patch)
treec56784ada0a4ac643a6b016d536710e3d9fa5a85
parentbbbe1e2fa1e607dc591057beaa130bb5e6746e98 (diff)
downloadmeta-fsl-arm-14edbd802b9b6d2181d8b10e14acc8debc708a36.tar.gz
meta-fsl-arm-14edbd802b9b6d2181d8b10e14acc8debc708a36.tar.bz2
meta-fsl-arm-14edbd802b9b6d2181d8b10e14acc8debc708a36.zip
imx-boolets: Add barebox support
Change-Id: Ifb5855a8c6c8d290f3aa699dc36712cb68fd4ddc Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r--recipes-bsp/imx-bootlets/imx-bootlets/add-command-script-for-barebox.patch46
-rw-r--r--recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb6
2 files changed, 51 insertions, 1 deletions
diff --git a/recipes-bsp/imx-bootlets/imx-bootlets/add-command-script-for-barebox.patch b/recipes-bsp/imx-bootlets/imx-bootlets/add-command-script-for-barebox.patch
new file mode 100644
index 0000000..1deca1c
--- /dev/null
+++ b/recipes-bsp/imx-bootlets/imx-bootlets/add-command-script-for-barebox.patch
@@ -0,0 +1,46 @@
+imx-bootlets: Add command script for barebox
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
+
+diff --git a/barebox_ivt.bd b/barebox_ivt.bd
+new file mode 100644
+index 0000000..79cbccf
+--- /dev/null
++++ b/barebox_ivt.bd
+@@ -0,0 +1,34 @@
++// STMP378x ROM command script to load and run barebox
++
++sources {
++ power_prep="imx-bootlets-power_prep-@MACHINE@";
++ sdram_prep="imx-bootlets-boot_prep-@MACHINE@";
++ barebox="barebox-@MACHINE@.bin";
++}
++
++section (0) {
++
++ //----------------------------------------------------------
++ // Power Supply initialization
++ //----------------------------------------------------------
++
++ load power_prep;
++ load ivt (entry = power_prep:_start) > 0x8000;
++ hab call 0x8000;
++
++ //----------------------------------------------------------
++ // SDRAM initialization
++ //----------------------------------------------------------
++
++ load sdram_prep;
++ load ivt (entry = sdram_prep:_start) > 0x8000;
++ hab call 0x8000;
++ //----------------------------------------------------------
++ // Load and call barebox - ELF ARM image
++ //----------------------------------------------------------
++
++ load barebox;
++ load ivt (entry = barebox:start) > 0x8000;
++ hab call 0x8000;
++
++}
diff --git a/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb b/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb
index 6cea049..1ddfb6f 100644
--- a/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb
+++ b/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb
@@ -6,7 +6,8 @@ PR = "r2"
SRC_URI = "http://download.ossystems.com.br/bsp/freescale/source/imx-bootlets-src-${PV}.tar.gz \
file://linux-fix-paths.patch \
- file://linux_prep-fix-cmdlines.patch"
+ file://linux_prep-fix-cmdlines.patch \
+ file://add-command-script-for-barebox.patch"
SRC_URI[md5sum] = "cf0ab3822dca694b930a051501c1d0e4"
SRC_URI[sha256sum] = "63f6068ae36884adef4259bbb1fe2591755718f22c46d0a59d854883dfab1ffc"
@@ -32,6 +33,7 @@ do_configure () {
# Use machine specific binaries
sed 's,@MACHINE@,${MACHINE},g;s,@DTB@,-dtb,g' < linux.bd > linux.bd-dtb
sed -i 's,@MACHINE@,${MACHINE},g;s,@DTB@,,g' linux.bd
+ sed -i 's,@MACHINE@,${MACHINE},g' barebox_ivt.bd
}
do_compile () {
@@ -45,6 +47,7 @@ do_install () {
install -m 644 boot_prep/boot_prep power_prep/power_prep \
linux_prep/output-target/linux_prep \
linux.bd linux.bd-dtb \
+ barebox_ivt.bd \
${D}/boot
}
@@ -56,6 +59,7 @@ do_deploy () {
for f in boot_prep/boot_prep \
power_prep/power_prep \
linux_prep/output-target/linux_prep \
+ barebox_ivt.bd \
linux.bd linux.bd-dtb; do
full_name="imx-bootlets-`basename $f`-${MACHINE}-${PV}-${PR}"
symlink_name="imx-bootlets-`basename $f`-${MACHINE}"