Commit Graph

3527 Commits

Author SHA1 Message Date
Hyy2001X
9111ddb8b1
luci-app-nfs: fix page jump (#7368) 2021-07-13 21:11:41 +08:00
AmadeusGhost
5e34f40296
ramips: improve support for dlink and xiaomi devices (#7370)
* ramips: dlink_dir-8xx-a1: switch to breed partition

* ramips: improve support for cr660x
2021-07-13 21:11:06 +08:00
coolsnowwolf
811525694b ipq40xx: use schedutil governor replace of ondemand 2021-07-13 15:30:08 +08:00
coolsnowwolf
b35d695901 ath10k-ct: remove noise log 2021-07-13 10:10:34 +08:00
HoldOnBro
4e1890478e
Update docker.po (#7366)
* Update docker.po

* Update docker.lua
2021-07-13 01:43:10 +00:00
coolsnowwolf
604ceaa750 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2021-07-13 00:39:11 +08:00
coolsnowwolf
3625a73046 ramips: switch to kernel 5.10 2021-07-13 00:37:50 +08:00
Beginner
4641e712d0
hostapd: sync upstream (#7361)
* hostapd: make it possible to update station airtime weights via ubus

This allows dynamic tuning based on other runtime information

Signed-off-by: Felix Fietkau <nbd@nbd.name>

* hostapd: add support for enabling HE on channel switch

Signed-off-by: Felix Fietkau <nbd@nbd.name>

* hostapd: initialize ht/vht/he mode on channel switch by default

Use the current mode, but allow overwriting via ubus command parameters

Signed-off-by: Felix Fietkau <nbd@nbd.name>

* hostapd: fix uninitialized stack variable on CSA

Signed-off-by: Felix Fietkau <nbd@nbd.name>

Co-authored-by: Felix Fietkau <nbd@nbd.name>
2021-07-12 14:06:20 +00:00
Beginner
2cc5ee12c8
ath79: add support for TP-Link RE455 v1 (#7362)
TP-Link RE455 v1 is a dual band router/range-extender based on
Qualcomm/Atheros QCA9563 + QCA9880.

This device is nearly identical to RE450 v3

Specification:

- 775 MHz CPU
- 64 MB of RAM (DDR2)
- 8 MB of FLASH (SPI NOR)
- 3T3R 2.4 GHz
- 3T3R 5 GHz
- 1x 10/100/1000 Mbps Ethernet (AR8033 PHY)
- 7x LED, 4x button
- UART header on PCB[1]

Flash instruction:
Apply factory image in OEM firmware web-gui.

[1] Didn't work, probably need to short unpopulated resistor R64
    and R69 as RE450v3

Signed-off-by: Roberto Valentini <valantin89@gmail.com>

Co-authored-by: Roberto Valentini <valantin89@gmail.com>
2021-07-12 14:05:52 +00:00
AmadeusGhost
89a8e0d652
ipq806x: fix nss frequency on ipq8062 (#7360) 2021-07-12 13:59:14 +00:00
coolsnowwolf
4b4261fff3 x86: add zen3 cpu temperature and 5990x support 2021-07-12 17:32:00 +08:00
AmadeusGhost
aa73053a71
ipq806x: re-added support for Ruijie M520 again (#7330)
Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
2021-07-11 01:25:59 +08:00
coolsnowwolf
f99839aea2 ipq806x: add default package 2021-07-10 12:16:46 +08:00
coolsnowwolf
25683fe038 ipq807x: add NSS ecm 64 support 2021-07-10 08:43:31 +08:00
Felix Fietkau
83f53db630 mediatek: prevent duplicate hardware flow offload entries
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2021-07-09 22:53:51 +08:00
Felix Fietkau
dde33c4b02 kernel: backport a few upstream flow offloading fixes
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2021-07-09 22:53:26 +08:00
coolsnowwolf
f01d2831cb wireless-regdb: add 30dbm wireless signal for CN/US region 2021-07-09 18:30:21 +08:00
coolsnowwolf
67e0aa3a01 ath10k: add tx hw 802.11 encapusaltion offloading support 2021-07-09 18:18:34 +08:00
coolsnowwolf
2513ccaf94 mac80211: NSS classify tx support 2021-07-09 17:39:01 +08:00
coolsnowwolf
ff90683203 luci-app-turboacc: add NSS-ECM support for IPQ806x/IPQ807x 2021-07-09 17:06:07 +08:00
coolsnowwolf
adf04492ee ipq806x: add NSS Hardware Offloading support 2021-07-09 17:03:34 +08:00
AmadeusGhost
b6f610d00d
luci-app-turboacc: use flow offload by default for ramips (#7320) 2021-07-09 02:01:31 +00:00
coolsnowwolf
4790aa244b mac80211: add tasklet_kill step during NSS interface take down 2021-07-08 12:57:11 +08:00
coolsnowwolf
800501b488 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2021-07-08 12:27:12 +08:00
coolsnowwolf
e82fddcf0e mac80211: add support for NSS firmware 2021-07-08 12:27:04 +08:00
libinanshu
b7d4936042
add Pisen_WPR003N (#7307)
* Update arpbind.po

* Update sfe.po

* Update flowoffload.po

* add Pisen_WPR003N
2021-07-08 02:55:13 +00:00
coolsnowwolf
f85ad474b4 luci-app-turboacc: use SFE by default 2021-07-07 15:37:06 +08:00
Beginner
3d3d099f90
dnsproxy: update to 0.38.2 (#7297) 2021-07-06 15:26:33 +00:00
AmadeusGhost
d9e4d8d981
ntfs3: update to latest git HEAD (#7295)
Removed patches that were merged upstream.
2021-07-06 15:25:42 +00:00
Ansuel Smith
430a7b442f scripts: check if dl directory exist in dl_cleanup script
Check if the provided dl directory exist and return on error.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-07-06 14:31:20 +08:00
David Bauer
40b63f28e8 hostapd: add HE flag to get_clients
Expose the hostapd HE flag via ubus to indicate HE capable devices.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-07-06 14:30:48 +08:00
Martin Weinelt
935151084e hostapd: remove unused mac_buff allocation
Signed-off-by: Martin Weinelt <hexa@darmstadt.ccc.de>
2021-07-06 14:30:34 +08:00
Martin Weinelt
1754452baa hostapd: report bssid, ssid and channel over ubus
Imports a function from iw to convert frequencies to channel numbers.

Co-authored-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Martin Weinelt <hexa@darmstadt.ccc.de>
[fix potential out of bounds read]
Signed-off-by: David Bauer <mail@david-bauer.net>
2021-07-06 14:30:16 +08:00
coolsnowwolf
01438961e6 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2021-07-06 14:29:19 +08:00
Kevin Darbyshire-Bryant
0c8e2bd7d0 dnsmasq: use local option for local domain parameter
'--local' is a synonym for '--server' so let's use '--local' in the
resultant config file for uci's 'local' instead of uci's local
parameter being turned into '--server'.  Slightly less confusion all
round.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2021-07-06 14:28:49 +08:00
Tianling Shen
0f29dec405
Revert "ath11k: fixes a memory leak as the MHI controller was allocated but never freed" (#7286)
This makes memory leak more seriously.

This reverts commit 48a880a190.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-07-06 06:27:21 +00:00
coolsnowwolf
6675de3732 Revert "ath11k: fix for peer memory corruption"
This reverts commit 83b29e014f.
2021-07-06 14:26:13 +08:00
coolsnowwolf
6ad4588a9b ath11k: allow vht on 2.4g 2021-07-06 00:08:31 +08:00
coolsnowwolf
83b29e014f ath11k: fix for peer memory corruption 2021-07-06 00:07:39 +08:00
coolsnowwolf
6967bf73f0 ipq807x: ax6/ax3600 use 512M RAM profile 2021-07-06 00:06:32 +08:00
Evgeniy Isaev
c8468aa59c ath79: add support for Xiaomi AIoT Router AC2350
Device specifications
* SoC: QCA9563 @ 775MHz (MIPS 74Kc)
* RAM: 128MiB DDR2
* Flash: 16MiB SPI-NOR (EN25QH128)
* Wireless 2.4GHz (SoC): b/g/n, 3x3
* Wireless 5Ghz (QCA9988): a/n/ac, 4x4 MU-MIMO
* IoT Wireless 2.4GHz (QCA6006): currently unusable
* Ethernet (AR8327): 3 LAN × 1GbE, 1 WAN × 1GbE
* LEDs: Internet (blue/orange), System (blue/orange)
* Buttons: Reset
* UART: through-hole on PCB ([VCC 3.3v](RX)(GND)(TX) 115200, 8n1)
* Power: 12VDC, 1,5A

MAC addresses map (like in OEM firmware)
  art@0x0     88:C3:97:*:57  wan/label
  art@0x1002  88:C3:97:*:2D  lan/wlan2g
  art@0x5006  88:C3:97:*:2C  wlan5g

Obtain SSH Access
1. Download and flash the firmware version 1.3.8 (China).
2. Login to the router web interface and get the value of `stok=` from the
   URL
3. Open a new tab and go to the following URL (replace <STOK> with the stok
   value gained above; line breaks are only for easier handling, please put
   together all four lines into a single URL without any spaces):
     http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/misystem/set_config_iotdev
       ?bssid=any&user_id=any&ssid=-h%0Anvram%20set%20ssh_en%3D1%0Anvram%20commit
       %0Ased%20-i%20%27s%2Fchannel%3D.%2A%2Fchannel%3D%5C%5C%22debug%5C%5C%22%2F
       g%27%20%2Fetc%2Finit.d%2Fdropbear%0A%2Fetc%2Finit.d%2Fdropbear%20start%0A
4. Wait 30-60 seconds (this is the time required to generate keys for the
   SSH server on the router).

Create Full Backup
1. Obtain SSH Access.
2. Create backup of all flash (on router):
    dd if=/dev/mtd0 of=/tmp/ALL.backup
3. Copy backup to PC (on PC):
    scp root@192.168.31.1:/tmp/ALL.backup ./
Tip: backup of the original firmware, taken three times, increases the
chances of recovery :)

Calculate The Password
* Locally using shell (replace "12345/E0QM98765" with your router's serial
  number):
  On Linux
    printf "%s6d2df50a-250f-4a30-a5e6-d44fb0960aa0" "12345/E0QM98765" | \
    md5sum - | head -c8 && echo
  On macOS
    printf "%s6d2df50a-250f-4a30-a5e6-d44fb0960aa0" "12345/E0QM98765" | \
    md5 | head -c8
* Locally using python script (replace "12345/E0QM98765" with your
  router's serial number):
    wget https://raw.githubusercontent.com/eisaev/ax3600-files/master/scripts/calc_passwd.py
    python3.7 -c 'from calc_passwd import calc_passwd; print(calc_passwd("12345/E0QM98765"))'
* Online
    https://www.oxygen7.cn/miwifi/

Debricking (lite)
If you have a healthy bootloader, you can use recovery via TFTP using
programs like TinyPXE on Windows or dnsmasq on Linux. To switch the router
to TFTP recovery mode, hold down the reset button, connect the power
supply, and release the button after about 10 seconds. The router must be
connected directly to the PC via the LAN port.

Debricking
You will need a full dump of your flash, a CH341 programmer, and a clip
for in-circuit programming.

Install OpenWRT
1. Obtain SSH Access.
2. Create script (on router):
    echo '#!/bin/sh' > /tmp/flash_fw.sh
    echo >> /tmp/flash_fw.sh
    echo '. /bin/boardupgrade.sh' >> /tmp/flash_fw.sh
    echo >> /tmp/flash_fw.sh
    echo 'board_prepare_upgrade' >> /tmp/flash_fw.sh
    echo 'mtd erase rootfs_data' >> /tmp/flash_fw.sh
    echo 'mtd write /tmp/openwrt.bin firmware' >> /tmp/flash_fw.sh
    echo 'sleep 3' >> /tmp/flash_fw.sh
    echo 'reboot' >> /tmp/flash_fw.sh
    echo >> /tmp/flash_fw.sh
    chmod +x /tmp/flash_fw.sh
3. Copy `openwrt-ath79-generic-xiaomi_aiot-ac2350-squashfs-sysupgrade.bin`
   to the router (on PC):
    scp openwrt-ath79-generic-xiaomi_aiot-ac2350-squashfs-sysupgrade.bin \
    root@192.168.31.1:/tmp/openwrt.bin
4. Flash OpenWRT (on router):
    /bin/ash /tmp/flash_fw.sh &
5. SSH connection will be interrupted - this is normal.
6. Wait for the indicator to turn blue.

Signed-off-by: Evgeniy Isaev <isaev.evgeniy@gmail.com>
[improve commit message formatting slightly]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-07-05 22:49:15 +08:00
coolsnowwolf
9c78339ab5 iproute2: re-nice patch 2021-07-05 22:46:11 +08:00
coolsnowwolf
c4b625f3bb iproute2: drop sprint_rate() and uses print_rate() 2021-07-05 18:40:12 +08:00
coolsnowwolf
48a880a190 ath11k: fixes a memory leak as the MHI controller was allocated but never freed 2021-07-05 18:01:22 +08:00
coolsnowwolf
d7ee5d6016 iproute2: tc: add support for NSS qdisc 2021-07-05 17:24:38 +08:00
coolsnowwolf
ddfd47b436 shortcut-fe: add simulated-driver 2021-07-05 17:11:19 +08:00
coolsnowwolf
843dd8fcd7 ath79: fix dw33d nor breed-factory build 2021-07-05 13:49:18 +08:00
coolsnowwolf
cec9b9983a x86: add emmc boot support 2021-07-05 13:41:54 +08:00
Beginner
a595602d28
luci-app-jd-dailybonus: sync upstream (#7276)
Co-authored-by: cielpy <beijiu572@gmail.com>
2021-07-05 05:35:42 +00:00
AmadeusGhost
70b6c02432
ipq806x: sync upstream source code (#7270)
* ipq806x: fix missing changes in 5.4 for new cpufreq implementation

The new cpufreq dedicated driver changed the node structure
on how the cache should be defined in the dts. The 5.4 dtsi addition
patch has not been updated to follow the new implementation.
Fix this to restore correct cache scaling and restore any performance
regression.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>

* ipq806x: fix missing 1.4ghz cache freq for ipq8065 SoC

With the new implementation of the dedicated cpufreq driver,
the 1.4 Ghz was only dropped and not added to the ipq8065 SoC.
Fix this to improve performance.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>

* ipq806x: fix dedicated cpufreq driver

2 small fix for the dedicated cpufreq driver:
- Fix index wrongly used as the current cpu
- Exit early if a bad freq is detected. In the current state the freq
is applied anyway even with invalid state.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>

Co-authored-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-07-04 10:52:46 +08:00