[Voyage-linux] Reboot problem with wrap and kernel 2.6.12

Kelly Hogan (spam-protected)
Mon Aug 15 19:41:51 HKT 2005


You can only run one watchdog at a time.  Remove the watchdog userland
program, unload the sc520 module, insert the wd1100, start the watchdog
program.  Make sure you pass enough   

They use the same /dev/wd handle so your wd1100 will not load.  This is
a tricky thing to do, so I always compile the wd1100 from source for
your k tree.  I am running this on 2.6.11.7 so if something is broken in
.12, I am unaware of it.

modprobe wd1100 sysctl_wd_graceful=0 sysctl_wd_timeout=30

Without the timeout,  you get an instant reboot.

On Mon, 2005-08-15 at 13:44, Beat Meier wrote:

> Kelly Hogan wrote: 
> 
> > You will need to use the GEODE wd1100 module and a watchdog to insure
> > that the reboot happens.   The termination of the dogfood provided by
> > the module will cause the system to reset.  
> > 
> >   
> 
> Can you give me more info?
> I'me trying since days without luck to reboot my wrap wiht 2.6.12 ...
> With kernel 2.6.8 from voyage reboot works without any watchdog
> (i.e. I disabled watchdog in /etc/init.d)
> Only modules are:
>   dm_mod, natsemi, crc32
> 
> If I use my kernel 2.6.12 it will not reboot
> With sc520_wdt running it wont reboot
> with wd1000 (/etc/nodules) it reboots and when it is up will reboot
> again
> If I have watchdog running wihtout wd1000 it won't reboot
> if I insert wd1000 (modprbe) the following message comes:
> 
> wd1100: module license 'unspecified' taints kernel.
> SC1x00 Watchdog driver by Inprimis Technolgies.
> wd1100.c: a few hacks by erich.titl at think.ch
> wd1100.c: Can't register device.
> 
> Which wd1100 should I use?
> http://www.conman.org/software/wd1100/
> or
> http://www.voyage.hk/download/kernel_patch/2.6/
> 
> 
> I've applied the reboot patch from voyage web patch.
> Is this no more necessary?
> 
> BTW: I don't have a /proc/sys/dev/wd/ directory
> 
> rmmod wd1100
> Gives the following:
> 
> Unable to handle kernel NULL pointer dereference at virtual address
> 00000004
>  printing eip:
> c01d9fe2
> *pde = 00000000
> Oops: 0002 [#1]
> PREEMPT
> Modules linked in: wd1100 sc520_wdt dm_mod natsemi crc32
> CPU:    0
> EIP:    0060:[<c01d9fe2>]    Tainted: P      VLI
> EFLAGS: 00010247   (2.6.12-1-wrap)
> EIP is at misc_deregister+0x22/0x78
> eax: 00000000   ebx: c88183e0   ecx: c88183ec   edx: 00000000
> esi: 00000082   edi: 00000000   ebp: c7024000   esp: c7025f54
> ds: 007b   es: 007b   ss: 0068
> Process rmmod (pid: 977, threadinfo=c7024000 task=c78b1100)
> Stack: c8818600 c8817300 c8817313 c88183e0 c012b2f5 00000000 31316477
> c7003030
>        c7986754 b7f35000 b7f34000 c014182f c1306b80 c7986754 c79867ac
> c1306b80
>        c1306bac 00000000 c7024000 c0141893 00306b80 b7f34000 bfd4af38
> bfd4af38
> Call Trace:
>  [<c8817300>] wd_exit+0x0/0x29 [wd1100]
>  [<c8817313>] wd_exit+0x13/0x29 [wd1100]
>  [<c012b2f5>] sys_delete_module+0x155/0x190
>  [<c014182f>] do_munmap+0xcf/0x100
>  [<c0141893>] sys_munmap+0x33/0x50
>  [<c0102939>] syscall_call+0x7/0xb
> Code: 26 00 8d bc 27 00 00 00 00 56 53 8b 5c 24 0c 8d 4b 0c 39 4b 0c
> 8b 33 74 61 ff 0d c8 30 31 c0 0f 88 ec 00 00 00 8b 43 0c 8b 51 04 <89>
> 50 04 89 02 c7 41 04
>  Segmentation fault
> woc1:/etc/init.d# lsmod
> Module                  Size  Used by
> wd1100                  6180  0
> sc520_wdt               6448  1
> dm_mod                 56508  0
> natsemi                27488  0
> crc32                   4480  1 natsemi
> woc1:/etc/init.d#
> 
> 
> Thanks for any help.
> 
> Beat
> 
> > On Mon, 2005-08-15 at 07:06, Beat Meier wrote:
> >   
> > 
> > > Hello
> > > 
> > > Applying the reboot patch to 2.6.12 does not work.
> > > 
> > > After 
> > >    unmounting local filesystems...done.
> > >   Rebooting... sc520_wdt: Watchdog timer is now disabled... 
> > >   Restarting system.
> > >    PC Engines WRAP.2B/2C v1.04
> > >   640 KB Base Memory
> > > the system hangs
> > > Anyone using 2.6.12?
> > > 
> > > I have also tried to modify to new structure because in 2.6.12
> > > there is the possibility to use hoocks in reboot_fixups.
> > > Nothing worked for me. The board hangs after rebooting.
> > > I've also tried the old reboot.c (they changed some minor stuff)
> > > but don't work.
> > > 
> > > 
> > > Beat
> > > 
> > > 
> > > 
> > > ______________________________________________________________________
> > > _______________________________________________
> > > Voyage-linux mailing list
> > > Voyage-linux at list.voyage.hk
> > > http://list.voyage.hk/mailman/listinfo/voyage-linux
> > >     
> > 
> > 
> >   
> 
> 
> 
> 
> ______________________________________________________________________
> 
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20050815/4b35af07/attachment-0002.html>


More information about the Voyage-linux mailing list