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

Beat Meier (spam-protected)
Thu Aug 18 00:10:29 HKT 2005


Punky Tse wrote:

I'm on the same way
I have compiled now 2.6.8 plain with reboot patch which works
2.6.12, 2.6.12 don't work with reboot patch (I have also commented the 
line before mach_reboot();
which result in a much more rapid reboot, of course can be used only by 
wrap ... in 2.6.8)

Now I'm copying old stuff from 2.6.8 (some files like boot/setup.S and 
kernel/head.S ) to 2.6.12
which seems to be changed to identify the bad thing but I'm having 
unresolveds yet ...


> 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.
>
I think I need /etc/init.d/watchog do I
If so how can I prevetn that the sc520_wdt is loaded which conflicts 
with wd1100?

Thanks

Beat

> 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
>
>
>





More information about the Voyage-linux mailing list