imximage: Add support for NOR boot
Fabio Estevam
reviewerPATCH 1/1 imximage: Add support for NOR boot
From: Fabio Estevam <[email protected]>
Add support for NOR boot on imximage.
--- doc/README.imximage | 7 +++++-- tools/imximage.c | 1 + tools/imximage.h | 1 + 3 files changed, 7 insertions(+), 2 deletions(-)
doc/README.imximage +5 -2
@@ -64,7 +64,7 @@ Configuration command line syntax: This command need appear the fist before other valid commands in configuration file. - BOOT_FROM nand/spi/sd/onenand + BOOT_FROM nand/spi/sd/onenand/nor Example: BOOT_FROM spi DATA type address value
@@ -187,7 +187,10 @@ I use dd: dd if=u-boot.imx of=/dev/mmcblk0 bs=512 seek=2 This command copies the u-boot image at the address 0x400, as required -by the processor. +by the processor when booting from SD/MMC. + +Note: if copying u-boot.imx to NOR flash the offset should be +0x1000. For onenand the offset is 0x100. Now remove your card from the PC and go to the target. If evrything went right, the u-boot prompt should come after power on.
tools/imximage.c +1 -0
@@ -51,6 +51,7 @@ static table_entry_t imximage_bootops[] = { {FLASH_OFFSET_NAND, "nand", "NAND Flash", }, {FLASH_OFFSET_SD, "sd", "SD Card", }, {FLASH_OFFSET_ONENAND, "onenand", "OneNAND Flash",}, + {FLASH_OFFSET_NOR, "nor", "NOR Flash", }, {-1, "", "Invalid", }, };
tools/imximage.h +1 -0
@@ -37,6 +37,7 @@#define FLASH_OFFSET_SD FLASH_OFFSET_STANDARD#define FLASH_OFFSET_SPI FLASH_OFFSET_STANDARD#define FLASH_OFFSET_ONENAND 0x100 +#define FLASH_OFFSET_NOR 0x1000#define IVT_HEADER_TAG 0xD1#define IVT_VERSION 0x40
Signature · 1 line
1.7.1
PATCH 1/1 imximage: Add support for NOR boot
Am 03/12/2011 13:48, schrieb Fabio Estevam:
Quoted 5 lines
From: Fabio Estevam <[email protected]>
Add support for NOR boot on imximage.
Signed-off-by Fabio Estevam <[email protected]>
Hi Fabio,
doc/README.imximage I use dd: · line 190
Quoted 3 lines
This command copies the u-boot image at the address
0x400, as requireddoc/README.imximage +1
-1-by the processor. +by the processor when booting from SD/MMC.
This is incomplete: this offset is valid also for NAND/PATA/SPI.
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================
PATCH 1/1 imximage: Add support for NOR boot
In reply to Fabio EstevamDear Fabio Estevam,
Quoted 5 lines · In message <[email protected]> you wrote:
From: Fabio Estevam <[email protected]>
Add support for NOR boot on imximage.
Signed-off-by Fabio Estevam <[email protected]>
...
tools/imximage.c static table_entry_t imximage_bootops[] = { · line 54
Quoted 7 lines
tools/imximage.c +1
-0@@ -51,6 +51,7 @@ static table_entry_t imximage_bootops[] = { {FLASH_OFFSET_NAND, "nand", "NAND Flash", }, {FLASH_OFFSET_SD, "sd", "SD Card", }, {FLASH_OFFSET_ONENAND, "onenand", "OneNAND Flash",}, + {FLASH_OFFSET_NOR, "nor", "NOR Flash", },
Can we please sort this list? Thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Worlds may change, galaxies disintegrate, but a woman always remains a woman. -- Kirk, "The Conscience of the King", stardate 2818.9