mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-22 05:27:24 +00:00
revise path to v2 kernel modules
This commit is contained in:
parent
76a8490c00
commit
7e8ee5a09c
@ -67,7 +67,7 @@ if [[ -e /opt/wz_mini/etc/.first_boot ]]; then
|
||||
else
|
||||
echo "first boot, initializing"
|
||||
if [[ "$V2" == "true" ]]; then
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14_v2/kernel/audio.ko
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/audio.ko
|
||||
LD_LIBRARY_PATH='/opt/wz_mini/lib' /opt/wz_mini/bin/audioplay_t20 /opt/wz_mini/usr/share/audio/init_v2.wav $AUDIO_PROMPT_VOLUME
|
||||
rmmod audio
|
||||
else
|
||||
@ -136,7 +136,7 @@ chmod 400 /etc/shadow
|
||||
|
||||
if [[ -e /opt/wz_mini/swap.gz ]]; then
|
||||
if [[ "$V2" == "true" ]]; then
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14_v2/kernel/audio.ko
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/audio.ko
|
||||
LD_LIBRARY_PATH='/opt/wz_mini/lib' /opt/wz_mini/bin/audioplay_t20 /opt/wz_mini/usr/share/audio/swap_v2.wav $AUDIO_PROMPT_VOLUME
|
||||
rmmod audio
|
||||
else
|
||||
|
@ -98,14 +98,14 @@ else
|
||||
insmod /driver/tx-isp.ko isp_clk=100000000
|
||||
insmod /driver/exfat.ko
|
||||
insmod /driver/sample_motor.ko
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14_v2/kernel/audio_webcam.ko
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/audio_webcam.ko
|
||||
insmod /driver/sinfo.ko
|
||||
insmod /driver/sample_pwm_core.ko
|
||||
insmod /driver/sample_pwm_hal.ko
|
||||
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14_v2/kernel/libcomposite.ko
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14_v2/kernel/videobuf2-vmalloc.ko
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14_v2/kernel/usbcamera.ko
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/libcomposite.ko
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/videobuf2-vmalloc.ko
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/usbcamera.ko
|
||||
|
||||
/opt/wz_mini/usr/bin/getSensorType
|
||||
/opt/wz_mini/usr/bin/ucamera_v2 &
|
||||
|
@ -45,7 +45,7 @@ if [[ "$RTSP_HI_RES_ENABLED" == "true" ]] || [[ "$RTSP_LOW_RES_ENABLED" == "tru
|
||||
if [[ "$RTSP_LOW_RES_ENABLED" == "true" ]] && [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then
|
||||
if [[ "$V2" == "true" ]]; then
|
||||
echo "load video loopback driver at video6 video7"
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14_v2/kernel/v4l2loopback_V2.ko video_nr=6,7
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/v4l2loopback_V2.ko video_nr=6,7
|
||||
else
|
||||
echo "load video loopback driver at video1 video2"
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/v4l2loopback.ko video_nr=1,2
|
||||
@ -53,7 +53,7 @@ if [[ "$RTSP_HI_RES_ENABLED" == "true" ]] || [[ "$RTSP_LOW_RES_ENABLED" == "tru
|
||||
elif [[ "$RTSP_LOW_RES_ENABLED" == "true" ]]; then
|
||||
if [[ "$V2" == "true" ]]; then
|
||||
echo "load video loopback driver at video7"
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14_v2/kernel/v4l2loopback_V2.ko video_nr=7
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/v4l2loopback_V2.ko video_nr=7
|
||||
else
|
||||
echo "load video loopback driver at video2"
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/v4l2loopback.ko video_nr=2
|
||||
@ -61,7 +61,7 @@ if [[ "$RTSP_HI_RES_ENABLED" == "true" ]] || [[ "$RTSP_LOW_RES_ENABLED" == "tru
|
||||
elif [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then
|
||||
if [[ "$V2" == "true" ]]; then
|
||||
echo "load video loopback driver at video6"
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14_v2/kernel/v4l2loopback_V2.ko video_nr=6
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/v4l2loopback_V2.ko video_nr=6
|
||||
else
|
||||
echo "load video loopback driver at video1"
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/v4l2loopback.ko video_nr=1
|
||||
|
@ -162,7 +162,7 @@ wait_wlan
|
||||
|
||||
if cat /params/config/.product_config | grep WYZEC1-JZ; then
|
||||
V2="true"
|
||||
KMOD_PATH="/opt/wz_mini/lib/modules/3.10.14_v2"
|
||||
KMOD_PATH="/opt/wz_mini/lib/modules/3.10.14"
|
||||
else
|
||||
V2="false"
|
||||
KMOD_PATH="/opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__"
|
||||
|
@ -94,7 +94,7 @@ fi
|
||||
|
||||
|
||||
if [[ "$V2" == "true" ]]; then
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14_v2/kernel/audio.ko
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/audio.ko
|
||||
LD_LIBRARY_PATH='/opt/wz_mini/lib' /opt/wz_mini/bin/audioplay_t20 /opt/wz_mini/usr/share/audio/upgrade_mode_v2.wav $AUDIO_PROMPT_VOLUME
|
||||
rmmod audio
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user