Hello everyone,
I want to compile a kernel for my Galaxy S2 and for CM13.0 that contains TWRP, a Marshmallow ramdisk and the features I added to it (by modifying the source code).
Does anyone know how to do that?
Greetings,
Oebbler
I - Put your boot.img on the root of galaxys2_kernel_repack
II - Open a terminal:
III - cd /galaxys2_kernel_repack
IV - ./unpack.sh boot.img
V - The ramdisk was extracted to ./initramfs_files folder
What this does:
I - There is a "master" file with the source to ramdisk files, it is "i9100.list"
II - The build script repacks the ramdisk files into a new .cpio file, so any change you make to the ramdisk files will be added to the new kernel
I - The recovery is extracted with the ramdisk, it is "recovery.cpio"
II - I'm not sure if you can just rename the official, prebuilt, TWRP to recovery.cpio and replace it, i'm almost sure it won't work
III - If you find a kernel with TWRP, you can unpack it using the tool i mentioned and replace your recovery.cpio file
IV - I think using IsoRec is better anyway
Hello everyone,
I want to compile a kernel for my Galaxy S2 and for CM13.0 that contains TWRP, a Marshmallow ramdisk and the features I added to it (by modifying the source code).
Does anyone know how to do that?
Greetings,
Oebbler
I - Put your boot.img on the root of galaxys2_kernel_repack
II - Open a terminal:
III - cd /galaxys2_kernel_repack
IV - ./unpack.sh boot.img
V - The ramdisk was extracted to ./initramfs_files folder
What this does:
I - There is a "master" file with the source to ramdisk files, it is "i9100.list"
II - The build script repacks the ramdisk files into a new .cpio file, so any change you make to the ramdisk files will be added to the new kernel
I - The recovery is extracted with the ramdisk, it is "recovery.cpio"
II - I'm not sure if you can just rename the official, prebuilt, TWRP to recovery.cpio and replace it, i'm almost sure it won't work
III - If you find a kernel with TWRP, you can unpack it using the tool i mentioned and replace your recovery.cpio file
IV - I think using IsoRec is better anyway