Commit Graph

47 Commits

Author SHA1 Message Date
Willem Lee
6e84aeb589
ath79: add support for Alibaba AP121-DB (#13417) 2025-03-23 22:10:28 +08:00
Willem Lee
c2a9a0cfec
ath79: add support for Zte E8820 2025-01-16 20:02:01 +08:00
lean
b8c337abe5 ath79: add kernel 5.15 support 2022-04-03 13:34:55 +08:00
libinanshu
89fa14ad27
add TP-LINK TL-WDR7500 V3-16MB (#7550) 2021-07-29 14:42:32 +08:00
coolsnowwolf
b8a2a9b17e ath79: switch to kernel 5.10 2021-07-15 14:39:10 +08: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
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
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
843dd8fcd7 ath79: fix dw33d nor breed-factory build 2021-07-05 13:49:18 +08:00
coolsnowwolf
8e0f468729 ath79: add support for domywifi_dw33d-nor 2021-06-30 13:28:09 +08:00
coolsnowwolf
acf2ce3a64 ath79: add support for Arris SBC-AC1750 2021-06-30 13:17:37 +08:00
coolsnowwolf
5d99eeef7c luci-app-ipsec-vpnd: add strongswan-mod-kernel-libipsec 2021-06-30 13:04:33 +08:00
coolsnowwolf
0581b059ef ath79: add support for TP-Link TL-WDR6500 v2 2021-06-30 01:16:42 +08:00
lean
a3f1e837fd x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
lean
7a50383ab6 add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
coolsnowwolf
4eee58acd5 ath79: add support for Arris SBC-AC1750 2021-04-23 09:58:05 +08:00
AmadeusGhost
6b5b7884a8
ath79: domywifi_dw33d: support startup from breed (#6490)
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>

Co-authored-by: Chen Minqiang <ptpt52@gmail.com>
2021-03-09 23:12:17 +08:00
AmadeusGhost
8de358af76
ramips: XiaoYu-C5: reuse ralink-eth driver (#5605)
* treewide: remove support for 'DEVICE_COMPAT' variable

This commit removes support for the DEVICE_COMPAT variable due to it
requires relatively few changes.

* Revert "ramips: disable PORT 5 MAC RX/TX flow control by default"

The TX/RX flow control is not the cause of the TX timeouts issue

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>

* ramips: net/mediatek fix logical error

fe_empty_txd() should return `tx_ring_size - 1` on ring empty, and
return 0 on ring full.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>

* ramips: net/mediatek disable eee

This disable eee for mt7530 ports, it causes the link down/up
issue, which happens when connecting to 100Mbit switch

Fixes: FS#1449

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>

* ramips: XiaoYu-C5: reuse ralink-eth driver

Co-authored-by: Chen Minqiang <ptpt52@gmail.com>
2020-10-07 23:20:11 +08:00
AmadeusGhost
86bc29e4a8
kernel: bump 5.4 to 5.4.68 (#5555)
[mac80211]
 ca5ee6e mac80211: Fix potential endless loop
 2c14710 mac80211: add more AQL fixes/improvements
 91fb3ce mac80211: remove an obsolete patch that is no longer doing anything useful
 acf1733 mac80211: add preliminary support for enabling 802.11ax in config
 d717343 mac80211: update encap offload patches to the latest version
 673062f mac80211: allow bigger A-MSDU sizes in VHT, even if HT is limited
 caf7277 mac80211: do not allow bigger VHT MPDUs than the hardware supports
 cd36c0d mac80211: select the first available channel for 5GHz interfaces
 1c6d456 mac80211: fix regression in station connection monitor optimization
 4bd7689 mac80211: update sta connection monitor regression fix

[target]
 Sync: at91, ath25, ath79, lantiq, mediatek, mvebu.
2020-10-03 00:36:16 +08:00
AmadeusGhost
404209f6c4
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
kernel: bump to 4.14.193, 4.19.138, 5.4.59 (#5350)
  431fb8c mac80211: add AQL improvements
  6bdd4c9 mac80211: add missing backports for building with 4.14 kernels
  0106820 mac80211: add missing return code checks in AQL improvements
  e7f7101 mac80211: rework encapsulation offload support

[package]
  base-files: add function for generating random MAC
  dnsmasq: abort dhcp_check on interface state
  boot: sync upstream source code
  ath10k-ct-firmware/mt76/sch_cake: update to latest git HEAD

[script]
  download: add China Mirror Station

[target]
  Sync: arc770, ath79, bcm63xx, kirkwood, lantiq, layerscape,
        mediatek, mvebu, octeon, oxnas, pistachio, uml
  Sync most of the target patches.

Run-compiled-on: ipq40xx (4.19 & 5.4), ramips
2020-08-26 11:31:50 +08:00
coolsnowwolf
33abeff31c Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
AmadeusGhost
691def3cad
kernel: bump to 4.9.214, 4.14.171, 4.19.106 (#3375) 2020-02-29 16:28:07 +08:00
coolsnowwolf
191ace6dff Revert "kernel: bump to 4.9.214, 4.14.171, 4.19.106 (#3318)"
This reverts commit 01ab5cf3c9.
2020-02-26 16:47:18 +08:00
AmadeusGhost
01ab5cf3c9
kernel: bump to 4.9.214, 4.14.171, 4.19.106 (#3318)
* kernel: bump 4.14 to 4.14.171

Refreshed all patches.

Fixes:
- CVE-2013-1798

Compile-tested on: cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>

* kernel: bump 4.19 to 4.19.105

Refreshed all patches.

Fixes:
- CVE-2013-1798
- CVE-2019-3016

Compile-tested on: cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>

* kernel: bump 4.19 to 4.19.106

Refreshed all patches.

Remove upstreamed:
- 950-0786-leds-pca963x-Fix-open-drain-initialization.patch

Compile-tested on: cns3xxx
Runtime-tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>

* kernel: bump to 4.9.214, 4.14.171, 4.19.106

Co-authored-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2020-02-25 12:24:44 +08:00
AmadeusGhost
6901278ef0
kernel: bump to 4.14.169, 4.19.101 (#2963)
* kernel: bump to 4.14.169, 4.19.101

* uboot: update to latest

* mediatek: bump to v4.19

* ath79: switch to wpad

* Revert 'grub2: update to latest'
2020-02-06 21:45:40 +08:00
AmadeusGhost
2d7f1ed162
ath79: sync and fix wireless (#2919)
This commit sync target ath79 from openwrt master, and revert some commit which will causes wireless to not work.
Use ath10k-ct-smallbuffers by default, so that small memory devices can normal work.
2020-02-03 23:45:16 +08:00
LEAN-ESX
90eaa19f4e ath79: update upsteam 2019-12-02 05:55:49 -08:00
coolsnowwolf
ab24168802 kernel: bump to 4.9.168 , 4.14.111, 4.19.34 2019-04-12 11:39:40 +08:00
coolsnowwolf
8f7d3a8be8 ath79: add support for TP-Link TL-WR941N v7 2019-02-13 19:07:11 +08:00
coolsnowwolf
7a6e910f3d ath79: add support for qca9563 soc 2019-02-13 18:38:22 +08:00
coolsnowwolf
347daa04b2 Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
coolsnowwolf
c7d3d41ea8 remove ath79 target 2019-01-02 21:16:56 +08:00
coolsnowwolf
57219006c6 ath79: fix pinmux reg size for QCA955x 2018-12-26 16:59:52 +08:00
coolsnowwolf
6b8ddb276b fix k2t bootup mtd mount 2018-12-24 14:06:55 +08:00
coolsnowwolf
ff0173989f ath79: add support for ROSINSON WR818 board 2018-11-28 18:38:01 +08:00
coolsnowwolf
d524395b9d ath79: add more ar71xx 4.14 models support 2018-11-24 16:13:03 +08:00
coolsnowwolf
a2f8e14276 mac80211: make ath10k the default ath10k-ct 2018-09-28 11:00:40 +08:00
coolsnowwolf
4d1bf340d1 wireless drivers upgreade to 4.19-rc4-1. fix many MTK driver issue. ath10k change to ath10k-ct 2018-09-26 23:33:12 +08:00
coolsnowwolf
d857de74f4 add more tp link ath79 (qca9533 qca9561) support 2018-09-25 22:22:10 +08:00
coolsnowwolf
523655caf3 kernel update to 4.9.128 and 4.14.71 2018-09-22 16:57:24 +08:00
coolsnowwolf
806f5db174 sync with OpenWrt trunk 2018-09-07 13:43:55 +08:00
coolsnowwolf
14567c5d31 add PHICOMM K2T support in ath79 target 2018-08-24 13:31:12 +08:00
coolsnowwolf
9ba04fd0d7 sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
coolsnowwolf
b16811e305 update ath79 target 2018-06-04 13:54:20 +08:00
coolsnowwolf
e985e89cae update linux target patch 2018-05-22 18:44:30 +08:00
coolsnowwolf
b308fdeac2 add kernel 4.14 support for Netgear WNDR3800 etc 2018-05-16 12:19:25 +08:00