![]() |
2012-07-15
, 16:49
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#142
|
The Following 3 Users Say Thank You to pali For This Useful Post: | ||
![]() |
2012-07-19
, 00:19
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#143
|
Mentalist,
thanks for reminding again of really almost not ending super power of bb-enhanced (almost second important package after rootsh, besides KP, backupmenu and and and).
But I tried to use bb-watchdog to enable shell usage of multiboot and was unsuccessful. With pali's watchdogs everything was fine.
Do you have syntax of usage (tried with watchdog /dev/watchdog)?
watchdog -t 20 /dev/watchdog watchdog -t 20 /dev/twl4030_wdt
Note that my version of watchdogs check if watchdogs are disabled via R&D mode and then watchdogs are not touched. bb version has no checking and it (can) enable them in R&D mode with disable watchdogs flag.
The Following 5 Users Say Thank You to Mentalist Traceur For This Useful Post: | ||
![]() |
2012-07-19
, 07:52
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#144
|
Shouldn't make a difference? I currently have 2 N900's, one of which has R&D mode on and the watchdogs disabled, and the other of which has R&D Mode off.
The Following 5 Users Say Thank You to pali For This Useful Post: | ||
![]() |
2012-07-19
, 13:09
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#145
|
twl4030 watchdog can be controlled via i2c bus. You can send to watchdog one 5 bit number (0-31):
0 - disable watchdog (prevent reboot)
1-31 - enable watchdog and set reset timer to that number seconds
You cannot direclly send this number from userspace (it doing kernel driver). Also kernel driver has disabled sending "0", so when you enable watchdog you cannot disable it (without patching kernel).
And my watchdogs program is doing it. It check for R&D flag and exit if disable omap watchdog is set.
![]() |
2012-07-19
, 13:55
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#146
|
The Following 5 Users Say Thank You to pali For This Useful Post: | ||
![]() |
2012-07-19
, 18:17
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#147
|
![]() |
2012-07-28
, 12:11
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#148
|
![]() |
2012-09-15
, 15:38
|
Posts: 181 |
Thanked: 82 times |
Joined on Jan 2010
|
#149
|
UPDATE!
I booted to the recovery console. 'date' shows incorrect date/time, but 'hwclock -r' shows correct time
Did 'hwclock -s' and then exit (poweroff). Booted to Maemo and voilà! date and time are OK!
[EDIT] I've added 'hwclock -s' in recovery.sh, right after loadkmap.
Next in line: keyboard mapping. But I need to do this at home (loadkeys -b and all).
If you think you need Recovery Console then you know enough not to have any need for Backupmenu, as Backupmenu is just running commands that you can easily type on the recovery console, with the added benefit of having full control over the parameters as well as proper "error spotting".
No idea about multiboot (never used it, never will). The combination of bootmenu and recovery console (or even without bootmenu if you know what you're doing, hint: /sbin/preinit) gives you all the power you need
![]() |
2012-09-21
, 11:28
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#150
|
now I see that sending "0" (in userspace <--> kernel language it is "disable watchdog") is possible. You need to unload twl4030_wdt module and load it argument nowayout=0. But you can do it only when no application is reseting watchdog (my watchdogs, busybox watchdog, dsme) and you must do it until phone is rebooted
The Following User Says Thank You to reinob For This Useful Post: | ||
![]() |
Tags |
console, console-mode, framebuffer, recovery, recovery-mode |
|
thanks for reminding again of really almost not ending super power of bb-enhanced (almost second important package after rootsh, besides KP, backupmenu and and and).
But I tried to use bb-watchdog to enable shell usage of multiboot and was unsuccessful. With pali's watchdogs everything was fine.
Do you have syntax of usage (tried with watchdog /dev/watchdog)?
@pali
Now I know (again) why my FN keys were working:
I already detected that bb also delivers version of loadkmap and I used that one, not your version.