DiskOnChip 2000 and Millenium support in GRUB bootloader
David Woodhouse
dwmw2 at infradead.org
Mon Feb 25 20:06:48 EST 2002
VadimK at m-sys.com said:
> [Ilguiz] Vadim, should the Millennium SPL check sum include IPL?
> [Vadim] No . IPL of Millennium chip copies 7K of data out of offset
> 0x400 and calculates the checksum , which should be 0x55 . If it's
> not 0x55 IPL returns to BIOS without executing SPL .
What we want to achieve here is to install a tiny INT 19h handler which
instead of bootstrapping the normal way, loads the Grub bootloader from the
DiskOnChip IPL area and runs it.
That tiny INT 19h handler and the code to install it ought to fit in the
512-byte IPL space on the Millennium, so I think we should be writing our
own version of the IPL code on the Millennium, rather than using the
existing IPL which tries to load a whole 8KiB of SPL.
On the DiskOnChip 2000, the IPL in ROM loads the whole 8KiB, but still we
only use 512 bytes for our own INT 19h-installer code, and that later
reloads the whole of Grub from the flash. You can see this code at
ftp://www.uk.linux.org/pub/people/dwmw2/mtd/cvs/mtd/grub/doc_stage1.S
ftp://www.uk.linux.org/pub/people/dwmw2/mtd/cvs/mtd/grub/doc_stage1b.S
Some documentation is in the 'README' file in the same directory.
--
dwmw2
More information about the linux-mtd
mailing list