Skip to content
Browse files

wingray: CM9 kernel

(Also used for stingray)
Kernel source: https://github.com/TeamRogue/android-tegra-moto-2.6.39

- CPU OC/voltage interface
- Stock GPU
- CIFS and USB WWAN modules
- Wi-Fi updates
- Deadline I/O scheduler and ondemand CPU governor by default
- USB OTG drive mounting

Patchset 2:
- Fix kernel panic on suspending with no SD card
- Misc patches (see github)

Change-Id: I31e3968e1f9e5f0cf901216b8f2720dd300da6a7
  • Loading branch information...
1 parent 56c0a35 commit 832cdebeff052357584145b34b333c2bc03fc2e8 @TDR TDR committed Mar 24, 2012
View
7 device_base.mk
@@ -37,6 +37,13 @@ PRODUCT_COPY_FILES += \
$(TARGET_PREBUILT_WIFI_MODULE):system/lib/modules/bcm4329.ko
endif
+# Other prebuilt modules
+PRODUCT_COPY_FILES += \
+ device/moto/wingray/modules/cifs.ko:system/lib/modules/cifs.ko \
+ device/moto/wingray/modules/option.ko:system/lib/modules/option.ko \
+ device/moto/wingray/modules/scsi_wait_scan.ko:system/lib/modules/scsi_wait_scan.ko \
+ device/moto/wingray/modules/usb_wwan.ko:system/lib/modules/usb_wwan.ko
+
PRODUCT_COPY_FILES += \
device/moto/wingray/mXT1386_08_AA.bin:system/etc/firmware/mXT1386_08_AA.bin \
device/moto/wingray/mXT1386_08_E1.bin:system/etc/firmware/mXT1386_08_E1.bin \
View
18 init.stingray.rc
@@ -7,16 +7,17 @@ on early-init
export EXTERNAL_STORAGE /mnt/sdcard
export SECONDARY_STORAGE /mnt/external1
mkdir /mnt/sdcard 0000 system system
+ mkdir /mnt/usbdisk 0000 system system
# for backwards compatibility
symlink /mnt/sdcard /sdcard
mkdir /pds 0777 system system
mkdir /mnt/external1 0000 system system
on fs
- mount ext4 /dev/block/platform/sdhci-tegra.3/by-name/system /system wait ro
+ mount ext4 /dev/block/platform/sdhci-tegra.3/by-name/system /system wait ro noatime
setprop ro.crypto.tmpfs_options size=128m,mode=0771,uid=1000,gid=1000
- mount ext4 /dev/block/platform/sdhci-tegra.3/by-name/userdata /data wait noatime nosuid nodev nomblk_io_submit
- mount ext4 /dev/block/platform/sdhci-tegra.3/by-name/cache /cache wait noatime nosuid nodev nomblk_io_submit
+ mount ext4 /dev/block/platform/sdhci-tegra.3/by-name/userdata /data wait noatime nosuid nodev nomblk_io_submit,noauto_da_alloc
+ mount ext4 /dev/block/platform/sdhci-tegra.3/by-name/cache /cache wait noatime nosuid nodev nomblk_io_submit,noauto_da_alloc
mount ext2 /dev/block/platform/sdhci-tegra.3/by-name/pdsb /pds wait ro
setprop ro.crypto.fuse_sdcard true
@@ -140,14 +141,13 @@ on boot
#write /sys/devices/platform/ohci.0/usb2/2-3/power/level auto
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 216000
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1000000
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 216000
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq 1000000
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive
- # timer 20ms, min sample 80ms, go max at 80%
- write /sys/devices/system/cpu/cpufreq/interactive/timer_rate 20000
- write /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 80000
- write /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 80
+ write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor ondemand
+ write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 40000
+ write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 95
+ write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy 1
# Wakelock debug
write /sys/module/wakelock/parameters/debug_mask 7
# No need to continuously scan w1 bus
View
BIN kernel
Binary file not shown.
View
0 mXT1386_08_AA.bin 100755 → 100644
File mode changed.
View
0 mXT1386_08_E1.bin 100755 → 100644
File mode changed.
View
BIN modules/cifs.ko
Binary file not shown.
View
BIN modules/option.ko
Binary file not shown.
View
BIN modules/scsi_wait_scan.ko
Binary file not shown.
View
BIN modules/usb_wwan.ko
Binary file not shown.
View
4 overlay/frameworks/base/core/res/res/xml/storage_list.xml
@@ -46,4 +46,8 @@
android:storageDescription="@string/storage_sd_card"
android:removable="true"
android:maxFileSize="4096" />
+ <!-- external USB OTG drive -->
+ <storage android:mountPoint="/mnt/usbdisk"
+ android:storageDescription="@string/storage_usb"
+ android:removable="true" />
</StorageList>
View
1 vold.fstab
@@ -12,3 +12,4 @@
# Mounts the first usable partition of the specified device
dev_mount sdcard /mnt/external1 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
+dev_mount usbdisk /mnt/usbdisk auto /devices/platform/tegra-ehci

0 comments on commit 832cdeb

Please sign in to comment.
Something went wrong with that request. Please try again.