[U-Boot] [PATCH 2/8] i.MX: Add target flashable to offset 0
Timo Ketola
timo at exertus.fi
Thu Apr 12 11:33:48 CEST 2012
.imx image directly from mkimage must be flashed at offset 0x400 into the nand. Thats a little hard with e.g. openocd.
Signed-off-by: Timo Ketola <timo at exertus.fi>
---
Makefile | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index 1446131..b3f1279 100644
--- a/Makefile
+++ b/Makefile
@@ -410,6 +410,9 @@ $(obj)u-boot.imx: $(obj)u-boot.bin
$(obj)tools/mkimage -n $(CONFIG_IMX_CONFIG) -T imximage \
-e $(CONFIG_SYS_TEXT_BASE) -d $< $@
+$(obj)u-boot-nand.imx: $(obj)u-boot.imx
+ dd if=$< of=$@ seek=2
+
$(obj)u-boot.kwb: $(obj)u-boot.bin
$(obj)tools/mkimage -n $(CONFIG_SYS_KWD_CONFIG) -T kwbimage \
-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -d $< $@
--
1.7.5.4
More information about the U-Boot
mailing list