[Voyage-linux] Reboot problem with wrap and kernel 2.6.12
Punky Tse
(spam-protected)
Wed Aug 17 23:22:53 HKT 2005
After trail-n-error testing for reboot hanging in memory test, problem is now kind of identified.
1. From 0.2pre1, I have enabled reboot=bios kernel option, if you look at /etc/lilo.conf, you can
see the option is set there. I enable this option as it is suggested by WRAP manual.
2. Look at the patch at http://www.voyage.hk/download/kernel_patch/2.6/wrap_reboot.2_6.patch
This is patch on how I solve the reboot probem in early day, if you don't have the reboot=bios
option set in lilo.conf, this patch is the last line of defense. What this patch does is, if you
are using the normal reboot (i.e without reboot=bios option), after trying some normal reboot
routine (i.e. mach_reboot() call), it will try bios reboot. The line I added is to force to boot
from bios.
Nevertheless, either you have the reboot=bios flag set of or, WRAP board will always boot from bios.
To verify it is not the reboot via bios problem, I do the following tests on voyage 2.6.11 kernel:
Test 1. enable reboot=bios option, enable wd1100 => Result: Failed - hang on memory test
Test 2. remove reboot=bios option, enable wd1100 => Result: Success - reboot via watchdog
Test 3. remove reboot=bios option, disbale wd1100 => Result: Failed - hang on memory test
What I can conclude now is reboot via bios call in kernel (i.e. "machine_real_restart(jump_to_bios,
sizeof(jump_to_bios));" was broken on 2.6.11 onwards for WRAP. The only way for rebooting work on
2.6.11 is using wd1100 driver.
Hence my suggestion on using 2.6.11 or later kernel on WRAP:
1. remove reboot=bios option in /etc/lilo.conf, re-run lilo.
2. enable wd1100 watchdog by adding "wd1100 sysctl_wd_graceful=0 sysctl_wd_timeout=30" in /etc/modules.
Guys,
My tests were done on 2.6.11 voyage kernel only, not 2.6.8. If you are using 0.2pre1 with 2.6.8
kernel and having reboot hang on memory test, please let me know.
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
--
Regards,
Punky
P U N K N ! X . c o m
Technology + Lifestyle
(http://www.punknix.com)
Voyage Linux
(http://www.voyage.hk/software/voyage.html)
More information about the Voyage-linux
mailing list