sysdrv:Makefile:modify the method of compiling WiFi/BT drivers
sysdrv:drv_ko:wifi:aic8800dc:optimize Bluetooth transmission
sysdrv:tools:board:buildroot:resolve the issue where the USB cannot automatically obtain an IP address
sysdrv:tools:board:luckfox_config:add an optional setting for UART3M1 on the Luckfox Pico Mini
sysdrv:source:kernel:arch:arm👢dts:eliminate display noise on the LF40-72720-ARK
sysdrv:source:uboot:rkbin:bin:rv11:resolve the issue of certain SD card models not being recognized
Refactor:sysdrv:Makefile:obtain WiFi/BT drivers from source compilation on the Ubuntu system
Perf:sysdrv:drv_ko:wifi:aic8800dc:expand WiFi/Bluetooth rfkill management methods, increase Bluetooth communication baud rate, and reduce communication lag
Fix:sysdrv:tools:board:buildroot:resolve the issue where the `rkipc` program overwrites the IP address of USB0 when the camera is activated on the Luckfox Pico Ultra
Fix:source:uboot:rkbin:bin:rv11:resolve the issue where, in the presence of an image on SPI NAND, romboot prioritizes using `.bin` from SPI NAND, causing the SD card to be unrecognized
Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
42 lines
833 B
Bash
Executable File
42 lines
833 B
Bash
Executable File
#!/bin/sh
|
|
|
|
TARGET_IP="172.32.0.93"
|
|
|
|
MAX_RETRIES=10
|
|
retries=0
|
|
|
|
usb0_config() {
|
|
if [ "$(cat /proc/device-tree/usbdrd/usb@ffb00000/dr_mode)" == "peripheral" ]; then
|
|
current_ip=$(ifconfig usb0 | grep -o 'inet addr:[^ ]*' | awk -F ':' '{print $2}')
|
|
echo "current_ip = $current_ip"
|
|
echo "TARGET_IP = $TARGET_IP"
|
|
|
|
while [[ "$current_ip" != "$TARGET_IP" && $retries -lt $MAX_RETRIES ]]; do
|
|
sleep .5
|
|
echo "luckfox : set usb0 ip"
|
|
ifconfig usb0 "$TARGET_IP"
|
|
current_ip=$(ifconfig usb0 | grep -o 'inet addr:[^ ]*' | awk -F ':' '{print $2}')
|
|
echo $current_ip
|
|
retries=$((retries + 1))
|
|
done
|
|
|
|
if [[ "$current_ip" != "$TARGET_IP" ]]; then
|
|
echo "usb0 config error"
|
|
else
|
|
echo "usb0 config success"
|
|
fi
|
|
else
|
|
echo "usb0 is using host mode"
|
|
fi
|
|
}
|
|
|
|
case $1 in
|
|
start)
|
|
usb0_config
|
|
;;
|
|
stop) ;;
|
|
*)
|
|
exit 1
|
|
;;
|
|
esac
|