Skip to contentSkip to conversation

Grub 0.93 grub-2003-01-08-doc.patch DOC2000 trouble

DISCUSSION Jeb Campbell 3 participants 4 messages Feb 15, 2003 – Feb 19, 2003 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Problem with MBR -- steps to get there:

1)patch grub-0.93 with grub-2003-01-08-doc.patch:
cd grub-0.93
patch -p1 < ../grub-2003-01-08-doc.patch
export WANT_AUTOMAKE_1_5=1 WANT_AUTOCONF_2_5=1
aclocal && automake --add-missing && autoconf

./configure --exec-prefix=/ \
         --disable-auto-linux-mem-opt \
         --enable-diskonchip-2000 \
         --enable-diskonchip-ctrlbypass \
         --enable-rtl8139

This patches and compiles fine and grub_firmware is 120K

2) boot dos
use v4.2 DUPDATE /win:d600 /s:DOC42.EXB and power cycle

3) boot dos to format 48M DOC2000 and load grub_firmware use v5.1 DFORMAT /win:d600 /BDKF0:grub_fir /BDKL0:160000 formats ok and then power cylcle

4) use grub to boot linux off hard drive (2.4.19 with cvs mtd nftlcore 1.87 and nftlmount 1.31)
fdisk -l /dev/nftla
shows the fat16 partion
mke2fs -m 0 /dev/nftla1 (no root reserve)
and it mounts fine

But when I unplug the hd, grub fails on invalid MBR on the DOC2000-48M I can netboot and get a kernel from tftp and boot the chip fine.

But the strangest thing is grub will get the menu.lst from the DOC on the first partition! But then error out when trying to boot/load the kernel.

Any help would be appreciated. I don't know if I need to take out some of the error checking for the MBR? Anyway I would like to use grub-0.93 because the realtek netboot driver works (and 0.92 will not).

Thanks again,

Jeb Campbell

#1 lore raw
Quoted 2 lines · Jeb Campbell
./configure --exec-prefix=/ \
         --disable-auto-linux-mem-opt \

What is this option for?

Quoted 2 lines

But when I unplug the hd, grub fails on invalid MBR on the DOC2000-48M I can netboot and get a kernel from tftp and boot the chip fine.

What is the error message? I believe there can be a conflict between the "netdisk" and "diskonchip" default drive selection in stage2/asm.S.

Quoted 3 lines

But the strangest thing is grub will get the menu.lst from the DOC on the first partition! But then error out when trying to boot/load the kernel.

Is this the same error as above?

Thanks,
Ilguiz

#2 lore raw
Quoted 4 lines · Ilguiz Latypov
Quoted 1 line · Jeb Campbell
         --disable-auto-linux-mem-opt \

What is this option for?

Presumably it prevents Grub from passing 'mem=xxxx' on the command line when booting a Linux kernel. This was originally added because Grub was briefly slightly better at working out the actual amount of memory in the system.

Then for a long time Linux was much better, but Grub would still pass its incorrect value on the command line, overriding the kernel's probe.

And now we just disable it and let Linux work it out for itself.

Signature · 1 line
dwmw2
#3 lore raw
In reply to Ilguiz Latypov

I will try without the netboot code,
but it is not supposed to do anything unless you drop to command and use {dhcp,bootp,ifconfig} to config the network, then pull a kernel from tftp.

To clarify, it finds /boot/grub/menu.lst on first partition of the DOC2000 (I assume the first to grub, because if there is nothing on the DOC, it gives the searching for menu.lst message on every possible drive and partition combination), but will not boot the kernel with "invalid partition table" (the board is at the lab now), and the tab completion for "kernel (hd0,tab " fails with the same error.

Anyway thank for the response and I will let you know what happens without the netboot code.

Jeb Campbell

Quoted 34 lines · Ilguiz Latypov
Quoted 2 lines · Jeb Campbell
./configure --exec-prefix=/ \
        --disable-auto-linux-mem-opt \

What is this option for?

Quoted 2 lines

But when I unplug the hd, grub fails on invalid MBR on the DOC2000-48M I can netboot and get a kernel from tftp and boot the chip fine.

What is the error message? I believe there can be a conflict between the "netdisk" and "diskonchip" default drive selection in stage2/asm.S.

Quoted 3 lines

But the strangest thing is grub will get the menu.lst from the DOC on the first partition! But then error out when trying to boot/load the kernel.

Is this the same error as above?

Thanks,
Ilguiz

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/