Commit Graph

980 Commits

Author SHA1 Message Date
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
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
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
coolsnowwolf
ee1d80efcc ipq40xx: fix ath10k-ct conflit with ac58u 2021-07-02 22:19:33 +08:00
coolsnowwolf
80abbb1656 x86: add luci-app-qbittorrent by default 2021-07-02 22:17:15 +08:00
coolsnowwolf
4f7aaacb00 adjust default package 2021-06-30 20:44:49 +08:00
coolsnowwolf
01e4998f6d qBittorrent: add static build for lazy guys 2021-06-30 19:15:41 +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
coolsnowwolf
6add79ce44 fix luci-app-turboacc dependence 2021-06-29 22:37:51 +08:00
coolsnowwolf
38fcecc1ad ipq807x: add led configuration 2021-06-29 11:38:08 +08:00
coolsnowwolf
b9089dbf09 ipq807x: update current partition directly 2021-06-29 11:37:17 +08:00
John Audia
c3b54e78a5 ipq806x: refresh config for kernel 5.4
* With kernel 5.4.128, ran: make kernel_menuconfig CONFIG_TARGET=generic
* Manually added back CONFIG_LEDS_TRIGGER_DISK=y so as not to revert
  f93fcf8923aa ("ipq806x: enable disk-activity LED trigger")

Signed-off-by: John Audia <graysky@archlinux.us>
[minor commit title/message adjustments]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-06-29 11:14:56 +08:00
Tianling Shen
b40baddcfe
kernel: 5.10: re-add shortcut-fe patch (#7204)
* kernel: 5.10: re-add shortcut-fe patch

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* ipq807x: compat with SFE patch

Patch for ECM support includes some stuff provided by the one for sfe
alreadly, simply remove these duplicated parts.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* qca-nss-ecm: rework netfilter conntrack notification

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-06-28 02:30:57 +00:00
Hauke Mehrtens
f379898615 kernel: Backport patch to automatically bring up DSA master when opening user port
Without this patch we have to manually bring up the CPU interface in
failsafe mode.

This was backported from kernel 5.12.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Rafał Miłecki <rafal@milecki.pl>
2021-06-27 00:57:26 +08:00
Jason A. Donenfeld
2e53a967fc kernel-5.4: backport latest patches for wireguard
These are the latest patches that just landed upstream for 5.13, will be
backported by Greg into 5.10 (because of stable@), and are now in the
5.4 backport branch of wireguard: https://git.zx2c4.com/wireguard-linux/log/?h=backport-5.4.y

Cc: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Tested-by: Stijn Segers <foss@volatilesystems.org>
2021-06-27 00:56:27 +08:00
Beginner
4c3740979a
kernel: bump 5.10 to 5.10.46 (#7166)
Add the new symbol to the generic kconfig.

No deleted or manually refreshed patches.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2021-06-26 15:28:28 +00:00
coolsnowwolf
3a87b9106c ipq807x: fix Xiaomi AX3600/AX9000 support 2021-06-26 02:47:30 +08:00
coolsnowwolf
8f3ca3ae4e Revert "fix 600-qca-nss-ecm-support-CORE.patch (#7184)"
This reverts commit 21ad3b6462.
2021-06-26 02:19:33 +08:00
Hugo Yuan
21ad3b6462
fix 600-qca-nss-ecm-support-CORE.patch (#7184) 2021-06-25 17:30:04 +00:00
AmadeusGhost
f1d18ecb17
ipq-wifi: makefile bug fixes (#7180)
Fixes: eac26cc353
2021-06-25 04:40:12 +00:00
coolsnowwolf
37e0686458 ipq807x: add ath11k wireless 2021-06-24 12:26:35 +08:00
coolsnowwolf
eac26cc353 ipq807x: add Redmi AX6, Xiaomi AX9000 support 2021-06-24 12:16:06 +08:00
coolsnowwolf
fb9568cbe3 kernel: bump 5.4 to 5.4.128 2021-06-24 10:49:50 +08:00
Beginner
9fef48a0ad
kernel: bump 5.10 to 5.10.44 (#7034)
Add the new symbol to the generic kconfig.

No deleted or manually refreshed patches.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Signed-off-by: Signed-off-by: Beginner <70857188+Beginner-Go@users.noreply.github.com>

Co-authored-by: Rui Salvaterra <rsalvaterra@gmail.com>
2021-06-23 13:24:07 +08:00
coolsnowwolf
f5a8fa17f9 target: use ccache by default 2021-06-22 10:59:48 +08:00
dunkeng
3e593ca647
mvebu: switch to kernel 5.10 (#7114) 2021-06-21 07:56:24 +00:00
lean
445ada8627 ramips: switch to kernel 5.10 2021-06-21 15:55:46 +08:00
lean
55d545b926 luci-app-cpufreq : move to target 2021-06-21 15:44:56 +08:00
AmadeusGhost
87e2f29128
ipq806x: re-added support for Ruijie M520 (#7105)
Signed-off-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2021-06-20 07:45:22 +00:00
lean
13ae7ee67d x86: add Hyper-V & PVE image build 2021-06-20 00:29:29 +08:00
lean
2a60fb0d17 bcm53xx: drop spi rom target support 2021-06-19 22:45:35 +08:00
lean
e63bfdca57 ramips: fix mt7620a 8M support 2021-06-19 18:09:39 +08:00
Felix Fietkau
2fef510468 kernel: disable CONFIG_PCIE_BUS_PERFORMANCE
The option was added in 5.9 and for some reason, it is causing performance
issues at least on an APU2 board with the igb device.
Switch CONFIG_PCIE_BUS_DEFAULT to fix the performance issues and match the
older kernel's behavior

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2021-06-19 16:40:43 +08:00
AmadeusGhost
1e54d20241
ipq40xx: some typo and bug fixes (#7080) 2021-06-19 08:32:38 +00:00
lean
34fa22926e Merge branch 'master' of https://github.com/coolsnowwolf/lede 2021-06-19 13:03:34 +08:00
lean
bae5572a81 luci-app-docker: add data-root path config 2021-06-19 13:03:27 +08:00
Beginner
9a2df98c56
mac80211: sync upstream (#7077)
* mac80211: remove patches stripping down crypto support

Use of WPA3 and things like FILS is getting much more common, and platforms
that can't affort the extra kilobytes for this code are fading away.
Let's not hold back modern authentication methods any longer

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

* kernel: make cryptoapi support needed by mac80211 built-in

This reduces the flash space impact, since built-in code is much smaller
than a bunch of kernel modules on squashfs

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

* mac80211: remove extra patch accidentally added during rebase

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

Co-authored-by: Felix Fietkau <nbd@nbd.name>
2021-06-19 12:44:24 +08:00
lean
069d9a1d19 bcm53xx: fix phicomm-k3 wireless 2021-06-17 11:08:29 +08:00
lean
72f3ab2009 rockchip: sync upstream 2021-06-16 15:04:58 +08:00
lean
44570084e3 generic: add SHORTCUT_FE symbol 2021-06-16 14:02:25 +08:00
lean
060621b5fe ipq40xx: replace flow to SFE offload 2021-06-16 13:15:45 +08:00
lean
d0408aa5e0 wireless: revert remove ndo_do_ioctl fallback 2021-06-16 12:57:56 +08:00
lean
f1e7ffbd74 generic: add shortcut-fe support for 5.10 2021-06-16 12:55:28 +08:00
lean
45b0103a59 x86: add kmod-ixgbevf 2021-06-16 12:19:14 +08:00
lean
7a4654cee3 x86: kernel swtich to 5.10 2021-06-16 12:11:43 +08:00