Commit Graph
100 Commits
Author SHA1 Message Date
Tianling Shen 0f11072202 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2026-02-27 10:46:17 +08:00
Tianling Shen 1a5d2133a3 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2026-02-19 15:57:58 +08:00
Tianling Shen 3a53d6ccae Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2026-02-06 10:49:33 +08:00
Tianling Shen b0399dc206 ImmortalWrt v23.05.7: revert to branch defaults
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-10-23 16:46:42 +08:00
Tianling Shen 9ec479f948 ImmortalWrt v23.05.7: adjust config defaults
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-10-23 16:46:42 +08:00
Tianling Shen cbe21b8faf ubus: backport fixes for CVE-2025-62526
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-10-23 16:43:20 +08:00
Tianling Shen f012529423 mediatek: filogic: drop redudant entry
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-10-23 16:42:52 +08:00
Tianling Shen 88e1c54ee3 kernel: fix perf build due to brickport
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-10-23 15:21:53 +08:00
Tianling Shen 55e4e9a40f kernel: bump to 5.15.195
All patches are automatically refreshed.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-10-20 17:50:36 +08:00
Tianling Shen 048d56199b mac80211: Update to 6.1.157-1
49bc40a55983 wifi: rtlwifi: rtl8192cu: Don't claim USB ID 07b8:8188
8edbe1eecf2f wifi: mwifiex: send world regulatory domain to driver
d04c370c7eca wifi: mt76: fix potential memory leak in mt76_wmac_probe()
aba596b2b6fc wifi: ath10k: avoid unnecessary wait for service ready message
2e955f087334 wifi: mac80211: fix Rx packet handling when pubsta information is not available
695f23561fd0 wifi: rtw89: avoid circular locking dependency in ser_state_run()
67cb933edb7c wifi: ath11k: HAL SRNG: don't deinitialize and re-initialize again

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-10-20 02:37:22 +08:00
Tianling Shen 21fd85b48c bcm53xx: remove some unnecessary changes in xhci_plat_quirks
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-10-20 01:53:01 +08:00
Tianling Shen 40695cc661 target/sdk: change fallback repo url to immortalwrt git
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 43130a2f47)
2025-10-13 17:57:23 +08:00
Tianling Shen 9c92308480 mac80211: Update to 6.1.155-1
e2c8a3c0388a wifi: prevent A-MSDU attacks in mesh networks
adf08c96b963 wifi: zd1211rw: Fix potential NULL pointer dereference in zd_mac_tx_to_dev()
8c767727f331 wifi: rtl818x: Kill URBs before clearing tx status queue
db50476cebc1 wifi: iwlwifi: Fix memory leak in iwl_mvm_init()
6663c52608d8 iwlwifi: Add missing check for alloc_ordered_workqueue
916ac18d526a wifi: ath11k: clear initialized flag for deinit-ed srng lists
363696d8464f wifi: rtl8xxxu: Fix RX skb size for aggregation disabled
b88815ec43cc mwl8k: Add missing check after DMA map
0c84204cf0bb wifi: mac80211: reject TDLS operations when station is not associated
428201d2e0fc wifi: plfxlc: Fix error handling in usb driver probe
7dd33621bef9 wifi: mac80211: Do not schedule stopped TXQs
7d88435075ec wifi: mac80211: Don't call fq_flow_idx() for management frames
3e77cb2b915b wifi: mac80211: Check 802.11 encaps offloading in ieee80211_tx_h_select_key()
c9e78f2fe1f4 Reapply "wifi: mac80211: Update skb's control block key in ieee80211_tx_dequeue()"
d1bf92fef24e wifi: brcmfmac: fix P2P discovery failure in P2P peer due to missing P2P IE
d486ff6734ee wifi: cfg80211: reject HTC bit for management frames
0d9f2cf8a23d wifi: rtw89: Lower the timeout in rtw89_fw_read_c2h_reg() for USB
39ffb7859d5e wifi: iwlwifi: mvm: fix scan request validation
e1ace79c2b78 wifi: mac80211: don't complete management TX on SAE commit
5b658fbf7a29 wifi: rtw89: Fix rtw89_mac_power_switch() for USB
cea647483d4a wifi: rtw89: Disable deep power saving for USB/SDIO
efa92654f3f6 wifi: iwlwifi: dvm: fix potential overflow in rs_fill_link_cmd()
088904e3070e wifi: iwlwifi: fw: Fix possible memory leak in iwl_fw_dbg_collect
31f8b4d46687 wifi: mac80211: update radar_required in channel context after channel switch
b651248da759 wifi: rtlwifi: fix possible skb memory leak in `_rtl_pci_rx_interrupt()`.
715e50062984 wifi: iwlegacy: Check rate_idx range after addition
2e91b756cb70 wifi: rtlwifi: fix possible skb memory leak in _rtl_pci_init_one_rxdesc()
14f157f6419c wifi: brcmsmac: Remove const from tbl_ptr parameter in wlc_lcnphy_common_read_table()
2b94dc1962c6 wifi: ath11k: fix dest ring-buffer corruption
9101ac402cae wifi: ath11k: fix source ring-buffer corruption
90871cdefb57 wifi: ath11k: fix dest ring-buffer corruption when ring is full
602a7b48b42f wifi: mac80211: avoid lockdep checking when removing deflink
3bcb70297742 wifi: mac80211: check basic rates validity in sta_link_apply_parameters
6854476d9e1a wifi: cfg80211: fix use-after-free in cmp_bss()
ec55148e51b5 wifi: cw1200: cap SSID length in cw1200_do_join()
edac15309410 wifi: libertas: cap SSID len in lbs_associate()
8e751d463362 wifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result()
32c124c9c03a wifi: mwifiex: Initialize the chan_stats array to zero
16c9244a6211 wifi: mac80211: increase scan_ies_len for S1G
1f97f6cf81f7 wifi: mac80211: fix incorrect type for ret

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-10-07 15:59:53 +08:00
Tianling Shen e0c2885fdc kernel: bump to 5.15.194
Removed upstreamed patches:
- rockchip/patches-5.15/028-v6.3-net-rfkill-gpio-add-DT-support.patch

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-10-06 19:20:15 +08:00
Tianling Shen 0ecac93e72 bcm53xx: change to use xhci_disable_and_free_slot
Replace xhci_free_virt_device with xhci_disable_and_free_slot
in favor of upstream update:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/usb/host?h=v5.15.190&id=c78c8e5048b7069b6655613ab4e9795a901dbbee

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-09-29 23:02:57 +08:00
Tianling Shen 6020ee24fa ath79: disable build for zyxel nwa11xx by default
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 16821b2e4a)
2025-09-29 19:59:55 +08:00
Tianling Shen 5f2f1e1694 kernel: add missing Kconfig symbol
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-09-29 16:41:42 +08:00
Tianling Shen db9004677f kernel: bump to 5.15.193
Removed upstreamed patches:
- target/linux/bcm27xx/patches-5.15/950-0119-media-tc358743-Increase-FIFO-level-to-374.patch
- target/linux/bcm27xx/patches-5.15/950-0122-media-tc358743-Check-I2C-succeeded-during-probe.patch
- target/linux/bcm27xx/patches-5.15/950-0128-media-tc358743-Return-an-appropriate-colorspace-from.patch
- target/linux/bcm27xx/patches-5.15/950-0278-media-i2c-tc358743-Only-allow-supported-pixel-fmts-i.patch
- target/linux/generic/backport-5.15/895-v6.15-0001-sch_htb-make-htb_qlen_notify-idempotent.patch
- target/linux/generic/backport-5.15/895-v6.15-0002-sch_drr-make-drr_qlen_notify-idempotent.patch
- target/linux/generic/backport-5.15/895-v6.15-0003-sch_hfsc-make-hfsc_qlen_notify-idempotent.patch
- target/linux/generic/backport-5.15/895-v6.15-0004-sch_qfq-make-qfq_qlen_notify-idempotent.patch
- target/linux/generic/backport-5.15/895-v6.15-0005-sch_htb-make-htb_deactivate-idempotent.patch
- target/linux/mediatek/patches-5.15/821-v5.16-pinctrl-mediatek-moore-check-if-pin_desc-is-valid-be.patch

Manually rebased patches:
- target/linux/lantiq/patches-5.15/0152-lantiq-VPE.patch

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-09-28 19:58:31 +08:00
Tianling Shen e797e58c3d uboot-mediatek: update ddrtype for rax3000me ddr3 rev
Fixes: 8918fdf516 ("mediatek: reduce ddr3 frequency for cmmc rax3000me")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 4e0e264e27)
2025-09-28 16:23:30 +08:00
Tianling Shen 3e8efb6425 mediatek: reduce ddr3 frequency for cmmc rax3000me
Reduce memory frequency to 1866MHz for better stability on some devices.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-09-26 21:42:14 +08:00
Tianling Shen f0a43882dc arm-trusted-firmware-mediatek: add 1866mhz ddr3 build for mt7981 emmc/spim-nand
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-09-26 21:40:59 +08:00
Tianling Shen 1f18cda63b odhcpd: fix setting default ra mode
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 65804bf40e)
2025-09-15 14:05:35 +08:00
Tianling Shen 90401f97f7 rockchip: increase the number of serial ports for rk35xx
The RK356x/RK3588 SoCs support up to 10 serial ports.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 672e45e69f)
2025-09-13 21:23:32 +08:00
Tianling Shen 7e179ac117 rockchip: increase emmc speed for ariaboard photonicat
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 862144f378)
2025-09-13 21:23:03 +08:00
Tianling Shen 4169ed8ee4 rockchip: add missing dma-names for ariaboard photonicat
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 22cffc0c76)
2025-09-13 21:22:59 +08:00
Tianling Shen 28eae161bb rockchip: use fixed ifname for ariaboard photonicat
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 524bbdff1c)
2025-09-13 21:22:57 +08:00
Tianling Shen 0ab461f051 r8152: switch to official tarball
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 7ba3ecf84f)
2025-09-13 21:22:29 +08:00
Tianling Shen 33bb675c3c r8152: Update to 2.20.1
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 056e1a84c2)
2025-09-13 21:22:26 +08:00
Tianling Shen 36a93dd5b5 r8152: remove unnecessary dependency
It does not depend on kmod-usb-net.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 57c24aaa31)
2025-09-13 21:22:21 +08:00
Tianling Shen b7f67a813e Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-09-13 21:22:06 +08:00
Tianling Shen de2a9622f5 ImmortalWrt v23.05.6: revert to branch defaults
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-29 15:31:26 +08:00
Tianling Shen 5804844cf8 ImmortalWrt v23.05.6: adjust config defaults
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-29 15:31:23 +08:00
Tianling Shen e6a5113f6b mediatek: fix typo error in 11_fix_wifi_mac
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-27 15:55:32 +08:00
Tianling Shen da3c713110 ImmortalWrt v23.05.5: revert to branch defaults
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-26 15:28:13 +08:00
Tianling Shen cd0ed2da53 ImmortalWrt v23.05.5: adjust config defaults
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-26 15:28:10 +08:00
Tianling Shen 9c1829a5fd automount: remove CONFLICTS for ntfs-3g
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 504bbb152a)
2025-08-25 19:37:23 +08:00
Tianling Shen 9461caf0e6 ucode: backport digest library support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-24 21:23:11 +08:00
Tianling Shen 7e06a9125f openssl: Update to 3.0.17
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-24 16:08:56 +08:00
Tianling Shen c5aaf338a8 Revert "mediatek: switch to use phy-handle for bpi r3-mini"
This reverts commit 007d42f960.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-23 20:30:26 +08:00
Tianling Shen 1b4b8c27e4 Revert "mediatek: Update Airoha EN8811H 2.5G PHY driver to v1.3.0"
This breaks the 10/100/1000Mbps link support.

This reverts commit 3d87e6ddd7.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-23 20:30:17 +08:00
Tianling Shen a28064dd84 mediatek: update Airoha EN8811H firmware to 25062302
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-23 19:50:56 +08:00
Tianling Shen 74205d137a mediatek: add missing 2nd phy led-cfg for bpi r3-mini
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-19 20:29:23 +08:00
Tianling Shen 8b5bb04c92 mediatek: add LED OF configuration support for Airoha EN8811H
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-19 20:22:21 +08:00
Tianling Shen b25b1d884b uboot-mediatek: update Airoha EN8811H driver
Link: https://lore.kernel.org/u-boot/20250720122852.22563-1-lucienzx159@gmail.com/
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-19 16:13:13 +08:00
Tianling Shen 007d42f960 mediatek: switch to use phy-handle for bpi r3-mini
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-19 16:00:10 +08:00
Tianling Shen 3d87e6ddd7 mediatek: Update Airoha EN8811H 2.5G PHY driver to v1.3.0
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-19 15:57:37 +08:00
Tianling Shen e0cb95eac8 mediatek: move airoha en8811h files to files-5.15
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-19 15:57:35 +08:00
Tianling Shen bb499fedd9 mediatek: fix dtsi reference for clt r30b1
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-19 14:05:31 +08:00
Tianling Shen 792f8656e0 uboot-mediatek: improve detect id for gigadevice spi-nand
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-18 20:22:50 +08:00
Tianling Shen c55f2cd9c0 uboot-mediatek: update gigadevice spi-nand support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-18 20:14:58 +08:00
Tianling Shen c6cf484350 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-18 20:03:46 +08:00
Tianling Shen d4eb1e2fa3 uboot-mediatek: update build target for cmcc rax3000me
Fixes: 48a1c1a15d ("mediatek: add bl2 and fip for cmcc rax3000me WS EC version")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit c09678e63d)
2025-08-14 20:32:15 +08:00
Tianling Shen 48a1c1a15d mediatek: add bl2 and fip for cmcc rax3000me WS EC version
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 60ddc788e2)
2025-08-14 20:27:22 +08:00
Tianling Shen 5226341e78 Revert "mediatek: rename uboot for cmcc rax3000me"
This reverts commit dfe9091970.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit a44ad1ac82)
2025-08-14 20:25:05 +08:00
Tianling Shen 831eeed638 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-14 19:52:29 +08:00
Tianling Shen 7fbbc71785 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-08 19:17:29 +08:00
Tianling Shen 27198df40b Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-07-30 16:29:19 +08:00
Tianling Shen bb0179e62c Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-07-27 17:33:44 +08:00
Tianling Shen c15b27583f Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-07-24 17:38:44 +08:00
Tianling Shen 4f33e0e977 bzip2: opt out of lto build
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 06a9f13a1a)
2025-07-23 20:08:49 +08:00
Tianling Shen da3ea178de Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-07-18 17:05:08 +08:00
Tianling Shen 70009182d4 mediatek: add TP-Link TL-XDR3250 v1 support
Specifications:
  - SoC: Mediatek MT7622B
  - RAM: 256M
  - Flash: EN25QH128 16M
  - Ethernet: RTL8367S 3xGE
  - WiFi: MT7622 2.4G 4x4 + MT7905 5G 4x4
  - UART: 3.3v, 115200n8

Flash instruction
Please refer commit 9f73519e62 ("mediatek: add support for TP-Link TL-XDR3230 v1").
This board is basically same as XDR3230 v1 so you can reuse the BL2 and FIP for it.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 70564dc9ab)
2025-07-11 13:24:24 +08:00
Tianling Shen 0e4eeeffab odhcpd: clear default ra flags
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 6e2422eb9d)
2025-07-09 18:46:56 +08:00
Tianling Shen 899baee8d1 arm-trusted-firmware-mediatek: improve use of is_dosilicon
It's only used inside spi_nand_read_pp, no reason to make it as a function.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit ec27c0797d)
2025-07-05 17:05:08 +08:00
Tianling Shen 5f64898b85 arm-trusted-firmware-mediatek: improve support for dosilicon spi-nand flash
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit b7f8c181f3)
2025-07-03 18:57:16 +08:00
Tianling Shen 528edd0858 mediatek: fix typo error
Fixes: 9e88ba8367 ("mediatek: rename uboot for cmcc rax3000me")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit bed2d4f257)
2025-06-26 13:46:51 +08:00
Tianling Shen dfe9091970 mediatek: rename uboot for cmcc rax3000me
It's no longer able to decide memory type by USB port, so let's make
the name bit clear.

Please note that the CH version produced in 2025 does not have USB
port but it still uses DDR3 memory.
As far as we know, CH/XW = DDR3, WS = DDR4.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 9e88ba8367)
2025-06-25 16:22:51 +08:00
Tianling Shen 71055045f1 arm-trusted-firmware-mediatek: rename patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-06-24 15:55:03 +08:00
Tianling Shen d3d754cb8a r8125: use led reg definitions from r8125.h
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 90e406f2ea)
2025-06-22 21:43:06 +08:00
Tianling Shen 49cb5875e4 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-06-22 21:42:56 +08:00
Tianling Shen 779af60b8e mediatek: disable x2 read mode for dosilicon spi-nand flash
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 662eeb4e10)
2025-06-22 21:21:37 +08:00
Tianling Shen 2602b025c0 mediatek: disable unsupported dualio/quadio mode for dosilicon spi-nand flash
Fixes: #1937
Fixes: 25ade3560e ("mediatek: import dosilicon/fmsh/gsto spi nand support")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 9177e65822)
2025-06-22 21:18:28 +08:00
Tianling Shen 77f8fc5ea7 mediatek: remove duplicated Fidelix SPI-NAND driver
Fixes: 25ade3560e ("mediatek: import dosilicon/fmsh/gsto spi nand support")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 19a75c41d4)
2025-06-22 21:18:12 +08:00
Tianling Shen d2710c114c base-files: fix apple ntp domain
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 465535d75b)
2025-06-20 21:49:11 +08:00
Tianling Shen e8d02f71f5 kernel: backport upstream mtk t7xx fixes
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-06-12 21:29:16 +08:00
Tianling Shen 616a3a2abf rockchip: update pcie stuffs for photonicat
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit b225713b3d)
2025-05-27 19:07:50 +08:00
Tianling Shen 1ca3aa402a rockchip: reduce eMMC speed for ariaboard photonicat
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 445f995c78)
2025-05-26 14:51:44 +08:00
Tianling Shen 203cb5c8b5 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-05-25 19:33:46 +08:00
Tianling Shen 6aa15a49e6 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-05-17 16:44:41 +08:00
Tianling Shen 3b49bc3cfb Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-05-16 21:40:32 +08:00
Tianling Shen acee650256 mediatek: switch back to use mxl,led-config prop for netcore n60 pro
New PHY LED bindings are not supported by the driver on this branch.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-05-12 20:24:44 +08:00
Tianling Shen 2a0cab28a8 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-05-09 16:37:43 +08:00
Tianling Shen 8e6d16d6a3 dnsmasq: bump PKG_RELEASE
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 3277a38e14)
2025-05-06 14:29:38 +08:00
Tianling Shen 44fc194dee dnsmasq: change priority of dns hihack rule
To aviod conflict with other programs.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 3d643fcd04)
2025-05-05 20:43:50 +08:00
Tianling Shen 5e763edf63 mt76: drop buggy vht patch
Closes: #1443
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 9ba39e1bbd)
2025-05-04 14:46:27 +08:00
Tianling Shen 67a8d1c5e7 autocore: avoid override packet_steering value
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 1b3d84a03e)
2025-04-30 20:18:22 +08:00
Tianling Shen 16f780cc90 config: disable grub timeout to fix boot issue on some shit devices
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 25a6dc6a6e)
2025-04-29 15:27:18 +08:00
Tianling Shen e52e37450f Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-04-23 20:28:53 +08:00
Tianling Shen 6ff1955c31 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-04-18 22:04:32 +08:00
Tianling Shen 88cdbab7b0 ramips: add support for Huasifei WHF283
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 6a921f15b8)
2025-04-18 21:59:08 +08:00
Tianling Shen d7a0ace7a2 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-04-07 20:41:21 +08:00
Tianling Shen fd92c06e40 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-03-25 14:45:00 +08:00
Tianling Shen 48f9733701 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-03-09 20:07:32 +08:00
Tianling Shen 8e7acb565d uboot-mediatek: refresh uboot configs
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-03-09 19:22:05 +08:00
Tianling Shen f45fc32fb6 mediatek: add CMCC RAX3000Me support
Hardware specification:
  SoC: MediaTek MT7981B 2x A53
  Flash: 64GB eMMC or 128 MB SPI-NAND
  RAM: 512MB DDR3 or DDR4
  Ethernet: 4x 10/100/1000 Mbps
  Switch: MediaTek MT7531AE
  WiFi: MediaTek MT7976C
  Button: Reset, Mesh
  Power: DC 12V 1A

Gain SSH access:
1. Login into web interface, and download the configuration.
2. Get the SN of the device from web interface or the label on the back of the device.
3. Calculate configuration decryption password:
   Command "eval" is necessary here as the encryption implentation treats '$...' as (empty) variables.
   decpwd="$(eval echo $(openssl passwd -1 -salt aV6dW8bD "your_device_sn"))"
4. Decrypt the configuration:
   openssl aes-256-cbc -d -pbkdf2 -k "$decpwd" -in cfg_export_config_file.conf -out cfg_export_config_file.conf.dec
5. Enter fakeroot, decompress the configuration:
   tar -zxf cfg_export_config_file.conf.dec
6. Edit 'etc/shadow', update (remove) root password: 'root::19179:0:99999:7:::'
7. Edit 'etc/rc.local', insert telnetd command before 'exit 0':
   ( sleep 3s; telnetd; ) &
8. Repack the configuration:
   tar -zc etc/ | openssl aes-256-cbc -pbkdf2 -k "$decpwd" -out cfg_export_config_file.conf
   * If you find an error about 'etc/wireless/mediatek/DBDC_card0.dat',
     just ignore it.
9. Upload new configuration via web interface, now you can connect to
   CMCC RAX3000Me via telnet.
(Big thanks to https://github.com/lyq1996 who reverse engineered the encryption method)

Check flash type:
If '/dev/mmcblk0' exists on the device, it's eMMC version.
If '/dev/mtd0' exists on the device, it's NAND version.

eMMC Flash instructions:
1. Connect to RAX3000Me, and backup everything, especially 'factory' part.
   ('data' partition can be ignored, it's useless.)
2. Write new GPT table:
   dd if=immortalwrt-mediatek-filogic-cmcc_rax3000me-emmc-gpt.bin of=/dev/mmcblk0 bs=512 seek=0 count=34 conv=fsync
3. Write new BL2:
   echo 0 > /sys/block/mmcblk0boot0/force_ro
   dd if=immortalwrt-mediatek-filogic-cmcc_rax3000me-emmc-preloader.bin of=/dev/mmcblk0boot0 bs=512 conv=fsync
4. Write new FIP:
   dd if=immortalwrt-mediatek-filogic-cmcc_rax3000me-emmc-bl31-uboot.fip of=/dev/mmcblk0 bs=512 seek=13312 conv=fsync
5. Set static IP on your PC:
   IP 192.168.1.254/24, GW 192.168.1.1
6. Serve ImmortalWrt initramfs image using TFTP server.
7. Cut off the power and re-engage, wait for TFTP recovery to complete.
8. After ImmortalWrt has booted, perform sysupgrade.

NAND Flash instructions:
1. Connect to RAX3000Me, and backup everything, especially 'Factory' part.
2. Write new BL2 and FIP:
   If your device HAS USB port, run:
     mtd write immortalwrt-mediatek-filogic-cmcc_rax3000me-nand-ddr3-preloader.bin BL2
     mtd write immortalwrt-mediatek-filogic-cmcc_rax3000me-nand-ddr3-bl31-uboot.fip FIP
   If your device DOES NOT have USB port, run:
     mtd write immortalwrt-mediatek-filogic-cmcc_rax3000me-nand-ddr4-preloader.bin BL2
     mtd write immortalwrt-mediatek-filogic-cmcc_rax3000me-nand-ddr4-bl31-uboot.fip FIP
4. Set static IP on your PC:
   IP 192.168.1.254/24, GW 192.168.1.1
5. Serve ImmortalWrt initramfs image using TFTP server.
6. Cut off the power and re-engage, wait for TFTP recovery to complete.
7. After ImmortalWrt has booted, perform sysupgrade.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 57f31cd5b1)
2025-03-09 19:19:32 +08:00
Tianling Shen fea255349b mediatek: import dosilicon/fmsh/gsto spi nand support
Imported from linux-rockchip tree:
https://github.com/armbian/linux-rockchip/tree/rk-6.1-rkr5/drivers/mtd/nand/spi

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 25ade3560e)
2025-03-09 18:50:27 +08:00
Tianling Shen 810b46d2f9 uboot-mediatek: import dosilicon/fmsh/gsto spi nand support
Imported from linux-rockchip tree:
https://github.com/armbian/linux-rockchip/tree/rk-6.1-rkr5/drivers/mtd/nand/spi

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit df588a6827)
2025-03-09 18:41:39 +08:00
Tianling Shen ecb9798dc1 mediatek: add stock layout for CMCC A10
This board is also as known as SuperElectron ZN-M5 and ZN-M8. However,
for ZN-M5 and ZN-M8, there's another version uses ZX279128 as CPU
chip, which is unsupported.
You can check it in "高级设置" > "系统日志" > "内核日志" page from webUI.

Stock layout flash instructions:
Login into webUI and upload sysupgrade firmware in "系统管理" > "升级固件" page.
Remember to unselect "保留配置" ("Keep configurations") first before doing that.

OpenWrt U-Boot layout flash instructions:
1. Flash stock layout firmware first.
2. Connect to the device via SSH, and backup everything,
   especially 'Factory' partition.
3. Unlock MTD partitions:
   opkg update && opkg install kmod-mtd-rw
   insmod mtd-rw i_want_a_brick=1
4. Write new BL2 and FIP:
   mtd write immortalwrt-mediatek-filogic-cmcc_a10-preloader.bin bl2
   mtd write immortalwrt-mediatek-filogic-cmcc_a10-bl31-uboot.fip fip
5. Set static IP on your PC:
   IP 192.168.1.254/24, GW 192.168.1.1
6. Serve ImmortalWrt initramfs image using TFTP server.
7. Cut off the power and re-engage, wait for TFTP recovery to complete.
8. After ImmortalWrt has booted, perform sysupgrade.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 4e9240e733)
2025-02-26 22:40:54 +08:00
Tianling Shen 25885c7eff Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-02-23 17:51:35 +08:00
Tianling Shen eb56db3e26 mediatek: fix sysupgrade for cudy tr3000 v1 ubootmod
Fixes: https://github.com/immortalwrt/immortalwrt/issues/1732
Fixes: 51272fcd00 ("mediatek: add ubootmod layout for cudy tr3000 v1")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit e6e4c03868)
2025-02-22 14:48:31 +08:00