Skip to contentSkip to conversation

DOC 2000 and GRUB

DISCUSSION Mateo Anderson 3 participants 3 messages Sep 6, 2002 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi

Thank you all for replys and all the help.

Quoted 2 lines

After slightly modifying the Grub stage 2 code (bdev_diskonchip.c), I was able to get Grub to boot from a freshly 5.x dformatted DoC.

Is this modified version comitted in the cvs?

Quoted 6 lines

I haven't tried any DoC 2000's that have a UnitSizeFactor that is not 0 or FF, but it looks like this should work as well, with the appropriate changes to bdev_diskonchip.c.

I'm guessing that many problems are caused by having the nftl module loaded during a fdisk, nftl_format, and/or doc_loadbios.

Are you referring to kernel modules?
If so, I have these build in (no modules), as suggested by DOC and GRUB HOW-TO.

Quoted 3 lines

Following Henrik's advice to use DFORMAT to install GRUB, plus being *very* careful to make sure nftl is not loaded at inopportune times, seems to help.

Now I have so much information that I need to sort them out.

Steps:
1) Boot DOS and use DFORMAT 5.x to format the DOC, with the appropriate space for the GRUB firmware (check the size of the stage1 file).
2) Boot to Linux, use the doc_loadbios to load the GRUB firmware (or use DFORMAT - what parameters??).
3) Format the /dev/nftla.
4) Copy everything to the /dev/nftla1.
5) Boot from DOC.

Is this correct?

Regards,
Mateo

_____________________________________________________________
Brezplacen E-mail - http://email.star.si
Brezplacen prostor 100 MB,lastna domena - http://www.slohosting.com

_____________________________________________________________
Promote your group and strengthen ties to your members with [email protected] by Everyone.net http://www.everyone.net/?btn=tag

#1 lore raw
Quoted 4 lines · Mateo Anderson

Steps:
1) Boot DOS and use DFORMAT 5.x to format the DOC, with the appropriate space for the GRUB firmware (check the size of the stage1 file).

DFORMAT 5.x automatically allocates the needed space. You only need to care about space if you want to reserve additional space in the binary boot flash partition to allow for upgrades to a bigger GRUB firmware in the future.

Quoted 2 lines

2) Boot to Linux, use the doc_loadbios to load the GRUB firmware (or use DFORMAT - what parameters??).

Use DFORMAT. doc_loadbios is for "advanced users" who have read the documentation shipped with the M-Sys 5.X tools and knows the current limitations of the doc_loadbios command and it's bad interactions with the nftl Linux driver..

Note: DFORMAT can also be used to upgrade the boot firmware without destroying the NFTL disk flash partition, provided the new boot firmware fits in the reserved binary flash partition that is..

Quoted 1 line

3) Format the /dev/nftla.

This would be

3) Partition /dev/nftla using Linux fdisk.

The NFTL is already formatted by DFORMAT, and a single DOS partition covering the whole flash have been created and formatted.

Quoted 4 lines

4) Copy everything to the /dev/nftla1.
5) Boot from DOC.

Is this correct?

More or less.

Regards
Henrik

#2 lore raw
In reply to Mateo Anderson
Quoted 1 line · Mateo Anderson

Is this modified version comitted in the cvs?

No, I just started experimenting (with Grub) yesterday. Things appear to be working great on the DoC Millennium, but I haven't done enough testing to be confident enough to submit a patch.

Quoted 6 lines
Quoted 2 lines

I'm guessing that many problems are caused by having the nftl module loaded during a fdisk, nftl_format, and/or doc_loadbios.

Are you referring to kernel modules?
If so, I have these build in (no modules), as suggested by DOC and GRUB HOW-TO.

Yes. I'm thinking about revising the how-to to suggest using modules for the development system, and built-in for the kernel booting from the DoC. Alternatively, you could use the built-in stuff all the time, but make sure to reboot often:

http://lists.infradead.org/pipermail/linux-mtd/2002-June/005123.html

Wolfgang Denk submitted a patch to address this problem; it sounds like it would eliminate the need to reboot:

http://lists.infradead.org/pipermail/linux-mtd/2002-August/005831.html

Being able to use DFORMAT to install GRUB and do the NFTL format eliminates the need to use both doc_loadbios and nftl_format, and should make the choice of built-in or module irrelevant. However, Wolfgang's patch still seems to a very good idea.

Quoted 11 lines

Steps:
1) Boot DOS and use DFORMAT 5.x to format the DOC, with the appropriate space for the GRUB firmware (check the size of the stage1 file).
2) Boot to Linux, use the doc_loadbios to load the GRUB firmware (or use DFORMAT - what parameters??).
3) Format the /dev/nftla.
4) Copy everything to the /dev/nftla1.
5) Boot from DOC.

Is this correct?

Close. I've been doing the following (with some Grub modifications):

1) dformat /win:xxxx /BDKF0:grub_firmware

Use dformat 5.x to install grub, and the NFTL format. You'll end up with one FAT partition on the DoC. This eliminates the need to use "doc_loadbios" and "nftl_format".

2) It's necessary (on my PC) to turn it off, rather than just rebooting. The howto explains why this is required.

3) boot to Linux, fdisk, mke2fs, copy everything to /dev/nftla1

4) boot from DoC