bad gunzip

Pagnotta, Chris chris.pagnotta at viasat.com
Fri Nov 2 05:42:04 EST 2007


I am having difficulty uncompressing the ramdisk. The ramdisk does uncompress 
when I do not have FCC disabled in the kernel and it comes up to the prompt. 
I cannot see how leaving at an option in .config would affect the ramdisk
from uncompressing.

I noticed that the code just hangs in huft_build in lib/inflate.c 
(i.e. just a infinite loop). 

Has someone else has seen this?

I added some debug info, which is illustrated in the output below.

## Booting image at fc800000 ...
   Image Name:   Kernel 1.0.0-Wed Oct 31 1
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    954708 Bytes = 932.3 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Loading RAMDisk Image at fca00000 ...
   Image Name:   Good Ramdisk
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    1663803 Bytes =  1.6 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Ramdisk to 00e69000, end 00fff33b ... OK
Linux version 2.6.19.2 (gcc version 4.0.0 (DENX ELDK 4.1 4.0.0)) #39 Wed Oct 31 14:53:16 PDT 2007
memsize 0x2000000
bus freq 0x3ef1480
cpm freq 0x7de2900
brg freq 0xfbc520
vco 0xfbc5200
baudrate 0x2580
Zone PFN ranges:
  DMA             0 ->     8192
  Normal       8192 ->     8192
early_node_map[1] active PFN ranges
    0:        0 ->     8192
preempt_disable()
build_all_zonelists()
Built 1 zonelists.  Total pages: 8128
page_alloc_init()
Kernel command line: console=ttyCPM0,9600 root=/dev/ram
parse_early_param()
trap_init()
rcu_init()
init_IRQ()
pidhash_init()
PID hash table entries: 128 (order: 7, 512 bytes)
init_timers()
hrtimers_init()
softirq_init()
timekeeping_init()
cpm_uart: console: compat mode
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
cpuset_init_early()
mem_init()
Memory: 28816k available (1540k kernel code, 404k data, 96k init, 0k highmem)
kmem_cache_init()
calibrate_delay()
pidmap_init()
pgtable_cache_init()
Mount-cache hash table entries: 512
signals_init()
lock_kernel()
cpuset_init_smp()
populate_rootfs()
inflate complete
checking if image is initramfs...
inflate complete
it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 1624k freed
do_basic_setup()
init_workqueues()
usermodehelper_init()
driver_init()
sysctl_init()
do_initcalls()
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 256 (order: -2, 1024 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 1024 bind 512)
TCP reno registered
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: CPM driver $Revision: 0.02 $
cpm_uart: WARNING: no UART devices found on platform bus!
cpm_uart: the driver will guess configuration, but this mode is no longer supported.
ttyCPM0 at MMIO 0xf0011a20 (irq = 41) is a CPM UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
eth0: FCC ENET Version 0.3, 00:20:7b:80:45:04
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
prepare_namespace()
RAMDISK: Compressed image found at block 0
number blocks 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20071101/7813fd81/attachment.htm 


More information about the Linuxppc-embedded mailing list