bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: outport and inport command


From: OKUJI Yoshinori
Subject: Re: outport and inport command
Date: Sat, 20 Jan 2001 07:11:03 +0900

From: assaf stoler <address@hidden>
Subject: outport and inport command 
Date: Fri, 19 Jan 2001 08:15:31 -0800

> I have run into a problem using grub on hardware with watchdog enabled,
> since it might take to long for the initrd / kernel decompression stage,
> and the watch god boots the system, in order to overcome, I tried to
> re-set the watchdog timer by writing 0x1 to io port 230 (my hardware),
> but 
> could not get it to compile, 
> 
> any idea how to do an outb under grub ?

I can't say anything useful without information on what code you
wrote, needless to say. Have you read some of the GRUB code (e.g. the
serial driver)?

But why do you need to reset the watchdog timer? For me, that sounds
like the timeout is just too short.

> and while we're on the topic, it might be a good thing to add the
> commands for portread, and portwrite to grub ...

I disagree, since it is too dangerous to use them arbitrarily. If we
provide such commands, the user could break his/her computer quite
easily. Rather, you should consider implementing higher level commands
(such as "watchdog"), if you really need.

Okuji



reply via email to

[Prev in Thread] Current Thread [Next in Thread]