This repository contains the source code for the ramdisk of abricot kernel.
ramdisk : This folder contains the ramdisk used to boot system. It is based on the stock ramdisk from Sony
abricot_ramdisk_recovery : This folder contains the actual ramdisk for the abricot kernel.
abricot_ramdisk_recovery/sbin/ramdisk.cpio.bz2 : This is the content of the folder ramdisk packed into cpio and bzip2
abricot_ramdisk_recovery/sbin/twrp.cpio.bz2 : The recovery from TWRP team packed into cpio and bzip2
abricot_ramdisk_recovery/sbin/init.sh : The init script to light up the leds and make boot decision
abricot_ramdisk_recovery/sbin/led.sh : A script to easily light up the leds or make them glow
pack_inner_ramdisk.sh : The script to pack the content of the folder ramdisk into cpio and bzip2. The packed file will be saved to abricot_ramdisk_recovery/sbin/ramdisk.cpio.bz2. The old ramdisk.cpio.bz2 will be backed up to ramdisk.cpio.bz2.bak
pack_ramdisk.sh : The script to pack the content of the folder abricot_ramdisk_recovery into cpio and gzip. The packed file will be saved to ramdisk.cpio.gz. This is the file that you will use in the kernel.
-
Run
./pack_inner_ramdisk.shThis will backup
abricot_ramdisk_recovery/sbin/ramdisk.cpio.bz2toramdisk.cpio.bz2.bak, pack the content oframdiskand save it toabricot_ramdisk_recovery/sbin/ramdisk.cpio.bz2. -
Then run
./pack_ramdisk.shThis will pack the content of
abricot_ramdisk_recoveryand save it toramdisk.cpio.gz. -
Use the file
ramdisk.cpio.gzinside your kernel.'