Hi, after the (usual) long delay I've managed to fight my jet-lag with a good coffee and I've tested the image Arnaud provided me with :)
The steps I've followed are: 1. halt the startup sequence at Redboot> prompt with CTRL+C 2. *RedBoot> fis load ramdisk.gz* 3. *RedBoot> load -r -v -h 192.168.1.122 -b 0x01008000 -m tftp zImage_2633_iop32x_defconfig* (since Redboot comes up preconfigured with an IP address I've chosen tftp) This step ends with the following message: *Raw file loaded 0x01008000-0x01279aaf, assumed entry at 0x01008000* 4. *RedBoot> exec -c "console=ttyS0,115200 rw root=/dev/ram0 init=/linuxrc initrd=0xa1800000,8M mem=2...@0xa0000000 force_ep80219"* At this point the startup sequence goes on pretty normal until it stops with errors (RAMDISK) eventually terminating in a kernel panic (full sequence is attached). What's the meaning of the hex addresses in the above commands? Are they hardcoded in the image or do they just point to (almost) arbitrary addresses? Thanks, -mw On Thu, Feb 25, 2010 at 10:52 AM, Arnaud Patard <arnaud.pat...@rtp-net.org> wrote: > Mello <mello...@gmail.com> writes: > > Hi, > >> So, basically, I must stop the startup sequence at a point where I can >> gain access to the Redboot prompt. >> Then issue the commands you suggested, right? >> >> Questions: >> 1. where do I find/how can I generate such a kernel? > > I've build one for you. It's based on the 2.6.33 kernel (tbh, no patches > were added). I've not tested it but it should work. You'll find it here: > > http://www.rtp-net.org/ss4000e/zImage_2633_iop32x_defconfig > > You can load it with (for instance) : > load -v -r -b 0x01008000 -m ymodem zImage > > I've choose the ymodem upload method but things like http should work > too (as long as the redboot has been configured/compiled correctly) > > Oh, and don't forget to load the initrd and launch the kernel with the > commands I gave before :P > > >> 2. what happens to my device after doing this test? Will it revert to >> normal after a power-cycle or do those command overwrite the >> flash/disk somehow? > > the 'load' command is safe as it loads the kernel/initrd into > memory. Nothing should be modifying it, so, after a poweroff/reboot, > you'll go back to the "normal" state. > > Arnaud >
$ screen /dev/tty.usbserial 115200 +Ethernet eth0: MAC address 00:40:d0:8a:1f:99 IP: 192.168.1.11/255.255.255.0, Gateway: 192.168.1.1 Default server: 192.168.1.122, DNS server IP: 0.0.0.0 RedBoot(tm) bootstrap and debug environment [ROM] Intel IOP RedBoot release version 2.2.V6-IOP-RedBoot built 13:51:51, Jan 12 2006 Platform: EP80219 (XScale) Copyright (C) 2000, 2001, 2002, Red Hat, Inc. RAM: 0x00000000-0x10000000, 0x00021790-0x0ffd1000 available FLASH: 0xf0000000 - 0xf0800000, 64 blocks of 0x00020000 bytes each. == Executing boot script in 1.000 seconds - enter ^C to abort ^C RedBoot> fis load ramdisk.gz RedBoot> load -r -v -h 192.168.1.122 -b 0x01008000 -m tftp zImage_2633_iop32x_defconfig --------------------------------------------------------------------------------------------------------------------------- Raw file loaded 0x01008000-0x01279aaf, assumed entry at 0x01008000 RedBoot> exec -c "console=ttyS0,115200 rw root=/dev/ram0 init=/linuxrc initrd=0xa1800000,8M mem=2...@0xa0000000 force_ep80219" Using base address 0x01008000 and length 0x00271ab0 The boot tags are located at 0xA0000100 Booting the kernel... Uncompressing Linux... done, booting the kernel. Linux version 2.6.33 (r...@jules) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 Wed Feb 24 21:57:47 CET 2010 CPU: XScale-80219 [69052e20] revision 0 (ARMv5TE), cr=0000397f CPU: VIVT data cache, VIVT instruction cache Machine: Intel IQ31244 Memory policy: ECC disabled, Data cache writeback Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 Kernel command line: console=ttyS0,115200 rw root=/dev/ram0 init=/linuxrc initrd=0xa1800000,8M mem=2...@0xa0000000 force_ep80219 PID hash table entries: 1024 (order: 0, 4096 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 256MB = 256MB total Memory: 246400KB available (4652K code, 301K data, 148K init, 0K highmem) Hierarchical RCU implementation. RCU-based detection of stalled CPUs is enabled. NR_IRQS:32 clockevent: iop_timer0 uses shift 32 mult 0x33333333 clocksource: iop_timer1 uses shift 29 mult 0xa0000000 Console: colour dummy device 80x30 Calibrating delay loop... 398.95 BogoMIPS (lpj=1994752) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok xor: measuring software checksum speed arm4regs : 257.600 MB/sec 8regs : 287.600 MB/sec 32regs : 274.800 MB/sec xor: using function: 8regs (287.600 MB/sec) NET: Registered protocol family 16 PCI: bus0: Fast back to back transfers disabled pci 0000:00:01.0: BAR 0: assigned [mem 0x80000000-0x8001ffff] pci 0000:00:01.0: BAR 0: set to [mem 0x80000000-0x8001ffff] (PCI address [0x80000000-0x8001ffff] pci 0000:00:01.0: BAR 1: assigned [mem 0x80020000-0x8003ffff] pci 0000:00:01.0: BAR 1: set to [mem 0x80020000-0x8003ffff] (PCI address [0x80020000-0x8003ffff] pci 0000:00:01.0: BAR 6: assigned [mem 0x80040000-0x8005ffff pref] pci 0000:00:03.0: BAR 0: assigned [mem 0x80060000-0x80060fff 64bit] pci 0000:00:03.0: BAR 0: set to [mem 0x80060000-0x80060fff 64bit] (PCI address [0x80060000-0x80060fff] pci 0000:00:01.0: BAR 2: assigned [io 0x90000000-0x9000003f] pci 0000:00:01.0: BAR 2: set to [io 0x90000000-0x9000003f] (PCI address [0x90000000-0x9000003f] bio: create slab <bio-0> at 0 vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb raid6: int32x1 42 MB/s raid6: int32x2 39 MB/s raid6: int32x4 39 MB/s raid6: int32x8 29 MB/s raid6: using algorithm int32x1 (42 MB/s) Switching to clocksource iop_timer1 NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. Trying to unpack rootfs image as initramfs... rootfs image is not initramfs (no cpio magic); looks like an initrd Freeing initrd memory: 8192K NetWinder Floating Point Emulator V0.97 (double precision) Installing knfsd (copyright (C) 1996 o...@monad.swb.de). JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. SGI XFS with security attributes, large block/inode numbers, no debug enabled msgmni has been set to 497 alg: No test for cipher_null (cipher_null-generic) alg: No test for ecb(cipher_null) (ecb-cipher_null) alg: No test for digest_null (digest_null-generic) alg: No test for compress_null (compress_null-generic) alg: No test for stdrng (krng) async_tx: api initialized (async) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0xfe800000 (irq = 28) is a 16550A console [ttyS0] enabled brd: module loaded loop: module loaded nbd: registered device at major 43 scsi0 : sata_vsc scsi1 : sata_vsc scsi2 : sata_vsc scsi3 : sata_vsc ata1: SATA max UDMA/133 mmio m4...@0x80060000 port 0x80060200 irq 29 ata2: SATA max UDMA/133 mmio m4...@0x80060000 port 0x80060400 irq 29 ata3: SATA max UDMA/133 mmio m4...@0x80060000 port 0x80060600 irq 29 ata4: SATA max UDMA/133 mmio m4...@0x80060000 port 0x80060800 irq 29 physmap platform flash device: 00800000 at f0000000 physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank Intel/Sharp Extended Query Table at 0x0031 Intel/Sharp Extended Query Table at 0x0031 Using buffer write method cfi_cmdset_0001: Erase suspend on write enabled cmdlinepart partition parsing not available Searching for RedBoot partition table in physmap-flash.0 at offset 0x7e0000 7 RedBoot partitions found on MTD device physmap-flash.0 Creating 7 MTD partitions on "physmap-flash.0": 0x000000000000-0x000000040000 : "RedBoot" 0x000000040000-0x000000240000 : "zImage" 0x000000240000-0x000000640000 : "ramdisk.gz" 0x000000640000-0x0000007a0000 : "unallocated" 0x0000007a0000-0x0000007c0000 : "vendor" 0x0000007c0000-0x0000007c1000 : "RedBoot config" 0x0000007e0000-0x000000800000 : "FIS directory" Intel(R) PRO/1000 Network Driver - version 7.3.21-k5-NAPI Copyright (c) 1999-2006 Intel Corporation. e1000: 0000:00:01.0: e1000_probe: (PCI:33MHz:32-bit) 00:40:d0:8a:1f:99 e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI e100: Copyright(c) 1999-2006 Intel Corporation usbmon: debugfs is not available ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver uhci_hcd: USB Universal Host Controller Interface driver Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. mice: PS/2 mouse device common for all mice i2c /dev entries driver md: raid0 personality registered for level 0 md: raid1 personality registered for level 1 md: raid10 personality registered for level 10 md: raid6 personality registered for level 6 md: raid5 personality registered for level 5 md: raid4 personality registered for level 4 device-mapper: ioctl: 4.16.0-ioctl (2009-11-05) initialised: dm-de...@redhat.com iop-adma iop-adma.0: Intel(R) IOP: ( cpy intr ) iop-adma iop-adma.1: Intel(R) IOP: ( cpy intr ) TCP cubic registered NET: Registered protocol family 10 NET: Registered protocol family 17 XScale DSP coprocessor detected. drivers/rtc/hctosys.c: unable to open rtc device (rtc0) ata1: link is slow to respond, please be patient (ready=0) ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata1.00: ATA-7: ST3320620AS, 3.AAE, max UDMA/133 ata1.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 0/32) ata1.00: configured for UDMA/133 scsi 0:0:0:0: Direct-Access ATA ST3320620AS 3.AA PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB) sd 0:0:0:0: Attached scsi generic sg0 type 0 sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 sda2 sda3 sda: p3 size 624616273 exceeds device capacity, limited to end of disk sd 0:0:0:0: [sda] Attached SCSI disk ata2: link is slow to respond, please be patient (ready=0) ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata2.00: ATA-7: ST3320620AS, 3.AAE, max UDMA/133 ata2.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 0/32) ata2.00: configured for UDMA/133 scsi 1:0:0:0: Direct-Access ATA ST3320620AS 3.AA PQ: 0 ANSI: 5 sd 1:0:0:0: [sdb] 625142448 512-byte logical blocks: (320 GB/298 GiB) sd 1:0:0:0: Attached scsi generic sg1 type 0 sd 1:0:0:0: [sdb] Write Protect is off sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdb: sdb1 sdb2 sdb3 sdb: p3 size 624616273 exceeds device capacity, limited to end of disk sd 1:0:0:0: [sdb] Attached SCSI disk ata3: link is slow to respond, please be patient (ready=0) ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata3.00: ATA-7: ST3320620AS, 3.AAE, max UDMA/133 ata3.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 0/32) ata3.00: configured for UDMA/133 scsi 2:0:0:0: Direct-Access ATA ST3320620AS 3.AA PQ: 0 ANSI: 5 sd 2:0:0:0: [sdc] 625142448 512-byte logical blocks: (320 GB/298 GiB) sd 2:0:0:0: Attached scsi generic sg2 type 0 sd 2:0:0:0: [sdc] Write Protect is off sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdc: sdc1 sdc2 sdc3 sdc: p3 size 624616273 exceeds device capacity, limited to end of disk sd 2:0:0:0: [sdc] Attached SCSI disk ata4: link is slow to respond, please be patient (ready=0) ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata4.00: ATA-7: ST3320620AS, 3.AAE, max UDMA/133 ata4.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 0/32) ata4.00: configured for UDMA/133 scsi 3:0:0:0: Direct-Access ATA ST3320620AS 3.AA PQ: 0 ANSI: 5 sd 3:0:0:0: [sdd] 625142448 512-byte logical blocks: (320 GB/298 GiB) sd 3:0:0:0: Attached scsi generic sg3 type 0 sd 3:0:0:0: [sdd] Write Protect is off sd 3:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdd: sdd1 sdd2 sdd3 sdd: p3 size 624616273 exceeds device capacity, limited to end of disk sd 3:0:0:0: [sdd] Attached SCSI disk md: Waiting for all devices to be available before autodetect md: If you don't use raid, use raid=noautodetect md: Autodetecting RAID arrays. md: Scanned 0 and added 0 devices. md: autorun ... md: ... autorun DONE. RAMDISK: gzip image found at block 0 RAMDISK: incomplete write (15298 != 32768) write error EXT3-fs (ram0): warning: feature flags set on rev 0 fs, running e2fsck is recommended EXT2-fs (ram0): warning: feature flags set on rev 0 fs, running e2fsck is recommended VFS: Mounted root (ext2 filesystem) on device 1:0. Freeing init memory: 148K attempt to access beyond end of device ram0: rw=0, want=32780, limit=16384 EXT2-fs (ram0): error: ext2_get_inode: unable to read inode block - inode=2049, block=16389 EXT2-fs (ram0): error: remounting filesystem read-only Warning: unable to open an initial console. attempt to access beyond end of device ram0: rw=0, want=32818, limit=16384 EXT2-fs (ram0): error: ext2_get_inode: unable to read inode block - inode=2205, block=16408 EXT2-fs (ram0): error: remounting filesystem read-only Failed to execute /linuxrc. Attempting defaults... attempt to access beyond end of device ram0: rw=0, want=32800, limit=16384 EXT2-fs (ram0): error: ext2_get_inode: unable to read inode block - inode=2129, block=16399 EXT2-fs (ram0): error: remounting filesystem read-only attempt to access beyond end of device ram0: rw=0, want=32798, limit=16384 EXT2-fs (ram0): error: ext2_get_inode: unable to read inode block - inode=2123, block=16398 EXT2-fs (ram0): error: remounting filesystem read-only attempt to access beyond end of device ram0: rw=0, want=49176, limit=16384 EXT2-fs (ram0): error: ext2_get_inode: unable to read inode block - inode=3127, block=24587 EXT2-fs (ram0): error: remounting filesystem read-only Kernel panic - not syncing: No init found. Try passing init= option to kernel. Backtrace: [<c0031520>] (dump_backtrace+0x0/0x118) from [<c039db34>] (dump_stack+0x18/0x1c) r7:00000000 r6:00000000 r5:00000000 r4:c04e33a4 [<c039db1c>] (dump_stack+0x0/0x1c) from [<c039db84>] (panic+0x4c/0x12c) [<c039db38>] (panic+0x0/0x12c) from [<c002d5e8>] (init_post+0xd8/0x100) r3:00000005 r2:00000002 r1:00000001 r0:c0456633 [<c002d510>] (init_post+0x0/0x100) from [<c0008638>] (kernel_init+0xe4/0x114) r4:c04e2f00 [<c0008554>] (kernel_init+0x0/0x114) from [<c004736c>] (do_exit+0x0/0x5f8) r4:00000000 INFO: RCU detected CPU 0 stall (t=1000 jiffies) INFO: RCU detected CPU 0 stall (t=4000 jiffies) INFO: RCU detected CPU 0 stall (t=7000 jiffies) INFO: RCU detected CPU 0 stall (t=10000 jiffies) INFO: RCU detected CPU 0 stall (t=13000 jiffies) INFO: RCU detected CPU 0 stall (t=16000 jiffies) INFO: RCU detected CPU 0 stall (t=19000 jiffies) INFO: RCU detected CPU 0 stall (t=22000 jiffies) INFO: RCU detected CPU 0 stall (t=25000 jiffies) INFO: RCU detected CPU 0 stall (t=28000 jiffies) INFO: RCU detected CPU 0 stall (t=31000 jiffies) INFO: RCU detected CPU 0 stall (t=34000 jiffies) INFO: RCU detected CPU 0 stall (t=37000 jiffies)