RAMDISK on EP88xc

Mikhail Zaturenskiy mzaturenskiy.st at gmail.com
Fri Jul 3 02:27:31 EST 2009


>> I haven't tried CONFIG_BLK_DEV or CONFIG_BLK_DEV_LOOP and am still
>> playing around with the values for CONFIG_BLK_DEV_RAM_COUNT and
>> CONFIG_BLK_DEV_RAM_SIZE. Strangely, the DEV_RAM defines are completely
>> missing from my config so I have to put them in manually... (as
>> opposed to via menuconfig). I'll post back when it's working or when
>> I've tried all of this and still am getting some error.
>
> If you don't have CONFIG_BLK_DEV defined, you can't have CONFIG_BLK_DEV_RAM_COUNT
> or CONFIG_BLK_DEV_RAM_SIZE.  Use 'menuconfig' to help straighten this out.
>
>> Meanwhile a side question - why does BLK_DEV_RAM_COUNT default to 16?
>
> This is just the number of unique RAM disk devices supported.

I see, thanks Gary, I'll leave that unmodified then. I only really
need 1 but it doesn't seem to negatively affect anything if I leave it
at 16.

Just as an intermediate update on the issue, I've made progress and it
hangs later down the line, see below:
************************************************************************************
Using Embedded Planet EP88xC machine description
Linux version 2.6.30-rc2-01402-gd4e2f68-dirty (devone at localhost.localdomain) (gc
c version 4.2.2) #3 Thu Jul 2 11:00:54 CDT 2009
Found initrd at 0xc3dbb000:0xc3f6d056
Zone PFN ranges:
  DMA      0x00000000 -> 0x00004000
  Normal   0x00004000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
MMU: Allocated 72 bytes of context maps for 16 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttyCPM0,9600n8 root=/dev/ram loglevel=7 init=/sbin/
init
NR_IRQS:512
PID hash table entries: 256 (order: 8, 1024 bytes)
Decrementer Frequency = 0x5f5e10
clocksource: timebase mult[28000000] shift[22] registered
console [ttyCPM0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 60716k/65536k available (2136k kernel code, 4752k reserved, 100k data, 9
9k bss, 112k init)
SLUB: Genslabs=12, HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 12.39 BogoMIPS (lpj=61952)
Mount-cache hash table entries: 512
net_namespace: 296 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
checking if image is initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 1736k freed
msgmni has been set to 122
io scheduler noop registered
io scheduler deadline registered (default)
Generic RTC Driver v1.07
f0000a80.serial: ttyCPM0 at MMIO 0xc500ea80 (irq = 19) is a CPM UART
f0000a20.serial: ttyCPM1 at MMIO 0xc5016a20 (irq = 29) is a CPM UART
brd: module loaded
loop: module loaded
eth0: fs_enet: 00:00:00:00:00:00
eth1: fs_enet: 00:00:00:00:00:00
FEC MII Bus: probed
fe000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
fe000000.flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) readonly on device 1:0.
Freeing unused kernel memory: 112k init
************************************************************************************

Now searching for cause, looks like it's "init" related...


More information about the Linuxppc-dev mailing list