Commit Graph

6872 Commits

Author SHA1 Message Date
coolsnowwolf
eb557774e2 qualcommax: add ipq8074-nss.dtsi for IPQ807x devices NSS support 2024-06-15 23:22:45 +08:00
coolsnowwolf
7b6fe1d69a qualcommax: ipq60xx: add Xiaomi RM1800 (AX5) wireless support 2024-06-15 23:07:03 +08:00
coolsnowwolf
ca0d93bec8 Version update to R24.6.6 2024-06-15 18:00:04 +08:00
coolsnowwolf
e7b75aae80 package: qca: fix target dependencies 2024-06-15 17:50:02 +08:00
coolsnowwolf
aeb660ba58 autocore: add nss usage display on index 2024-06-14 17:50:11 +08:00
coolsnowwolf
2fc5d80589 qualcommax: fix mmc upgrade for ipq60xx 2024-06-14 17:31:25 +08:00
coolsnowwolf
809226391c qualcommax: add all nss support package 2024-06-14 17:26:00 +08:00
coolsnowwolf
568f5ab87c package: add nss packages for qualcommax 2024-06-14 17:15:13 +08:00
coolsnowwolf
935b13b61e qualcommax: add qca-nss-ecm kernel support 2024-06-14 16:50:09 +08:00
Daniel Golle
fb42176cd1 generic: sync MediaTek Ethernet driver with upstream
Import commits from upstream Linux replacing some downstream patches.
Move accepted patches from pending-{5.15,6.1} to backport-{5.15,6.1}.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-13 22:20:05 +08:00
Daniel Golle
e5dffcaddd mediatek: generate bootloader artifacts for mt7988_rfb
Switch to OpenWrt uImage.FIT bootmethod and include various bootloader
artifacts with the generated binaries.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-12 23:02:49 +08:00
Daniel Golle
176eb7d8ef generic: 6.6: net: sfp-bus: fix SFP mode detect from bitrate
Backport commit fixing detection of SFP modules which has been broken
since Linux 6.4 for some modules.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-11 23:00:24 +08:00
Daniel Golle
a07fca99cb kernel: serial: 8250_mtk: track busclk state to avoid bus error
UARTs not used as boot console are currently broken on some MediaTek
targets due to register access depending on the bus clock being enabled.
Add patch to make sure this dependency is always met.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-11 22:52:17 +08:00
Daniel Golle
dbf65dd826 arm-trusted-firmware-mediatek: import patchset for Fidelix flash on SNFI
Import pending patches to set pinconf settings for SPI-NAND pins on
MT7622 identical to what the old proprietary preloader did.

Should further increase the reliability of some SNFI-attached SPI-NAND
flash chips.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-10 23:08:07 +08:00
Daniel Golle
d5ae67bea0 arm-trusted-firmware-mediatek: update to MediaTek-patched v2.10.0
Update ARM TrustedFirmware-A to the most recent release of
MediaTek downstream patched version released 2024-01-17.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-10 23:05:03 +08:00
IFV
94f8d8b735
autoconf-archive: fix ax_c_float_words_bigendian fails when lto enabled (#12227)
See 23be7ccd7f
2024-06-09 18:59:02 +08:00
Daniel Golle
be9a399019 uboot-mediatek: snfi: FM35Q1GA is x4-only
Dont allow x2 read and cache read operations on FM35Q1GA as they seem
to be unstable. Also the Linux drivers does not allow x2 ops.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-08 22:30:09 +08:00
Daniel Golle
b3bbc4b90d mediatek: improve reliability of Fidelix SPI-NAND
Prior to performing a PROGRAM LOAD RANDOM DATA operation, a WRITE
ENABLE (06h) command must be issued to change the contents of the
memory array. Following a WRITE ENABLE (06) command, **first a PROGRAM
LOAD (02h or 32h) command must be issued to reset the cache**, then
issue a PROGRAM LOAD RANDOM DATA (84h or 34h) command

This is dirty fix provided to use by MediaTek engineer Sky Huang which
may resolve the "OpenWrt Kiss of Death" issue we've been seeing on the
Linksys E8450 aka. Belkin RT3200. However, it means that everything has
to be re-written with that patch already applied, ie. we need to rebuild
the installer once it is part of snapshot builds to have any effect.

Users already on FIP-in-UBI layout are advised to re-write 'fip' UBI
volume and 'bl2' MTD partition manually once from within Linux after
this fix has been applied.

A similar fix will also be required for U-Boot.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-06-08 22:26:03 +08:00
coolsnowwolf
5c11df48ac qualcommax: ipq60xx: add reserved NSS memory nodes 2024-06-07 12:48:08 +08:00
aiamadeus
a87cb8cd96 rockchip: sync rk3568 upstream dts changes 2024-06-06 23:01:16 +08:00
aiamadeus
cb1f2c6a58 rockchip: fix rk3568 nvme detection issue
Fixes: #12149
2024-06-05 16:30:30 +08:00
Hao Guan
a5af3cafa2
tools: fix build on macOS Sonoma (#12212)
* tools/coreutils: update to 9.3

* tools/cpio: update to 2.15

* libjson-c: update to 0.17

* gettext-full: fix clang build errors

* toolchain: gcc: update to 13.3

* tools: b43-tools: fix compilation with GCC14
2024-06-05 00:18:09 +08:00
aiamadeus
8d664879c5 ramips: mt7621: fixes gpio config
Fixes: 4561705 ("ramips: add support for OpenFi 5Pro")
2024-06-03 22:28:03 +08:00
coolsnowwolf
3d715feecc elfutils: fix build with GCC 12/13 2024-06-01 13:10:06 +08:00
Hauke Mehrtens
9042bd040a x86: 6.6: Activate CONFIG_FB_DEVICE
This adds the legacy /dev/fb* device file for kernel 6.6 again.
Linux upstream commit 701d2054fa31 ("fbdev: Make support for
userspace interfaces configurable") made this configurable and we
deactivated this option by default for kernel 6.6. On x86 we are
not space constrained and some users need this legacy interface.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-05-31 22:36:26 +08:00
Hauke Mehrtens
258e84d30d kernel: Add CONFIG_FB_DEVICE to kmod-fb
At least kmod-fb-tft depends on CONFIG_FB_DEVICE
and can not be activated without it.

This configuration option was added with kernel 6.6,
before this featre was always activated.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-05-31 22:22:30 +08:00
Sheng Huang
3b8e07ae19 ramips: add support for JDCloud RE-CP-02
- Soc: MediaTek MT7621AT
- RAM: 512 MB (DDR3)
- Flash: 16 MB (SPI NOR)
- WiFi: MediaTek MT7905DAN, MediaTek MT7975DN
- Ethernet: 1 WAN, 3 LAN (Gigabit)
- Buttons: Reset, Joylink
- LEDs: (red, blue, green), routed to one indicator in the top of the
  device
- Power: DC 12V 1A tip positive
- 1 TF Card Slot

Co-Authored-By: Jianti Chen <clbcjt@outlook.com>
Signed-off-by: Sheng Huang <shenghuang147@gmail.com>
2024-05-30 23:00:02 +08:00
Michael Lyle
22f1e5eabf ramips: gl-mt1300: downclock SPI to 50MHz
The SPI max frequency was set to 80MHz, considerably higher than the
vendor clocks it in their firmware (10MHz).  Multiple users reported
jffs2 corruption/instability.

My unit has a W25Q256; datasheet specifies maximum SPI frequency for
read command of 50MHz.

Signed-off-by: Michael Lyle <mlyle@lyle.org>
2024-05-30 22:56:23 +08:00
coolsnowwolf
0186d52076 build: introduce PKG_BUILD_FLAGS 2024-05-29 10:35:11 +08:00
Sven Huang
4561705e1b
ramips: add support for OpenFi 5Pro (#12196)
OpenFi 5Pro is a 2.4/5 GHz band 11ac router, based on MT7621A.

Specification:

- SoC               : MediaTek MT7621A
- RAM               : DDR3 512 MB
- Flash             : SPI-NOR 64MB (W25Q512)
- WLAN              : 2.4/5 GHz 2T2R (MT7603/MT7613)
- Ethernet          : 2x 10/100/1000 Mbps
- LEDs/Keys (GPIO)  : 3x/2x
- UART              : 1xUART
  - settings        : 115200n8

How to upgrade image in uboot:

1. press reset button when boot for 5sec.
2. access 192.168.21.1 in web ui.
3. select image and upload
2024-05-28 23:30:02 +08:00
coolsnowwolf
d447f22e74 hostapd: fix mbo module build 2024-05-27 00:03:38 +08:00
Beginner
13931a492e
kernel: bump 6.6 to 6.6.32 (#12186) 2024-05-26 23:50:41 +08:00
Beginner
4819907434
kernel: bump 6.1 to 6.1.92 (#12187) 2024-05-26 23:50:17 +08:00
coolsnowwolf
d88c0116f3 mtd: spi-nor: add support for Winbond W25Q512 2024-05-26 23:29:20 +08:00
coolsnowwolf
a459786ac2 mvebu: add support for QNAP QHora-321/322 with commo image 2024-05-26 23:19:20 +08:00
coolsnowwolf
57c907ddb6 base-files: add legacy-sdcard sysupgrade support 2024-05-26 23:16:05 +08:00
Beginner
86b8e436b7
kernel: bump 5.4 to 5.4.277 (#12191) 2024-05-26 20:30:07 +08:00
Beginner
d57b79961b
kernel: bump 5.10 to 5.10.218 (#12190) 2024-05-26 18:30:08 +08:00
Beginner
73d37cb1d2
kernel: bump 5.15 to 5.15.160 (#12188) 2024-05-26 18:00:11 +08:00
Shiji Yang
63af18b5a9 ramips: add support for H3C TX180x series devices
H3C TX180x series WiFi6 routers are customized by different carrier.
While these three devices look different, they use the same motherboard
inside. Another minor difference comes from the model name definition
in the u-boot environment variable.

Specifications:
 SOC:      MT7621 + MT7915
 ROM:      128 MiB
 RAM:      256 MiB
 LED:      status *2
 Button:   reset *1 + wps/mesh *1
 Ethernet:        lan *3 + wan *1 (10/100/1000Mbps)
 TTL Baudrate:    115200
 TFTP server IP:  192.168.124.99

Compatibility mode is used to guarantee the connection of old devices
that only support WiFi4 or WiFi5.

TFTP + TTL Installation:
Although a TTL connection is required for installation, we do not need
to tear down it. We can find the TTL port from the cooling hole at the
bottom. It is located below LAN3 and the pins are defined as follows:
|LAN1|LAN2|LAN3|----|WAN|
--------------------
    |GND|TX|RX|VCC|

1. Set tftp server IP to 192.168.124.99 and put initramfs firmware in
   server's root directory, rename it to a simple name "initramfs.bin".
2. Plug in the power supply and wait for power on, connect the TTL cable
   and open a TTL session, enter "reboot", then enter "Y" to confirm.
   Finally push "0" to interruput boot while booting.
3. Execute command to install a initramfs system:
   # tftp 0x80010000 192.168.124.99:initramfs.bin
   # bootm 0x80010000
4. Backup nand flash by OpenWrt LuCI or dd instruction. We need those
   partitions if we want to back to stock firmwre due to official
   website does not provide download link.
   # dd if=/dev/mtd1 of=/tmp/u-boot-env.bin
   # dd if=/dev/mtd4 of=/tmp/firmware.bin
5. Edit u-boot env to ensure use default bootargs and first image slot:
   # fw_setenv bootargs
   # fw_setenv bootflag 0
6. Upgrade sysupgrade firmware.
7. About restore stock firmware: flash the "firmware" and "u-boot-env"
   partitions that we backed up in step 4.
   # mtd write /tmp/u-boot-env.bin u-boot-env
   # mtd write /tmp/firmware.bin firmware

Additional Info:
The H3C stock firmware has a 160-byte firmware header that appears to
use a non-standard CRC32 verification algorithm. For this part of the
data, the u-boot does not check it so we can just directly replace it
with a placeholder.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2024-05-25 22:25:15 +08:00
Rany Hany
b49e163a99 mediatek: fix broken PCIe caused by kernel update
The patch "710-pci-pcie-mediatek-add-support-for-coherent-DMA.patch"
makes use of "syscon_regmap_lookup_by_phandle" which requires that
"syscon" be in the compatible list.

Without this patch, PCIe probe will fail with the following error:

[    1.287467] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    1.294019] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    1.299901] mtk-pcie 1a143000.pcie:      MEM 0x0020000000..0x0027ffffff -> 0x0020000000
[    1.307954] mtk-pcie 1a143000.pcie: missing hifsys node
[    1.313185] mtk-pcie: probe of 1a143000.pcie failed with error -22

Fixes: #12182
Fixes: 1b3612a ("kernel: bump 5.15 to 5.15.158")
Signed-off-by: Rany Hany <rany_hany@riseup.net>
2024-05-24 23:10:05 +08:00
Rui Salvaterra
813a3468eb linux-firmware: realtek: update rtl8821ae firmware
A newer version, rtl8821aefw_29.bin, has been available for over 7 years.
Let's use it.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2024-05-24 23:05:58 +08:00
Daniel Golle
1144959ad8 mediatek: filogic: mt7988: mark RTC clock as critical
A dependency of the MT7988 MMC host controller on the SoC's RTC clock
being running has been discovered. Mark RTC clock as critical to fix
MMC host on MT7988.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-05-23 23:38:05 +08:00
Daniel Golle
f643c08df8 generic: 5.15: rename patches to match correct version
Rename two patches which were only accepted in Linux 6.2, but were
marked as if they were accepted in Linux 6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-05-23 23:36:12 +08:00
Daniel Golle
8f988ed371 mediatek: filogic: enable driver for MediaTek XS-PHY
Enable driver for MediaTek SuperSpeedPlus XS-PHY transceiver
for the USB3.1 GEN2 controllers found in the MT7988 SoC.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-05-22 23:38:42 +08:00
John Crispin
563de907f6 arm-trusted-firmware-mediatek: add mt7981 ddr4 builds
Signed-off-by: John Crispin <john@phrozen.org>
2024-05-22 23:36:15 +08:00
coolsnowwolf
8ccd96e80a kernel: asymmetric: Add missing dependency on CRYPTO_SIG for 6.6 2024-05-21 20:55:12 +08:00
coolsnowwolf
5376eb13b3 ramips: improve AP-MT7621A-V60 EVB support 2024-05-21 20:49:55 +08:00
Beginner
c188b9f52e
kernel: bump 5.4 to 5.4.276 (#12175) 2024-05-21 00:35:59 +08:00
Beginner
ad11245663
kernel: bump 5.10 to 5.10.217 (#12174) 2024-05-20 23:40:29 +08:00