Created
December 14, 2021 06:48
-
-
Save bakueikozo/b87b52ceac08315d7b1c2b72e087797d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp | |
insmod /system/driver/tx-isp-t31.ko isp_clk=100000000 | |
insmod /system/driver/exfat.ko | |
insmod /system/driver/audio.ko spk_gpio=-1 alc_mode=0 mic_gain=0 | |
insmod /system/driver/avpu.ko | |
insmod /system/driver/sinfo.ko | |
insmod /system/driver/sample_pwm_core.ko | |
insmod /system/driver/sample_pwm_hal.ko | |
insmod /system/driver/mmc_detect_test.ko | |
insmod /system/driver/speaker_ctl.ko | |
devmem 0x10011110 32 0x6e094800 | |
#清掉对PB04的驱动能力设置(最低驱动能力) | |
devmem 0x10011138 32 0x300 | |
#设置PB04的驱动能力 | |
devmem 0x10011134 32 0x300 | |
# Insert wifi driver... | |
while [ ! -f /sys/bus/mmc/devices/mmc1\:*/mmc1\:*\:1/vendor ]; do | |
sleep 0.1 | |
done | |
WifiVendorId=`cat /sys/bus/mmc/devices/mmc1\:*/mmc1\:*\:1/vendor` | |
if [[ "0x024c" == $WifiVendorId ]]; then | |
echo "#############[vendor: $WifiVendorId] rtl8189ftv wifi ##########" | |
insmod /system/driver/rtl8189ftv.ko | |
elif [[ "0x007a" == $WifiVendorId ]]; then | |
echo "#############[vendor: $WifiVendorId] atbm603x wifi ############" | |
cp /usr/share/atbm603x_conf/atbm_txpwer_dcxo_cfg.txt /tmp | |
cp /usr/share/atbm603x_conf/set_rate_power.txt /tmp | |
insmod /system/driver/atbm603x_wifi_sdio.ko | |
sleep 1 | |
if [[ ! -f /sys/module/atbm603x_wifi_sdio/parameters/fw_ver ]]; then | |
sync | |
echo 3 > /proc/sys/vm/drop_caches | |
echo "\n\n\n\n\n------------------$Success------------------\n\n\n" | |
cp /usr/share/atbm603x_conf/atbm_txpwer_dcxo_cfg.txt /tmp | |
cp /usr/share/atbm603x_conf/set_rate_power.txt /tmp | |
insmod /system/driver/atbm603x_wifi_sdio.ko | |
fi | |
elif [[ "0x5653" == $WifiVendorId ]]; then | |
echo "#############[vendor: $WifiVendorId] ssv6x5x wifi #############" | |
insmod /system/driver/ssv6x5x.ko stacfgpath=/system/driver/ssv6x5x-wifi.cfg | |
elif [[ "0x424c" == $WifiVendorId ]]; then | |
echo "#############[vendor: $WifiVendorId] bl_fdrv wifi #############" | |
insmod /system/driver/bl_fdrv.ko | |
else | |
echo "#############[vendor: $WifiVendorId] unknown wifi #############" | |
fi | |
mkdir /tmp/app | |
touch /tmp/resolv.conf | |
sleep 1 | |
#flash_eraseall /dev/mtd0 | |
/system/bin/ver-comp | |
/system/bin/assis & | |
/system/init/factory.sh & | |
/system/bin/factorycheck | |
if [ -f /tmp/factory ]; then | |
exit | |
fi | |
insmod /system/driver/sample_motor.ko vstep_offset=0 hmaxstep=2130 vmaxstep=1580 #由于单板工装需要进行对电机管脚进行操作所以从这里进行加载驱动 | |
/system/bin/hl_client & | |
/system/bin/iCamera_app & | |
#/system/bin/dongle_app & | |
#echo 47 > /sys/class/gpio/export | |
#echo 48 > /sys/class/gpio/export | |
#echo out > /sys/class/gpio/gpio47/direction | |
#echo out > /sys/class/gpio/gpio48/direction | |
#echo 0 > /sys/class/gpio/gpio47/value | |
#echo 0 > /sys/class/gpio/gpio48/value | |
#采集音频测试程序 | |
#mount -t vfat /dev/mmcblk0p1 /media/mmc/ | |
#sleep 1 | |
#cp /media/mmc/sample-Ai /tmp | |
#sync | |
#cd /media/mmc/ | |
#rm ai_record.pcm | |
#cd /tmp | |
#./sample-Ai | |
#sleep 1 | |
#cp /tmp/ai_record.pcm /media/mmc/ | |
#sync | |
#umount /media/mmc | |
#echo 1 > /sys/class/gpio/gpio47/value | |
#echo 1 > /sys/class/gpio/gpio48/value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment