public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* No more DoC hotplug on Grub fail [tested & working]
@ 2002-08-11  8:00 Karim Yaghmour
  0 siblings, 0 replies; 9+ messages in thread
From: Karim Yaghmour @ 2002-08-11  8:00 UTC (permalink / raw)
  To: Linux-MTD; +Cc: David Woodhouse, Ilguiz Latypov, Mark Meade

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


I modified doc_stage1.S to check whether the user is holding
down the "ctrl" key while booting. If so, then it uses the
BIOS's original bootstrap handler instead of its own. This
avoids having to hotplug the DOC in case you misconfigure it
or if it fails to boot adequately for some other reason.

I had suggested this idea earlier on this list, but I figured
I'd dig up some of my old real-mode witchcraft and get it over
with. I sent a preliminary version of the code earlier, but
now that I tested it out, I know that that version doesn't
work. The version attached with the current e-mail, however,
does work.

The scheme works as described in my earlier emails.

Hopefully this saves some folks some cold sweat (me included).

Karim

P.S.: For some reason, gas 2.9.5 is unable to build my modified
doc_stage1.S in the prescribed 512 bytes. gas 2.12, nevertheless,
works just fine.

===================================================
                 Karim Yaghmour
               karim@opersys.com
      Embedded and Real-Time Linux Expert
===================================================

[-- Attachment #2: doc_stage1.S.bz2 --]
[-- Type: application/octet-stream, Size: 4734 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: No more DoC hotplug on Grub fail [tested & working]
@ 2002-09-04 14:58 Mark Meade
  2002-09-04 15:27 ` Henrik Nordström
  2002-09-04 15:59 ` Karim Yaghmour
  0 siblings, 2 replies; 9+ messages in thread
From: Mark Meade @ 2002-09-04 14:58 UTC (permalink / raw)
  To: linux-mtd; +Cc: Karim Yaghmour, Ilguiz Latypov

Karim,

I tested your Grub patch on a DoC Millennium, it works fine.  I used the 0.92 
patch, but I had to reduce the length of some of the text messages to make 
everything fit.  This may have been the gas 2.9.5 problem you described 
earlier.

This patch, while potentially useful during debugging, takes up precious 
space that may be needed later (to add support for new flash devices, etc).  
Also, once Grub is booting correctly from the DoC, I would think this feature 
would not be needed.

For what it's worth, I'd recommend that this patch be made available in the 
patches directory of the CVS tree, rather than making it part of the official 
GRUB code.

I'm willing to revise my GRUB/DoC HOWTO to include instructions on the use of 
this patch, for those who are concerned about this issue.

Mark

Karim Yaghmour wrote:
> I modified doc_stage1.S to check whether the user is holding
> down the "ctrl" key while booting. If so, then it uses the
> BIOS's original bootstrap handler instead of its own. This
> avoids having to hotplug the DOC in case you misconfigure it
> or if it fails to boot adequately for some other reason.

> I had suggested this idea earlier on this list, but I figured
> I'd dig up some of my old real-mode witchcraft and get it over
> with. I sent a preliminary version of the code earlier, but
> now that I tested it out, I know that that version doesn't
> work. The version attached with the current e-mail, however,
> does work.

> The scheme works as described in my earlier emails.

> Hopefully this saves some folks some cold sweat (me included).

> Karim

> P.S.: For some reason, gas 2.9.5 is unable to build my modified
> doc_stage1.S in the prescribed 512 bytes. gas 2.12, nevertheless,
> works just fine.

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

end of thread, other threads:[~2002-09-04 19:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-11  8:00 No more DoC hotplug on Grub fail [tested & working] Karim Yaghmour
  -- strict thread matches above, loose matches on Subject: below --
2002-09-04 14:58 Mark Meade
2002-09-04 15:27 ` Henrik Nordström
2002-09-04 15:59 ` Karim Yaghmour
2002-09-04 16:41   ` Henrik Nordstrom
2002-09-04 17:40     ` Mark Meade
2002-09-04 18:07   ` Mark Meade
2002-09-04 18:33     ` Karim Yaghmour
2002-09-04 19:15       ` Mark Meade

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