From b15f5b53ef4b876e72e71c3b3f0925facb8664a0 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Mon, 14 Nov 2016 04:16:33 -0400 Subject: README: a couple more markdown fixups --- README.md | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 7443290..cc34a8b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ AnyKernel2 pushes the format even further by allowing kernel developers to modif A working script based on DirtyV Kernel for Galaxy Nexus (tuna) is included for reference. ## // Properties / Variables ## -```bash +``` kernel.string=KernelName by YourName @ xda-developers do.devicecheck=1 do.initd=1 @@ -20,19 +20,18 @@ device.name1=maguro device.name2=toro device.name3=toroplus block=/dev/block/platform/omap/omap_hsmmc.0/by-name/boot; +``` -do.devicecheck=1 specified requires at least device.name1 to be present. This should match ro.product.device or ro.build.product for your device. There is support for up to 5 device.name# properties. +__do.devicecheck=1__ specified requires at least device.name1 to be present. This should match ro.product.device or ro.build.product for your device. There is support for up to 5 device.name# properties. -do.initd=1 will create the init.d directory in /system/etc/init.d/ and apply 755 permissions. +__do.initd=1__ will create the init.d directory in /system/etc/init.d/ and apply 755 permissions. -do.modules=1 will push the contents of the module directory to /system/lib/modules/ and apply 644 permissions. +__do.modules=1__ will push the contents of the module directory to /system/lib/modules/ and apply 644 permissions. -do.cleanup=0 will keep the zip from removing it's working directory in /tmp/anykernel - this can be useful if trying to debug in adb shell whether the patches worked correctly. -``` +__do.cleanup=0__ will keep the zip from removing it's working directory in /tmp/anykernel - this can be useful if trying to debug in adb shell whether the patches worked correctly. ## // Command Methods ## - -```bash +``` dump_boot backup_file replace_string @@ -49,27 +48,27 @@ patch_fstab " to write messages back to the recovery during the modification process, and contains "" "" to simplify string testing logic you might want in your script. +You may also use _ui_print "\"_ to write messages back to the recovery during the modification process, and _contains "\" "\"_ to simplify string testing logic you might want in your script. ## // Instructions ## -1- Place zImage in the root (dtb should also go here for devices that require a custom one, both will fallback to the original if not included) +1. Place zImage in the root (dtb should also go here for devices that require a custom one, both will fallback to the original if not included) -2- Place any required ramdisk files in /ramdisk +2. Place any required ramdisk files in /ramdisk -3- Place any required patch files (generally partial files which go with commands) in /patch +3. Place any required patch files (generally partial files which go with commands) in /patch -4- Modify the anykernel.sh to add your kernel's name, boot partition location, permissions for included ramdisk files, and use methods for any required ramdisk modifications +4. Modify the anykernel.sh to add your kernel's name, boot partition location, permissions for included ramdisk files, and use methods for any required ramdisk modifications -5- zip -r9 UPDATE-AnyKernel2.zip * -x README UPDATE-AnyKernel2.zip +5. zip -r9 UPDATE-AnyKernel2.zip * -x README UPDATE-AnyKernel2.zip If supporting a recovery that forces zip signature verification (like Cyanogen Recovery) then you will need to also sign your zip using the method I describe here: -- cgit v1.2.3