add(media): add video13 device channel.

This commit is contained in:
kangjun
2024-08-02 21:30:05 +08:00
parent cb4e8e6605
commit cfba011b94
12 changed files with 10 additions and 241 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -1,117 +0,0 @@
#!/bin/sh
echo "------run rc.final file-----"
#echo "insmod wifi modules"
#insmod /lib/modules/3.4.39/8723ds.ko
#insmod /lib/modules/3.4.39/bcmdhd.ko
#insmod /lib/modules/3.4.39/xradio_mac.ko
#insmod /lib/modules/3.4.39/xradio_core.ko
#insmod /lib/modules/3.4.39/xradio_wlan.ko
export LD_LIBRARY_PATH=/usr/lib/eyesee-mpp:${LD_LIBRARY_PATH}
ulimit -c unlimited
echo /mnt/extsd/coredump-%e-%p-%s-%t > /proc/sys/kernel/core_pattern
for i in /etc/init.d/S??* ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done
LOOP_CNT=0
SD_DEV=
while [ 1 ];do
if [ $LOOP_CNT -eq 3 ];then
echo wait SD Card ready timeout
break;
fi
if [ -b /dev/mmcblk1p1 ];then
SD_DEV=/dev/mmcblk1p1
break;
elif [ -b /dev/mmcblk1 ];then
SD_DEV=/dev/mmcblk1
break;
elif [ -b /dev/mmcblk0p1 ];then
SD_DEV=/dev/mmcblk0p1
break;
elif [ -b /dev/mmcblk0 ];then
SD_DEV=/dev/mmcblk0
break;
else
echo SD Card not ready, wait
fi
LOOP_CNT=$(($LOOP_CNT+1))
sleep 1
done
# repair sd card file
if [ "x$SD_DEV" != "x" ]; then
echo SD Card is ready
if [ -f /usr/bin/fsck_msdos ]; then
/usr/bin/fsck_msdos -pfS $SD_DEV
fi
fi
if [ -z "$(grep '\<vfat\>' /proc/mounts)" ]; then
! /bin/mount -t vfat /dev/mmcblk0 /mnt/extsd 2>/dev/null &&
/bin/mount -t vfat /dev/mmcblk0p1 /mnt/extsd
fi
sleep 1
if [ -n "$(grep '/mnt/extsd' /proc/mounts)" ]; then
echo "start mv stream..."
ls /tmp/
rm -rf /mnt/extsd/stream*.h264
rm -rf /mnt/extsd/data*.jpg
mv /tmp/stream*.h264 /mnt/extsd/
mv /tmp/data*.jpg /mnt/extsd/
echo "---/mnt/extsd/---"
ls /mnt/extsd/
fi
echo "run_usb_adb start!"
run_usb_adb
#echo "sample_virvi2vo start!"
#/usr/bin/sample_virvi2vo -path /usr/bin/sample_virvi2vo_v851s_sc1721v_dual.conf &
#catch jpg 0
#demo_video_in -n 40 -s0 800x608 -f0 0 -pf 4 -trd 1 -snd 1 -s1 800x608 -f1 0 -pf1 4 -vn1 1
#catch jpg 1
#demo_video_in -n 40 -s0 800x608 -f0 0 -pf 4 -snd 1 -s1 800x608 -f1 0 -pf1 4 -trd 1 -vn1 1 -vn2 5
#set ir
echo 6 > /sys/class/pwm/pwmchip0/export
echo 50000 > /sys/class/pwm/pwmchip0/pwm6/period
echo 30000 > /sys/class/pwm/pwmchip0/pwm6/duty_cycle
#disable ir
echo 0 > /sys/class/pwm/pwmchip0/pwm6/enable
#enable ir
#echo 1 > /sys/class/pwm/pwmchip0/pwm6/enable
#/usr/bin/rt_media-uvc -D 0 -b 0 -d 2 &
#run_otg
#sleep 2
#/usr/bin/rt_media-uvc -D 0 -d 2 &

View File

@@ -30,7 +30,7 @@ insmod $MODULES_DIR/snd_soc_sunxi_daudio.ko
insmod $MODULES_DIR/snd_soc_sunxi_internal_codec.ko
insmod $MODULES_DIR/snd_soc_sunxi_machine.ko
echo "------insmod audio modules end-----"
insmod $MODULES_DIR/rt-media.ko
# insmod $MODULES_DIR/rt-media.ko
insmod $MODULES_DIR/cst9220.ko
#ctp

View File

@@ -548,7 +548,7 @@ mount_sec_storage
# OTA's configuration is not turned on by default exit returns,
# which does not affect the startup speed
check_update_system_state
# check_update_system_state
mount_usr
[ x"$MOUNT_ETC" = x"1" ] && mount_etc

View File

@@ -1,117 +0,0 @@
#!/bin/sh
echo "------run rc.final file-----"
#echo "insmod wifi modules"
#insmod /lib/modules/3.4.39/8723ds.ko
#insmod /lib/modules/3.4.39/bcmdhd.ko
#insmod /lib/modules/3.4.39/xradio_mac.ko
#insmod /lib/modules/3.4.39/xradio_core.ko
#insmod /lib/modules/3.4.39/xradio_wlan.ko
export LD_LIBRARY_PATH=/usr/lib/eyesee-mpp:${LD_LIBRARY_PATH}
ulimit -c unlimited
echo /mnt/extsd/coredump-%e-%p-%s-%t > /proc/sys/kernel/core_pattern
for i in /etc/init.d/S??* ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done
LOOP_CNT=0
SD_DEV=
while [ 1 ];do
if [ $LOOP_CNT -eq 3 ];then
echo wait SD Card ready timeout
break;
fi
if [ -b /dev/mmcblk1p1 ];then
SD_DEV=/dev/mmcblk1p1
break;
elif [ -b /dev/mmcblk1 ];then
SD_DEV=/dev/mmcblk1
break;
elif [ -b /dev/mmcblk0p1 ];then
SD_DEV=/dev/mmcblk0p1
break;
elif [ -b /dev/mmcblk0 ];then
SD_DEV=/dev/mmcblk0
break;
else
echo SD Card not ready, wait
fi
LOOP_CNT=$(($LOOP_CNT+1))
sleep 1
done
# repair sd card file
if [ "x$SD_DEV" != "x" ]; then
echo SD Card is ready
if [ -f /usr/bin/fsck_msdos ]; then
/usr/bin/fsck_msdos -pfS $SD_DEV
fi
fi
if [ -z "$(grep '\<vfat\>' /proc/mounts)" ]; then
! /bin/mount -t vfat /dev/mmcblk0 /mnt/extsd 2>/dev/null &&
/bin/mount -t vfat /dev/mmcblk0p1 /mnt/extsd
fi
sleep 1
if [ -n "$(grep '/mnt/extsd' /proc/mounts)" ]; then
echo "start mv stream..."
ls /tmp/
rm -rf /mnt/extsd/stream*.h264
rm -rf /mnt/extsd/data*.jpg
mv /tmp/stream*.h264 /mnt/extsd/
mv /tmp/data*.jpg /mnt/extsd/
echo "---/mnt/extsd/---"
ls /mnt/extsd/
fi
echo "run_usb_adb start!"
run_usb_adb
#echo "sample_virvi2vo start!"
#/usr/bin/sample_virvi2vo -path /usr/bin/sample_virvi2vo_v851s_sc1721v_dual.conf &
#catch jpg 0
#demo_video_in -n 40 -s0 800x608 -f0 0 -pf 4 -trd 1 -snd 1 -s1 800x608 -f1 0 -pf1 4 -vn1 1
#catch jpg 1
#demo_video_in -n 40 -s0 800x608 -f0 0 -pf 4 -snd 1 -s1 800x608 -f1 0 -pf1 4 -trd 1 -vn1 1 -vn2 5
#set ir
echo 6 > /sys/class/pwm/pwmchip0/export
echo 50000 > /sys/class/pwm/pwmchip0/pwm6/period
echo 30000 > /sys/class/pwm/pwmchip0/pwm6/duty_cycle
#disable ir
echo 0 > /sys/class/pwm/pwmchip0/pwm6/enable
#enable ir
#echo 1 > /sys/class/pwm/pwmchip0/pwm6/enable
#/usr/bin/rt_media-uvc -D 0 -b 0 -d 2 &
#run_otg
#sleep 2
#/usr/bin/rt_media-uvc -D 0 -d 2 &