mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
Compare commits
4 Commits
v4.1.0-rc2
...
WIFI-14993
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c36ffcdd7 | ||
|
|
e7cd5038ac | ||
|
|
34e4a01e25 | ||
|
|
60e9fb2645 |
@@ -151,6 +151,14 @@
|
||||
no-map;
|
||||
reg = <0x0 0x4F000000 0x0 0x100000>;
|
||||
};
|
||||
|
||||
ramoops: ramoops@4f100000 {
|
||||
compatible = "ramoops";
|
||||
reg = <0x0 0x4f100000 0x0 0x80000>;
|
||||
record-size = <0x20000>;
|
||||
console-size = <0x20000>;
|
||||
pmsg-size = <0x20000>;
|
||||
};
|
||||
#else
|
||||
/* 512MB/1GB Profiles
|
||||
* +==========+==============+=========================+
|
||||
@@ -285,6 +293,13 @@
|
||||
reg = <0x0 0x4F800000 0x0 0x500000>;
|
||||
};
|
||||
|
||||
ramoops: ramoops@4fd00000 {
|
||||
compatible = "ramoops";
|
||||
reg = <0x0 0x4fd00000 0x0 0x80000>;
|
||||
record-size = <0x20000>;
|
||||
console-size = <0x20000>;
|
||||
pmsg-size = <0x20000>;
|
||||
};
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
@@ -151,6 +151,14 @@
|
||||
no-map;
|
||||
reg = <0x0 0x4F000000 0x0 0x100000>;
|
||||
};
|
||||
|
||||
ramoops: ramoops@4f100000 {
|
||||
compatible = "ramoops";
|
||||
reg = <0x0 0x4f100000 0x0 0x80000>;
|
||||
record-size = <0x20000>;
|
||||
console-size = <0x20000>;
|
||||
pmsg-size = <0x20000>;
|
||||
};
|
||||
#else
|
||||
/* 512MB/1GB Profiles
|
||||
* +==========+==============+=========================+
|
||||
@@ -285,6 +293,13 @@
|
||||
reg = <0x0 0x4F800000 0x0 0x500000>;
|
||||
};
|
||||
|
||||
ramoops: ramoops@4fd00000 {
|
||||
compatible = "ramoops";
|
||||
reg = <0x0 0x4fd00000 0x0 0x80000>;
|
||||
record-size = <0x20000>;
|
||||
console-size = <0x20000>;
|
||||
pmsg-size = <0x20000>;
|
||||
};
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
@@ -154,6 +154,14 @@
|
||||
no-map;
|
||||
reg = <0x0 0x4F000000 0x0 0x100000>;
|
||||
};
|
||||
|
||||
ramoops: ramoops@4f100000 {
|
||||
compatible = "ramoops";
|
||||
reg = <0x0 0x4f100000 0x0 0x80000>;
|
||||
record-size = <0x20000>;
|
||||
console-size = <0x20000>;
|
||||
pmsg-size = <0x20000>;
|
||||
};
|
||||
#else
|
||||
/* 512MB/1GB Profiles
|
||||
* +==========+==============+=========================+
|
||||
@@ -288,6 +296,13 @@
|
||||
reg = <0x0 0x4F800000 0x0 0x500000>;
|
||||
};
|
||||
|
||||
ramoops: ramoops@4fd00000 {
|
||||
compatible = "ramoops";
|
||||
reg = <0x0 0x4fd00000 0x0 0x80000>;
|
||||
record-size = <0x20000>;
|
||||
console-size = <0x20000>;
|
||||
pmsg-size = <0x20000>;
|
||||
};
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
@@ -200,7 +200,7 @@
|
||||
phy-mode = "sgmii";
|
||||
full-duplex;
|
||||
pause;
|
||||
airoha,surge = <1>;
|
||||
airoha,surge = <0>;
|
||||
airoha,polarity = <2>;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import * as fs from 'fs';
|
||||
|
||||
let cmd = ARGV[0];
|
||||
let ifname = getenv("interface");
|
||||
let opt224 = getenv("opt138");
|
||||
let opt138 = getenv("opt138");
|
||||
let opt224 = getenv("opt224");
|
||||
|
||||
if (cmd != 'bound' && cmd != 'renew')
|
||||
|
||||
@@ -20,6 +20,7 @@ let config;
|
||||
let offline_timer;
|
||||
let current_state;
|
||||
let online = false;
|
||||
let leds_off = false;
|
||||
|
||||
function self_healing() {
|
||||
let heal_wifi = false;
|
||||
@@ -148,6 +149,13 @@ function online_handler() {
|
||||
|
||||
function config_load() {
|
||||
ulog(LOG_INFO, 'loading config\n');
|
||||
|
||||
uci.load('system');
|
||||
let led_off_cfg = uci.get("system", "@system[0]", "leds_off");
|
||||
if (led_off_cfg == 1) {
|
||||
leds_off = true;
|
||||
}
|
||||
|
||||
uci.load('state');
|
||||
config = uci.get_all('state');
|
||||
|
||||
@@ -191,7 +199,7 @@ function led_find(alias) {
|
||||
function factory_reset_timeout() {
|
||||
let led = led_find('led-running');
|
||||
if (led)
|
||||
led_write(led, 'trigger', 'default-on');
|
||||
led_write(led, 'trigger', leds-off ? 'none' : 'default-on');
|
||||
}
|
||||
|
||||
let blink_timer;
|
||||
@@ -210,7 +218,7 @@ let state_handler = {
|
||||
offline: function() {
|
||||
online = false;
|
||||
let led = led_find('led-running');
|
||||
if (led)
|
||||
if (!leds_off && led)
|
||||
led_write(led, 'trigger', 'heartbeat');
|
||||
if (config.ui.offline_trigger) {
|
||||
if (offline_timer)
|
||||
@@ -223,7 +231,7 @@ let state_handler = {
|
||||
online: function() {
|
||||
online = true;
|
||||
let led = led_find('led-running');
|
||||
if (led)
|
||||
if (!leds_off && led)
|
||||
led_write(led, 'trigger', 'default-on');
|
||||
online_handler();
|
||||
return 0;
|
||||
|
||||
38
patches/0100-sonicfi_rap63xc-211g-enable-pstore.patch
Normal file
38
patches/0100-sonicfi_rap63xc-211g-enable-pstore.patch
Normal file
@@ -0,0 +1,38 @@
|
||||
From adbd8be88f9c5af3f79dc106bc0f2ace5eb50768 Mon Sep 17 00:00:00 2001
|
||||
From: jackcybertan <jack.tsai@cybertan.com.tw>
|
||||
Date: Thu, 21 Aug 2025 15:22:51 +0800
|
||||
Subject: [PATCH] sonicfi_rap63xc-211g: enable pstore
|
||||
|
||||
Signed-off-by: jackcybertan <jack.tsai@cybertan.com.tw>
|
||||
---
|
||||
.../ramips/dts/mt7621_sonicfi_rap63xc-211g.dts | 14 ++++++++++++++
|
||||
1 file changed, 14 insertions(+)
|
||||
|
||||
diff --git a/target/linux/ramips/dts/mt7621_sonicfi_rap63xc-211g.dts b/target/linux/ramips/dts/mt7621_sonicfi_rap63xc-211g.dts
|
||||
index b64ca5708b..d076d682c9 100755
|
||||
--- a/target/linux/ramips/dts/mt7621_sonicfi_rap63xc-211g.dts
|
||||
+++ b/target/linux/ramips/dts/mt7621_sonicfi_rap63xc-211g.dts
|
||||
@@ -79,6 +79,20 @@
|
||||
linux,code = <KEY_RESTART>;
|
||||
};
|
||||
};
|
||||
+
|
||||
+ reserved-memory {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <1>;
|
||||
+ ranges;
|
||||
+
|
||||
+ ramoops: ramoops@ff80000 {
|
||||
+ compatible = "ramoops";
|
||||
+ reg = <0x0ff80000 0x80000>;
|
||||
+ record-size = <0x20000>;
|
||||
+ console-size = <0x20000>;
|
||||
+ pmsg-size = <0x20000>;
|
||||
+ };
|
||||
+ };
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
--
|
||||
2.34.1
|
||||
|
||||
Reference in New Issue
Block a user