Add USB DT overlays to small H2+/H3/H5 boards

Enables USB ports on pin headers by default on future Armbian images
This commit is contained in:
ThomasKaiser 2017-11-01 15:39:22 +01:00
parent e193addaa3
commit e1ab0cbed9
9 changed files with 15 additions and 9 deletions

View File

@ -5,6 +5,7 @@ BOOTCONFIG="nanopi_neo_air_defconfig"
# #
MODULES="#w1-sunxi #w1-gpio #w1-therm #sunxi-cir hci_uart rfcomm hidp dhd g_serial" MODULES="#w1-sunxi #w1-gpio #w1-therm #sunxi-cir hci_uart rfcomm hidp dhd g_serial"
MODULES_NEXT="brcmfmac g_serial" MODULES_NEXT="brcmfmac g_serial"
DEFAULT_OVERLAYS="usbhost1 usbhost2"
CPUMIN="240000" CPUMIN="240000"
CPUMAX="912000" CPUMAX="912000"
# #

View File

@ -5,7 +5,7 @@ BOOTCONFIG="nanopi_duo_defconfig"
MODULES="#w1-sunxi #w1-gpio #w1-therm #sunxi-cir xradio_wlan g_serial xradio_wlan" MODULES="#w1-sunxi #w1-gpio #w1-therm #sunxi-cir xradio_wlan g_serial xradio_wlan"
MODULES_NEXT="g_serial" MODULES_NEXT="g_serial"
MODULES_BLACKLIST="dhd" MODULES_BLACKLIST="dhd"
DEFAULT_OVERLAYS="usbhost2" DEFAULT_OVERLAYS="usbhost2 usbhost3"
CPUMIN=240000 CPUMIN=240000
CPUMAX=1200000 CPUMAX=1200000
BUILD_DESKTOP="no" BUILD_DESKTOP="no"

View File

@ -5,6 +5,7 @@ BOOTCONFIG="nanopi_neo_defconfig"
# #
MODULES="#w1-sunxi #w1-gpio #w1-therm #sunxi-cir g_serial" MODULES="#w1-sunxi #w1-gpio #w1-therm #sunxi-cir g_serial"
MODULES_NEXT="g_serial" MODULES_NEXT="g_serial"
DEFAULT_OVERLAYS="usbhost1 usbhost2"
CPUMIN="240000" CPUMIN="240000"
CPUMAX="912000" CPUMAX="912000"
# #

View File

@ -5,6 +5,7 @@ BOOTCONFIG="nanopi_neo2_defconfig"
# #
MODULES="" MODULES=""
MODULES_NEXT="" MODULES_NEXT=""
DEFAULT_OVERLAYS="usbhost1 usbhost2"
CPUMIN="480000" CPUMIN="480000"
CPUMAX="912000" CPUMAX="912000"
# #

View File

@ -4,6 +4,7 @@ LINUXFAMILY="sun50iw2"
BOOTCONFIG="nanopi_neo_plus2_defconfig" BOOTCONFIG="nanopi_neo_plus2_defconfig"
MODULES="" MODULES=""
MODULES_NEXT="" MODULES_NEXT=""
DEFAULT_OVERLAYS="usbhost1 usbhost2"
CPUMIN="480000" CPUMIN="480000"
CPUMAX="1008000" CPUMAX="1008000"
# #

View File

@ -6,6 +6,7 @@ BOOTCONFIG="orangepi_zero_defconfig"
MODULES="#w1-sunxi #w1-gpio #w1-therm #sunxi-cir xradio_wlan g_serial xradio_wlan" MODULES="#w1-sunxi #w1-gpio #w1-therm #sunxi-cir xradio_wlan g_serial xradio_wlan"
MODULES_NEXT="g_serial" MODULES_NEXT="g_serial"
MODULES_BLACKLIST="dhd" MODULES_BLACKLIST="dhd"
DEFAULT_OVERLAYS="usbhost2 usbhost3"
CPUMIN=240000 CPUMIN=240000
CPUMAX=1200000 CPUMAX=1200000
BUILD_DESKTOP="no" BUILD_DESKTOP="no"

View File

@ -6,6 +6,7 @@ BOOTCONFIG="orangepi_zero_plus2_h3_defconfig"
MODULES="#w1-sunxi #w1-gpio #w1-therm #sunxi-cir hci_uart rfcomm hidp dhd g_serial" MODULES="#w1-sunxi #w1-gpio #w1-therm #sunxi-cir hci_uart rfcomm hidp dhd g_serial"
MODULES_NEXT="brcmfmac g_serial" MODULES_NEXT="brcmfmac g_serial"
MODULES_BLACKLIST="" MODULES_BLACKLIST=""
DEFAULT_OVERLAYS="usbhost2 usbhost3"
CPUMIN=240000 CPUMIN=240000
CPUMAX=1200000 CPUMAX=1200000
# #

View File

@ -6,6 +6,7 @@ BOOTCONFIG="orangepi_zero_plus2_defconfig"
MODULES="#w1-sunxi #w1-gpio #w1-therm #sunxi-cir hci_uart rfcomm hidp dhd g_serial" MODULES="#w1-sunxi #w1-gpio #w1-therm #sunxi-cir hci_uart rfcomm hidp dhd g_serial"
MODULES_NEXT="brcmfmac g_serial" MODULES_NEXT="brcmfmac g_serial"
MODULES_BLACKLIST="" MODULES_BLACKLIST=""
DEFAULT_OVERLAYS="usbhost2 usbhost3"
CPUMIN=240000 CPUMIN=240000
CPUMAX=1200000 CPUMAX=1200000
BUILD_DESKTOP="no" BUILD_DESKTOP="no"

View File

@ -153,9 +153,8 @@ InstallOpenMediaVault() {
sed -i '/systemctl\ disable\ firstrun/a \ sed -i '/systemctl\ disable\ firstrun/a \
sleep 30 && sync && reboot' /etc/init.d/firstrun sleep 30 && sync && reboot' /etc/init.d/firstrun
# add USB3 Gigabit Ethernet and NAS Dock support # add USB3 Gigabit Ethernet support
echo -e "r8152\nax88179_178a" >>/etc/modules echo -e "r8152\nax88179_178a" >>/etc/modules
egrep -q "air|neo|zero" <<<${BOARD} && echo "overlays=usbhost0 usbhost2 usbhost3" >>/boot/armbianEnv.txt
# Special treatment for ODROID-XU4 (and later Amlogic S912, RK3399 and other big.LITTLE # Special treatment for ODROID-XU4 (and later Amlogic S912, RK3399 and other big.LITTLE
# based devices). Move all NAS daemons to the big cores. # based devices). Move all NAS daemons to the big cores.