revise extra kernel modules path

This commit is contained in:
Alfonso Gamboa 2022-06-15 19:47:29 -07:00
parent f705331a70
commit e4b424c989
14 changed files with 16 additions and 16 deletions

View File

@ -56,8 +56,8 @@ if [ "$V2" == "false" ]; then
insmod /system/driver/sensor_gc2053_t31.ko insmod /system/driver/sensor_gc2053_t31.ko
insmod /system/driver/audio.ko insmod /system/driver/audio.ko
insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/drivers/usb/gadget/libcomposite.ko insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/drivers/usb/gadget/libcomposite.ko
insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/videobuf2-vmalloc.ko insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/extra/videobuf2-vmalloc.ko
insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/usbcamera.ko insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/extra/usbcamera.ko
cd /system/bin/ cd /system/bin/
/system/bin/ucamera & /system/bin/ucamera &
@ -98,14 +98,14 @@ else
insmod /driver/tx-isp.ko isp_clk=100000000 insmod /driver/tx-isp.ko isp_clk=100000000
insmod /driver/exfat.ko insmod /driver/exfat.ko
insmod /driver/sample_motor.ko insmod /driver/sample_motor.ko
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/audio_webcam.ko insmod /opt/wz_mini/lib/modules/3.10.14/extra/audio_webcam.ko
insmod /driver/sinfo.ko insmod /driver/sinfo.ko
insmod /driver/sample_pwm_core.ko insmod /driver/sample_pwm_core.ko
insmod /driver/sample_pwm_hal.ko insmod /driver/sample_pwm_hal.ko
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/libcomposite.ko insmod /opt/wz_mini/lib/modules/3.10.14/extra/libcomposite.ko
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/videobuf2-vmalloc.ko insmod /opt/wz_mini/lib/modules/3.10.14/extra/videobuf2-vmalloc.ko
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/usbcamera.ko insmod /opt/wz_mini/lib/modules/3.10.14/extra/usbcamera.ko
/opt/wz_mini/usr/bin/getSensorType /opt/wz_mini/usr/bin/getSensorType
/opt/wz_mini/usr/bin/ucamera_v2 & /opt/wz_mini/usr/bin/ucamera_v2 &

View File

@ -67,11 +67,11 @@ if [[ -e /opt/wz_mini/etc/.first_boot ]]; then
else else
echo "first boot, initializing" echo "first boot, initializing"
if [[ "$V2" == "true" ]]; then if [[ "$V2" == "true" ]]; then
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/audio.ko insmod /opt/wz_mini/lib/modules/3.10.14/extra/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 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 rmmod audio
else else
insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/audio.ko spk_gpio=$GPIO alc_mode=0 mic_gain=0 insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/extra/audio.ko spk_gpio=$GPIO alc_mode=0 mic_gain=0
/opt/wz_mini/bin/audioplay_t31 /opt/wz_mini/usr/share/audio/init.wav $AUDIO_PROMPT_VOLUME /opt/wz_mini/bin/audioplay_t31 /opt/wz_mini/usr/share/audio/init.wav $AUDIO_PROMPT_VOLUME
rmmod audio rmmod audio
fi fi
@ -143,11 +143,11 @@ chmod 400 /etc/shadow
if [[ -e /opt/wz_mini/swap.gz ]]; then if [[ -e /opt/wz_mini/swap.gz ]]; then
if [[ "$V2" == "true" ]]; then if [[ "$V2" == "true" ]]; then
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/audio.ko insmod /opt/wz_mini/lib/modules/3.10.14/extra/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 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 rmmod audio
else else
insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/audio.ko spk_gpio=$GPIO alc_mode=0 mic_gain=0 insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/extra/audio.ko spk_gpio=$GPIO alc_mode=0 mic_gain=0
/opt/wz_mini/bin/audioplay_t31 /opt/wz_mini/usr/share/audio/swap.wav $AUDIO_PROMPT_VOLUME /opt/wz_mini/bin/audioplay_t31 /opt/wz_mini/usr/share/audio/swap.wav $AUDIO_PROMPT_VOLUME
rmmod audio rmmod audio
fi fi

View File

@ -52,26 +52,26 @@ if [[ "$RTSP_HI_RES_ENABLED" == "true" ]] || [[ "$RTSP_LOW_RES_ENABLED" == "tru
if [[ "$RTSP_LOW_RES_ENABLED" == "true" ]] && [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then if [[ "$RTSP_LOW_RES_ENABLED" == "true" ]] && [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then
if [[ "$V2" == "true" ]]; then if [[ "$V2" == "true" ]]; then
echo "load video loopback driver at video6 video7" echo "load video loopback driver at video6 video7"
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/v4l2loopback_V2.ko video_nr=6,7 insmod /opt/wz_mini/lib/modules/3.10.14/extra/v4l2loopback_V2.ko video_nr=6,7
else else
echo "load video loopback driver at video1 video2" 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 insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/extra/v4l2loopback.ko video_nr=1,2
fi fi
elif [[ "$RTSP_LOW_RES_ENABLED" == "true" ]]; then elif [[ "$RTSP_LOW_RES_ENABLED" == "true" ]]; then
if [[ "$V2" == "true" ]]; then if [[ "$V2" == "true" ]]; then
echo "load video loopback driver at video7" echo "load video loopback driver at video7"
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/v4l2loopback_V2.ko video_nr=7 insmod /opt/wz_mini/lib/modules/3.10.14/extra/v4l2loopback_V2.ko video_nr=7
else else
echo "load video loopback driver at video2" 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 insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/extra/v4l2loopback.ko video_nr=2
fi fi
elif [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then elif [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then
if [[ "$V2" == "true" ]]; then if [[ "$V2" == "true" ]]; then
echo "load video loopback driver at video6" echo "load video loopback driver at video6"
insmod /opt/wz_mini/lib/modules/3.10.14/kernel/v4l2loopback_V2.ko video_nr=6 insmod /opt/wz_mini/lib/modules/3.10.14/extra/v4l2loopback_V2.ko video_nr=6
else else
echo "load video loopback driver at video1" 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 insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/extra/v4l2loopback.ko video_nr=1
fi fi
fi fi