[maemo-developers] N800 Power cycles
From: Rainer Dorsch rdorsch at web.deDate: Thu Jun 11 21:54:07 EEST 2009
- Previous message: N800 Power cycles
- Next message: N800 Power cycles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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: rdorsch at web.de
jabber: rdorsch at jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/
- Previous message: N800 Power cycles
- Next message: N800 Power cycles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
