Help - Search - Members - Calendar
Full Version: Zaurus Cannot Boot Anymore
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
donquixote
I didn't do anything out of the ordinary only tried to reboot the unit by removing the battery because the unit froze-up (for the millionth time-- I've complained about this before). Anyway, now during the boot-up sequence it seems to freeze at:

CODE
Starting switchevd:                      [  OK  ]

However, it's not really frozen because I eventually get an error message:

CODE
INIT: Id "ln" respawning too fast: disabled for 5 minutes

Then it occurs again in 5 minutes and so on.

Previous to the switchevd message I get another error message:

CODE
Starting sshd:PRNG is not seeded         [FAILED]

Does this have to do with the problem?

I'd just re-flash the ROM (v197); however, I don't want to lose any data. Is there a way I can at least back-up the data before I have to re-flash?

Thanks.

dq
InSearchOf
ok... sucks that this is my 1000th post... but here goes...
if you want to get all that data before reflashing...
Boot into the emergancy rom...
make sure the device you want to copy ur data to is mounted (if not mount it)
# mkdir /mnt/pdaxrom
# mount -t jffs2 /dev/mtdblock2 /mnt/pdaxrom
# cd /mnt/pdaxrom

there is all your data.... I'm going to need to know more what what changes have been made prior to the issue you ran into to diagnose it more...

Late
louigi600
CODE
INIT: Id "ln" respawning too fast: disabled for 5 minutes

This is one of the 2 lines in inittab that start the text console on tty1 (the first virtual console .... well pdaxrom only has one so the only virtual console).

Adrian ... there is not much point in having 2 separate lines for getty on tty1, one exclusively for runlevel 2 ans the other for runlevels 3, 4 and 5.
They could become just one line :
ln:2345:resprawn:/sbin/getty 9600 tty1

Donquixote .... I'm not sure exactly what's wrong but to me it smells like something is wrong in the inittab that is making getty die and resprawn so fast that init is disabling it dor 5 minutes (that\s a classic).

Can you send inittab for a start ?
Chero
Don't really know how to solve the problem, but I remember getting the same error when I was playing with gdm/xdm to set up a graphical login screen.

Have you been doing something like that ?

Chero.
louigi600
QUOTE(Chero @ Aug 7 2007, 11:11 AM)
Don't really know how to solve the problem, but I remember getting the same error when I was playing with gdm/xdm to set up a graphical login screen.

Have you been doing something like that ?

Chero.
*

Possibly that could be a cause .... but since init is complaining let's start debugging by looking at the initttab.

Donquixote: boot to the emerg image ... mount the root on nand like InSearchOh told you ... grab the /mnt/pdaxrom/etc/inittab file and show us it's content ...
also if they are not empty also grab /mnt/pdaxrom/var/log/dmesg and /mnt/pdaxrom/var/log/messages. These last too, if not empty, may be too big to cut and paste here so attach them instead.
donquixote
I didn't do anything unusual with the unit. The last thing I tried to do was upgrade from sp5 to sp8. Which didn't seem to successful I might add. However, that was over a month ago. I haven't done anything configuration-wise since. I'll post inittab, dmesg etc. shortly.

dq
donquixote
inittab:
CODE
#
# /etc/inittab
#

#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - JavaVM(Intent) developer mode
#   5 - JavaVM(Intent)
#   6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

# Specify things to do when starting
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Specify things to do before rebooting
um::ctrlaltdel:/bin/umount -a -r > /dev/null 2>&1
sw::ctrlaltdel:/sbin/swapoff -a > /dev/null 2>&1

# Specify program to run on ttyS0
s0:24:respawn:/sbin/getty 9600 ttyS0
pd:3:respawn:/etc/sync/serialctl

# Specify program to run on tty1
1:2:respawn:/sbin/getty 9600 tty1
ln:345:respawn:/sbin/getty 9600 tty1
#qt:5:respawn:/sbin/qt

# collie sp.
#sy::respawn:/sbin/shsync


messages:
CODE
Jan  1 00:01:41 syslogd started: BusyBox v1.01 (2007.04.11-21:57+0000)
Jan  1 00:01:48 consolechars: Format: 3
Jan  1 00:01:48 rc.sysinit: Setup console font: succeeded
Jan  1 00:01:48 init: Entering runlevel: 5
Jan  1 00:01:49 zaurushw: Starting Husky:  succeeded
Jan  1 00:01:50 sshd:
Jan  1 00:01:50 sshd:
Jan  1 00:01:51 sshd[900]: Server listening on :: port 22.
Jan  1 00:01:51 sshd[900]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Jan  1 00:01:51 ssh: sshd startup succeeded
Jan  1 00:01:53 input.agent[930]: ... no modules for INPUT product 0019/0001/0001/0100
Jan  1 00:02:05 switchev: Starting switchevd:  succeeded
Jan  1 00:21:41 -- MARK --
Jan  1 00:23:58 login[1115]: root login  on `vc/1'
Jan  1 00:24:02 sudo:     root : TTY=vc/1; PWD=/home/root; USER=root; COMMAND=/usr/bin/loadkeys /etc/sysconfig/keyboard/Husky/keymap.map
Jan  1 00:24:02 sudo:     root : TTY=vc/1; PWD=/home/root; USER=root; COMMAND=/sbin/modprobe mousedev
Jan  1 00:24:03 input.agent[1141]: ... no modules for INPUT product
Jan  1 00:24:06 switchev: switchevd shutdown succeeded
Jan  1 00:24:07 switchev: Starting switchevd:  succeeded
Jan  3 14:39:04 sudo:     root : TTY=vc/1; PWD=/home/root; USER=root; COMMAND=/sbin/pccardctl eject 0
Jan  3 14:39:10 sudo:     root : TTY=vc/1; PWD=/home/root; USER=root; COMMAND=/sbin/pccardctl insert 0
Jan  3 15:49:31 -- MARK --
Jan  5 11:53:24 -- MARK --
Jan 10 21:33:09 -- MARK --
Jan 21 14:15:33 -- MARK --
Jan 25 20:10:08 -- MARK --
Jan 27 14:54:25 sudo:     root : TTY=vc/1; PWD=/home/root; USER=root; COMMAND=/usr/bin/loadkeys /etc/sysconfig/keyboard/Husky/keymap.m


dmesg:
CODE
Linux version 2.6.16 (root@pdaX86) (gcc version 3.4.6) #1 PREEMPT Wed Apr 11 15:59:50 UTC 2007
CPU: XScale-PXA255 [69052d06] revision 6 (ARMv5TE)
Machine: SHARP Husky
Ignoring unrecognised tag 0x00000000
Ignoring unrecognised tag 0x00000000
Ignoring unrecognised tag 0x00000000
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 16384
 DMA zone: 16384 pages, LIFO batch:3
 DMA32 zone: 0 pages, LIFO batch:0
 Normal zone: 0 pages, LIFO batch:0
 HighMem zone: 0 pages, LIFO batch:0
Memory clock: 99.53MHz (*27)
Run Mode clock: 199.07MHz (*2)
Turbo Mode clock: 398.13MHz (*2.0, active)
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists
Kernel command line: console=ttyS0,115200 console=tty1 root=/dev/mtdblock2 rootfstype=jffs2
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 62220KB available (2108K code, 401K data, 76K init)
Calibrating delay loop... 397.31 BogoMIPS (lpj=1986560)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Sharp Scoop Device found at 0x10800000 -> 0xc4800000
pxa25x: CPU frequency change support initialized (powersave tables)
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (SUMMARY)  (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
Corgi Backlight Driver Initialized.
Found w100 at 0x08000000.
Console: switching to colour frame buffer device 80x30
fb0: w100fb frame buffer device
pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq = 15) is a FFUART
pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq = 14) is a BTUART
pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq = 13) is a STUART
pxa2xx-uart.3: ttyS3 at MMIO 0x41600000 (irq = 0) is a HWUART
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
Sharp SL series flash device: 800000 at 0
Using static partision definition
Creating 1 MTD partitions on "sharpsl-flash":
0x00120000-0x007f0000 : "Boot PROM Filesystem"
pccard: PCMCIA card inserted into slot 0
pcmcia: registering new device pcmcia0.0
NAND device: Manufacturer ID: 0xec, Chip ID: 0x79 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 32 at 0x00080000
Bad eraseblock 1445 at 0x01694000
Creating 2 MTD partitions on "sharpsl-nand":
0x00000000-0x00700000 : "Logical"
0x00700000-0x08000000 : "JFFS2"
input: Corgi Keyboard as /class/input/input0
input: Corgi Touchscreen as /class/input/input1
sa1100-rtc sa1100-rtc: rtc intf: sysfs
sa1100-rtc sa1100-rtc: rtc intf: proc
sa1100-rtc sa1100-rtc: rtc intf: dev (253:0)
sa1100-rtc sa1100-rtc: rtc core: registered sa1100-rtc as rtc0
sa1100-rtc sa1100-rtc: SA11xx/PXA2xx RTC Registered
I2C: i2c-0: PXA I2C adapter
Registered led device: corgi:amber
Registered led device: corgi:green
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Probing IDE interface ide0...
mmcblk0: mmc0:e624 SD01G 992000KiB
mmcblk0: p1
hda: TOSHIBA THNCF1G02PG, CFA DISK drive
ide0 at 0xc4820000-0xc4820007,0xc482000e on irq 40
hda: max request size: 128KiB
hda: 2000880 sectors (1024 MB) w/2KiB Cache, CHS=1985/16/63
hda: hda1
ide-cs: hda: Vcc = 3.3, Vpp = 0.0
sa1100-rtc sa1100-rtc: setting the system clock to 1970-01-01 00:00:10 (10)
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 76K
JFFS2 notice: (1) read_dnode: header CRC failed on node at 0x4112fe4: read 0xffffffff, calculated 0xb3dcdeb6
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
NET: Registered protocol family 23
ASoC version 0.10rc4
wm8731: WM8731 Audio Codec 0.7
soc: WM8731 <-> pxa2xx-i2s mapping ok
louigi600
Hum ... inittab look ok ...
logs look ok too but the dmesg was obviously saved by the init scripts before the error you are hitting.

But something is killing the getty on tty1 and thus making it resprawn too fast ... init is disabling it at 5 minutes intervals. Let's check whether getty itself is fine ...

While still in the emerg system (with root mounted like InSearchOf told you) can you do thise things (and paste here the output):
ls -l /mnt/pdaxrom/sbin/getty
/mnt/pdaxrom/bin/busybox | grep getty
/mnt/pdaxrom/bin/busybox getty 9600 tty2 (and then exit by pressing CTRL^C)

BTW: before you kill the extra getty on tty2, and if everything so far is fine, you should be able to see the login prompt on tty2 by hitting Fn+RIGHT_ARROR ... go back to the original tty1 by pressing Fn+LEFT_ARROR
donquixote
ls -l /mnt/pdaxrom/sbin/getty
CODE
lrwxrwxrwx    1 root     root           14 Jan  1 00:00 /mnt/pdaxrom/sbin/getty -> ../bin/busybox


/mnt/pdaxrom/bin/busybox | grep getty
CODE
    getty, grep, head, hwclock, kill, klogd, ln, logger, login, losetup,


Ok, the last one I was able to make a new tty2 login prompt. The only problem was that I couldn't ctrl-c out of it. I'm not even sure what the button for ctrl is in emerg. Is it the kanji key (the one next to Fn)? If so, it doesn't work. None of the other buttons work either-- they just display garbage: '^[[20~' etc.

I tried to killall busybox too, but that didn't work either.

dq
louigi600
Well next time you try you could first load the keymap from jffs2 root before going ahead.

Ok getty itself looks fine ... getty would then invoke login to give you a login prompt on the console .... check that out on the jffs2 root.
If that's ok too the something else in the init scritps is killing getty ... have a look at the rc script and at what's started in rc5.d.
donquixote
Maybe there's something else that's shown during the start-up that's causing problems. Here's some of the other messages during the start-up:
CODE
sa1100-rtc sa1100-rtc: setting system clock to 1970-01-01 00:00:08 (9)
mmcblk0: mmc0:e624 SD01G 992000KiB
mmcblk0: p1
jffo2_scan_inode(): CRC failed on node at 0X073a7df4: Read 0xffffffff, calculated 0x1490a44b
VFS: Mounted root (jffs2 filesystem)
Freeing init memory: 76K
sharpsl-pm sharpsl-pm: Charging Error!
JFFS2 notice: (1) read_dnode: header CRC failed on node at 0x49a57d8: read 0xffffffff, calculated 0x91771dd9
INIT version 2.86 booting
JFFS2 notice: (1) read_dnode: header CRC failed on node at 0x49a41e8: read 0xffffffff, calculated 0x57071eab
JFFS2 notice: (1) read_dnode: header CRC failed on node at 0x4112fe4: read 0xffffffff, calculated 0xb3dcdeb6
INIT: cannot execute "/etc/rc.d/rc.sysinit"
JFFS2 notice: (1) check_node_data: wrong data CRC in data node at 0x04172000: read 0x779fcb82, calculated 0xf50f6549.
INIT: Entering runlevel: 5
Starting sshd:PRNG is not seeded         [FAILED]
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
switchevd: No such file or directory
Starting switchevd:                              [   OK   ]
JFFS2 warning: (1) jffs2_sum_write_sumnode: Not enough space for summary, padsize = -74
INIT: Id "ln" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel


NB: I had the battery taken out for this boot.

I may have some typos in there since I typed it all by hand.

Here's my rc flie:
CODE
#!/bin/sh
#
# rc            This file is responsible for starting/stopping
#               services when the runlevel changes.
#
# Original Author:      
#               Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified:
#    2001.12.11    SHARP, for SHARP SL series
#


# Now find out what the current and what the previous runlevel are.
#argv1="$1"
#set `/sbin/runlevel`
#runlevel=$2
#previous=$1
#export runlevel previous
runlevel=$1

# Is there an rc directory for this new runlevel?
if [ -d /etc/rc.d/rc$runlevel.d ]; then
   # First, run the KILL scripts.
   for I in /etc/rc.d/rc$runlevel.d/K*; do
    # Check if the script is there.
    [ ! -f $I ] && continue
   
    # Check if the subsystem is already up.
    subsys=${I#/etc/rc.d/rc$runlevel.d/K??}
    [ ! -f /var/lock/subsys/$subsys ] && \
    [ ! -f /var/lock/subsys/${subsys}.init ] && continue

    # Bring the subsystem down.
    if [ -x $I ];then
    $I stop
    fi
   done

   # Now run the START scripts.
   for I in /etc/rc.d/rc$runlevel.d/S*; do
    # Check if the script is there.
    [ ! -f $I ] && continue

    # Check if the subsystem is already up.
    subsys=${I#/etc/rc.d/rc$runlevel.d/S??}
    [ -f /var/lock/subsys/$subsys ] || \
    [ -f /var/lock/subsys/${subsys}.init ] && continue

    # Bring the subsystem up.
    if [ -x $I ];then
    $I start
    fi
   done
fi

# Check for runlevel 0 or 6
if [ $runlevel -eq 0 -o $runlevel -eq 6 ]; then
   for I in /etc/rc.d/rc$runlevel.d/S*; do
    # Check if the script is there.
    [ ! -f $I ] && continue

    # Check if the subsystem is already up.
    subsys=${I#/etc/rc.d/rc$runlevel.d/S??}
    [ -f /var/lock/subsys/$subsys ] || \
    [ -f /var/lock/subsys/${subsys}.init ] && continue

    # Bring the subsystem up.
    if [ -x $I ]; then
    $I start
    fi
   done
fi

exit 0


It shouldn't really have changed-- I don't mess around with config files in pdaxrom.

Oh yeah, I didn't mention that I have a c760, but that should be kinda obvious from the log files I gave you.

Thanks.

dq
louigi600
I'm now in vacation ... and the only thing I have to connect to internet is my C1K ... so browsing with dillo is a pain in the arse compared to firefox on a std laptop :-(
From what I could see there are errors on your jffs2 filesystem ... unfortunately there is no jffs2fsck tool ... so al you can do is save what is savablle (likeInSearchOf told you) ...
I've not even attempted to read the rs script because of the small screen ... sorry about this but baybe someone else can do that. If you cannot get help on this I'll try to save it locally and do a diff with mine.
donquixote
No problem, I do want to re-flash sometime soon though. Having this out of service for too long is killing me.

dq
Meanie
QUOTE(donquixote @ Aug 11 2007, 11:50 AM)
No problem, I do want to re-flash sometime soon though. Having this out of service for too long is killing me.

dq
*


did you try booting your Z without a CF card inserted?
donquixote
Makes no difference.

dq
donquixote
I need to re-flash soon. I keep forgetting stuff. Any other ideas before I do?

dq
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.