Orange Pi R1 Plus LTS 6.1/6.6 longer boot time net tweak. (#5902)

RTL8153B - does not initialize correctly on boot.  Reboot is okay.

Start delay work-around in the board file needs tweaking for longer boot time.
This commit is contained in:
schwar3kat
2023-11-13 21:12:33 +13:00
committed by GitHub
parent a6bab7050e
commit ac9373aca4

View File

@@ -57,17 +57,17 @@ if [[ $BRANCH == legacy ]]; then
fi
# add a network rule to work-around Debian issues with two NICs on one network.
display_alert "Creating board support network rename rule to work-around Debian issues for orangepi-r1-plus-lts"
# add a network rule to work-around RTL8153B initialization issue.
display_alert "Creating board support network rename rule to work-around RTL8153B initialization issue for orangepi-r1-plus-lts"
mkdir -p "${destination}"/etc/udev/rules.d/
cat <<- EOF > "${destination}"/etc/udev/rules.d/70-rename-lan.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", KERNEL=="end*", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="r8152", KERNEL=="e*", NAME="lan0", \
RUN+="/usr/sbin/ip link set lan0 down", \
RUN+="/usr/sbin/ip link set eth0 down", \
RUN+="/usr/bin/sleep 7s ", \
RUN+="/usr/bin/sleep 5s ", \
RUN+="/usr/sbin/ip link set eth0 up", \
RUN+="/usr/bin/sleep 11s ", \
RUN+="/usr/bin/sleep 25s ", \
RUN+="/usr/sbin/ip link set lan0 up"
EOF
}