Skip to content

Commit a4814e7

Browse files
committed
Modify image to use 4 cores
1 parent 28a8b7d commit a4814e7

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# 4Core-Android-O-5X
1+
# 4Core-Android-O-5X
2+
I extracted the stock boot.img with @osm0sis' AIK linux kitchen, added the 4 core tweaks, and repacked it.
3+
The 2 folders are the output of extracting the boot.img.

ramdisk/fstab.bullhead

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# The filesystem that contains the filesystem checker binary (typically /system) cannot
44
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
55

6-
/dev/block/platform/soc.0/f9824900.sdhci/by-name/system /system ext4 ro,barrier=1,inode_readahead_blks=8 wait,verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata
7-
/dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor /vendor ext4 ro,barrier=1,inode_readahead_blks=8 wait,verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata
8-
/dev/block/platform/soc.0/f9824900.sdhci/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic,inode_readahead_blks=8 wait,check,forcefdeorfbe=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata
6+
/dev/block/platform/soc.0/f9824900.sdhci/by-name/system /system ext4 ro,barrier=1,inode_readahead_blks=8 wait
7+
/dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor /vendor ext4 ro,barrier=1,inode_readahead_blks=8 wait
8+
/dev/block/platform/soc.0/f9824900.sdhci/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic,inode_readahead_blks=8 wait,check
99
/dev/block/platform/soc.0/f9824900.sdhci/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check
1010
/dev/block/platform/soc.0/f9824900.sdhci/by-name/persist /persist ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nodelalloc,nomblk_io_submit,errors=panic wait,notrim
1111
/dev/block/platform/soc.0/f9824900.sdhci/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait

ramdisk/init.bullhead.rc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ on boot
108108
# update foreground cpuset now that processors are up
109109
# foreground gets all CPUs except CPU 3
110110
# CPU 3 is reserved for the top app
111-
write /dev/cpuset/foreground/cpus 0-2,4-5
112-
write /dev/cpuset/foreground/boost/cpus 4-5
113-
write /dev/cpuset/background/cpus 0
114-
write /dev/cpuset/system-background/cpus 0-2
115-
write /dev/cpuset/top-app/cpus 0-5
111+
write /dev/cpuset/foreground/cpus 0-3
112+
write /dev/cpuset/foreground/boost/cpus 0-3
113+
write /dev/cpuset/background/cpus 3
114+
write /dev/cpuset/system-background/cpus 2-3
115+
write /dev/cpuset/top-app/cpus 0-3
116116

117117
# Bluetooth
118118
chown bluetooth net_bt /sys/class/rfkill/rfkill0/type

split_img/boot.img-cmdline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
console=ttyHSL0,115200,n8 androidboot.hardware=bullhead boot_cpus=0-5 lpm_levels.sleep_disabled=1 msm_poweroff.download_mode=0 loop.max_part=7 buildvariant=user
1+
console=ttyHSL0,115200,n8 androidboot.hardware=bullhead boot_cpus=0-3 maxcpus=4 lpm_levels.sleep_disabled=1 msm_poweroff.download_mode=0 loop.max_part=7 buildvariant=user

0 commit comments

Comments
 (0)