Commit Graph

2550 Commits

Author SHA1 Message Date
aiamadeus
8d664879c5 ramips: mt7621: fixes gpio config
Fixes: 4561705 ("ramips: add support for OpenFi 5Pro")
2024-06-03 22:28:03 +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
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
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
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
Beginner
86b8e436b7
kernel: bump 5.4 to 5.4.277 (#12191) 2024-05-26 20:30:07 +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
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
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
Beginner
bcbc08ab45
kernel: bump 6.6 to 6.6.31 (#12164)
delete target/linux/generic/backport-6.6/600-v6.9-01-net-gro-parse-ipv6-ext-headers-without-frag0-invalid.patch
 delete target/linux/generic/backport-6.6/600-v6.9-02-net-gro-fix-udp-bad-offset-in-socket-lookup-by-addin.patch
 delete target/linux/generic/backport-6.6/600-v6.9-03-net-gro-add-flush-check-in-udp_gro_receive_segment.patch
 delete target/linux/generic/backport-6.6/816-v6.7-0002-nvmem-add-explicit-config-option-to-read-old-syntax-.patch
 delete target/linux/generic/pending-6.6/681-net-bridge-fix-multicast-to-unicast-with-fraglist-GS.patch
 delete target/linux/generic/pending-6.6/682-net-core-reject-skb_copy-_expand-for-fraglist-GSO-sk.patch
 delete target/linux/generic/pending-6.6/684-net-bridge-fix-corrupted-ethernet-header-on-multicas.patch
2024-05-18 15:50:32 +08:00
Beginner
638fe853a7
kernel: bump 6.1 to 6.1.91 (#12165)
delete target/linux/bcm27xx/patches-6.1/950-0270-net-bcmgenet-Reset-RBUF-on-first-open.patch
 delete target/linux/generic/backport-6.1/600-v6.9-03-net-gro-add-flush-check-in-udp_gro_receive_segment.patch
 delete target/linux/generic/pending-6.1/681-net-bridge-fix-multicast-to-unicast-with-fraglist-GS.patch
 delete target/linux/generic/pending-6.1/682-net-core-reject-skb_copy-_expand-for-fraglist-GSO-sk.patch
 delete target/linux/generic/pending-6.1/684-net-bridge-fix-corrupted-ethernet-header-on-multicas.patch
2024-05-18 15:50:13 +08:00
Beginner
19e494cfe7
kernel: bump 5.15 to 5.15.159 (#12166) 2024-05-18 06:30:07 +08:00
Álvaro Fernández Rojas
a9ce86f16b kernel: add missing kernel 6.6 symbols
Add missing kernel 6.6 symbols for bcm27xx.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-05-13 18:28:26 +08:00
coolsnowwolf
c6bb9a7912 target.mk: remove luci-newapi 2024-05-09 22:11:31 +08:00
coolsnowwolf
7db3f7518c r8126: add Realtek RLT8126 5gb NIC support 2024-05-07 23:06:09 +08:00
coolsnowwolf
1b3612a289 kernel: bump 5.15 to 5.15.158 2024-05-07 10:13:18 +08:00
coolsnowwolf
4e3d253ef9 kernel: bump 5.10 to 5.10.216 2024-05-07 10:00:13 +08:00
coolsnowwolf
e87716ac87 kernel: bump 5.4 to 5.4.275 2024-05-07 09:44:13 +08:00
Felix Fietkau
c7d931e7b6 kernel: fix corrupted ethernet header on bridge multicast-to-unicast
Fixes: 45a8e962a591 ("kernel: fix crash with multicast-to-unicast and fraglist GRO")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-05-06 14:32:01 +08:00
coolsnowwolf
6e604e9875 amlogic: add mesongx Phicomm N1 support 2024-05-06 05:53:58 +08:00
coolsnowwolf
dde01c597c kernel: remove 640-bridge-only-accept-EAP-locally.patch 2024-05-05 20:04:10 +08:00
coolsnowwolf
524107deb5 Revert "kernel: bump 5.15 to 5.15.158 (#12126)"
This reverts commit 0f35cfbb60.
2024-05-05 14:25:14 +08:00
coolsnowwolf
89a6a0c63b Revert "kernel: bump 5.10 to 5.10.216 (#12127)"
This reverts commit e5c26e9039.
2024-05-05 14:25:06 +08:00
coolsnowwolf
cf57cfaeeb Revert "kernel: bump 5.4 to 5.4.275 (#12128)"
This reverts commit 23a35d1ef0.
2024-05-05 14:24:57 +08:00
coolsnowwolf
e5d8feddc3 kernel: backport upstream GRO fixes 2024-05-05 14:23:46 +08:00
coolsnowwolf
542de0b0ac kernel: add missing check for TCP GRO 2024-05-05 13:33:15 +08:00
Beginner
8c6cc8f468
kernel: bump 6.1 to 6.1.90 (#12125) 2024-05-05 10:00:11 +08:00
Beginner
722c2739ba
kernel: bump 6.6 to 6.6.30 (#12123) 2024-05-05 06:00:32 +08:00
Beginner
23a35d1ef0
kernel: bump 5.4 to 5.4.275 (#12128) 2024-05-04 16:01:03 +08:00
Beginner
e5c26e9039
kernel: bump 5.10 to 5.10.216 (#12127) 2024-05-04 11:00:08 +08:00
Beginner
0f35cfbb60
kernel: bump 5.15 to 5.15.158 (#12126) 2024-05-04 10:10:03 +08:00
Daniel Golle
8f593dd700 mediatek: filogic: update MT7988 device tree
* move ethernet to mt7988a.dtsi
 * move switch definition to mt7988a.dtsi
 * add PHY LEDs

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-05-03 22:54:18 +08:00
Beginner
87d7c07cfa
kernel: bump 5.15 to 5.15.157 (#12108) 2024-05-01 20:00:14 +08:00
Beginner
76c97b741b
kernel: bump 6.1 to 6.1.89 (#12107)
Removed upstreamed:
	target/linux/mediatek/patches-6.1/220-v6.3-clk-mediatek-clk-gate-Propagate-struct-device-with-m.patch
	target/linux/mediatek/patches-6.1/222-v6.3-clk-mediatek-clk-mtk-Propagate-struct-device-for-com.patch
	target/linux/mediatek/patches-6.1/223-v6.3-clk-mediatek-clk-mux-Propagate-struct-device-for-mtk.patch
	target/linux/mediatek/patches-6.1/226-v6.3-clk-mediatek-clk-mtk-Extend-mtk_clk_simple_probe.patch
2024-05-01 18:10:10 +08:00
Beginner
eef66478a4
kernel: refresh 6.6 patches (#12113) 2024-05-01 15:00:15 +08:00
Beginner
fcd30851f7
kernel: bump 6.6 to 6.6.28 (#12106) 2024-04-30 23:32:40 +08:00
aiamadeus
54bb95de0f target: add some missing patches 2024-04-30 20:19:35 +08:00
Felix Fietkau
bdcee653dc kernel: backport flow offload pppoe fix
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-04-30 10:00:10 +08:00
Daniel Golle
07afd0f581 generic: 6.1: fix uImage.FIT partitions on mtdblock and ubiblock
When refreshing the hack patches for Linux 6.1 the part of the uImage.FIT
partition parser patch which takes care of allowing mtdblock and ubiblock
devices to have partitions has been dropped, supposedly by accident.
Re-add a that part to the patch, so devices using a uImage.FIT filesystem
sub-image as rootfs can work with Linux 6.1.

Fixes: 19a246bb65 ("generic: 6.1: manually refresh hack patches")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-04-29 21:21:32 +08:00
Zoltan HERPAI
52a7bf68d5 sunxi: add and set 6.6 testing kernel
Allow selecting 6.6 as testing kernel on sunxi.

Runtime-tested:
 - Linksprite pcDuino (cortexa8)
 - Olimex A20 Micro (cortexa7)
 - Pine64 SoM (cortexa53)

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2024-04-26 21:36:12 +08:00