0

I compiled this kernel for my OnePlus5T. After that, I packaged it with AnyKernel3 (I'm getting "Dumping/splitting image failed. Aborting...").

anykernel.sh

# AnyKernel3 Ramdisk Mod Script
# osm0sis @ xda-developers

## AnyKernel setup
# begin properties
properties() { '
kernel.string=ExampleKernel by osm0sis @ xda-developers
do.devicecheck=1
do.modules=0
do.systemless=1
do.cleanup=1
do.cleanuponabort=0
device.name1=dumpling
device.name2=
device.name3=
device.name4=
device.name5=
supported.versions=
supported.patchlevels=
'; } # end properties

# shell variables

# I have tried both "/boot" and "/system" for block
block=/dev/block/platform/soc/1da4000.ufshc/by-name/system;

is_slot_device=0;
ramdisk_compression=auto;


## AnyKernel methods (DO NOT CHANGE)
# import patching functions/variables - see for reference
. tools/ak3-core.sh;


## AnyKernel file attributes
# set permissions/ownership for included ramdisk files
set_perm_recursive 0 0 755 644 $ramdisk/*;
set_perm_recursive 0 0 750 750 $ramdisk/init* $ramdisk/sbin;


## AnyKernel install
dump_boot;

# begin ramdisk changes

# init.rc
backup_file init.rc;
replace_string init.rc "cpuctl cpu,timer_slack" "mount cgroup none /dev/cpuctl cpu" "mount cgroup none /dev/cpuctl cpu,timer_slack";

# init.tuna.rc
backup_file init.tuna.rc;
insert_line init.tuna.rc "nodiratime barrier=0" after "mount_all /fstab.tuna" "\tmount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/userdata /data remount nosuid nodev noatime nodiratime barrier=0";
append_file init.tuna.rc "bootscript" init.tuna;

# fstab.tuna
backup_file fstab.tuna;
patch_fstab fstab.tuna /system ext4 options "noatime,barrier=1" "noatime,nodiratime,barrier=0";
patch_fstab fstab.tuna /cache ext4 options "barrier=1" "barrier=0,nomblk_io_submit";
patch_fstab fstab.tuna /data ext4 options "data=ordered" "nomblk_io_submit,data=writeback";
append_file fstab.tuna "usbdisk" fstab;

# end ramdisk changes

write_boot;
## end install

/tmp/recovery.log

I:Switching packages (TWRP)
I:Set page: 'main'
I:Starting Adb Backup FIFO
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
I:TWFunc::Set_Brightness: Setting brightness control to 26
I:Set overlay: ''
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:operation_start: 'Flashing'
Installing zip file '/sdcard/kernel.zip'
Checking for Digest file...
Unmounting System...
I:Update binary zip
Verifying package compatibility...
Package doesn't contain compatibility.zip entry
I:Extracting updater binary 'META-INF/com/google/android/update-binary'
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment not used in updater.
 
Archive:  /sdcard/kernel.zip
  inflating: tools/ak3-core.sh
  inflating: Image
  inflating: Image.gz-dtb
  inflating: anykernel.sh
  inflating: META-INF/com/google/android/updater-script
  inflating: LICENSE
  inflating: META-INF/com/google/android/update-binary
  inflating: tools/busybox
  inflating: tools/magiskboot
  inflating: zip_up.sh
  inflating: tools/magiskpolicy
ExampleKernel by osm0sis @ xda-developers
 
AnyKernel3 by osm0sis @ xda-developers
 
 
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop20' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop19' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop18' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop17' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop16' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop15' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop14' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop13' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop12' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop11' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop10' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop9' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop8' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop7' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop6' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop5' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop4' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop3' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop2' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop1' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop0' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop0' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop1' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop2' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop3' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop4' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop5' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop6' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop7' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop8' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop9' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop10' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop11' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop12' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop13' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop14' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop15' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop16' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop17' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop18' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop19' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop20' - change
Checking device...
dumpling
 
Installing...
/dev/block/platform/soc/1da4000.ufshc/by-name/system
chown: /tmp/anykernel/ramdisk/*: No such file or directory
chown: /tmp/anykernel/ramdisk/*: No such file or directory
find: /tmp/anykernel/ramdisk/*: No such file or directory
find: /tmp/anykernel/ramdisk/*: No such file or directory
chown: /tmp/anykernel/ramdisk/init*: No such file or directory
chown: /tmp/anykernel/ramdisk/init*: No such file or directory
find: /tmp/anykernel/ramdisk/init*: No such file or directory
find: /tmp/anykernel/ramdisk/init*: No such file or directory
chown: /tmp/anykernel/ramdisk/sbin: No such file or directory
chown: /tmp/anykernel/ramdisk/sbin: No such file or directory
find: /tmp/anykernel/ramdisk/sbin: No such file or directory
find: /tmp/anykernel/ramdisk/sbin: No such file or directory
3072+0 records in
3072+0 records out
3221225472 bytes (3.0GB) copied, 7.510331 seconds, 409.0MB/s
Parsing boot image: [/tmp/anykernel/boot.img]
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 26
 
Dumping/splitting image failed. Aborting...
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop20' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop19' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop18' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop17' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop16' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop15' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop14' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop13' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop12' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop11' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop10' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop9' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop8' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop7' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop6' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop5' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop4' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop3' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop2' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop1' - change
I:Found no matching fstab entry for uevent device '/devices/virtual/block/loop0' - change
Updater process ended with ERROR: 1
I:Install took 185 second(s).
Error installing zip file '/sdcard/kernel.zip'
Updating partition details...
I:Data backup size is 2183MB, free: 51269MB.
I:Unable to mount '/usbstorage'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=1
  • TWRP-Version: 3.4.0-0 (No I didn't try any other version, because the pre-build ROM worked -> I assume I made a mistake).

Further notes: First time building / flashing a kernel, actually, first time I do anything this low level so you might need to explain a bit more thorough than normal.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.