
On 12/04/2012 11:33, Timo Ketola wrote:
.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@exertus.fi
Hi Timo,
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
I wonder why we need this in u-boot code and to set this rule in the main Makefile. You can always do this after generating u-boot.
The rules here are to generate the u-boot.imx. Then the same image can be stored at different addresses. Depending on the i.MX SOC, ofssets can be different (MX5 / MX6 have different offsets for NOR / NAND / oneNAND).
Best regards, Stefano Babic