View Single Post
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#500
and for N900 watchdogs I think I have better solution without udev. It is implemented in bootmenu and removing udev speed up starting bootmenu (with watchdogs fix). Program /usr/sbin/watchdogs is included in bootmenu-n900 and only write char \0 every 10 seconds.

This code fix problem with watchdogs:

Code:
        #echo "Creating watchdogs devices..."
        modprobe omap_wdt
        modprobe twl4030_wdt
        for p in /sys/bus/platform/devices/*_wdt/misc:*; do
                n=`basename $p | sed "s/.*://"`
                rm -f /dev/$n
                mknod /dev/$n c `cat $p/dev | sed "s/:/ /g"`
                #ls -l /dev/$n
        done

        #echo "Starting watchdogs..."
        /usr/sbin/watchdogs
When bootmenu is exited, it call

Code:
killall watchdogs

If udev is not needed in backupmenu, can you check if this code without udev speed up starting bootmenu?

And for battery charging: I think that it will be nice if bootmenu can use it too...
 

The Following User Says Thank You to pali For This Useful Post: