Gentoo Archives: gentoo-embedded

From: Jason <gentoo@××××××××××.net>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] can't load ramdisk correctly on nslu2
Date: Tue, 02 Oct 2007 14:56:06
Message-Id: 4702594D.9040006@lakedaemon.net
1 Ok, I'm frustrated. :-)
2
3 I have the kernel loaded and running via serial/TFTP into an NSLU2. It
4 may not be configured correctly (duh), and the kernel command line might
5 not be correct (also, duh). I've tried so many variants of the two, I
6 can't see straight. I've also tried a gzip'd ramdisk, bzip2'd ramdisk,
7 and a cpio ramdisk. Nothing works. /sbin/init is in the ramdisk.
8 /dev/console and /dev/null are there also.
9
10 I'm missing something basic. Could someone look over the output below
11 and point me in the right direction?
12
13 I suspect 'invalid compressed format (err=1)' might be a good indicator
14 of what is wrong, but google isn't being cooperative today.
15
16 I'm not touching the flash until I can safely, and repeatably, boot from
17 ram and run from ram.
18
19 thx,
20
21 Jason.
22
23 PS - I did have this running once before on the same board back in may,
24 but a hard drive crash taught me a valuable lesson on backups and the
25 need for them. :-)
26
27 ### Kernel Output ###
28 RedBoot> load -r -v -b 0x01000000 ramdisk.gz
29 Using default protocol (TFTP)
30 |
31 Raw file loaded 0x01000000-0x01507836, assumed entry at 0x01000000
32 RedBoot> load -r -v -b 0x01d00000 vmlinuz
33 Using default protocol (TFTP)
34 -
35 Raw file loaded 0x01d00000-0x01e4a267, assumed entry at 0x01d00000
36 RedBoot> exec 0x01d00000
37 Using base address 0x01d00000 and length 0x0014a268
38 Uncompressing
39 Linux.............................................................
40 .............................. done, booting the kernel.
41 Linux version 2.6.19-gentoo-r5 (root@phoenix) (gcc version 3.4.6 (Gentoo
42 3.4.6 p
43 1.0, ssp-3.4.5-1.0, pie-8.7.9)) #17 PREEMPT Mon Oct 1 18:01:10 EDT 2007
44 CPU: XScale-IXP42x Family [690541f1] revision 1 (ARMv5TE), cr=000039ff
45 Machine: Intel IXDP425 Development Platform
46 Warning: bad configuration page, trying to continue
47 Memory policy: ECC disabled, Data cache writeback
48 CPU0: D VIVT undefined 5 cache
49 CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
50 CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
51 Built 1 zonelists. Total pages: 16256
52 Kernel command line: console=ttyS0,115200 root=/dev/ram0
53 initrd=0x01000000,16M mem=64M@0x00000000 ramdisk_size=16384
54 PID hash table entries: 256 (order: 8, 1024 bytes)
55 Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
56 Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
57 Memory: 64MB = 64MB total
58 Memory: 45580KB available (2600K code, 208K data, 96K init)
59 Mount-cache hash table entries: 512
60 CPU: Testing write buffer coherency: ok
61 checking if image is initramfs...it isn't (no cpio magic); looks like an
62 initrd
63 Freeing initrd memory: 16384K
64 NET: Registered protocol family 16
65 IXP4xx: Using 16MiB expansion bus window size
66 PCI: IXP4xx is host
67 PCI: IXP4xx Using direct access for memory space
68 PCI: bus0: Fast back to back transfers disabled
69 dmabounce: registered device 0000:00:01.0 on pci bus
70 dmabounce: registered device 0000:00:01.1 on pci bus
71 dmabounce: registered device 0000:00:01.2 on pci bus
72 SCSI subsystem initialized
73 usbcore: registered new interface driver usbfs
74 usbcore: registered new interface driver hub
75 usbcore: registered new device driver usb
76 NET: Registered protocol family 2
77 IP route cache hash table entries: 512 (order: -1, 2048 bytes)
78 TCP established hash table entries: 2048 (order: 1, 8192 bytes)
79 TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
80 TCP: Hash tables configured (established 2048 bind 1024)
81 TCP reno registered
82 NetWinder Floating Point Emulator V0.97 (double precision)
83 squashfs: version 3.1 (2006/08/19) Phillip Lougher
84 NTFS driver 2.1.27 [Flags: R/W].
85 JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
86 io scheduler noop registered
87 io scheduler deadline registered (default)
88 Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
89 serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
90 serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
91 RAMDISK driver initialized: 1 RAM disks of 16384K size 1024 blocksize
92 NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
93 IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
94 Intel/Sharp Extended Query Table at 0x0031
95 Using buffer write method
96 cfi_cmdset_0001: Erase suspend on write enabled
97 Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x7e0000
98 No RedBoot partition table detected in IXP4XX-Flash.0
99 cmdlinepart partition parsing not available
100 PCI: enabling device 0000:00:01.2 (0140 -> 0142)
101 ehci_hcd 0000:00:01.2: EHCI Host Controller
102 ehci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
103 ehci_hcd 0000:00:01.2: irq 26, io mem 0x48002000
104 ehci_hcd 0000:00:01.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
105 usb usb1: configuration #1 chosen from 1 choice
106 hub 1-0:1.0: USB hub found
107 hub 1-0:1.0: 5 ports detected
108 Initializing USB Mass Storage driver...
109 usbcore: registered new interface driver usb-storage
110 USB Mass Storage support registered.
111 i2c /dev entries driver
112 TCP cubic registered
113 NET: Registered protocol family 1
114 drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
115 Time: OSTS clocksource has been installed.
116 RAMDISK: Compressed image found at block 0
117 invalid compressed format (err=1)
118 VFS: Mounted root (ext2 filesystem) readonly.
119 Freeing init memory: 96K
120 Warning: unable to open an initial console.
121 EXT2-fs error (device ram0): ext2_check_page: bad entry in directory
122 #191: rec_l
123 en is smaller than minimal - offset=0, inode=0, rec_len=0, name_len=0
124 EXT2-fs error (device ram0): ext2_check_page: bad entry in directory
125 #12: rec_le
126 n is smaller than minimal - offset=0, inode=0, rec_len=0, name_len=0
127 Kernel panic - not syncing: No init found. Try passing init= option to
128 kernel.
129 #####################
130 --
131 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] can't load ramdisk correctly on nslu2 Natanael Copa <natanael.copa@×××××.com>
Re: [gentoo-embedded] can't load ramdisk correctly on nslu2 Mike Frysinger <vapier@g.o>