Skip to contentSkip to conversation

DOC2000 + GRUB/LILO booting problems

DISCUSSION Veselin Mijuskovic 2 participants 3 messages Mar 14, 2002 – Mar 18, 2002 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw
	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,

Signature · 4 lines
 | \|/ 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
#1 lore raw

Veselin,

Could you overwrite the NFTL information when installing grub_firmware? I believe one can re-format the chip with

    nftl_format /dev/mtd0 0x18000

The offset of NFTL layer must be the first available erase unit.

Ilguiz

Quoted 2 lines · Veselin Mijuskovic

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.

#2 lore raw

Ilguiz Latypov [Thu, Mar 14, 2002 at 11:06:28AM -0500, Re: DOC2000 + GRUB/LILO booting problems]:

Quoted 4 lines

Veselin,

Could you overwrite the NFTL information when installing grub_firmware?

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?

Quoted 3 lines

I believe one can re-format the chip with

    nftl_format /dev/mtd0 0x18000

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)?

Sorry to bother you with this, but it's rather important.

Cheers,

Signature · 4 lines
 | \|/ 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