Skip to contentSkip to conversation

Grub support in DiskOnChip.

DISCUSSION Kevin Moore 2 participants 3 messages Oct 9, 2000 – Oct 16, 2000 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hello,

I have an Allwell STB1030N (small form-factor solid state x86 box) with a 16 MB DOC Millenium, and I'm having difficulties getting grub to work. I can't get past the dreaded "DISK BOOT FAILURE..." message after following essentially the same steps as outlined in the message below.

I am using a 2.4.0-test9 kernel with "linux/drivers/mtd" and "linux/include/linux/mtd" directories replaced with those from a 7 Oct, 2000 cvs checkout. Everything seems fine for mounting, reading, and writing with /dev/nftla1, so I assume that writing "grub_firmware" is working. I am using the grub version 0.5.95 to match the nftl patches provided with mtd. I'm using the recommended bios settings for booting the DOC (SCSI,C), but I've tried the others as well. Booting off of a hard-drive or cdrom is no problem.

I tried changing the M-Systems lilo patches (major dev 62 -> 93), loading doc-lilo, and using the mtd doc_loadbios to load the M-Sys firmware (doc42.exb), but got the same result. I need the 2.4.x kernels, so going completely with their method is not an option.

This must be a problem with the stage1 loader and/or bios, but I'm at a loss for how to proceed from here. Any suggestions for what to try next would be welcome.

Thanks,
Kevin Moore

Quoted 16 lines

Hi,

i cant boot my DOC2000 with grub :-(

I did: (in this order)
- patched grub with the 2 patches in mtd/grub/
- make, make install (of grub)
- copied the pre_stage2 to /mdt/grub
- mdt/grub/make
- doc_loadbios /dev/mtd0 grub_firmware
- nftl_format /dev/mdt0 81920
- fdisk /dev/nftla
- mke2fs /dev/nftla1 -m 0
- copied a kernel and /boot/grub to /nftla1

Quoted 13 lines

After rebooting, the grub shell comes up, but i can't access the DOC with something like root (dc0,0) etc.
(Booting from (hd0) is possible)

Where I'm wrong ?

Quoted 6 lines

Grub patches to support NFTL properly have just been contributed.

See mtd/patches/grub* and send virtual beer to [email protected]

--
dwmw2

To unsubscribe, send "unsubscribe mtd" to [email protected]

#1 lore raw
Quoted 3 lines · [email protected] said:

I have an Allwell STB1030N (small form-factor solid state x86 box) with a 16 MB DOC Millenium, and I'm having difficulties getting grub to work.

Grub doesn't yet support the DiskOnChip Millennium. It shouldn't be difficult to fix that, it's just that I did my development on DiskOnChip 2000.

First you need to add Millennium support to Grub itself - you can boot Grub from a floppy to test this. Once Grub can detect and read the DiskOnChip, you also need to add Millennium support to the Grub loader found in the grub/ directory of my CVS tree.

--
dwmw2

To unsubscribe, send "unsubscribe mtd" to [email protected]

#2 lore raw
Quoted 10 lines · On Mon, 09 Oct 2000 02:07:54 David Woodhouse wrote:

Grub doesn't yet support the DiskOnChip Millennium. It shouldn't be difficult to fix that, it's just that I did my development on DiskOnChip 2000.

First you need to add Millennium support to Grub itself - you can boot Grub from a floppy to test this. Once Grub can detect and read the DiskOnChip, you also need to add Millennium support to the Grub loader found in the grub/ directory of my CVS tree.

I now have grub successfully detecting the DoC Millennium and (almost) booting the kernel. Everything goes great until the kernel looks for a filesystem, at which point it says:

Kernel panic: I have no root and I want to scream

This is with the same kernel that works fine for access to the DoC when booted off the hard drive (all built-ins, no modules). The mtd files are from a cvs checkout I made on 7 October. The grub commands I use are:

root (dc0,0)
kernel /boot/vmlinuz-2.4.0-test9 root=/dev/nftla1
boot

The flash chips are detected fine during boot-up and 4 lines above the kernel panic I see:

nftla: nftla1

Also, the /dev directory on the DoC is populated. If I specify the root as "root=/dev/hda1", then I can boot using the kernel on the DoC and the root filesystem on the hard drive. It seems like I'm close.

Three questions:
- Does anybody have suggestions on what the problem is or how to debug this? Could I be leaving the DoC in a bad state exiting grub even though the kernel seems to detect it okay?
- Thinking past this, does anybody have suggestions on what needs to be changed in the grub loader to support DoC Millennium? I've not done much x86 assembly, but I'm willing to give it a shot.
- I've gotten this far by looking at doc2000.c, doc2001.c, and nftl.c from the kernel driver. I saw many comments starting with "see software requirement..." I've searched the M-systems website, and haven't found any docs that look like this. Can somebody point me to the proper documentation?

thanks,

Kevin

To unsubscribe, send "unsubscribe mtd" to [email protected]