Skip to content

Commit

Permalink
Many fixing for new MALI Kernel and for ICS/JB
Browse files Browse the repository at this point in the history
Updated /firmware/mfc_fw.bin from CM10
Updated all new INIT config from CM10 to JB folder
Added new init-jb for MALI jb kernel. we cant load image with new MALI.
choose_rom binary fail to load, and boot stuck without /system and the rest.
i have found warnings that we mounting unchekd partitions, so i have restored
small check before mount.
  • Loading branch information
dorimanx committed Oct 8, 2012
1 parent ce08dd2 commit 5f1b0b4
Show file tree
Hide file tree
Showing 16 changed files with 356 additions and 21 deletions.
2 changes: 1 addition & 1 deletion init.rc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ on fs
exec sformat /dev/block/mmcblk0p11 vfat exec sformat /dev/block/mmcblk0p11 vfat


on post-fs on post-fs
# exec sfsck /res/dev/data ext4 exec sfsck /res/dev/data ext4
mount ext4 /res/dev/data /data nosuid nodev noatime wait noauto_da_alloc mount ext4 /res/dev/data /data nosuid nodev noatime wait noauto_da_alloc


# once everything is setup, no need to modify / # once everything is setup, no need to modify /
Expand Down
4 changes: 2 additions & 2 deletions init.rc.2
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ on fs
# make sure sdcard is mounted because we may have our data and cache partitions on it # make sure sdcard is mounted because we may have our data and cache partitions on it
mount vfat /dev/block/mmcblk0p11 /mnt/.secondrom wait utf8 mount vfat /dev/block/mmcblk0p11 /mnt/.secondrom wait utf8


# exec sfsck /res/dev/cache ext4 exec sfsck /res/dev/cache ext4
mount ext4 loop@/res/dev/cache /cache nosuid nodev noatime wait nodelalloc mount ext4 loop@/res/dev/cache /cache nosuid nodev noatime wait nodelalloc


mkdir /efs mkdir /efs
Expand All @@ -142,7 +142,7 @@ on fs
exec sformat /dev/block/mmcblk0p11 vfat exec sformat /dev/block/mmcblk0p11 vfat


on post-fs on post-fs
# exec sfsck /res/dev/data ext4 exec sfsck /res/dev/data ext4
mount ext4 loop@/res/dev/data /data nosuid nodev noatime wait noauto_da_alloc mount ext4 loop@/res/dev/data /data nosuid nodev noatime wait noauto_da_alloc


# once everything is setup, no need to modify / # once everything is setup, no need to modify /
Expand Down
2 changes: 1 addition & 1 deletion res/misc/CM-ROM/init.smdk4210.rc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ on fs
# exec sfsck /res/dev/cache ext4 # exec sfsck /res/dev/cache ext4
mount ext4 /res/dev/cache /cache nosuid nodev noatime wait rw mount ext4 /res/dev/cache /cache nosuid nodev noatime wait rw


# exec sfsck /res/dev/data ext4 exec sfsck /res/dev/data ext4
mount ext4 /res/dev/data /data nosuid nodev noatime wait noauto_da_alloc mount ext4 /res/dev/data /data nosuid nodev noatime wait noauto_da_alloc


mount ext4 /dev/block/mmcblk0p12 /preload nosuid nodev noatime wait mount ext4 /dev/block/mmcblk0p12 /preload nosuid nodev noatime wait
Expand Down
3 changes: 2 additions & 1 deletion res/misc/CM-ROM/init.smdk4210.rc.2
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ on fs
mount ext4 loop@/res/dev/cache /cache nosuid nodev noatime wait rw mount ext4 loop@/res/dev/cache /cache nosuid nodev noatime wait rw


# Check and mount /data # Check and mount /data
# exec sfsck /res/dev/data ext4 exec sfsck /res/dev/data ext4
mount ext4 loop@/res/dev/data /data nosuid nodev noatime wait noauto_da_alloc mount ext4 loop@/res/dev/data /data nosuid nodev noatime wait noauto_da_alloc

mount ext4 /dev/block/mmcblk0p12 /preload nosuid nodev noatime wait mount ext4 /dev/block/mmcblk0p12 /preload nosuid nodev noatime wait


mount ext4 /dev/block/mmcblk0p1 /efs nosuid nodev noatime wait mount ext4 /dev/block/mmcblk0p1 /efs nosuid nodev noatime wait
Expand Down
2 changes: 1 addition & 1 deletion res/misc/JellyB-CM-AOKP/init.smdk4210.rc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ on fs
# exec sfsck /res/dev/cache ext4 # exec sfsck /res/dev/cache ext4
mount ext4 /res/dev/cache /cache nosuid nodev noatime wait rw mount ext4 /res/dev/cache /cache nosuid nodev noatime wait rw


# exec sfsck /res/dev/data ext4 exec sfsck /res/dev/data ext4
mount ext4 /res/dev/data /data nosuid nodev noatime wait noauto_da_alloc mount ext4 /res/dev/data /data nosuid nodev noatime wait noauto_da_alloc


mount ext4 /dev/block/mmcblk0p12 /preload nosuid nodev noatime wait mount ext4 /dev/block/mmcblk0p12 /preload nosuid nodev noatime wait
Expand Down
4 changes: 3 additions & 1 deletion res/misc/JellyB-CM-AOKP/ueventd.rc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
# the msm hw3d client device node is world writable/readable. # the msm hw3d client device node is world writable/readable.
/dev/msm_hw3dc 0666 root root /dev/msm_hw3dc 0666 root root


# the DIAG device node is not world writable/readable.
/dev/diag 0660 system qcom_diag

# gpu driver for adreno200 is globally accessible # gpu driver for adreno200 is globally accessible
/dev/kgsl 0666 root root /dev/kgsl 0666 root root


# these should not be world writable # these should not be world writable
/dev/diag 0660 radio radio
/dev/diag_arm9 0660 radio radio /dev/diag_arm9 0660 radio radio
/dev/android_adb 0660 adb adb /dev/android_adb 0660 adb adb
/dev/android_adb_enable 0660 adb adb /dev/android_adb_enable 0660 adb adb
Expand Down
2 changes: 1 addition & 1 deletion res/misc/JellyB-SAMMY/init.rc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ on fs
exec sformat /dev/block/mmcblk0p11 vfat exec sformat /dev/block/mmcblk0p11 vfat


on post-fs on post-fs
# exec sfsck /res/dev/data ext4 exec sfsck /res/dev/data ext4
mount ext4 /res/dev/data /data nosuid nodev noatime wait noauto_da_alloc mount ext4 /res/dev/data /data nosuid nodev noatime wait noauto_da_alloc


# once everything is setup, no need to modify / # once everything is setup, no need to modify /
Expand Down
4 changes: 2 additions & 2 deletions res/misc/JellyB-SAMMY/init.rc.2
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ on fs
# make sure sdcard is mounted because we may have our data and cache partitions on it # make sure sdcard is mounted because we may have our data and cache partitions on it
mount vfat /dev/block/mmcblk0p11 /mnt/.secondrom wait utf8 mount vfat /dev/block/mmcblk0p11 /mnt/.secondrom wait utf8


# exec sfsck /res/dev/cache ext4 exec sfsck /res/dev/cache ext4
mount ext4 loop@/res/dev/cache /cache nosuid nodev noatime wait nodelalloc mount ext4 loop@/res/dev/cache /cache nosuid nodev noatime wait nodelalloc


mkdir /efs mkdir /efs
Expand All @@ -151,7 +151,7 @@ on fs
exec sformat /dev/block/mmcblk0p11 vfat exec sformat /dev/block/mmcblk0p11 vfat


on post-fs on post-fs
# exec sfsck /res/dev/data ext4 exec sfsck /res/dev/data ext4
mount ext4 loop@/res/dev/data /data nosuid nodev noatime wait noauto_da_alloc mount ext4 loop@/res/dev/data /data nosuid nodev noatime wait noauto_da_alloc


# once everything is setup, no need to modify / # once everything is setup, no need to modify /
Expand Down
2 changes: 1 addition & 1 deletion res/misc/Miui-ROM/init.rc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ on fs
exec sformat /dev/block/mmcblk0p11 vfat exec sformat /dev/block/mmcblk0p11 vfat


on post-fs on post-fs
# exec sfsck /res/dev/data ext4 exec sfsck /res/dev/data ext4
mount ext4 /res/dev/data /data nosuid nodev noatime wait noauto_da_alloc mount ext4 /res/dev/data /data nosuid nodev noatime wait noauto_da_alloc


# once everything is setup, no need to modify / # once everything is setup, no need to modify /
Expand Down
4 changes: 2 additions & 2 deletions res/misc/Miui-ROM/init.rc.2
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ on fs
# make sure sdcard is mounted because we may have our data and cache partitions on it # make sure sdcard is mounted because we may have our data and cache partitions on it
mount vfat /dev/block/mmcblk0p11 /mnt/.secondrom wait utf8 mount vfat /dev/block/mmcblk0p11 /mnt/.secondrom wait utf8


# exec sfsck /res/dev/cache ext4 exec sfsck /res/dev/cache ext4
mount ext4 loop@/res/dev/cache /cache nosuid nodev noatime wait nodelalloc mount ext4 loop@/res/dev/cache /cache nosuid nodev noatime wait nodelalloc


mkdir /efs mkdir /efs
Expand All @@ -150,7 +150,7 @@ on fs
exec check_encryption_status /res/dev/data exec check_encryption_status /res/dev/data


on post-fs on post-fs
# exec sfsck /res/dev/data ext4 exec sfsck /res/dev/data ext4
mount ext4 loop@/res/dev/data /data nosuid nodev noatime wait noauto_da_alloc mount ext4 loop@/res/dev/data /data nosuid nodev noatime wait noauto_da_alloc


# once everything is setup, no need to modify / # once everything is setup, no need to modify /
Expand Down
2 changes: 1 addition & 1 deletion res/misc/Sense4All-ROM/init.s4a
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ on fs
mount ext4 /res/dev/system /system noatime wait rw nodelalloc mount ext4 /res/dev/system /system noatime wait rw nodelalloc


Mount Data as we are symlinking our Apps folder Mount Data as we are symlinking our Apps folder
# exec sfsck /res/dev/data ext4 exec sfsck /res/dev/data ext4
mount ext4 /res/dev/data /data nosuid nodev noatime wait noauto_da_alloc mount ext4 /res/dev/data /data nosuid nodev noatime wait noauto_da_alloc


# exec sfsck /res/dev/cache ext4 # exec sfsck /res/dev/cache ext4
Expand Down
4 changes: 2 additions & 2 deletions res/misc/Sense4All-ROM/init.s4a.2
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ on fs
# make sure sdcard is mounted because we may have our data and cache partitions on it # make sure sdcard is mounted because we may have our data and cache partitions on it
mount vfat /dev/block/mmcblk0p11 /mnt/.secondrom wait utf8 mount vfat /dev/block/mmcblk0p11 /mnt/.secondrom wait utf8


# exec sfsck /res/dev/data ext4 exec sfsck /res/dev/data ext4
mount ext4 loop@/res/dev/data /data nosuid nodev noatime wait noauto_da_alloc mount ext4 loop@/res/dev/data /data nosuid nodev noatime wait noauto_da_alloc


# exec sfsck /res/dev/cache ext4 exec sfsck /res/dev/cache ext4
mount ext4 loop@/res/dev/cache /cache nosuid nodev noatime wait nodelalloc mount ext4 loop@/res/dev/cache /cache nosuid nodev noatime wait nodelalloc


mkdir /efs mkdir /efs
Expand Down
Binary file modified res/misc/vendor/firmware/mfc_fw.bin.xz
Binary file not shown.
1 change: 1 addition & 0 deletions sbin/init
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ fi;
# adding latest vendor binary from 3.6.RC6 kernel for all! tested working great # adding latest vendor binary from 3.6.RC6 kernel for all! tested working great
mkdir -p /system/vendor/firmware; mkdir -p /system/vendor/firmware;
/sbin/busybox xzcat /res/misc/vendor/firmware/mfc_fw.bin.xz > /system/vendor/firmware/mfc_fw.bin; /sbin/busybox xzcat /res/misc/vendor/firmware/mfc_fw.bin.xz > /system/vendor/firmware/mfc_fw.bin;
chmod 755 /system/vendor/firmware/mfc_fw.bin;


# fix permission to services.jar in case user did a mess, after using my MOD! # fix permission to services.jar in case user did a mess, after using my MOD!
chmod 644 /system/framework/services.jar; chmod 644 /system/framework/services.jar;
Expand Down
Loading

0 comments on commit 5f1b0b4

Please sign in to comment.