public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* DOC 2000 and GRUB
@ 2002-09-06  6:01 Mateo Anderson
  2002-09-06  6:40 ` MAL
  2002-09-06  8:54 ` Russ Dill
  0 siblings, 2 replies; 18+ messages in thread
From: Mateo Anderson @ 2002-09-06  6:01 UTC (permalink / raw)
  To: linux-mtd

Hi

I have some problems booting Linux form DOC 2000 using GRUB.

I am using the PC104+ (with Zfx86 processor) and I made a
custom Linux on the hard drive, with libs and 
binares required for my project.

I want to transfers this to DOC 2000 (48Mb). I followed
instructions how to build a mtd driver. The Linux boots
fine from the HD and finds my DOC, where I created one
ext2 partition and copied all the files there.

Now I want to boot the system from the DOC without any
HD. First I used LILO, but I just could not get it to work.
I used the laterst version of LILO, the patched version from
M-sys, the patched version from mtd, ...

All I got was, "L" then "LI" and finally "L 40 40 40 ...".

Because I found many messages on this list, that GRUB works
fine I decided to try with it.
Yesterday I buil GRUB 0.92 with the patches found in the MTD.

I booted the system from the HD, loaded the GRUB firmware into
the DOC and rebooted the system.

It found the DOC2000 and I got the grub> prompt (The HD was
not connected!!!).

But when I connected the HD, I got (something like):
DOC 2000 at ....
Jumping to Grub

and then hangs.
If I disconect the HD, I get the grub> prompt.

Questions:
1) How to boot Linux from HD?
   - DO I remove the DOC, boot Linux and then insert DOC?
   - Can I boot the LInux to grub> prompt, and then connect
     the disk? (Dangerous!!)
2) I said I already copied everything on DOC. How can
   I boot that kernel? I tried with 
   grub> kernel (dc0,0)/myKernel root=/dev/nftla1
   GRUB display message something about invalid disk (or something
   like that).
3) Anything else I could try?

Oh, I did not use the latest version from the CVS, but a CVS 
snapshot with the date 07.28.2002.

Thank you and best 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@yourgroup.org by Everyone.net  http://www.everyone.net/?btn=tag

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: DOC 2000 and GRUB
@ 2002-09-06  7:15 Mateo Anderson
  0 siblings, 0 replies; 18+ messages in thread
From: Mateo Anderson @ 2002-09-06  7:15 UTC (permalink / raw)
  To: mal; +Cc: linux-mtd

Hi MAL

>I have exactly the same scenario, (same DOC size and everything).
>
>When I boot with the firmware loaded and a HDD attached, it displays 
>Jumping to Grub for about 15 seconds, then finally displays the grub>
>prompt. Have you tried waiting?

Yes, I did (I took a shower in the mean time, but nothing ).

>However, once i've got to the grub> prompt, it doesn't recognise the dc
>device.

Well, I do not get the grub> prompt.
I tried typing something in without the prompt and sometimes it
reboots, sometimes it does nothing...

>Did you run aclocal, automake and autoconf as specified in the
>README_DiskOnChip in patched grub?  I overlooked it first time, (but it
>still worked as far as booting grub, just couldn't find the dc0 device),
>so i'm about to try it again.

I read the doc (aclocal && automake --add-missing && autoconf).
At first I had some problems with aclocal, automake and autoconf.
It complained about undefined macros, etc...
I downloaded the latest version of automake in autoconf and 
then it worked.
I compiled GRUB without any errors.

>If you want to boot linux from the HDD again, remove the DOC address
>selection jumper for your mainboard, boot, and put it back while the
>system is at it's bootloader.

This jumper is on the PC104+ board?
(http://www.tri-m.com/products/tri-m_engineering/mz104+.html)
I'll have to read the documentation again.

Thanks for the tip.

One other thing I forgot to mention.
When I ran the fdisk, I could only create one partition,
and the fdisk shows the start and the end as 1!!!
Maybe this has something to do with the problem???

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@yourgroup.org by Everyone.net  http://www.everyone.net/?btn=tag

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: DOC 2000 and GRUB
@ 2002-09-06  7:36 Mateo Anderson
  2002-09-06  8:00 ` Henrik Nordström
  0 siblings, 1 reply; 18+ messages in thread
From: Mateo Anderson @ 2002-09-06  7:36 UTC (permalink / raw)
  To: hno; +Cc: linux-mtd

Hi Henrick

>> If you want to boot linux from the HDD again, remove the DOC address
>> selection jumper for your mainboard, boot, and put it back while the
>> system is at it's bootloader.
>
>Or use the patch recently posted on this list to make it possible to abort 
>the loading of the grub firmware from the DoC.

I read about this patch in the e-mails from the mtd. (I believe 
there were some arguing about that).

I thought about loading this grub firmware, but the only
problem is, that I cannot boot the system, with the DOC!!

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@yourgroup.org by Everyone.net  http://www.everyone.net/?btn=tag

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: DOC 2000 and GRUB
@ 2002-09-06  9:50 Mateo Anderson
  0 siblings, 0 replies; 18+ messages in thread
From: Mateo Anderson @ 2002-09-06  9:50 UTC (permalink / raw)
  To: hno; +Cc: linux-mtd

Hi Henrick

>> I thought about loading this grub firmware, but the only
>> problem is, that I cannot boot the system, with the DOC!!
>
>Which makes that DoC trash until you find a way to reprogram it safely..

Would this idea work?

Since I do not have any ISA card to put the DOC into, I would
put the DOC in the separate socket, which would have the pin
that leads to the CS (chip select) pin on the DOC connected
to the switch.
During the BIOS boot I would turn this switch off, so that
(hopefully!) the DOC would not be found (no grub code executed).
After the lilo boot prompt appears (from the HD) I would turn
this to ON and (hopefully) the Linux would find the DOC.

Comments?

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@yourgroup.org by Everyone.net  http://www.everyone.net/?btn=tag

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: DOC 2000 and GRUB
@ 2002-09-06 11:25 Mateo Anderson
  2002-09-06 12:33 ` Mark Meade
  2002-09-06 12:34 ` Henrik Nordstrom
  0 siblings, 2 replies; 18+ messages in thread
From: Mateo Anderson @ 2002-09-06 11:25 UTC (permalink / raw)
  To: mark, dwmw2, hno; +Cc: Russ.Dill, linux-mtd

Hi

Thank you all for replys and all the help.

>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?

>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.

>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@yourgroup.org by Everyone.net  http://www.everyone.net/?btn=tag

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

end of thread, other threads:[~2002-09-06 12:48 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-06  6:01 DOC 2000 and GRUB Mateo Anderson
2002-09-06  6:40 ` MAL
2002-09-06  7:29   ` Henrik Nordström
2002-09-06  8:54 ` Russ Dill
2002-09-06  9:49   ` Henrik Nordstrom
2002-09-06 10:24     ` David Woodhouse
2002-09-06 11:00       ` Mark Meade
2002-09-06 12:27         ` Henrik Nordstrom
2002-09-06 12:40           ` Mark Meade
2002-09-06 12:48             ` Henrik Nordstrom
2002-09-06 12:22       ` Henrik Nordstrom
  -- strict thread matches above, loose matches on Subject: below --
2002-09-06  7:15 Mateo Anderson
2002-09-06  7:36 Mateo Anderson
2002-09-06  8:00 ` Henrik Nordström
2002-09-06  9:50 Mateo Anderson
2002-09-06 11:25 Mateo Anderson
2002-09-06 12:33 ` Mark Meade
2002-09-06 12:34 ` Henrik Nordstrom

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