OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => 6000 - Tosa => Topic started by: Loinn on July 27, 2004, 09:36:50 pm

Title: booting into single user mode
Post by: Loinn 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
Title: booting into single user mode
Post by: tz 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).
Title: booting into single user mode
Post by: Stubear 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
Title: booting into single user mode
Post by: cvmiller 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...
Title: booting into single user mode
Post by: redbones on August 01, 2004, 08:51:46 pm
here is a how to

run levels (http://www.zaurususergroup.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Run%20Levels)
Title: booting into single user mode
Post by: jimmy7430 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!
Title: booting into single user mode
Post by: saakmotu 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
Title: booting into single user mode
Post by: saakmotu 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