Author Topic: booting into single user mode  (Read 2981 times)

Loinn

  • Newbie
  • *
  • Posts: 1
    • View Profile
booting into single user mode
« on: July 27, 2004, 09:36:50 pm »
while doing some development on my zaurus (SL-6000L) I put a ... bad entry into the boot sequence and now when "entering runlevel: 5" it hangs. I've let it sit there, and does nothing.

Long story short- any know how I can boot it into single-user mode to fix the problem?


--Mike
« Last Edit: July 27, 2004, 09:37:44 pm by Loinn »

tz

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • http://
booting into single user mode
« Reply #1 on: July 28, 2004, 01:51:46 pm »
Generally, you can't (without a special kernel that has single-user mode forced on).

You may have to restore the NAND ROM flash image (and lose anything not backed up as it goes back to factory) usiing the service menu.  That would reawaken it.

Otherwise you could just reflash a kernel that allows single user mode.  I don't know if any out there do (I've patched mine, but it has other things in it).

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
booting into single user mode
« Reply #2 on: July 28, 2004, 08:09:45 pm »
On the SL5x000 add the Cxx0 there is a keycombo that boots into single user mode (actually it boots into a different part of flash and you have to manually mount the / and /home filesystems)

On the Cxx0 models it is D+B during bootup, I think it is the same for the SL5x00 models.

If you have installed ssh, then you may be abe to ssh into the Z and fix the problem.

If all else failes you will have to reflash

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
booting into single user mode
« Reply #3 on: July 29, 2004, 12:36:32 pm »
Quote
while doing some development on my zaurus (SL-6000L) I put a ... bad entry into the boot sequence and now when "entering runlevel: 5" it hangs. I've let it sit there, and does nothing.

Long story short- any know how I can boot it into single-user mode to fix the problem?


--Mike
Mike,

I just tried this with my SL-6000:

Reboot the Zaurus,

After the "Wait for a minute" screen comes up, it will scroll and report the version of Init

Right after that start pressing the '/' key on the built-in keyboard. You may have to press it a couple of times to get the timing right.

You should be presented with a menu with 4 options:
   q - boot into Qtopia
   a - boot into console
   other things with the tty

Select 'a' you will then be asked to log in.

This is not single mode, but more like init 2 or 3. But it will let you get in and fix things when Qtopia is broken.

BTW, this works on a 55xx machine as well.

I hope this helps,

Craig...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

redbones

  • Newbie
  • *
  • Posts: 12
    • View Profile
booting into single user mode
« Reply #4 on: August 01, 2004, 08:51:46 pm »
here is a how to

run levels

jimmy7430

  • Newbie
  • *
  • Posts: 1
    • View Profile
booting into single user mode
« Reply #5 on: August 21, 2004, 08:23:02 pm »
Hi, I am having the same trouble here.

What I did is doing a reset(use the switch you switch of when replacing your battery)restart the Zaurus.

To really enter a user mode console options, one has to push the "/" key, when it does the runlevel count down from 5.

The problem here is the system is frozen at INIT: Entering runlevel 5, it never goes to the count down step.

If I remmeber right, before my SL 5600 frozen, I editted /etc/hotplug/usb.agent to automate the usbd0 hotplug function. something like:
...
if
ifconfig usbd0 $IP
route add default gw x.x.x.x
fi
...
iroute del default
ifconfig usbd0 down
...

Then it stuck forever!

saakmotu

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
    • http://www.bpang.com
booting into single user mode
« Reply #6 on: January 07, 2005, 03:00:10 pm »
I'm not having any luck with the "/" button... (the one that is actually both "/" and "?" right?)

any special hints?

thanks
I'd rather not have to reflash
bricked(?) sl5000d
sl5500 tkcROM
sl5600
sl6000-L
Many sd/cf memory cards
Linksys wcf12 CF WiFi - Dlink CF Wifi - Xircom CompactCard Ethernet 10
Sharp CF Camera
SerialI/O usb cable - iRiver PMP USB Host Adapter Cable

saakmotu

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
    • http://www.bpang.com
booting into single user mode
« Reply #7 on: January 07, 2005, 04:12:02 pm »
I went ahead and did a NAND restore and now I can use the "/" to get to the list of options...
dunno what was wrong before
bricked(?) sl5000d
sl5500 tkcROM
sl5600
sl6000-L
Many sd/cf memory cards
Linksys wcf12 CF WiFi - Dlink CF Wifi - Xircom CompactCard Ethernet 10
Sharp CF Camera
SerialI/O usb cable - iRiver PMP USB Host Adapter Cable