Skip to contentSkip to conversation

RedBoot from DoC not working quite well

DISCUSSION Iztok Zupet 2 participants 4 messages Jul 1, 2002 – Jul 2, 2002 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I succsessfuly replaced a DoC millenium firmware with RedBoot using the GRUB
patch as the base. After

>>> doc_loadbios /dev/mtd0 redboot_firmware

RedBoot boots fine (int18 or int19). But after formating my DoC with nftl_format utility:

	>>> nftl_format /dev/mtd0 128000

which should leave all the RedBoot blocks unchanged, my RedBoot is gone. The whole redboot_firmware size is 126280.

Can someone tell me why the RedBoot and NFTL blocks interleave, if they do.

Thanks
iz

#1 lore raw
Quoted 5 lines · Iztok Zupet

RedBoot boots fine (int18 or int19). But after formating my DoC with nftl_format utility:

	>>> nftl_format /dev/mtd0 128000

You can't start a format from that address. It's not an erase block boundary. (Most DoC devices have 8k erase blocks. THat means 8192 bytes, not 8000.)

Try erasing from 131072, rather than 128000.

Jas.

#2 lore raw
Quoted 6 lines · Jasmine Strong
Quoted 4 lines · Iztok Zupet

RedBoot boots fine (int18 or int19). But after formating my DoC with

nftl_format utility:

	>>> nftl_format /dev/mtd0 128000
Quoted 7 lines

You can't start a format from that address. It's not an erase block boundary. (Most DoC devices have 8k erase blocks. THat means 8192 bytes, not 8000.)

Try erasing from 131072, rather than 128000.

Jas.

I tried but it still owerwrites or erases my RedBoot.
Size of my redboot_firmware is exactly 123.2K.

Regards
iz

#3 lore raw
Quoted 18 lines · Iztok Zupet
Quoted 6 lines · Jasmine Strong
Quoted 4 lines · Iztok Zupet

RedBoot boots fine (int18 or int19). But after formating my DoC with

nftl_format utility:

	>>> nftl_format /dev/mtd0 128000
Quoted 7 lines

You can't start a format from that address. It's not an erase block boundary. (Most DoC devices have 8k erase blocks. THat means 8192 bytes, not 8000.)

Try erasing from 131072, rather than 128000.

Jas.

I tried but it still owerwrites or erases my RedBoot.
Size of my redboot_firmware is exactly 123.2K.

Quoted 6 lines

Regards
iz

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

It OK now . My RedBoot firware was 8K bytes too big, eg it loaded yust a
little pass the 0x20000 in DoC.

Regards
iz