aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bmips/bcm6328
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2023-06-12 19:51:22 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2023-06-15 20:58:16 +0200
commit3d66e7f1db70c98876ea6e9aeb57622d6d30c5e8 (patch)
tree35f33a9f4a369e8561de2209c3f70d3559e082e7 /target/linux/bmips/bcm6328
parentb8bbe0d8006f086ab90ec0d304a4d1afdf91b1cb (diff)
downloadupstream-3d66e7f1db70c98876ea6e9aeb57622d6d30c5e8.tar.gz
upstream-3d66e7f1db70c98876ea6e9aeb57622d6d30c5e8.tar.bz2
upstream-3d66e7f1db70c98876ea6e9aeb57622d6d30c5e8.zip
bmips: add support for Sercomm AD1018
The Sercomm AD1018 is a wifi fast ethernet router, 2.4 GHz single band with two internal antennas. Hardware: - SoC: Broadcom BCM6328 - CPU: single core BMIPS4350 @ 320Mhz - RAM: 64 MB (v1) / 128 MB (v2) DDR - Flash: 128 MB NAND - Ethernet LAN: 4x 100Mbit - Wifi 2.4 GHz: miniPCI Broadcom BCM43217 802.11bgn - USB: 1x 2.0 - Buttons: 3x (reset) - LEDs: yes - UART: yes Installation via OEM web UI: 1. Use the admin credentials to login via web UI 2. Go to Managament->Update firmware and select the OpenWrt CFE firmware 3. Press "Update Firmware" button and wait some minutes until it finish Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> (cherry picked from commit 38ebb2eafde604ff6d9b0021d1d21208070a2d09)
Diffstat (limited to 'target/linux/bmips/bcm6328')
-rw-r--r--target/linux/bmips/bcm6328/base-files/etc/board.d/01_leds16
-rw-r--r--target/linux/bmips/bcm6328/base-files/etc/board.d/02_network4
-rw-r--r--target/linux/bmips/bcm6328/base-files/lib/upgrade/platform.sh3
3 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/bmips/bcm6328/base-files/etc/board.d/01_leds b/target/linux/bmips/bcm6328/base-files/etc/board.d/01_leds
new file mode 100644
index 0000000000..5ece1f7ba1
--- /dev/null
+++ b/target/linux/bmips/bcm6328/base-files/etc/board.d/01_leds
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+. /lib/functions/leds.sh
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+case "$(board_name)" in
+sercomm,ad1018)
+ ucidef_set_led_usbport "usb" "USB" "green:usb" "usb1-port1" "usb2-port1"
+ ;;
+esac
+
+board_config_flush
+
+exit 0
diff --git a/target/linux/bmips/bcm6328/base-files/etc/board.d/02_network b/target/linux/bmips/bcm6328/base-files/etc/board.d/02_network
index c9c704067e..66f9282e48 100644
--- a/target/linux/bmips/bcm6328/base-files/etc/board.d/02_network
+++ b/target/linux/bmips/bcm6328/base-files/etc/board.d/02_network
@@ -10,6 +10,10 @@ comtrend,ar-5387un)
ucidef_set_bridge_device switch
ucidef_set_interface_lan "lan1 lan2 lan3 lan4"
;;
+sercomm,ad1018)
+ ucidef_set_bridge_device switch
+ ucidef_set_interface_lan "lan1 lan2 lan3 fibre"
+ ;;
esac
board_config_flush
diff --git a/target/linux/bmips/bcm6328/base-files/lib/upgrade/platform.sh b/target/linux/bmips/bcm6328/base-files/lib/upgrade/platform.sh
index 1cf95be26a..d820b20718 100644
--- a/target/linux/bmips/bcm6328/base-files/lib/upgrade/platform.sh
+++ b/target/linux/bmips/bcm6328/base-files/lib/upgrade/platform.sh
@@ -9,6 +9,9 @@ platform_check_image() {
platform_do_upgrade() {
case "$(board_name)" in
+ sercomm,ad1018)
+ nand_do_upgrade "$1"
+ ;;
*)
default_do_upgrade "$1"
;;