add (duo256m config):support SPINAND image compilation on IOB board

This commit is contained in:
xiaomin
2024-04-15 18:08:03 +08:00
parent 2761a30699
commit 850d6e42b8
19 changed files with 1333 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#!/bin/bash
export MV_BOARD=milkv-duo256m-spinand
export MV_BOARD_CPU=cv1812cp
export MV_VENDOR=milkv
export MV_BUILD_ENV=milkvsetup.sh
export MV_BOARD_LINK=cv1812cp_milkv_duo256m_spinand

View File

@ -0,0 +1,21 @@
#!/bin/sh
LED_PIN=354
LED_GPIO=/sys/class/gpio/gpio${LED_PIN}
if test -d ${LED_GPIO}; then
echo "PIN ${LED_PIN} already exported"
else
echo ${LED_PIN} > /sys/class/gpio/export
fi
echo out > ${LED_GPIO}/direction
while true; do
echo 0 > ${LED_GPIO}/value
sleep 0.5
echo 1 > ${LED_GPIO}/value
sleep 0.5
done

View File

@ -0,0 +1,12 @@
#!/bin/sh
# Set Pin-29(GP22) to GPIO
devmem 0x0502707c 32 0x111
devmem 0x03001068 32 0x3
# Set Pin-19(GP14) to GPIO
duo-pinmux -w GP14/GP14 > /dev/null
# Insmod PWM Module
insmod /mnt/system/ko/cv181x_pwm.ko

View File

@ -0,0 +1,4 @@
#!/bin/sh
echo host > /proc/cviusb/otg_role >> /tmp/usb.log 2>&1

View File

@ -0,0 +1,14 @@
#!/bin/sh
/etc/uhubon.sh device >> /tmp/rndis.log 2>&1
/etc/run_usb.sh probe rndis >> /tmp/rndis.log 2>&1
/etc/run_usb.sh start rndis >> /tmp/rndis.log 2>&1
sleep 0.5
ifconfig usb0 192.168.42.1
count=`ps | grep dnsmasq | grep -v grep | wc -l`
if [ ${count} -lt 1 ] ;then
echo "/etc/init.d/S80dnsmasq start" >> /tmp/rndis.log 2>&1
/etc/init.d/S80dnsmasq start >> /tmp/rndis.log 2>&1
fi

View File

@ -0,0 +1 @@
usb-host.sh