Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN
A message that is not in the archive (sent off-list or not yet received): 22617689.32781240550892435.JavaMail.weblogic@epml08
PATCH 1/2 Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN
Hi,
Quoted 6 lines · AYYANARPONNUSAMY GANGHEYAMOORTHY
Hi ?Scott,
On ?Apr 24, 2009 07:39 (GMT+09:00) Scott Wood<[email protected]> wroteQuoted 3 lines
Quoted 3 lines
apgmoorthy wrote:
This is done by the Post : [U-Boot] [PATCH 2/2] Fix OneNAND ipl to readCONFIG_SYS_MONITOR_LEN
Quoted 9 lines
Quoted 4 lines
Quoted 1 line
What do you feel about getting this one inside u-boot-nand-flash ?
Such a change should go through the board maintainer, who knows better what the actual length is.
? ? ? ?- Correct ?, I got your point.
Hi Kyungmin,
? ? ? Can you please make a call on this , for apollon and getCONFIG_SYS_MONITOR_LENin.
Actually, I don't like the CONFIG_SYS_MONITOR_LEN approaches, now you are consider the bad block at 1.
But we can also consider the bad block 2, if there two consecutive 2 bad block at block 1, 2, we should define the CONFIG_SYS_MONITOR_LEN as 128KiB * 4 and reserved block block 4 always even though we use 2 blocks.
Right, we should consider bad block at IPL, so my recommendation is IPL + u-boot should be fit at block 0
128KiB at OneNAND, 256KiB at Flex-OneNAND. In case of apollon. we should reduce the size as 128KiB for OneNAND side. If the IPL + u-boot size under 128KiB, Flex-OneNAND also can boot it.
For simplicity How about to use block scheme? we always use block 0 for boot (IPL + u-boot) whatever block size.
Thank you,
Kyungmin Park
Scott Wood
NAKPATCH 1/2 Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN
Quoted 6 lines · Kyungmin Park
Actually, I don't like the
CONFIG_SYS_MONITOR_LENapproaches, now you are consider the bad block at 1.
But we can also consider the bad block 2, if there two consecutive 2 bad block at block 1, 2, we should define theCONFIG_SYS_MONITOR_LENas 128KiB * 4 and reserved block block 4 always even though we use 2 blocks.
There are two separate constants -- the length of data excluding bad blocks, and the size of the region set aside for that data including bad blocks. CONFIG_SYS_MONITOR_LEN is the former.
We may need to do something special when writing back the environment to find its location if there were any bad blocks, though.
Quoted 2 lines
Right, we should consider bad block at IPL, so my recommendation is IPL + u-boot should be fit at block 0
We wouldn't be having this discussion if someone didn't have a u-boot that didn't fit in block 0.
Quoted 3 lines
128KiB at OneNAND, 256KiB at Flex-OneNAND. In case of apollon. we should reduce the size as 128KiB for OneNAND side. If the IPL + u-boot size under 128KiB, Flex-OneNAND also can boot it.
For comparison, powerpc u-boots are pretty much never less than 128KiB, and with the NAND subsystem are typically larger than 256KiB. We may need to boot from OneNAND some day.
Quoted 2 lines
For simplicity How about to use block scheme? we always use block 0 for boot (IPL + u-boot) whatever block size.
NACK.
-Scott
PATCH 1/2 Fix OneNAND ipl to read CONFIG_SYS_MONITOR_LEN
Quoted 11 lines · Scott Wood
Quoted 6 lines · Kyungmin Park
Actually, I don't like the
CONFIG_SYS_MONITOR_LENapproaches, now you are consider the bad block at 1.
But we can also consider the bad block 2, if there two consecutive 2 bad block at block 1, 2, we should define theCONFIG_SYS_MONITOR_LENas 128KiB * 4 and reserved block block 4 always even though we use 2 blocks.There are two separate constants -- the length of data excluding bad blocks, and the size of the region set aside for that data including bad blocks.
CONFIG_SYS_MONITOR_LENis the former.
we may need to detect the u-boot.bin size dynamicly instead of staticly
as Scott NACK
Best Regards,
J.