aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/base-files/etc/board.d
diff options
context:
space:
mode:
authorSantiago Piccinini <spiccinini@altermundi.net>2019-03-08 22:10:25 -0300
committerChristian Lamparter <chunkeey@gmail.com>2019-03-13 16:25:34 +0100
commit24463d0d9479bf701e3aaa122f539a43cc97402b (patch)
tree716b2cf98d375812b910882f62e20b2706c9dc08 /target/linux/ath79/base-files/etc/board.d
parent93601d647f69c49a2520d7bccec6f09764962d7e (diff)
downloadupstream-24463d0d9479bf701e3aaa122f539a43cc97402b.tar.gz
upstream-24463d0d9479bf701e3aaa122f539a43cc97402b.tar.bz2
upstream-24463d0d9479bf701e3aaa122f539a43cc97402b.zip
ath79: add support for LibreRouter v1
Hardware -------- SOC: QCA9558 RAM: 128M DDR2 Flash: 16MiB SPI-NOR ETH: QCA8337N: 2x 10/100/1000 PoE and PoE pass-through WiFi2: QCA9558 (bgn) 2T2R WiFi5: 2x mPCIE with AR9582 (an) 2T2R BTN: 1x Reset GPIO: multiple GPIO on header, PoE passthrough enable UART: 3.3V 115200 8N1 header on the board WDG: ATTiny13 watchdog JTAG: header on the board USB: 1x connector and 1x header on the board PoE: 10-32V input in ETH port 1, passthrough in port 2 mPCIE: 2x populated with radios (but replaceable) OpenWrt is preinstalled from factory. To install use <your-image>-sysupgade.bin using the web interface or with sysupgrade -n. Flash from bootloader (in case failsafe does not work) 1. Connect the LibreRouter with a serial adapter (TTL voltage) to the UART header in the board. 2. Connect an ETH cable and configure static ip addres 192.168.1.10/24 3. Turn on the device and stop the bootloader sending any key through the serial interface. 4. Use a TFTP server to serve <your image>-sysupgrade.bin file. 5. Execute the following commands at the bootloader prompt: ath> tftp 82000000 <your image>-sysupgrade.bin ath> erase 0x9f050000 +$filesize ath> cp.b 0x82000000 0x9f050000 $filesize ath> bootm 0x9f050000 More docs * Bootloader https://github.com/librerouterorg/u-boot * Board details (schematics, gerbers): https://github.com/librerouterorg/board Signed-off-by: Santiago Piccinini <spiccinini@altermundi.net>
Diffstat (limited to 'target/linux/ath79/base-files/etc/board.d')
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/02_network4
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/03_gpio_switches3
2 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network
index e66eb938fd..037e5777ed 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -118,6 +118,10 @@ ath79_setup_interfaces()
ucidef_add_switch "switch0" \
"0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
;;
+ librerouter,librerouter-v1)
+ ucidef_add_switch "switch0" \
+ "0@eth0" "5:wan" "6@eth1" "4:lan"
+ ;;
nec,wg800hp)
ucidef_add_switch "switch0" \
"0@eth0" "2:lan" "3:lan" "4:lan" "1:wan"
diff --git a/target/linux/ath79/base-files/etc/board.d/03_gpio_switches b/target/linux/ath79/base-files/etc/board.d/03_gpio_switches
index 4f08fab525..dc5cbf6e9c 100755
--- a/target/linux/ath79/base-files/etc/board.d/03_gpio_switches
+++ b/target/linux/ath79/base-files/etc/board.d/03_gpio_switches
@@ -14,6 +14,9 @@ dlink,dir-825-c1|\
dlink,dir-835-a1)
ucidef_add_gpio_switch "wan_led_auto" "WAN LED Auto" "20" "0"
;;
+librerouter,librerouter-v1)
+ ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "1" "0"
+ ;;
ubnt,nanostation-ac)
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "3"
;;