public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Trying to boot linux off a 2MiB M-Sys DoC2000 chip
@ 2002-06-21 23:40 Gonzalo Servat
  2002-06-22 14:49 ` Ilguiz Latypov
  0 siblings, 1 reply; 7+ messages in thread
From: Gonzalo Servat @ 2002-06-21 23:40 UTC (permalink / raw)
  To: Linux MTD mailing list

[-- Attachment #1: Type: text/plain, Size: 566 bytes --]

Hi

For the last couple of weeks I've been getting closer and closer to
booting a kernel from my 2MiB DoC. :)

I managed to get grub installed onto the DoC yesterday (very exciting
stuff), and I have a ext2 partition (about 1.8MiB in size)

My question is, how do I configure grub to know how to boot off the DoC?
I can get it to boot off an IDE HDD (root hd(0,0); kernel /boot/bzImage;
boot) but how would grub know how to access the DoC's kernel?

Would doc-lilo be a better alternative?

Thanks in advance for any help!

Regards,

Gonzalo.



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trying to boot linux off a 2MiB M-Sys DoC2000 chip
  2002-06-21 23:40 Trying to boot linux off a 2MiB M-Sys DoC2000 chip Gonzalo Servat
@ 2002-06-22 14:49 ` Ilguiz Latypov
  2002-06-24  0:35   ` Gonzalo Servat
  0 siblings, 1 reply; 7+ messages in thread
From: Ilguiz Latypov @ 2002-06-22 14:49 UTC (permalink / raw)
  To: Gonzalo Servat; +Cc: Linux MTD mailing list

On 22 Jun 2002, Gonzalo Servat wrote:

> My question is, how do I configure grub to know how to boot off the DoC?
> I can get it to boot off an IDE HDD (root hd(0,0); kernel /boot/bzImage;
> boot) but how would grub know how to access the DoC's kernel?

Try

  root (dc0)
  kernel /boot/vmlinuz root=/dev/nftla ro

for a filesystem on top of /dev/nftla or

  root (dc0,0)
  kernel /boot/vmlinuz root=/dev/ntla1

for one on top of /dev/nftla1.  The first line may point to a different 
partition that would hold the kernel image.  Such separation allows to 
let GRUB boot a kernel off an ext2 partition.  The kernel in turn can 
mount another ext3 partition under "/".  GRUB is not aware of ext3.

Ilguiz

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trying to boot linux off a 2MiB M-Sys DoC2000 chip
  2002-06-22 14:49 ` Ilguiz Latypov
@ 2002-06-24  0:35   ` Gonzalo Servat
  2002-06-24  1:16     ` Ilguiz Latypov
  0 siblings, 1 reply; 7+ messages in thread
From: Gonzalo Servat @ 2002-06-24  0:35 UTC (permalink / raw)
  To: Ilguiz Latypov; +Cc: Linux MTD mailing list

On Sun, 2002-06-23 at 00:49, Ilguiz Latypov wrote:
> 
> On 22 Jun 2002, Gonzalo Servat wrote:
> 
> > My question is, how do I configure grub to know how to boot off the DoC?
> > I can get it to boot off an IDE HDD (root hd(0,0); kernel /boot/bzImage;
> > boot) but how would grub know how to access the DoC's kernel?
> 
> Try
> 
>   root (dc0)
>   kernel /boot/vmlinuz root=/dev/nftla ro
> 
> for a filesystem on top of /dev/nftla or
> 
>   root (dc0,0)
>   kernel /boot/vmlinuz root=/dev/ntla1
> 
> for one on top of /dev/nftla1.  The first line may point to a different 
> partition that would hold the kernel image.  Such separation allows to 
> let GRUB boot a kernel off an ext2 partition.  The kernel in turn can 
> mount another ext3 partition under "/".  GRUB is not aware of ext3.

Hi Ilguiz. Thanks for your reply.

I tried this and Grub doesn't like "dc0". It says "Error 23: Error while
parsing number" .. I tried doing tab completion after the 'dc' but it
kept giving me the same error.

The DiskOnChip is on /dev/mtd0 and my first partition is /dev/nftla1
(ext2)

I configured /boot/grub/{menu.lst,grub.conf} on the DOC but since Grub
doesn't seem to be able to read the DOC, it can't read the menu.lst.

Any help would be greatly appreciated.

Thanks!

Regards,
Gonzalo

> 
> Ilguiz
> 
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trying to boot linux off a 2MiB M-Sys DoC2000 chip
  2002-06-24  0:35   ` Gonzalo Servat
@ 2002-06-24  1:16     ` Ilguiz Latypov
  2002-06-24  2:19       ` Gonzalo Servat
  0 siblings, 1 reply; 7+ messages in thread
From: Ilguiz Latypov @ 2002-06-24  1:16 UTC (permalink / raw)
  To: Gonzalo Servat; +Cc: Linux MTD mailing list

Gonzalo,

Did you see the recent instruction on applying the MTD DiskOnChip patch 
to GRUB?  It's in

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

Ilguiz

On 24 Jun 2002, Gonzalo Servat wrote:

> I tried this and Grub doesn't like "dc0". It says "Error 23: Error while
> parsing number"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trying to boot linux off a 2MiB M-Sys DoC2000 chip
  2002-06-24  1:16     ` Ilguiz Latypov
@ 2002-06-24  2:19       ` Gonzalo Servat
  0 siblings, 0 replies; 7+ messages in thread
From: Gonzalo Servat @ 2002-06-24  2:19 UTC (permalink / raw)
  To: Ilguiz Latypov; +Cc: Linux MTD mailing list

On Mon, 2002-06-24 at 11:16, Ilguiz Latypov wrote:
> 
> Gonzalo,
> 
> Did you see the recent instruction on applying the MTD DiskOnChip patch 
> to GRUB?  It's in
> 
>     http://lists.infradead.org/pipermail/linux-mtd/2002-June/005240.html

Ah, great. Thanks for that!

I followed the instructions and as I was trying to compile grub-0.92, in
the stage2 directory it gave me lots of 'overriding old commands for
target xxxxxxxxxxx' and 'ignorning old commands for target
xxxxxxxxxxxxx'

where xxxxxxxxxx was for example: nbloader.exec, pxeloader.exe,
diskless.exec, etc.

After all those errors I got a lot of "undefined reference to terminal"
and "undefined reference to debug" and a few other undefined references
and after an undef reference to 'chain_stage2' it exited and didn't
finish compiling. Any ideas?

Thanks again

Gonzalo.

 
> Ilguiz
> 
> On 24 Jun 2002, Gonzalo Servat wrote:
> 
> > I tried this and Grub doesn't like "dc0". It says "Error 23: Error while
> > parsing number"
> 
> 
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trying to boot linux off a 2MiB M-Sys DoC2000 chip
@ 2002-06-24 14:21 Mark Meade
  2002-06-24 23:16 ` Gonzalo Servat
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Meade @ 2002-06-24 14:21 UTC (permalink / raw)
  To: linux-mtd

Gonzalo Servat wrote:
> After all those errors I got a lot of "undefined reference to terminal"
> and "undefined reference to debug" and a few other undefined references
> and after an undef reference to 'chain_stage2' it exited and didn't
> finish compiling. Any ideas?

Hi Gonzalo,

Did you try updating automake and autoconf to the latest versions?  I had 
errors compiling GRUB with older versions, but I don't recall if they were 
the same as the errors you described.

Regards,

Mark

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trying to boot linux off a 2MiB M-Sys DoC2000 chip
  2002-06-24 14:21 Mark Meade
@ 2002-06-24 23:16 ` Gonzalo Servat
  0 siblings, 0 replies; 7+ messages in thread
From: Gonzalo Servat @ 2002-06-24 23:16 UTC (permalink / raw)
  To: Mark Meade; +Cc: linux-mtd

ahh ha! I did upgrade auto{make,conf} on a different machine and tried
compiling grub on that but evidently the version wasn't new enough. 
It *requires* version 1.5. 
Anyway, I've upgraded automake and autoconf now and aclocal && automake
&& autoconf didn't give any errors this time and I'm in the process of
compiling it but it's already looking a hell of a lot better!

Thanks a lot Mark!

Regards,
Gonzalo.


On Tue, 2002-06-25 at 00:21, Mark Meade wrote:
> Gonzalo Servat wrote:
> > After all those errors I got a lot of "undefined reference to terminal"
> > and "undefined reference to debug" and a few other undefined references
> > and after an undef reference to 'chain_stage2' it exited and didn't
> > finish compiling. Any ideas?
> 
> Hi Gonzalo,
> 
> Did you try updating automake and autoconf to the latest versions?  I had 
> errors compiling GRUB with older versions, but I don't recall if they were 
> the same as the errors you described.
> 
> Regards,
> 
> Mark
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-06-24 23:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-21 23:40 Trying to boot linux off a 2MiB M-Sys DoC2000 chip Gonzalo Servat
2002-06-22 14:49 ` Ilguiz Latypov
2002-06-24  0:35   ` Gonzalo Servat
2002-06-24  1:16     ` Ilguiz Latypov
2002-06-24  2:19       ` Gonzalo Servat
  -- strict thread matches above, loose matches on Subject: below --
2002-06-24 14:21 Mark Meade
2002-06-24 23:16 ` Gonzalo Servat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox