Bug 50211

Summary: Input was encoded with settings that are not supported by this XZ decoder
Product: Other Reporter: xiaojin (328338407)
Component: OtherAssignee: other_other
Status: RESOLVED INVALID    
Severity: high CC: alan
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.4.0 Subsystem:
Regression: No Bisected commit-id:

Description xiaojin 2012-11-07 09:29:28 UTC
kernel 3.4.0,and 
[*] Initial RAM filesystem and RAM disk (initramfs/initrd) support  
[*]   Support initial ramdisks compressed using XZ 

 <*>   RAM block device support 
(4)     Default number of RAM disks   
 (8192)  Default RAM disk size (kbytes)    


# cd rootfs
# find .| cpio -o -H newc > ../a.cpio

root [ xz-5.0.0 ]# src/xz/xz  -V
xz (XZ Utils) 5.0.0
liblzma 5.0.0

root [ xz-5.0.0 ]# src/xz/xz  /tmp/a.cpio 

my grub.conf 
----------------------------
timeout 1
default 1

title rootfs-2.07
   root (hd0,1)
   kernel /boot/3.4.0 console=tty0 
   initrd /boot/a.cpio.xz


KERNEL boot info 
---------------------------

.....

L2TP core driver, V2.0
L2TP IP encapsulation support (L2TPv3)
L2TP netlink interface
L2TP ethernet pseudowire support (L2TPv3)
8021q: 802.1Q VLAN Support v1.8
Using IPI No-Shortcut mode
rtc_cmos 00:03: setting system clock to 2012-11-07 17:03:22 UTC (1352307802)
RAMDISK: xz image found at block 0
Input was encoded with settings that are not supported by this XZ decoder
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Comment 1 Alan 2012-11-07 17:12:35 UTC
Your xz encoder must be told to generate crc32 (xz --check=crc32) as embedded XZ does not support sha256/crc64
Comment 2 xiaojin 2012-11-08 01:20:37 UTC
thanks!