The Following User Says Thank You to z2n For This Useful Post: | ||
|
2008-02-02
, 11:32
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#2
|
# # Start script or program. # dbgout(){ chroot /mnt/initfs text2screen -x 0 -y 60 -w 800 -h 20 -c chroot /mnt/initfs text2screen -s 2 -H center -y 60 -T 0 -t "$@" } startup() { dbgout "$@" case "$1" in *.sh) $debug sh "$@" ;; *) $debug "$@" ;; esac }
mount /dev/mmcblk0p2 /opt chroot /opt
|
2008-02-03
, 04:20
|
Posts: 109 |
Thanked: 91 times |
Joined on Dec 2007
|
#3
|
instead of editing each script in /etc/init.d you may try to edit /etc/init.d/rc and add debug code to startup() function like this
Booting from mmcint1 ...
/etc/rc2.d/S99zzinitdone
you can also install syslog and see /var/log/syslog after unsuccessful boot
|
2008-02-03
, 10:47
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#4
|
In a change from the boot process before editing /etc/init.d/rc, there is no blue progress bar vizible at the bottom of the screen, and no "Nokia" graphic.
Do you have any suggestions about what comes next in the startup process...
Is there any way to boot the tablet in text mode (runlevel 3), or to get more debugging on the steps that follow S99zzinitdone?
There doesn't seem to be a syslog package built for chinook...or at least it's not in any of the gronmayer repositories.
|
2008-02-03
, 22:13
|
Posts: 13 |
Thanked: 6 times |
Joined on Feb 2008
@ UK
|
#5
|
Feb 3 21:34:10 Nokia-N810-50-2 user: Starting temp-reaper-startup.sh Feb 3 21:34:10 Nokia-N810-50-2 DSME: Accepted new client connection Feb 3 21:34:10 Nokia-N810-50-2 DSME: Closed a client connection Feb 3 21:34:10 Nokia-N810-50-2 user: Starting dbus-sessionbus.sh Feb 3 21:34:10 Nokia-N810-50-2 DSME: Accepted new client connection Feb 3 21:34:10 Nokia-N810-50-2 DSME: Closed a client connection Feb 3 21:34:10 Nokia-N810-50-2 user: Waiting for X Feb 3 21:34:10 Nokia-N810-50-2 user: Starting sapwood Feb 3 21:34:10 Nokia-N810-50-2 DSME: Accepted new client connection Feb 3 21:34:10 Nokia-N810-50-2 DSME: Closed a client connection Feb 3 21:34:10 Nokia-N810-50-2 user: Starting matchbox Feb 3 21:34:10 Nokia-N810-50-2 DSME: Accepted new client connection Feb 3 21:34:10 Nokia-N810-50-2 DSME: Closed a client connection Feb 3 21:34:10 Nokia-N810-50-2 user: Waiting for D-BUS Feb 3 21:34:10 Nokia-N810-50-2 waitdbus[932]: trying to connect to the system bus Feb 3 21:34:10 Nokia-N810-50-2 waitdbus[932]: got connection Feb 3 21:34:10 Nokia-N810-50-2 user: Starting media server Feb 3 21:34:10 Nokia-N810-50-2 DSME: Accepted new client connection Feb 3 21:34:12 Nokia-N810-50-2 init: Switching to runlevel: 6 Feb 3 21:34:12 Nokia-N810-50-2 DSME: Closed a client connection Feb 3 21:34:13 Nokia-N810-50-2 exiting on signal 15
|
2008-02-04
, 09:59
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#6
|
Is it possible that a process started by a previous init script has hung and caused the watchdog to restart.
while true ; do key=`evkey -u -t 100000 /dev/input/${EVNAME}` [ "$key" = "$KEY_ESC" ] && break [ "$key" = "$KEY_MENU" ] && break done ${T2S} -c if [ "$key" = "$KEY_ESC" ] ; then killall dropbear killall utelnetd #sleep 1 ifconfig usb0 down umount /dev/pts rmmod g_ether.ko fi
The Following User Says Thank You to fanoush For This Useful Post: | ||
|
2008-02-05
, 07:05
|
Posts: 13 |
Thanked: 6 times |
Joined on Feb 2008
@ UK
|
#7
|
PID Uid VSZ Stat Command 1 root 1468 SW init [5] 2 root SWN [ksoftirqd/0] 3 root SW [watchdog/0] 4 root SW< [events/0] 5 root SW< [khelper] 6 root SW< [kthread] 16 root SW< [dvfs/0] 67 root SW< [kblockd/0] 68 root SW< [kseriod] 81 root SW< [OMAP McSPI/0] 88 root SW< [ksuspend_usbd] 91 root SW< [khubd] 115 root SW [pdflush] 116 root SW [pdflush] 117 root SW< [kswapd0] 118 root SW< [aio/0] 121 root SW< [mipid_esd] 246 root SW [mtdblockd] 287 root SW< [kondemand/0] 288 root SW< [kmmcd] 300 root SW< [krfcommd] 313 root SW< [mmcqd] 345 root 1084 SW< dsme -d -l syslog -v 4 -p /usr/lib/dsme/libstartup.so 350 root 564 SW /usr/sbin/kicker 355 root 776 SW /usr/bin/bme_RX-44 576 root 152 RW /usr/sbin/utelnetd -l /bin/sh -d 585 root 376 SW /usr/sbin/dropbear -d /tmp/dropbear_dss_host_key -r / 741 root 1044 SW /bin/sh 1406 root SW< [cx3110x] 1459 root 1576 SW< /sbin/udevd --daemon 1660 root 1540 SW /sbin/syslogd 1714 root 1468 SW /sbin/klogd 1773 messagebus 1916 SW< /usr/bin/dbus-daemon --system 1779 haldaemon 3980 SW /usr/sbin/hald 1780 root 2800 SW hald-runner 1787 root 2436 SW /usr/lib/hal/hald-addon-omap-gpio 1788 root 2436 SW /usr/lib/hal/hald-addon-omap-gpio 1789 root 2436 SW /usr/lib/hal/hald-addon-omap-gpio 1790 root 2436 SW /usr/lib/hal/hald-addon-omap-gpio 1791 root 2436 SW /usr/lib/hal/hald-addon-omap-gpio 1792 root 2436 SW /usr/lib/hal/hald-addon-omap-gpio 1793 haldaemon 2508 SW hald-addon-usb-cable: listening on /sys/devices/plat 1794 root 2940 SW hald-addon-input: Listening on /dev/input/event2 /dev 1795 root 2436 SW /usr/lib/hal/hald-addon-mmc 1796 root 2436 SW /usr/lib/hal/hald-addon-mmc 1798 root 2952 SW /usr/lib/hal/hald-addon-cpufreq 1825 root 3636 SW< /sbin/mce --force-syslog 1828 messagebus 3324 SW /usr/lib/gconf2/gconfd-2 1875 user 1312 SW< /usr/sbin/temp-reaper 1879 user 1916 SW< /usr/bin/dbus-daemon --session 1885 user 6776 SW< /usr/lib/sapwood/sapwood-server 1890 user 5760 SW< /usr/bin/matchbox-window-manager -theme echo -use_tit 1903 root SW< [dsp/0] 1906 root SW< [dsp/0] 1909 root 2952 SW /usr/sbin/dsp_dld -p --disable-restart -c /lib/dsp/ds 1917 root 2792 SW< /usr/bin/bme-dbus-proxy -N 1980 root 4804 SW /usr/sbin/multimediad 1987 root 2176 SW< /usr/bin/esd 1994 root 1960 RW ps
|
2008-02-05
, 08:29
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#8
|
Feb 3 21:34:10 Nokia-N810-50-2 user: Waiting for X
|
2008-02-05
, 09:02
|
Posts: 13 |
Thanked: 6 times |
Joined on Feb 2008
@ UK
|
#9
|
|
2008-02-05
, 21:20
|
Posts: 13 |
Thanked: 6 times |
Joined on Feb 2008
@ UK
|
#10
|
Feb 5 20:28:06 Nokia-N810-50-2 DSME: Closed a client connection Feb 5 20:28:06 Nokia-N810-50-2 DSME: process '/usr/bin/Xomap -mouse tslib -nozap -dpi 96 -wr -nolisten tcp' with pid 1014 exited with return value: 1 Feb 5 20:28:06 Nokia-N810-50-2 DSME: '/usr/bin/Xomap -mouse tslib -nozap -dpi 96 -wr -nolisten tcp' exited with RESET policy -> reset Feb 5 20:28:06 Nokia-N810-50-2 DSME: Here we will request for sw reset Feb 5 20:28:06 Nokia-N810-50-2 DSME: Here we could do some bookkeeping.. Feb 5 20:28:06 Nokia-N810-50-2 user: Starting temp-reaper-startup.sh Feb 5 20:28:06 Nokia-N810-50-2 DSME: Accepted new client connection Feb 5 20:28:06 Nokia-N810-50-2 DSME: Closed a client connection
The XKEYBOARD keymap compiler (xkbcomp) reports: > Warning: Multiple names for keycode 138 > Using <I138>, ignoring <PROP> > Warning: Multiple names for keycode 140 > Using <I140>, ignoring <FRNT> > Warning: Multiple names for keycode 211 > Using <I211>, ignoring <AB11> Errors from xkbcomp are not fatal to the X server
The boot process hangs at the "Nokia" splash screen--the progress bar fills the screen, but nothing happens after that. The problem is consistent with or without the charger in place, and the tablet fails to continue booting after several hours.
I don't think there's any problem with the mmc format or data--booting from the internal flash allows me to acces the mmc card with no errors.
Here's what I've done to try to trace the boot process:
So, are there any suggestions for additional ways to trace and troubleshoot the boot process? What happens in the Maemo boot process after the init scripts complete that can cause the process to hang, and how can I get more detail on what step is hanging?
Thanks!
Last edited by z2n; 2008-02-02 at 08:32.