Skip to content

Commit

Permalink
workaround pvr init by old module, update kernel
Browse files Browse the repository at this point in the history
Change-Id: If9185dfe4348020f871b36a38c22b238ef5b1c94
  • Loading branch information
nadlabak committed Oct 22, 2012
1 parent 814a9a5 commit 10f0777
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 12 deletions.
Binary file modified 2ndboot/zImage
Binary file not shown.
15 changes: 15 additions & 0 deletions prebuilt/bin/init_pvr.sh
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/system/bin/sh
#
export PATH=/system/bin:/system/xbin:$PATH

insmod /system/lib/modules/pvrsrvkm15.ko
until rmmod pvrsrvkm15; do
sleep 1
log "Retrying pvrsrvkm 1.5 unload"
done
insmod /system/lib/modules/pvrsrvkm.ko
insmod /system/lib/modules/omaplfb.ko
sleep 1
chmod 0666 /dev/pvrsrvkm
chown system graphics /dev/pvrsrvkm
pvrsrvinit
Binary file modified prebuilt/lib/modules/omaplfb.ko
Binary file not shown.
Binary file modified prebuilt/lib/modules/pvrsrvkm.ko
Binary file not shown.
Binary file added prebuilt/lib/modules/pvrsrvkm15.ko
Binary file not shown.
14 changes: 2 additions & 12 deletions rootfs/init.mapphone_umts.rc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ setprop ro.sys.atvc_allow_efem 0
insmod /system/lib/modules/modem_pm_driver.ko insmod /system/lib/modules/modem_pm_driver.ko
insmod /system/lib/modules/sec.ko insmod /system/lib/modules/sec.ko


# Install GPU kernel modules # Initialize SGX PVR gpu
insmod /system/lib/modules/pvrsrvkm.ko exec /system/bin/init_pvr.sh
insmod /system/lib/modules/omaplfb.ko


on early-boot on early-boot


Expand Down Expand Up @@ -255,10 +254,6 @@ mount rootfs rootfs / ro remount
# Change ownership of vibrator # Change ownership of vibrator
chmod 0660 /sys/class/timed_output/vibrator/enable chmod 0660 /sys/class/timed_output/vibrator/enable


# Permissions for 3D
chmod 0666 /dev/pvrsrvkm
chown system graphics /dev/pvrsrvkm

# DSS - disable tearing elimination # DSS - disable tearing elimination
write /sys/devices/omapdss/display0/tear_elim 0 write /sys/devices/omapdss/display0/tear_elim 0


Expand Down Expand Up @@ -562,11 +557,6 @@ service baseimage /system/bin/dspexec -v -T /system/lib/dsp/baseimage.dof
class media_early_init class media_early_init
oneshot oneshot


service pvrsrv /system/bin/pvrsrvinit
class post-zygote_services
user root
oneshot

service pppd /system/xbin/pppd silent ipparam dun plugin /system/lib/libpppd_plugin.so service pppd /system/xbin/pppd silent ipparam dun plugin /system/lib/libpppd_plugin.so
class post-zygote_services class post-zygote_services
user root user root
Expand Down
2 changes: 2 additions & 0 deletions umts_sholes.mk
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ PRODUCT_COPY_FILES += \
device/motorola/umts_sholes/prebuilt/etc/excluded-input-devices.xml:/system/etc/excluded-input-devices.xml \ device/motorola/umts_sholes/prebuilt/etc/excluded-input-devices.xml:/system/etc/excluded-input-devices.xml \
device/motorola/umts_sholes/prebuilt/bin/init_prep_keypad.sh:/system/bin/init_prep_keypad.sh \ device/motorola/umts_sholes/prebuilt/bin/init_prep_keypad.sh:/system/bin/init_prep_keypad.sh \
device/motorola/umts_sholes/prebuilt/bin/init_bp_nvm.sh:/system/bin/init_bp_nvm.sh \ device/motorola/umts_sholes/prebuilt/bin/init_bp_nvm.sh:/system/bin/init_bp_nvm.sh \
device/motorola/umts_sholes/prebuilt/bin/init_pvr.sh:/system/bin/init_pvr.sh \
device/motorola/umts_sholes/prebuilt/bin/init_early_bind_mounts.sh:/system/bin/init_early_bind_mounts.sh \ device/motorola/umts_sholes/prebuilt/bin/init_early_bind_mounts.sh:/system/bin/init_early_bind_mounts.sh \
device/motorola/umts_sholes/prebuilt/bin/ttsmovetool.sh:/system/bin/ttsmovetool.sh \ device/motorola/umts_sholes/prebuilt/bin/ttsmovetool.sh:/system/bin/ttsmovetool.sh \
device/motorola/umts_sholes/prebuilt/bin/sh_hijack.sh:/system/bin/sh_hijack.sh \ device/motorola/umts_sholes/prebuilt/bin/sh_hijack.sh:/system/bin/sh_hijack.sh \
Expand Down Expand Up @@ -174,6 +175,7 @@ PRODUCT_COPY_FILES += \
device/motorola/umts_sholes/prebuilt/usr/keylayout/sholesp2a-keypad-russian.kl:/system/usr/keylayout/sholesp2a-keypad-russian.kl \ device/motorola/umts_sholes/prebuilt/usr/keylayout/sholesp2a-keypad-russian.kl:/system/usr/keylayout/sholesp2a-keypad-russian.kl \
device/motorola/umts_sholes/prebuilt/lib/libgki.so:/system/lib/libgki.so \ device/motorola/umts_sholes/prebuilt/lib/libgki.so:/system/lib/libgki.so \
device/motorola/umts_sholes/prebuilt/lib/modules/pvrsrvkm.ko:/system/lib/modules/pvrsrvkm.ko \ device/motorola/umts_sholes/prebuilt/lib/modules/pvrsrvkm.ko:/system/lib/modules/pvrsrvkm.ko \
device/motorola/umts_sholes/prebuilt/lib/modules/pvrsrvkm15.ko:/system/lib/modules/pvrsrvkm15.ko \
device/motorola/umts_sholes/prebuilt/lib/modules/omaplfb.ko:/system/lib/modules/omaplfb.ko \ device/motorola/umts_sholes/prebuilt/lib/modules/omaplfb.ko:/system/lib/modules/omaplfb.ko \
device/motorola/umts_sholes/prebuilt/lib/modules/tiwlan_drv.ko:/system/lib/modules/tiwlan_drv.ko \ device/motorola/umts_sholes/prebuilt/lib/modules/tiwlan_drv.ko:/system/lib/modules/tiwlan_drv.ko \
device/motorola/umts_sholes/prebuilt/lib/modules/tiap_drv.ko:/system/lib/modules/tiap_drv.ko \ device/motorola/umts_sholes/prebuilt/lib/modules/tiap_drv.ko:/system/lib/modules/tiap_drv.ko \
Expand Down

0 comments on commit 10f0777

Please sign in to comment.