Permalink
Browse files

Fix Broken Modules LOAD. now works! voku, let it be as is!

~ # lsmod
lsmod
cifs 246017 0 - Live 0xbf139000
pl2303 11115 0 - Live 0xbf132000
ftdi_sio 30881 0 - Live 0xbf121000
Si4709_driver 27055 0 - Live 0xbf116000
dhd 427488 0 - Live 0xbf098000
j4fs 70903 1 - Live 0xbf082000
scsi_wait_scan 457 0 - Live 0xbf07e000
  • Loading branch information...
1 parent 9af82eb commit 28c16582b00b086a8a9d2b6d1d211d57a3f0bcde @dorimanx dorimanx committed Jan 6, 2013
View
@@ -46,8 +46,6 @@ on early-fs
# parameter block
mkdir /mnt/.lfs 0755 root root
- insmod /lib/modules/j4fs.ko
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
insmod /lib/modules/param.ko
insmod /lib/modules/drop_caches.ko
View
@@ -142,9 +142,6 @@ on post-fs
# once everything is setup, no need to modify /
mount rootfs rootfs / rw remount
- insmod /lib/modules/j4fs.ko
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
-
# We chown/chmod /cache again so because mount is run as root + defaults
chown system cache /cache
chmod 0777 /cache
View
@@ -149,9 +149,6 @@ on post-fs
# once everything is setup, no need to modify /
mount rootfs rootfs / rw remount
- insmod /lib/modules/j4fs.ko
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
-
# We chown/chmod /cache again so because mount is run as root + defaults
chown system cache /cache
chmod 0777 /cache
View
@@ -149,9 +149,6 @@ on post-fs
# once everything is setup, no need to modify /
mount rootfs rootfs / rw remount
- insmod /lib/modules/j4fs.ko
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
-
# We chown/chmod /cache again so because mount is run as root + defaults
chown system cache /cache
chmod 0770 /cache
@@ -152,9 +152,6 @@ on post-fs
# once everything is setup, no need to modify /
mount rootfs rootfs / rw remount
- insmod /lib/modules/j4fs.ko
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
-
# We chown/chmod /cache again so because mount is run as root + defaults
chown system cache /cache
chmod 0770 /cache
@@ -49,12 +49,6 @@ on fs
chmod 0770 /data/misc/wifi
on post-fs-data
-# insmod kernel modules
- insmod /system/lib/modules/j4fs.ko
-
-# mount param.lfs
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
-
# GPS
chown root system /dev/ttySAC1
chmod 0660 /dev/ttySAC1
@@ -57,12 +57,6 @@ on fs
chmod 0770 /data/misc/wifi
on post-fs-data
-# insmod kernel modules
- insmod /system/lib/modules/j4fs.ko
-
-# mount param.lfs
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
-
# GPS
chown root system /dev/ttySAC1
chmod 0660 /dev/ttySAC1
@@ -56,12 +56,6 @@ on fs
chmod 0770 /data/misc/wifi
on post-fs-data
-# insmod kernel modules
- insmod /system/lib/modules/j4fs.ko
-
-# mount param.lfs
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
-
# MDNS
socket mdns stream 0660 root system
@@ -65,12 +65,6 @@ on fs
chmod 0770 /data/misc/wifi
on post-fs-data
-# insmod kernel modules
- insmod /system/lib/modules/j4fs.ko
-
-# mount param.lfs
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
-
# MDNS
socket mdns stream 0660 root system
@@ -56,12 +56,6 @@ on fs
chmod 0770 /data/misc/wifi
on post-fs-data
-# insmod kernel modules
- insmod /system/lib/modules/j4fs.ko
-
-# mount param.lfs
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
-
# MDNS
socket mdns stream 0660 root system
@@ -65,12 +65,6 @@ on fs
chmod 0770 /data/misc/wifi
on post-fs-data
-# insmod kernel modules
- insmod /system/lib/modules/j4fs.ko
-
-# mount param.lfs
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
-
# MDNS
socket mdns stream 0660 root system
@@ -206,10 +206,8 @@ on fs
chmod 0660 /sys/class/host_notify/usb_otg/booster
on post-fs
- insmod /lib/modules/j4fs.ko
insmod /lib/modules/exfat_core.ko
insmod /lib/modules/exfat_fs.ko
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
chown radio system /efs
chmod 0771 /efs
@@ -216,10 +216,8 @@ on fs
chmod 0660 /sys/class/host_notify/usb_otg/booster
on post-fs
- insmod /lib/modules/j4fs.ko
# insmod /lib/modules/exfat_core.ko
# insmod /lib/modules/exfat_fs.ko
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
chown radio system /efs
chmod 0771 /efs
@@ -143,9 +143,6 @@ on post-fs
# once everything is setup, no need to modify /
mount rootfs rootfs / rw remount
- insmod /lib/modules/j4fs.ko
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
-
# We chown/chmod /cache again so because mount is run as root + defaults
chown system cache /cache
chmod 0777 /cache
@@ -149,9 +149,6 @@ on post-fs
# once everything is setup, no need to modify /
mount rootfs rootfs / rw remount
- insmod /lib/modules/j4fs.ko
- mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
-
# We chown/chmod /cache again so because mount is run as root + defaults
chown system cache /cache
chmod 0777 /cache
View
@@ -81,6 +81,25 @@ if [ "$logger" == "off" ]; then
echo "0" > /sys/module/xt_qtaguid/parameters/debug_mask;
fi;
+######################################
+# Loading Modules
+######################################
+$BB chmod -R 755 /lib;
+
+(
+ sleep 40;
+ # order of modules load is important.
+ $BB insmod /lib/modules/scsi_wait_scan.ko;
+ $BB insmod /lib/modules/j4fs.ko;
+
+ sleep 10;
+ mount -t j4fs /dev/block/mmcblk0p4 /mnt/.lfs
+ $BB insmod /lib/modules/Si4709_driver.ko;
+ $BB insmod /lib/modules/ftdi_sio.ko;
+ $BB insmod /lib/modules/pl2303.ko;
+ $BB insmod /lib/modules/cifs.ko;
+)&
+
# disable cpuidle log
echo "0" > /sys/module/cpuidle_exynos4/parameters/log_en;
View
@@ -375,15 +375,6 @@ $BB sed -i "s/dalvik.vm.heapgrowthlimit=[0-9a-zA-Z]*/dalvik.vm.heapgrowthlimit=1
$BB sed -i "s/ro.device.cpu=Dual-core 1.2GHz ARM Cortex-A9/ro.device.cpu=Dual-core 1.5GHz ARM Cortex-A9/g" /system/build.prop;
######################################
-# Loading Modules
-######################################
-$BB chmod -R 755 /lib;
-
-for module in $(ls in /lib/modules/*.ko); do
- $BB insmod "${module}";
-done;
-
-######################################
# Starting ROM choose and INIT config.
######################################

0 comments on commit 28c1658

Please sign in to comment.