Booting from a DiskOnChip2000
John Sutton
john at scl.co.uk
Thu Apr 25 10:42:53 EDT 2002
Hi Ilguiz
Many thanks for that - I'm now much clearer what I'm doing ;-)
And I've succeeded! The problem was only that the standard lilo doesn't work
with DoC. I hadn't realised until you mentioned it that M-Systems provide a
patched lilo on their web site! I had just built a standard kernel (2.4.18)
with all the right bits enabled and thought that would be enough. And it
is, apart from lilo... Anyway, I've now downloaded M-System's patched lilo and
this works fine. But it's worth noting that you still have to explicitly
specify the geometry in the lilo.conf file (as below), but that is not
difficult because everything you need to know is available just by running
fdisk on /dev/nftla.
Thanks again
John
On Wed, 24 Apr 2002, you wrote:
> John,
>
> Sorry if I misunderstood you, but you installed the lilo bootloader into
> DiskOnChip. As you found, lilo needs BIOS disk number to talk to the
> device. The same is true for GRUB as the latter doesn't have the IDE
> drivers built in.
>
> The M-System's DiskOnChip is shipped with the BIOS driver programmed into
> the flash memory. The driver gets activated during BIOS initialization.
> The M-System's lilo usage model assumes that BIOS will attempt to load the
> lilo image in the same way as BIOS would load the master boot sector off
> the hard disk.
>
> The above startup scheme is possible because the M-System's drivers are
> already hooked to the BIOS INT 13h disk access call when BIOS wants to
> load the first sector off the bootable medium.
>
> So your attempt to load the kernel off DiskOnChip with lilo may succeed as
> long as you keep the M-System's boot area of the flash chip intact. I
> think the problem with lilo you mentioned is due to different default BIOS
> disk number/geometry specified by you and the configuration of the
> M-System's driver. You may need to consult M-System's documentation paper
> on its MS-DOS-based formatting software.
>
> Once the Linux kernel is started, accessing a filesystem installed on top
> of NFTL layer can be possible by means of the M-System's Linux driver
> *and* by the MTD doc2000.c/nftl.c drivers *but* not by both.
>
> Ilguiz
>
> On Wed, 24 Apr 2002, John Sutton wrote:
>
> > disk=/dev/nftla
> > bios=0x80
> > sectors=2
> > heads=16
> > cylinders=998
> > partition=/dev/nftla1
> > start=2
--
***************************************************
John Sutton
SCL Internet
URL http://www.scl.co.uk/
Tel. +44 (0) 1239 711 888
***************************************************
More information about the linux-mtd
mailing list