public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Re: DOC2000 + GRUB/LILO booting problems
@ 2002-03-18 15:34 Ilguiz Latypov
  2002-03-18 15:57 ` David Woodhouse
  0 siblings, 1 reply; 7+ messages in thread
From: Ilguiz Latypov @ 2002-03-18 15:34 UTC (permalink / raw)
  To: Linux MTD mailing list

Veselin,

On Mon, 18 Mar 2002, Veselin Mijuskovic wrote:

> 	I'm pretty new to MTD and all these stuff, but if this is the 
> case, how the kernel mounts the /dev/nftla1 with no problems at all when I 
> boot from the hard disk?

I agree it might be impossible for the kernel to mount a partition
formatted within NFTL layer if NFTL data structures in the beginning of
the flash chip are overwritten.  But I don't know the exact details of the
NFTL layer myself.

> 	Isn't it dangerous? It's a 16MB DOC2000 - are these the right
> parameters? Can I overwrite bad block table with the above command? How
> can I recover bad block table (I can make 'dd if=/dev/mtd0 of=some_file'
> to create a backup copy, can I)?

The GRUB bootloader needs around 96K at minimum.  NFTL layer can be set up
after the bootloader only.  It seems the start of the NFTL layer will be
detected automatically by the kernel.  In my understanding, the kernel
will simply search for a signature in every erase unit of the chip to find
the beginning of NFTL layer.

As for the backup, the dd command should work when reading from the chip.  
As you might know, the flash sectors need to be erased to accept new data.  
I think the implementation of the system call corresponding to the write()
C library function against the /dev/mtdX MTD DoC 2000 driver will perform
the necessary "flash program" command automatically.  Perhaps, the "flash
erase" command has to be carried out explicitly through utilities like
util/erase_all.  

Of course, write()s against /dev/nftlaX driver will do the "flash erase"
command transparently.

Ilguiz

^ permalink raw reply	[flat|nested] 7+ messages in thread
* DOC2000 + GRUB/LILO booting problems
@ 2002-03-14 15:20 Veselin Mijuskovic
  2002-03-14 16:06 ` Ilguiz Latypov
  0 siblings, 1 reply; 7+ messages in thread
From: Veselin Mijuskovic @ 2002-03-14 15:20 UTC (permalink / raw)
  To: linux-mtd

	Hi!

	I have a Advantech SBC with DOC2000. I have used M-Sys drivers for a 
while, but choose to switch to 2.4.x kernels and MTD. I could manage to create
partition (/dev/nftla1) and install everything on it (a have also one IDE disk
connected). However, I couldn't manage to boot the system from DOC2000. First
I tried mtd-lilo and kernel loads fine but fails to mount the root partiton;
VFS panics and says that it could not mount root partition from the device 03:03.
No matter what I do, changing the root device with rdev and such, it always 
complains that it wish to mount device 03:03.

	So I switched to GRUB. I've grabbed the source from the CVS and installed
the patch from the mtd/patches and it compiled fine. I've used ./doc_loadbios
to install the grub_firmware and rebooted. It loaded GRUB and I've got the 
'grub>' prompt, but I couldn't load the kernel as it complains that it can 
find the DOC drive (dc0) but could not recognize the partition (replying something
like 'using the whole disk'). The command 'root (dc0,0)' fails, as well as 
find. The partition /dev/nftla1 can be mounted with no problems when I boot from
disk. I've used the DOC2000 with DOS on it, and just created the partition with
'fdisk' and formatted it with 'mke2fs'. What can be wrong and is there something
that I should do but didn't?

Thanks in advance,
-- 
 | \|/ Panzer (a.k.a Veselin Mijuskovic), Unix SysAdmin 
/|\ |  Computer Centre, School of Electical Engineering, University of Belgrade
-------------------------------------------------------------------------------
       Unix is very friendly, it's just picky about who its friends are

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-03-19 11:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-18 15:34 DOC2000 + GRUB/LILO booting problems Ilguiz Latypov
2002-03-18 15:57 ` David Woodhouse
2002-03-18 16:17   ` Veselin Mijuskovic
     [not found]     ` <Pine.LNX.4.44.0203181430360.23362-100000@server.superbt.com>
2002-03-19 11:24       ` Veselin Mijuskovic
  -- strict thread matches above, loose matches on Subject: below --
2002-03-14 15:20 Veselin Mijuskovic
2002-03-14 16:06 ` Ilguiz Latypov
2002-03-18 13:48   ` Veselin Mijuskovic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox