Booting into single user mode under U-Boot

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Booting into single user mode under U-Boot

Cryptographrix
How can I boot into single user mode using u-boot?

I am currently trying:

GUM> katload 100000
Copying kernel to 0xa2000000 from 0x00f00000 (length 0x00100000)...done
GUM> bootm 0xa2000000 -s

But am getting:

## Booting image at a2000000 ...
   Image Name:   Angstrom/2.6.21/gumstix-custom-v
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1030044 Bytes = 1005.9 kB
   Load Address: a0008000
   Entry Point:  a0008000
OK
## Loading Ramdisk Image at 00000000 ...
Bad Magic Number
resetting ...

and from there it just reboots.  Help?



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|

Re: Booting into single user mode under U-Boot

Cryptographrix
Figured it out.

For the record, to boot into single-user mode under U-Boot with gumstix, it is as easy as this:

GUM> setenv bootargs 'console=ttyS0,115200n8 root=1f01 rootfstype=jffs2 reboot=cold,hard emergency init=/bin/sh'
GUM> bootd

to see a list of the variables that are set, and how your current environment variables are set under U-boot, do:

GUM> printenv

 - Michael


On Wed, Aug 20, 2008 at 11:04 AM, Cryptographrix <[hidden email]> wrote:
How can I boot into single user mode using u-boot?

I am currently trying:

GUM> katload 100000
Copying kernel to 0xa2000000 from 0x00f00000 (length 0x00100000)...done
GUM> bootm 0xa2000000 -s

But am getting:

## Booting image at a2000000 ...
   Image Name:   Angstrom/2.6.21/gumstix-custom-v
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1030044 Bytes = 1005.9 kB
   Load Address: a0008000
   Entry Point:  a0008000
OK
## Loading Ramdisk Image at 00000000 ...
Bad Magic Number
resetting ...

and from there it just reboots.  Help?




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|

Booting into single user mode under U-Boot

kebgc
I have an OVERO that comes up in run level 1, no prompt.
How can I get single user mode, edit the inittab, or boot from setenv into run level 5