[BOOT IMAGE][GT-P31XX] KK-Boot - Custom boot image for stock 4.1.1/4.1.2 ROM

Status
Not open for further replies.
Search This thread

ketut.kumajaya

Recognized Developer
Apr 28, 2011
4,935
14,138
Bekasi
ROOTING, TWEAKING, NEW GPU DRIVER, CPU AND/OR GPU OVERCLOCK​

  • Using CyanogenMod kernel source from https://github.com/kumajaya/android_kernel_samsung_espresso10/tree/cm-10.1-blackhawk for both P31xx and P51xx target, from codeworkx and heavily modified by me
  • CPU clock: 300MHz, 600MHz, 800MHz, 1.008GHz, 1.2GHz, 1.35GHz, 1.42GHz, 1.48GHz, and 1.52GHz, locked @ 1.008GHz on boot, thanks to cmenard
  • CPU voltage control, thanks to cmenard. You can use Android Tuner or System Tuner to set CPU voltage
  • GPU clock: 153.6MHz, 307.2MHz, 384MHz, and 512MHz, 384MHz as the default maximum clock, thanks cmenard
  • The ramdisk base on JB 4.1.2 ramdisk, thanks to Google and Samsung
  • Using newer PowerVR SGX 540 kernel modules and binaries blob build 1.9@2166536, thanks to omapzoom.org
  • row (thanks to gokhanmoral), sio, and vr scheduler support
  • Governor bug fix, replace Samsung's interactive governor with default OMAP4 3.0.31 interactive governor from omapzoom.org, pegasusq and lulzactive governor from gokhanmoral
  • ntfs read-only (not loaded by default), exFAT, NFS (not loaded by default) and CIFS/samba (loaded by default) filesystem support
  • LZO compressed kernel and initrd, bigger but faster
  • swap support
  • kernel config, insmod configs.ko and then you can access /proc/config.gz
  • external modem support, for PPP Widget (not loaded by default, P31xx need powered USB hub for external modem)
  • Some tweaks from gokhanmoral's siyahkernel for S3
  • Remove a lot of debug message from touchscreen driver, display, mmc, modem, etc
  • linaro arm-linux-gnueabihf- cross compiler
  • SuperSU v1.25 by Chainfire
  • No-frills CPU Control v1.26 by hrk
  • BusyBox v1.20.2-cm9 bionic (2012-07-14 01:52 +0200) in /sbin, will overwrite busybox in /system/bin or /system/xbin and save it as busybox.backup
  • nano and bash from CyanogenMod 9, sysrw and sysro from dsixda Android Kitchen
  • Early boot scripts support (/system/etc/init.d, /data/local/userinit.sh, and /data/local/userinit.d)
  • Post boot script support (/system/etc/init.post_boot.sh), use it to swap between external SD card and internal media
  • Custom boot animation support (/data/local/bootanimation.zip or /system/media/bootanimation.zip if exists, Samsung boot animation as a fallback). If a bootanimation.zip found, the boot sound will be turned off as well as the shutdown animation.
  • Modified mount options
  • adb mode in charge state, thanks to codeworkx
  • adb insecure
  • Advanced TCP congestion support, westwood as the default congestion (recommended by someone but I forgot)
  • No /system/etc/hosts patch, you can install one of ads blocker form Google Play (i.e. AdAway)

KNOWN BUGS/UNSUPPORTED FEATURES:
  • Youtube HD bug WiFi driver update fix this issue, thank to paraiso-san since this solution is achieved because his cooperation and "pressure" as well
  • Using this boot image, you will lose exFAT filesystem kernel support
  • In certain situations (MTP transfers, wireless transfers), CPU frequency sometimes exceeds maximum frequency setting Finally, I managed to fix it :victory:

INSTALL:
There are 2 choices of installation: without overclock (*core* filename) and overclock version (*addon-oc* filename). All *addon* require the *core* package, otherwise your device will be soft brick because the graphics subsystem will fail to start. Confused? Do not download any package! Flash this using the latest CWM recovery at your own risk.

For GPU overclock, change:
Code:
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc
to:
Code:
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc
in /system/etc/init.d/00boot or run above command on "Terminal Emulator" or "adb shell" as root every boot

To set your external SD card as internal SD card, over "adb shell" or Terminal Emulator:
Code:
su
setprop persist.customboot.sdcard external
and then reboot your device.

To restore SD card default mount point:
Code:
su
setprop persist.customboot.sdcard internal
and then reboot your device.
BIG FAT WARNING: If you set your external SD card as internal media, always turn off your device first before ejecting your card!

To set your preload partition as swap partition, over "adb shell" or Terminal Emulator:
Code:
su
setprop persist.customboot.swap true
and then reboot your device.

To disable preload partition as swap partition:
Code:
su
setprop persist.customboot.swap false
and then reboot your device.

This kernel has driver and filesystem modules are not enabled by default, edit /system/etc/init.d/01modules to enable NFS filesystem, NTFS filesystem (read-only), and USB GSM & CDMA modem driver for PPP Widget or to change TCP congestion

DOWNLOAD:
kkboot-0.6.0-core-p31xx.zip (10.4 MB)
kkboot-0.6.0-addon-oc-p31xx.zip (5.3 MB)
kkboot-0.6.0-addon-exfat-p31xx.zip (5.7 MB)
kkboot-0.6.0-addon-oc-exfat-p31xx.zip (5.7 MB)

CREDITS:
Linux, Google, Samsung, Texas Instruments/omapzoom.org, CyanogenMod developers, Chainfire, dsixda, cmenard, gokhanmoral, hrk, imoseyon, coolbho3k, Faux123
 
Last edited:

ketut.kumajaya

Recognized Developer
Apr 28, 2011
4,935
14,138
Bekasi
Discontinued, for historical purpose only!
---------- KK-Boot for stock 4.0.4 ROM ----------

ROOTING, TWEAKING, and GPU BOOSTER​

CONFIRMATION NEEDED:
Is external as internal sdcard solution break MTP support? My Ubuntu 12.04 MTP support is broken and still have no time to solve this problem

  • Base on P3100XXBLE3_P3100OLBBLE2_XSE boot image, stock kernel 3.0.8-583493-user including kernel modules ("stock-espresso" version)
  • Base on codeworkx's CyanogenMod samsung_espresso10 kernel source ("cw-espresso" and "cw-maguro" version)
  • Using stock 4.0.4 GPU binaries, build 1.8@785978 ("stock-espresso" and "cw-espresso" version)
  • Using Galaxy Nexus 4.0.4 GPU binaries, build 1.8@785978 ("cw-maguro" version)
  • SuperSU v0.96 by Chainfire
  • BusyBox v1.20.2-cm9 bionic (2012-07-14 01:52 +0200) in /sbin, will overwrite busybox in /system/bin or /system/xbin and save it as busybox.backup
  • Scripts support (busybox run-parts /system/etc/init.d, /system/bin/customboot.sh, /system/xbin/customboot.sh and /data/local/customboot.sh)
  • Post boot script support using /system/etc/init.post_boot.sh
  • Custom boot animation (/data/local/bootanimation.bin, /data/local/bootanimation.zip, /system/media/bootanimation.zip, or /system/bin/samsungani). Galaxy Nexus 4.0.4 factory images boot animation included in /data/local
  • Enable/disable boot sound
  • Enable/disable external sdcard as internal sdcard. /data/media mounted to /mnt/media using a modified sdcard binary
  • /sbin/propset and /sbin/propget scripts as a simple persistent property writer and reader
  • /system/lib/modules/cifs.ko kernel module for samba share support (all version, including dns_resolver.ko and md4.ko for "stock-espresso")
  • /system/lib/libion.so and /system/lib/libtiutils.so taken from stock 4.0.3 GT-P3100 firmware to enable hardware accelleration video ("cw-espresso" and "cw-maguro")
  • Remount all ext4 partition (except /efs) with noauto_da_alloc,barrier=1,noatime,nodiratime options (new in KK-Boot 0.2)
  • adb insecure
  • No /system/etc/hosts patch, you can install one of ads blocker form Play.

TIP:
SuperSU have a strange force close issue in 4.0.4, disable notification in SuperSU settings resolve the problems!

DOWNLOAD:
  1. Stock 4.0.4 kernel and stock 4.0.4 GPU binaries: kkboot-0.2-stock-espresso-p3100.zip
  2. Samsung epresso10 kernel source from codeworkx, GPU and video driver revert back to Samsung GT-P3100 kernel source and stock 4.0.4 GPU binaries: kkboot-0.2-cw-espresso-p3100.zip
  3. Samsung espresso10 kernel source from codeworkx, GPU driver and video revert back to epresso10 ics branch and Galaxy Nexus ("maguro") GPU binaries: kkboot-0.2-cw-maguro-p3100.zip = 3D performance booster without overclocking!
  4. Samsung espresso10 kernel source from codeworkx, Galaxy Nexus ("maguro") 4.1.1 GPU binaries: kkboot-0.2-cw-maguro_jb-p3100.zip = 3D performance booster without overclocking! 2D transition feel slower than "cw-maguro" (confirmation needed)
  5. KK-Boot update, "cw-maguro" for now: kkboot-0.3-cw-maguro-p3100.zip

CREDITS:
Google, Samsung, codeworkx, Chainfire
A modified Google Gears Boot Animation from ZeroXtreme, attached here as bootanimation.zip

To disable boot sound:
Code:
# propset customboot.bootsnd disabled
# reboot

To enable boot sound:
Code:
# propset customboot.bootsnd enabled
# reboot

Link /mnt/sdcard to /mnt/extSdCard:
Code:
# propset customboot.sdcard external
# reboot

Link /mnt/sdcard to /mnt/media (/data/media):
Code:
# propset customboot.sdcard internal
# reboot

Flash this using CWM recovery at your own risk!
 
Last edited:

ketut.kumajaya

Recognized Developer
Apr 28, 2011
4,935
14,138
Bekasi
How to modify Google Gears Boot Animation from ZeroXtreme for KK-Boot:

Edit desc.txt to:
Code:
600 600 60
p 0 0 part2

Resize to 600x600 and rotate -90 degrees, have to manually rename part2/*.jpg before zip:
Code:
$ convert -resize '600x600^' -gravity center -crop 600x600+0+0 +repage -rotate -90 part0/anim*.png part2/anim.jpg
$ rm bootanimation.zip
$ zip -0 -r bootanimation.zip desc.txt part2
$ adb push bootanimation.zip /data/local/
 
Last edited:

CXENTE

Senior Member
Oct 1, 2011
581
92
HOUSTON
Nice!!! I'll give it a try :) ,,,, does it automatically mounts ,the ext SD card, as main sdcard? Thanks

Sent from my GT-P3100 using xda app-developers app
 

CXENTE

Senior Member
Oct 1, 2011
581
92
HOUSTON
No I haven't,,, I don't even know, which ROM , to be on..

Sent from my GT-P3100 using xda app-developers app
 

ketut.kumajaya

Recognized Developer
Apr 28, 2011
4,935
14,138
Bekasi
Nice!!! I'll give it a try :) ,,,, does it automatically mounts ,the ext SD card, as main sdcard? Thanks

Sent from my GT-P3100 using xda app-developers app

Yes, propset settings persistent. Internal sdcard mounted on /mnt/media, /mnt/sdcard linked to /mnt/media or /mnt/extSdCard on boot depend on customboot.sdcard value.
 
Last edited:

CXENTE

Senior Member
Oct 1, 2011
581
92
HOUSTON
OK,, I'm going too try it ,,. :cool: report back...


Flash it.. sdcard still they same.. is there a script, or something? Thats suppose too be ran?

Sent from my GT-P3100 using xda app-developers app
 
Last edited:

Nicene Nerd

Senior Member
Mar 7, 2012
274
184
Graceville
www.thenicenenerd.com
This is off-topic, but can you help me out? I'm trying to unpack the CM10 boot image, but the only instructions I can find are here. When I do these, I get the following error upon running "perl unpack-bootimg.pl boot.img":
Code:
cpio: default.prop: Function not implemented

gunzip: ../boot.img-ramdisk.cpio.gz: invalid compressed data--format violated
cpio: premature end of file
 

ketut.kumajaya

Recognized Developer
Apr 28, 2011
4,935
14,138
Bekasi
It seems KK-Boot need a new cool boot animation, any ideas? Now I have 2 version of KK-Boot, one with improved 3D performance. The kernel base on codeworkx's code, tuna pvr driver, and maguro (Galaxy Nexus) blob. Hardware acceleration video works!

attachment.php


attachment.php


attachment.php
 

Attachments

  • Screenshot_2012-08-31-19-12-57-264425147.jpg
    Screenshot_2012-08-31-19-12-57-264425147.jpg
    25.2 KB · Views: 2,986
  • Screenshot_2012-08-31-19-31-06743861816.jpg
    Screenshot_2012-08-31-19-31-06743861816.jpg
    27.9 KB · Views: 2,926
  • Screenshot_2012-08-31-19-33-23221922163.jpg
    Screenshot_2012-08-31-19-33-23221922163.jpg
    18.4 KB · Views: 2,923
Last edited:
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 63
    ROOTING, TWEAKING, NEW GPU DRIVER, CPU AND/OR GPU OVERCLOCK​

    • Using CyanogenMod kernel source from https://github.com/kumajaya/android_kernel_samsung_espresso10/tree/cm-10.1-blackhawk for both P31xx and P51xx target, from codeworkx and heavily modified by me
    • CPU clock: 300MHz, 600MHz, 800MHz, 1.008GHz, 1.2GHz, 1.35GHz, 1.42GHz, 1.48GHz, and 1.52GHz, locked @ 1.008GHz on boot, thanks to cmenard
    • CPU voltage control, thanks to cmenard. You can use Android Tuner or System Tuner to set CPU voltage
    • GPU clock: 153.6MHz, 307.2MHz, 384MHz, and 512MHz, 384MHz as the default maximum clock, thanks cmenard
    • The ramdisk base on JB 4.1.2 ramdisk, thanks to Google and Samsung
    • Using newer PowerVR SGX 540 kernel modules and binaries blob build 1.9@2166536, thanks to omapzoom.org
    • row (thanks to gokhanmoral), sio, and vr scheduler support
    • Governor bug fix, replace Samsung's interactive governor with default OMAP4 3.0.31 interactive governor from omapzoom.org, pegasusq and lulzactive governor from gokhanmoral
    • ntfs read-only (not loaded by default), exFAT, NFS (not loaded by default) and CIFS/samba (loaded by default) filesystem support
    • LZO compressed kernel and initrd, bigger but faster
    • swap support
    • kernel config, insmod configs.ko and then you can access /proc/config.gz
    • external modem support, for PPP Widget (not loaded by default, P31xx need powered USB hub for external modem)
    • Some tweaks from gokhanmoral's siyahkernel for S3
    • Remove a lot of debug message from touchscreen driver, display, mmc, modem, etc
    • linaro arm-linux-gnueabihf- cross compiler
    • SuperSU v1.25 by Chainfire
    • No-frills CPU Control v1.26 by hrk
    • BusyBox v1.20.2-cm9 bionic (2012-07-14 01:52 +0200) in /sbin, will overwrite busybox in /system/bin or /system/xbin and save it as busybox.backup
    • nano and bash from CyanogenMod 9, sysrw and sysro from dsixda Android Kitchen
    • Early boot scripts support (/system/etc/init.d, /data/local/userinit.sh, and /data/local/userinit.d)
    • Post boot script support (/system/etc/init.post_boot.sh), use it to swap between external SD card and internal media
    • Custom boot animation support (/data/local/bootanimation.zip or /system/media/bootanimation.zip if exists, Samsung boot animation as a fallback). If a bootanimation.zip found, the boot sound will be turned off as well as the shutdown animation.
    • Modified mount options
    • adb mode in charge state, thanks to codeworkx
    • adb insecure
    • Advanced TCP congestion support, westwood as the default congestion (recommended by someone but I forgot)
    • No /system/etc/hosts patch, you can install one of ads blocker form Google Play (i.e. AdAway)

    KNOWN BUGS/UNSUPPORTED FEATURES:
    • Youtube HD bug WiFi driver update fix this issue, thank to paraiso-san since this solution is achieved because his cooperation and "pressure" as well
    • Using this boot image, you will lose exFAT filesystem kernel support
    • In certain situations (MTP transfers, wireless transfers), CPU frequency sometimes exceeds maximum frequency setting Finally, I managed to fix it :victory:

    INSTALL:
    There are 2 choices of installation: without overclock (*core* filename) and overclock version (*addon-oc* filename). All *addon* require the *core* package, otherwise your device will be soft brick because the graphics subsystem will fail to start. Confused? Do not download any package! Flash this using the latest CWM recovery at your own risk.

    For GPU overclock, change:
    Code:
    echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc
    to:
    Code:
    echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc
    in /system/etc/init.d/00boot or run above command on "Terminal Emulator" or "adb shell" as root every boot

    To set your external SD card as internal SD card, over "adb shell" or Terminal Emulator:
    Code:
    su
    setprop persist.customboot.sdcard external
    and then reboot your device.

    To restore SD card default mount point:
    Code:
    su
    setprop persist.customboot.sdcard internal
    and then reboot your device.
    BIG FAT WARNING: If you set your external SD card as internal media, always turn off your device first before ejecting your card!

    To set your preload partition as swap partition, over "adb shell" or Terminal Emulator:
    Code:
    su
    setprop persist.customboot.swap true
    and then reboot your device.

    To disable preload partition as swap partition:
    Code:
    su
    setprop persist.customboot.swap false
    and then reboot your device.

    This kernel has driver and filesystem modules are not enabled by default, edit /system/etc/init.d/01modules to enable NFS filesystem, NTFS filesystem (read-only), and USB GSM & CDMA modem driver for PPP Widget or to change TCP congestion

    DOWNLOAD:
    kkboot-0.6.0-core-p31xx.zip (10.4 MB)
    kkboot-0.6.0-addon-oc-p31xx.zip (5.3 MB)
    kkboot-0.6.0-addon-exfat-p31xx.zip (5.7 MB)
    kkboot-0.6.0-addon-oc-exfat-p31xx.zip (5.7 MB)

    CREDITS:
    Linux, Google, Samsung, Texas Instruments/omapzoom.org, CyanogenMod developers, Chainfire, dsixda, cmenard, gokhanmoral, hrk, imoseyon, coolbho3k, Faux123
    13
    This is bug fix for 0.5.4:
    kkboot-0.5.5-core-p31xx.zip (~10.4 MB)
    kkboot-0.5.5-addon-oc-p31xx.zip (~5.3 MB)
    kkboot-0.5.5-addon-nooc-exfat-p31xx.zip (~5.7 MB)
    kkboot-0.5.5-addon-oc-exfat-p31xx.zip (~5.7 MB)

    kkboot-0.5.5-addon-experimental-p31xx.zip (~5.3 MB) --> this is addon-oc (without exFAT support) but CPU voltage is lowered slightly

    You also have to thank to paraiso-san since this solution is achieved because his cooperation and "pressure" as well :good:

    If you out of thanks for today, download this kernel tomorrow.
    12
    0.5.5 contain Youtube HD bugfix

    kkboot-0.5.4-core-p31xx.zip (~10.4 MB) --> Install this first!
    kkboot-0.5.4-addon-oc-p31xx.zip (~5.3 MB) --> Have overclock support, no exFAT filesystem support
    kkboot-0.5.4-addon-nooc-exfat-p31xx.zip (~5.7 MB) --> Have exFAT, no overclock support
    kkboot-0.5.4-addon-oc-exfat-p31xx.zip (~5.7 MB) --> Have exFAT and overclock support

    We can use preload partition /dev/block/mmcblk0p11 as swap partition. This partition contains preload applications, pictures, musics, and video. To prepare preload partition as swap partition, type "mkswap /dev/block/mmcblk0p11" (without quote) over "adb shell" or Terminal Emulator. This command will format /dev/block/mmcblk0p11 as swap filesystem, erase whole /dev/block/mmcblk0p11 contents! To enable /dev/block/mmcblk0p11 as swap, type "setprop persist.customboot.swap=true" (without quote) over "adb shell" or Terminal Emulator.

    This kernel now has alternatives TCP congestion beside cubic and reno. For example, to enable TCP westwood, edit /system/etc/init.d/01modules:
    Code:
    insmod /system/lib/modules/tcp_westwood.ko
    busybox sysctl -w net.ipv4.tcp_congestion_control=westwood

    This kernel has driver and filesystem modules are not enabled by default, edit /system/etc/init.d/01modules to enable NFS filesystem, NTFS filesystem (read-only), and USB GSM & CDMA modem driver for PPP Widget.

    This kernel now compiled using Linaro Toolchain HF 2012.12 and the most recent and more advanced Galaxy Tab 2 kernel source.
    11
    0.5.3 test release:
    Core: kkboot-0.5.3-core-p31xx.zip - ~11 MB
    Overclock addon: kkboot-0.5.3-addon-oc-p31xx.zip - ~6 MB
    No overclock and without exFAT support:kkboot-0.5.3-addon-nooc-noexfat-p31xx.zip - ~6 MB
    Overclock and without exFAT support:kkboot-0.5.3-addon-oc-noexfat-p31xx.zip - ~6 MB

    As usual install the core first, then you can choose/switch to any addon.

    Android logger disabled by default, to enable it:
    Code:
    # setprop persist.customboot.logger true
    Reboot.
    11
    First post updated, 0.6.0 release! If everything goes well, this might be a milestone release.