mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-03-26 02:26:42 +07:00
opiaimax: install npu driver
This commit is contained in:
1
external/config/boards/orangepiaimax.conf
vendored
1
external/config/boards/orangepiaimax.conf
vendored
@@ -11,6 +11,5 @@ BOOT_SUPPORT_SPI="yes"
|
||||
SKIP_BOOTSPLASH="yes" # Skip boot splash patch, conflicts with CONFIG_VT=yes
|
||||
DISTRIB_TYPE_LEGACY="bullseye bookworm bionic focal jammy"
|
||||
DISTRIB_TYPE_CURRENT="bullseye bookworm focal jammy"
|
||||
INSTALL_HEADERS="yes"
|
||||
BOOTFS_TYPE="fat"
|
||||
REVISION="1.0.0"
|
||||
|
||||
@@ -144,6 +144,7 @@ family_tweaks_s() {
|
||||
|
||||
chroot $SDCARD /bin/bash -c "apt-get -y -qq install usb-modeswitch tree dnsmasq v4l-utils swig python3-dev python3-setuptools bluez libncurses-dev" >> "${DEST}"/${LOG_SUBPATH}/install.log 2>&1
|
||||
|
||||
[[ ${BOARD} =~ orangepiaimax ]] && install_310b-npu-driver
|
||||
install_wiringop
|
||||
install_balenaEtcher
|
||||
|
||||
@@ -181,11 +182,13 @@ family_tweaks_s() {
|
||||
fi
|
||||
|
||||
# Realtek 8811CU/8821CU usb modeswitch support
|
||||
cp ${SDCARD}/lib/udev/rules.d/40-usb_modeswitch.rules ${SDCARD}/etc/udev/rules.d/40-usb_modeswitch.rules
|
||||
sed '/LABEL="modeswitch_rules_end"/d' -i ${SDCARD}/etc/udev/rules.d/40-usb_modeswitch.rules
|
||||
cat >> ${SDCARD}/etc/udev/rules.d/40-usb_modeswitch.rules <<-EOF
|
||||
# Realtek 8821CU Wifi AC USB
|
||||
ATTR{idVendor}=="0bda", ATTR{idProduct}=="1a2b", RUN+="/usr/sbin/usb_modeswitch -K -v 0bda -p 1a2b"
|
||||
LABEL="modeswitch_rules_end"
|
||||
EOF
|
||||
if [[ -f ${SDCARD}/lib/udev/rules.d/40-usb_modeswitch.rules ]]; then
|
||||
cp ${SDCARD}/lib/udev/rules.d/40-usb_modeswitch.rules ${SDCARD}/etc/udev/rules.d/40-usb_modeswitch.rules
|
||||
sed '/LABEL="modeswitch_rules_end"/d' -i ${SDCARD}/etc/udev/rules.d/40-usb_modeswitch.rules
|
||||
cat >> ${SDCARD}/etc/udev/rules.d/40-usb_modeswitch.rules <<-EOF
|
||||
# Realtek 8821CU Wifi AC USB
|
||||
ATTR{idVendor}=="0bda", ATTR{idProduct}=="1a2b", RUN+="/usr/sbin/usb_modeswitch -K -v 0bda -p 1a2b"
|
||||
LABEL="modeswitch_rules_end"
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user