Am Donnerstag, 11. Juni 2009 schrieb Rainer Dorsch:
> [...]
> > More details is in /mnt/initfs/linuxrc in function enter_state(), normal
> > mode is USER state, charging mode is (or is one case of?) ACTDEAD state.
> > I hope I am not wrong about this.
>
> After investigating linuxrc the above behavior becomes clear:
>
> show_actdead_image()
> {
>         bootreason=`cat /proc/bootreason`
>         if [ x"$bootreason" = x"charger" ]; then
>                 echo "Showing the 'charger connected' image"
>                 /usr/bin/fb-chaimage -l
> /usr/share/images/qgn_indi_charger_connection_detected -b 0 -c -p 0 -s 15 &
>         fi
> }
>
> It seems that /proc/bootreason was not charger in my case (and I think that
> is expected when the N800 crashed).
>
> I modified that too
>
>         if [ x"$bootreason" = x"charger" ]; then
>                 echo "Showing the 'charger connected' image"
>                 /usr/bin/fb-chaimage -l
> /usr/share/images/qgn_indi_charger_connection_detected -b 0 -c -p 0 -s 15 &
>         else
>           text2screen -t "Bootreason: `cat /proc/bootreason`" -H center -y
> 360 -s 6 -B 0xffff
>         fi
>
> This way I have at least some information when I run in that problem next
> time.
>
> Is there any other debug information which would be useful to print? Is
> there a way (by changing linuxrc further) to get a lot more information
> during boot instead of the nice but almost informationfree image?

I just noticed that I cannot write that file, the fs is mounted readonly:

/dev/root on /mnt/initfs type jffs2 (ro)

If I remount it rw

mount -o remount,rw /mnt/initfs

to do the change, would that break something?

Thanks,
Rainer


-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to