xiaolu/galaxys2_kernel_repack — comment on commit 2df9078b501fc3f68ed66182d322b4fde6066304
File:  line 0
By xiaolu:

Yes,initramfs allow "none compression" or "Gzip compression",kernel compression type can be customized,default is Gzip.

root@xiaolu-ubuntu:/home/xiaolu/ramfs/i9100# ./repack zImagexxkpa xxkpa.cpio new_zImage
[I] ---------------------------kernel repacker for i9100---------------------------
[I] Extracting gzip'd kernel from zImagexxkpa (start = 17972)
[I] Non-compressed CPIO image from kernel image (offset = 192788)
[I] CPIO image MAX size:2014720
[I] Head count:2207508
[I] Making head.img ( from 0 ~ 192788 )
[I] Making a tail.img ( from 2207508 ~ 9858276 )
[I] Current ramdsize using cat : 2422272 with required size : 2014720 bytes
[I] Current ramdsize using gzip -f9 : 1374307 with required size : 2014720 bytes
[I] gzip -f9 accepted!
[I] Merging [head+ramdisk] + padding + tail
[I] Now we are rebuilding the zImage
[I] Image ---> piggy.gzip
[I] piggy.gzip ---> piggy.gzip.o
[I] Compiling head.o
[I] Compiling misc.o
[I] Compiling decompress.o
[I] Compiling lib1funcs.o
[I] Create vmlinux.lds
[I] head.o + misc.o + piggy.gzip.o + decompress.o + lib1funcs.o---> vmlinux
[I] vmlinux ---> zImage
[I] Compiled new zImage size:5119280
[I] new_zImage has been created
[I] Cleaning up...
[I] finished...
root@xiaolu-ubuntu:/home/xiaolu/ramfs/i9100# ./repack zImagexxkpa xxkpa.cpio new_zImage lzo
[I] ---------------------------kernel repacker for i9100---------------------------
[I] Extracting gzip'd kernel from zImagexxkpa (start = 17972)
[I] Non-compressed CPIO image from kernel image (offset = 192788)
[I] CPIO image MAX size:2014720
[I] Head count:2207508
[I] Making head.img ( from 0 ~ 192788 )
[I] Making a tail.img ( from 2207508 ~ 9858276 )
[I] Current ramdsize using cat : 2422272 with required size : 2014720 bytes
[I] Current ramdsize using gzip -f9 : 1374307 with required size : 2014720 bytes
[I] gzip -f9 accepted!
[I] Merging [head+ramdisk] + padding + tail
[I] Now we are rebuilding the zImage
[I] Image ---> piggy.lzo
[I] piggy.lzo ---> piggy.lzo.o
[I] Compiling head.o
[I] Compiling misc.o
[I] Compiling decompress.o
[I] Compiling lib1funcs.o
[I] Create vmlinux.lds
[I] head.o + misc.o + piggy.lzo.o + decompress.o + lib1funcs.o---> vmlinux
[I] vmlinux ---> zImage
[I] Compiled new zImage size:5472444
[I] new_zImage has been created
[I] Cleaning up...
[I] finished...