diff options
author | apgmoorthy <moorthy.apg@samsung.com> | 2009-03-27 09:15:23 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2009-04-03 20:27:25 (GMT) |
commit | 69bcabb51686fdd133cb1848c0d3b0a4fc6ca5cf (patch) | |
tree | 591f2844b846b1b39aed91b0cc44b58d9df37fde /onenand_ipl/onenand_boot.c | |
parent | dfc91c33957c95da34e3888dc87912d5c15a7603 (diff) | |
download | u-boot-fsl-qoriq-69bcabb51686fdd133cb1848c0d3b0a4fc6ca5cf.tar.xz |
Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN
Currently OneNAND initial program loader (ipl) reads only block 0 ie 128KB.
However, u-boot image for apollon board is 195KB making the board
unbootable with OneNAND.
Fix ipl to read CONFIG_SYS_MONITOR_LEN.
CONFIG_SYS_MONITOR_LEN macro holds the U-Boot image size.
Signed-off-by: Rohit Hagargundgi <h.rohit@samsung.com>
Signed-off-by: Gangheyamoorthy <moorthy.apg@samsung.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'onenand_ipl/onenand_boot.c')
-rw-r--r-- | onenand_ipl/onenand_boot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/onenand_ipl/onenand_boot.c b/onenand_ipl/onenand_boot.c index 86428cc..63995ce 100644 --- a/onenand_ipl/onenand_boot.c +++ b/onenand_ipl/onenand_boot.c @@ -36,7 +36,7 @@ void start_oneboot(void) buf = (uchar *) CONFIG_SYS_LOAD_ADDR; - onenand_read_block0(buf); + onenand_read_block(buf); ((init_fnc_t *)CONFIG_SYS_LOAD_ADDR)(); |