Eric

let me try cover your last 2 messages in one

Let me see if I get your proposal right:
-compile a new kernel with softdog and wd1100 as modules

right


-load one of the drivers somewhere in the boot process (and store
them in one of the lrps)

I believe we identified modules.lrp as the best place, but then ... see below


That always imply a change in the base line, because the softdog
module needs to get loaded somewhere (and must be available).
Or did I get your proposal wrong?

Well, my original idea was to make /etc/init.d/watchdog aware of the underlying watchdog driver.


Maybe it's easier to have one patch which both add the driver and the
necessary Config.in entries in the kernel source.

I had this before, however, I wanted to keep the structure the way Mark had it when he published his driver, so I could just send him the updated source to publish.
If this is something you would like to have it can be easily provided.


At 14:42 30.09.2003, Eric Spakman wrote:
Erich,
>
> ...
> >The softdog or wd1100 drivers could be placed in modules.lrp and
> >load from /etc/modules. Just like the other drivers. That's more
> >generic than loading them from start/stop scripts in /etc/init.d/.
>
> There is a small problem in the implementation of wd1000. The standard
> behaviour is to be graceful at close of the file descriptor, which stops
> the watchdog proper. To avoid this behaviour the following is in
> /etc/init.d/watchdog:
>
> echo 0 > /proc/sys/dev/wd/graceful
> echo 20 > /proc/sys/dev/wd/timeout
>
> This requests reboot after 20 seconds if the watchdog program is stopped.
>
But if you don't load the wd1100 driver (but the softdog driver
instead), those /proc entries are not available. Will that generate
warnings or errors?

lets ask the system.....


wrap: -root-
# echo 1 >  /proc/sys/dev/wd/graceful
cannot create /proc/sys/dev/wd/graceful: directory nonexistent


I'm asking, because I want to understand the impact of adding wd1100
to the base-line.

That is clear, such aspects have to be considered.


This is what my /etc/init.d/watchdog looks like:

.....
case "$1" in
  start)
    CPUINFO=`grep "Geode by NSC" /proc/cpuinfo`
    if [ "$CPUINFO" ] # this is a SC1100
    then
        insmod wd1100
        echo 0 > /proc/sys/dev/wd/graceful
        echo 20 > /proc/sys/dev/wd/timeout
    else
        insmod softdog
    fi
.....
the rest is unmodified.

Thanks for your time.
Erich

THINK
Püntenstrasse 39
8143 Stallikon
mailto:[EMAIL PROTECTED]
PGP Fingerprint: BC9A 25BC 3954 3BC8 C024  8D8A B7D4 FF9D 05B8 0A16



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

_______________________________________________
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to