Re: rescue single user

From: Sam Tetherow <tetherow.a.t.nicusa.com>
Date: Tue Jul 17 2001 - 18:03:35 EDT

Connect a serial cable, get the system to a boot prompt (ie hard reset) and
boot> set linuxargs "noinitrd root=/dev/mtdblock/3 console=ttySA0
init=/bin/sh"

boot> boot

This should bring you up in ash (or bash if /bin/sh is bash)

On 2001.07.17 16:09 Olav@kvittem.no wrote:
> Hi,
>
> I wonder if there is a way to get a shell on the serialport without
> logging
> in, like a single user boot. I am stuck because X setup fails and login
> at
> serial port fails silently (login OK - see attachment).
>
> I have tried 'set linuxparms "single ..." without luck.
>
> Olav
>
> boot> boot
> booting flash...
> kernel_magic=E1A00000
> kernel_region_words[9]=016F2818
> Linux ELF flash_imgstart=50080000 size=000C0000 dest=C0000000
> offset=00008000
> MMU Control=C19F4071
> copying Linux kernel ... done
> linuxEntryPoint: C0008000
> kernel_image_dest: C0000000
> kernel_image_offset: 00008000
> C0008000: E1A00000
> C0008004: E1A00000
> C0008008: E1A00000
> C000800C: E1A00000
> C0008010: E1A00000
> C0008014: E1A00000
> C0008018: E1A00000
> C000801C: E1A00000
> C0008020: EA000002
> C0008024: 016F2818
> root_filesystem_name=ramdisk
> argc=00000002
> args=1 noinitrd init=/linuxrc root=/dev/mtdblock/3 console=ttySA0
> setting boot parameters
> get_param: could not find parameter system_rev
> Setting up Linux parameters at address=C0000100
> using_ramdisk=00000001
> initrd_start=346C7466
> dram_size=02000000
> nr_pages=00002000
> command line is: 1 noinitrd init=/linuxrc root=/dev/mtdblock/3
> console=ttySA0
> linuxEntryPoint=C0008000
> Booting Linux image
> Uncompressing Linux....................................... done, booting
> the kernel.
> Linux version 2.4.3-rmk2-np1 (root@step) (gcc version 2.95.4 20010319
> (Debian prerelease)) #2 Mon May 14 12:21:48 PD
> T 2001
> Processor: Intel StrongARM-1110 revision 8
> Architecture: Compaq iPAQ
> On node 0 totalpages: 8192
> zone(0): 8192 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> Kernel command line: 1 noinitrd init=/linuxrc root=/dev/mtdblock/3
> console=ttySA0
> Console: colour dummy device 80x30
> Calibrating delay loop... 194.15 BogoMIPS
> Memory: 32MB = 32MB total
> Memory: 30872KB available (987K code, 256K data, 60K init)
> Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes)
> Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
> Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
> Inode-cache hash table entries: 2048 (order: 2, 16384 bytes)
> POSIX conformance testing by UNIFIX
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society NET3.039
> Starting kswapd v1.8
> Console: switching to colour frame buffer device 40x30
> pty: 256 Unix98 ptys configured
> block: queued sectors max/low 20224kB/6741kB, 64 slots per queue
> JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis
> Communications AB.
> SA1100 serial driver version 1.3
> ttySA0 on SA1100 UART3 (irq 17)
> ttySA1 on SA1100 UART1 (irq 15)
> ttySA2 on SA1100 UART2 (irq 16), using IRDA
> SA1100 flash: probing for 4 partitions (buswidth = 4)
> SA1100: Found 2 x16 devices at 0x0 in 32-bit mode
> JEDEC ID: 89 17
> 0: offset=0x0,size=0x40000,blocks=64
> No RedBoot partition table found. Using default partitioning
> parse_bootldr_partitions: partition_table_offset=0x40000
> parse_bootldr_partitions: magic=0x646c7470
> parse_bootldr_partitions: npartitions=0x4
> partition bootldr o=0 s=40000
> partition params o=40000 s=40000
> partition kernel o=80000 s=80000
> partition root o=100000 s=f00000
> Bootldr Partition: "bootldr", 0x00000000-0x00040000
> Bootldr Partition: "params", 0x00040000-0x00080000
> Bootldr Partition: "kernel", 0x00080000-0x00100000
> Bootldr Partition: "root", 0x00100000-0x01000000
> SA1100 flash access initialized
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 2048 bind 2048)
> Fast Floating Point Emulator V0.0 (c) Peter Teichmann.
> devfs: v0.102 (20000622) Richard Gooch (rgooch@atnf.csiro.au)
> devfs: boot_options: 0x2
> VFS: Mounted root (jffs2 filesystem).
> Freeing init memory: 60K
> Executing /linuxrc...
> Loading floating point emulator...
> Using /lib/modules/2.4.3-rmk2-np1/kernel/arch/arm/nwfpe/nwfpe.o
> NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
> Mounting /proc
> Loading Unix socket support
> Using /lib/modules/2.4.3-rmk2-np1/kernel/net/unix/unix.o
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> Setting up RAMFS, please wait...
> Using /lib/modules/2.4.3-rmk2-np1/kernel/fs/ramfs/ramfs.o
> Setting Date/Time from previous settings
> Wed Jul 4 07:17:27 CEST 2001
> Executing /sbin/init...
> INIT: version 2.78 booting
> INIT: Entering runlevel: 2
>
> (none) login: root
> Password:
> PAM_unix[22]: (login) session opened for user root by LOGIN(uid=0)
> login[22]: ROOT LOGIN on `ttySA0'
>
>
> (none) login:
>
>
> _______________________________________________
> Familiar mailing list
> Familiar@handhelds.org
> http://handhelds.org/mailman/listinfo/familiar
> irc://irc.openprojects.net #familiar
>
>

-- 
------------------------------------------------------------------------
Sam Tetherow                           tetherow@nol.org
Director of Development
NIC Labs (IDG)                         http://www.nicusa.com
Received on Tue Jul 17 14:56:19 2001

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:38:27 EDT