diff options
author | Clemens Hopfer <openwrt@wireloss.net> | 2022-05-28 21:34:48 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2022-06-24 23:59:14 +0200 |
commit | 8c0930b70b4f8d7447e34a59d52b1a5485aa4d49 (patch) | |
tree | 6a8625b642e6a1d79752a8f540d346f35528ac78 /target/linux/octeon/base-files | |
parent | 29ed58c8bee1de5b1779494e88620862edc44700 (diff) | |
download | upstream-8c0930b70b4f8d7447e34a59d52b1a5485aa4d49.tar.gz upstream-8c0930b70b4f8d7447e34a59d52b1a5485aa4d49.tar.bz2 upstream-8c0930b70b4f8d7447e34a59d52b1a5485aa4d49.zip |
octeon: add support for Ubiquiti UniFi Security Gateway
Ubiquiti UniFi Security Gateway (USG) is largely identical to
the EdgeRouter Lite (ERLite-3) apart from a different board ID
and two dome leds.
Device data (from WikiDev):
CPU: Cavium Octeon Plus CN5020 @500MHz 2-cores
Ethernet: 3x Atheros AR8035-A GbE PHY's
Flash: On-board 4MB Flash
Storage: Internal 3.8GB USB Flash (Kingston ID) drive
w/ 1.5GB free for use occupies single internal USB port.
Serial: 1x RJ45 port on front panel. 115200, 8N1
Buttons: 1x Reset
Flash instructions are identical to EdgeRouter Lite.
Signed-off-by: Clemens Hopfer <openwrt@wireloss.net>
Diffstat (limited to 'target/linux/octeon/base-files')
4 files changed, 12 insertions, 6 deletions
diff --git a/target/linux/octeon/base-files/etc/board.d/01_network b/target/linux/octeon/base-files/etc/board.d/01_network index 194faeaad9..906e838a6f 100644 --- a/target/linux/octeon/base-files/etc/board.d/01_network +++ b/target/linux/octeon/base-files/etc/board.d/01_network @@ -7,7 +7,8 @@ board_config_update case "$(board_name)" in -itus,shield-router) +itus,shield-router|\ +ubnt,usg) ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0" ;; ubnt,edgerouter-4) diff --git a/target/linux/octeon/base-files/lib/preinit/01_sysinfo b/target/linux/octeon/base-files/lib/preinit/01_sysinfo index d66618b0cf..b3246eab41 100644 --- a/target/linux/octeon/base-files/lib/preinit/01_sysinfo +++ b/target/linux/octeon/base-files/lib/preinit/01_sysinfo @@ -17,7 +17,8 @@ do_sysinfo_octeon() { name="erpro" ;; - "UBNT_E300"*) + "UBNT_E300"*|\ + "UBNT_USG"*) # let generic 02_sysinfo handle it since device has its own device tree return 0 ;; diff --git a/target/linux/octeon/base-files/lib/preinit/79_move_config b/target/linux/octeon/base-files/lib/preinit/79_move_config index ae155a3c5c..01491500a0 100644 --- a/target/linux/octeon/base-files/lib/preinit/79_move_config +++ b/target/linux/octeon/base-files/lib/preinit/79_move_config @@ -15,7 +15,8 @@ octeon_move_config() { . /lib/functions.sh case "$(board_name)" in - erlite) + erlite|\ + ubnt,usg) move_config "/dev/sda1" ;; itus,shield-router) diff --git a/target/linux/octeon/base-files/lib/upgrade/platform.sh b/target/linux/octeon/base-files/lib/upgrade/platform.sh index 84533d642a..14b3eefe7e 100755 --- a/target/linux/octeon/base-files/lib/upgrade/platform.sh +++ b/target/linux/octeon/base-files/lib/upgrade/platform.sh @@ -27,7 +27,8 @@ platform_copy_config_helper() { platform_copy_config() { case "$(board_name)" in - erlite) + erlite|\ + ubnt,usg) platform_copy_config_helper /dev/sda1 ;; itus,shield-router) @@ -91,7 +92,8 @@ platform_do_upgrade() { ubnt,edgerouter-6p) kernel=mmcblk0p1 ;; - erlite) + erlite|\ + ubnt,usg) kernel=sda1 ;; itus,shield-router) @@ -119,7 +121,8 @@ platform_check_image() { erlite | \ itus,shield-router | \ ubnt,edgerouter-4 | \ - ubnt,edgerouter-6p) + ubnt,edgerouter-6p | \ + ubnt,usg) local kernel_length=$(tar xf $tar_file $board_dir/kernel -O | wc -c 2> /dev/null) local rootfs_length=$(tar xf $tar_file $board_dir/root -O | wc -c 2> /dev/null) [ "$kernel_length" = 0 -o "$rootfs_length" = 0 ] && { |