mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-03 20:07:59 +00:00
ucentral: development update
* add tplink_cpe510_v3 support Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
88
patches/0035-ath79-various-fixes.patch
Normal file
88
patches/0035-ath79-various-fixes.patch
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
From 167c998efc5ba755bafc1aca1bf68d9e694e4c10 Mon Sep 17 00:00:00 2001
|
||||||
|
From: John Crispin <john@phrozen.org>
|
||||||
|
Date: Sat, 8 May 2021 11:30:32 +0200
|
||||||
|
Subject: [PATCH] ath79: various fixes
|
||||||
|
|
||||||
|
* free up additional 1MB rootfs space
|
||||||
|
* make the target use bridge-vlan
|
||||||
|
* use the single eth port as wan
|
||||||
|
|
||||||
|
Signed-off-by: John Crispin <john@phrozen.org>
|
||||||
|
---
|
||||||
|
target/linux/ath79/dts/ar9344_tplink_cpe.dtsi | 20 ++++++++-----------
|
||||||
|
.../generic/base-files/etc/board.d/02_network | 3 ++-
|
||||||
|
tools/firmware-utils/src/tplink-safeloader.c | 4 ++--
|
||||||
|
3 files changed, 12 insertions(+), 15 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/target/linux/ath79/dts/ar9344_tplink_cpe.dtsi b/target/linux/ath79/dts/ar9344_tplink_cpe.dtsi
|
||||||
|
index d4b7de440a..c5ab963174 100644
|
||||||
|
--- a/target/linux/ath79/dts/ar9344_tplink_cpe.dtsi
|
||||||
|
+++ b/target/linux/ath79/dts/ar9344_tplink_cpe.dtsi
|
||||||
|
@@ -59,20 +59,16 @@
|
||||||
|
partition@40000 {
|
||||||
|
label = "firmware";
|
||||||
|
reg = <0x040000 0x780000>;
|
||||||
|
+ };
|
||||||
|
|
||||||
|
- compatible = "fixed-partitions";
|
||||||
|
- #address-cells = <1>;
|
||||||
|
- #size-cells = <1>;
|
||||||
|
-
|
||||||
|
- partition@0 {
|
||||||
|
- label = "kernel";
|
||||||
|
- reg = <0x000000 0x300000>;
|
||||||
|
- };
|
||||||
|
+ partition@040000 {
|
||||||
|
+ label = "kernel";
|
||||||
|
+ reg = <0x040000 0x210000>;
|
||||||
|
+ };
|
||||||
|
|
||||||
|
- partition@300000 {
|
||||||
|
- label = "rootfs";
|
||||||
|
- reg = <0x300000 0x480000>;
|
||||||
|
- };
|
||||||
|
+ partition@340000 {
|
||||||
|
+ label = "rootfs";
|
||||||
|
+ reg = <0x250000 0x560000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
partition@7c0000 {
|
||||||
|
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network
|
||||||
|
index 1e522b91c6..b8bc38348e 100755
|
||||||
|
--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network
|
||||||
|
+++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network
|
||||||
|
@@ -94,7 +94,7 @@ ath79_setup_interfaces()
|
||||||
|
ubnt,unifi|\
|
||||||
|
wd,mynet-wifi-rangeextender|\
|
||||||
|
winchannel,wb2000)
|
||||||
|
- ucidef_set_interface_lan "eth0"
|
||||||
|
+ ucidef_set_interface_wan "eth0"
|
||||||
|
;;
|
||||||
|
airtight,c-75)
|
||||||
|
ucidef_add_switch "switch0" \
|
||||||
|
@@ -669,6 +669,7 @@ ath79_setup_macs()
|
||||||
|
|
||||||
|
board_config_update
|
||||||
|
board=$(board_name)
|
||||||
|
+ucidef_set_bridge_device bridge
|
||||||
|
ath79_setup_interfaces $board
|
||||||
|
ath79_setup_macs $board
|
||||||
|
board_config_flush
|
||||||
|
diff --git a/tools/firmware-utils/src/tplink-safeloader.c b/tools/firmware-utils/src/tplink-safeloader.c
|
||||||
|
index ac71b3305e..2bc4a3cb82 100644
|
||||||
|
--- a/tools/firmware-utils/src/tplink-safeloader.c
|
||||||
|
+++ b/tools/firmware-utils/src/tplink-safeloader.c
|
||||||
|
@@ -443,8 +443,8 @@ static struct device_info boards[] = {
|
||||||
|
{"default-mac", 0x30000, 0x00020},
|
||||||
|
{"product-info", 0x31100, 0x00100},
|
||||||
|
{"signature", 0x32000, 0x00400},
|
||||||
|
- {"os-image", 0x40000, 0x300000},
|
||||||
|
- {"file-system", 0x340000, 0x470000},
|
||||||
|
+ {"os-image", 0x40000, 0x210000},
|
||||||
|
+ {"file-system", 0x250000, 0x560000},
|
||||||
|
{"soft-version", 0x7b0000, 0x00100},
|
||||||
|
{"support-list", 0x7b1000, 0x00400},
|
||||||
|
{"user-config", 0x7c0000, 0x10000},
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
8
profiles/tplink_cpe510_v3.yml
Normal file
8
profiles/tplink_cpe510_v3.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
profile: tplink_cpe510-v3
|
||||||
|
target: ath79
|
||||||
|
subtarget: generic
|
||||||
|
description: Build image for the TPLink CPE 510 v3
|
||||||
|
image: bin/targets/ath79/generic/openwrt-ath79-generic-tplink_cpe510-v3-squashfs-sysupgrade.bin
|
||||||
|
include:
|
||||||
|
- ucentral-ap-light
|
||||||
@@ -6,17 +6,30 @@ feeds:
|
|||||||
- name: tip
|
- name: tip
|
||||||
path: ../../feeds/tip
|
path: ../../feeds/tip
|
||||||
|
|
||||||
|
include:
|
||||||
|
- webui
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
- kmod-batman-adv
|
||||||
|
- batctl-default
|
||||||
|
- batmand
|
||||||
- curl
|
- curl
|
||||||
- ip-bridge
|
- ip-bridge
|
||||||
|
- ratelimit
|
||||||
|
- sqm-scripts
|
||||||
|
- tip-defaults
|
||||||
- ucentral-client
|
- ucentral-client
|
||||||
|
- ucentral-event
|
||||||
- ucentral-jsonschema
|
- ucentral-jsonschema
|
||||||
- ucentral-schema
|
- ucentral-schema
|
||||||
- ucentral-wifi
|
- ucentral-wifi
|
||||||
- ucentral-defaults
|
- ucentral-defaults
|
||||||
- ucentral-tools
|
- ucentral-tools
|
||||||
- ucode
|
- ucode
|
||||||
|
- udhcpsnoop
|
||||||
|
- uledd
|
||||||
- usteer
|
- usteer
|
||||||
|
- udevmand
|
||||||
- wpad-mesh-openssl
|
- wpad-mesh-openssl
|
||||||
diffconfig: |
|
diffconfig: |
|
||||||
CONFIG_OPENSSL_ENGINE=y
|
CONFIG_OPENSSL_ENGINE=y
|
||||||
@@ -30,7 +43,9 @@ diffconfig: |
|
|||||||
CONFIG_OPENSSL_WITH_SRP=y
|
CONFIG_OPENSSL_WITH_SRP=y
|
||||||
CONFIG_OPENSSL_WITH_TLS13=y
|
CONFIG_OPENSSL_WITH_TLS13=y
|
||||||
# CONFIG_PACKAGE_wpad-basic-wolfssl is not set
|
# CONFIG_PACKAGE_wpad-basic-wolfssl is not set
|
||||||
|
# CONFIG_PACKAGE_dnsmasq is not set
|
||||||
CONFIG_IMAGEOPT=y
|
CONFIG_IMAGEOPT=y
|
||||||
CONFIG_PREINITOPT=y
|
CONFIG_PREINITOPT=y
|
||||||
CONFIG_TARGET_PREINIT_SUPPRESS_STDERR=y
|
CONFIG_TARGET_PREINIT_SUPPRESS_STDERR=y
|
||||||
CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE=y
|
CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE=y
|
||||||
|
# CONFIG_BATMAN_ADV_BATMAN_V is not set
|
||||||
|
|||||||
Reference in New Issue
Block a user