Skip to contentSkip to conversation

Error: jffs2_decompress returned -5

DISCUSSION Brian T 3 participants 4 messages Aug 27, 2004 – Aug 29, 2004 Memory technology devices (MTD)

lore
Share & tools
lore

Brian T

author
#0 lore raw

So,

After patching 2.4.27 with the snapshot from today, and adding "__ffs" to compatmac.h , everything compiles, but then when reading my jffs2 file system I get this :

SnapGear Intel: Found 1 x16 devices at 0x0 in 8-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
SnapGear Intel: Found 1 x16 devices at 0x0 in 8-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
SNAPGEAR: Intel flash device size = 16384K
Creating 6 MTD partitions on "SnapGear Intel":
0x00000000-0x000e0000 : "JBM kernel"
0x00100000-0x00fe0000 : "JBM filesystem"
0x000e0000-0x00100000 : "JBM config"
0x00000000-0x01000000 : "JBM Intel"
0x00fe0000-0x01000000 : "JBM BIOS Config" 0x00fe0000-0x01000000 : "JBM BIOS"
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
Linux IP multicast router 0.06 plus PIM-SM
ip_conntrack version 2.1 (512 buckets, 4096 max) - 288 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
arp_tables: (C) 2002 David S. Miller
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
NET4: Linux IPX 0.47 for NET4.0
IPX Portions Copyright (c) 1995 Caldera, Inc.
IPX Portions Copyright (c) 2000, 2001 Conectiva, Inc.
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing unused kernel memory: 68k freed
JFFS2 compression type 0x06 not available.
Error: jffs2_decompress returned -5
JFFS2 compression type 0x06 not available.
Error: jffs2_decompress returned -5

Kernel panic: No init found.  Try passing init= option to kernel.

I haven't seen those errors before. Anyone care to point me in the right
direction?

Thanks,

-Brian

#1 lore raw
Quoted 14 lines · Brian T

So,

After patching 2.4.27 with the snapshot from today, and adding "__ffs" to compatmac.h , everything compiles, but then when reading my jffs2 file system I get this :

Freeing unused kernel memory: 68k freed
JFFS2 compression type 0x06 not available.
Error: jffs2_decompress returned -5
JFFS2 compression type 0x06 not available.
Error: jffs2_decompress returned -5

Kernel panic: No init found.  Try passing init= option to kernel.
Quoted 6 lines

I haven't seen those errors before. Anyone care to point me in the right
direction?

Thanks,

-Brian

I think you specified a compression type when building the image with mkfs.jffs2, which isn't selected in the kernel config. But I can't tell you which type 0x06 is.

regards,
dominik

#2 lore raw
Quoted 6 lines · Dominik Karall
Quoted 4 lines · Brian T

After patching 2.4.27 with the snapshot from today, and adding "__ffs" to compatmac.h , everything compiles, but then when reading my jffs2 file system I get this :

Quoted 8 lines
Quoted 6 lines

Freeing unused kernel memory: 68k freed
JFFS2 compression type 0x06 not available.
Error: jffs2_decompress returned -5
JFFS2 compression type 0x06 not available.
Error: jffs2_decompress returned -5

Kernel panic: No init found.  Try passing init= option to kernel.

I think you specified a compression type when building the image with mkfs.jffs2, which isn't selected in the kernel config. But I can't tell you which type 0x06 is.

0x06 means ZLIB. (you can check it in jffs2.h)

Is there CONFIG_JFFS2_ZLIB in your kernel config?

Regards,
Ferenc

author
#3 lore raw
Quoted 6 lines

0x06 means ZLIB. (you can check it in jffs2.h)

Is there CONFIG_JFFS2_ZLIB in your kernel config?

Ah no, that's not set. I'll check turn that on and try again Monday.

-Brian