* Grub 0.93 grub-2003-01-08-doc.patch DOC2000 trouble
@ 2003-02-15 10:15 Jeb Campbell
2003-02-18 14:53 ` Ilguiz Latypov
0 siblings, 1 reply; 4+ messages in thread
From: Jeb Campbell @ 2003-02-15 10:15 UTC (permalink / raw)
To: linux-mtd
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
^ permalink raw reply [flat|nested] 4+ messages in thread* Grub 0.93 grub-2003-01-08-doc.patch DOC2000 trouble
2003-02-15 10:15 Grub 0.93 grub-2003-01-08-doc.patch DOC2000 trouble Jeb Campbell
@ 2003-02-18 14:53 ` Ilguiz Latypov
2003-02-18 15:05 ` David Woodhouse
2003-02-19 1:50 ` Jeb Campbell
0 siblings, 2 replies; 4+ messages in thread
From: Ilguiz Latypov @ 2003-02-18 14:53 UTC (permalink / raw)
To: linux-mtd
On Sat, 15 Feb 2003, Jeb Campbell wrote:
> ./configure --exec-prefix=/ \
> --disable-auto-linux-mem-opt \
What is this option for?
> 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.
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Grub 0.93 grub-2003-01-08-doc.patch DOC2000 trouble
2003-02-18 14:53 ` Ilguiz Latypov
@ 2003-02-18 15:05 ` David Woodhouse
2003-02-19 1:50 ` Jeb Campbell
1 sibling, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2003-02-18 15:05 UTC (permalink / raw)
To: linux-mtd
On Tue, 2003-02-18 at 14:53, Ilguiz Latypov wrote:
> On Sat, 15 Feb 2003, Jeb Campbell wrote:
> > --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.
--
dwmw2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Grub 0.93 grub-2003-01-08-doc.patch DOC2000 trouble
2003-02-18 14:53 ` Ilguiz Latypov
2003-02-18 15:05 ` David Woodhouse
@ 2003-02-19 1:50 ` Jeb Campbell
1 sibling, 0 replies; 4+ messages in thread
From: Jeb Campbell @ 2003-02-19 1:50 UTC (permalink / raw)
To: linux-mtd
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
Ilguiz Latypov wrote:
> On Sat, 15 Feb 2003, Jeb Campbell wrote:
>
>
>>./configure --exec-prefix=/ \
>> --disable-auto-linux-mem-opt \
>
>
> What is this option for?
>
>
>>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.
>
>
>>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/
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-02-19 1:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-15 10:15 Grub 0.93 grub-2003-01-08-doc.patch DOC2000 trouble Jeb Campbell
2003-02-18 14:53 ` Ilguiz Latypov
2003-02-18 15:05 ` David Woodhouse
2003-02-19 1:50 ` Jeb Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox