Skip to contentSkip to conversation

Grub

DISCUSSION Daniel Cox 2 participants 2 messages May 29, 2001 Memory technology devices (MTD)

lore
Share & tools
lore

Daniel Cox

author
#0 lore raw

Hi,

I am trying to use Grub on a DOC2000.

Using Kernel 2.4.5 and MTD from 28May.
Grub 0.5.95 from (www.gnu.org/software/grub) with both patches -doc & -doc-boot applied. There is no patch for .5.96 and I cant find grub .5.97!

I have built the grub_firmware and installed with doc_loadbios - Grub loads correctly on rebooting. However even with the --enable-diskonchip option for ./configure, root (dc0) does not work - selected disk does not exist! For now I am running from a hard disk (hd0).

Once the firmware is installed, the following appears
Could not find valid boot record
Could not mount NFTL device

nftl_format works but removes the firmware.

How can I get the firmware installed along with a formatted partition?

How can I access the DOC device from Grub?

Does JFFS work with the DOC? I read the archive and it was recently mentioned that it does not work.

Thanks for your help.
Daniel.

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

There is no patch for .5.96 and I cant find grub .5.97!

There appears to be a 'grub-0.5.96-doc.patch' in my working directory. I've committed it.

0.5.97 is what the current CVS version is called, I think.

Quoted 3 lines

However even with the --enable-diskonchip option for ./configure, root (dc0) does not work - selected disk does not exist! For now I am running from a hard disk (hd0).

Does it even print the messages about probing for a DiskOnChip?

Quoted 3 lines · [email protected] said:

Once the firmware is installed, the following appears
Could not find valid boot record
Could not mount NFTL device

Argh. I've been seeing a lot of that recently. Something in the sanity checks is failing. I'll put some more verbose messages in.

Quoted 1 line · [email protected] said:

nftl_format works but removes the firmware.

Give it an offset and it'll skip the firmware.

	nftl_format /dev/mtd0 49152
Quoted 2 lines · [email protected] said:

How can I get the firmware installed along with a formatted
partition?

If you mean the original firmware, then you have to do that from DOS with DFORMAT. If you mean Grub, then install Grub as before (having fixed it) and then use nftl_format with an offset of (IIRC) 65536.

Quoted 1 line · [email protected] said:

How can I access the DOC device from Grub?

The Grub support was never 100% completed. It worked to a certain extent but wasn't reliable. I never got time to debug it, although it should be relatively simple. It seemed that the first time you read a sector it would return incorrect data. The next time it would work. So repeating the 'kernel=' command a few times till Grub stopped complaining about errors, and then booting, worked.

Quoted 2 lines

Does JFFS work with the DOC? I read the archive and it was recently
mentioned that it does not work.

The DiskOnChip hardware driver only accepts write requests of a single page. It needs to be fixed to allow larger writes - to loop till it's done. At that point, you should be able to use JFFS on it, although you only have error detection, not error _correction_. The ideal solution is to add the planned ECC support to JFFS2 and use that.

--
dwmw2