]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mx23: config: Enable building of u-boot.sb binary
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 11 Jan 2013 03:19:12 +0000 (03:19 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 21 Jan 2013 11:05:21 +0000 (12:05 +0100)
For i.MX23 we need to pass imx23 as elftosb param.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Makefile
arch/arm/cpu/arm926ejs/mxs/u-boot-imx23.bd [new file with mode: 0644]

index 3305e8cd1c0a81bad6d79e7175b42ce869f6c5b9..655ec39dbd1573ce549a6cf3b786fcfdb20285d4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -508,6 +508,7 @@ $(obj)u-boot.ais:       $(obj)spl/u-boot-spl.bin $(obj)u-boot.img
                        $(obj)u-boot.ais
 
 # Specify the target for use in elftosb call
+ELFTOSB_TARGET-$(CONFIG_MX23) = imx23
 ELFTOSB_TARGET-$(CONFIG_MX28) = imx28
 
 $(obj)u-boot.sb:       $(obj)u-boot.bin $(obj)spl/u-boot-spl.bin
diff --git a/arch/arm/cpu/arm926ejs/mxs/u-boot-imx23.bd b/arch/arm/cpu/arm926ejs/mxs/u-boot-imx23.bd
new file mode 100644 (file)
index 0000000..3a51879
--- /dev/null
@@ -0,0 +1,18 @@
+options {
+       driveTag = 0x00;
+       flags = 0x01;
+}
+
+sources {
+       u_boot_spl="spl/u-boot-spl.bin";
+       u_boot="u-boot.bin";
+}
+
+section (0) {
+       load u_boot_spl > 0x0000;
+       load ivt (entry = 0x0014) > 0x8000;
+       call 0x8000;
+
+       load u_boot > 0x40000100;
+       call 0x40000100;
+}