Commit Graph

33586 Commits

Author SHA1 Message Date
19732afd10
switch work 2026-06-16 09:29:10 -04:00
cb230207f5
switch work 2026-06-16 08:06:16 -04:00
a9693fa8ff
switch work 2026-06-16 05:24:45 -04:00
f1f4940207
brain + 10 wrinkles added mdio pins assumed from hardware lineage 2026-06-16 01:10:09 -04:00
66831e86ca
compileable, unsure if working 2026-06-15 23:42:31 -04:00
0a66e440fe
commit first switch attempt, starting point 2026-06-15 22:20:07 -04:00
9b04d9eb3a
brain -5 wrinkles from ai correcting human 2026-06-15 22:04:54 -04:00
2492345313
brain +15 wrinkles from inline thinking breakthrough - re: reverse engineering / parallel reconstruction 2026-06-15 20:54:02 -04:00
db7494a98c
brain +15 wrinkles from inline thinking breakthrough - re: reverse engineering / parallel reconstruction 2026-06-15 20:50:19 -04:00
055763f312
brain +15 wrinkles from inline thinking breakthrough - re: reverse engineering / parallel reconstruction 2026-06-15 20:44:08 -04:00
fae78f3823
brain +15 wrinkles from inline thinking breakthrough - re: reverse engineering / parallel reconstruction 2026-06-15 20:31:30 -04:00
ea18b36d36
brain +5 wrinkles from inline thinking breakthroughs 2026-06-15 20:01:43 -04:00
bc28daaf0e
brain +5 wrinkles from inline thinking breakthroughs 2026-06-15 19:37:03 -04:00
6640928e30
brain +5 wrinkles from inline thinking breakthroughs 2026-06-15 19:32:55 -04:00
380fe229c9
brain +5 wrinkles from inline thinking breakthroughs 2026-06-15 19:29:24 -04:00
412928ebd6
brain +5 wrinkles from inline thinking breakthroughs 2026-06-15 19:20:39 -04:00
99d113d0e2
brain +5 wrinkles from inline thinking breakthroughs 2026-06-15 19:15:13 -04:00
fc0e6d3d1a
brain +2 wrinkles from inline thinking breakthroughs 2026-06-15 18:52:16 -04:00
aff963d26d
brain +1 wrinkle from inline thinking breakthroughs 2026-06-15 18:49:04 -04:00
55046c13b5
inline thought breakthrough aqcuired... 2026-06-15 18:43:14 -04:00
5fb1bb5969
update to inline thinking... 2026-06-15 18:21:02 -04:00
e6031426e1
update to inline thinking... 2026-06-15 18:12:16 -04:00
718b3af114
update to inline thinking... 2026-06-15 18:09:11 -04:00
e43c15a7c3
more inline thinking... 2026-06-15 17:56:03 -04:00
6bf54e27df
thinking... 2026-06-14 23:45:38 -04:00
2cd51e474e
thinking... 2026-06-14 22:58:07 -04:00
7750904cb1
fixed art->art_part 2026-06-14 17:51:14 -04:00
23ac153d57
dts - wifi updated 2026-06-14 17:32:50 -04:00
edaff9f631
update 2026-06-14 00:32:37 -04:00
c39f3c1a89
updated qcom-ipq4019-tew-829dru.dts 2026-06-11 10:33:54 -04:00
f303fe6dbb
updated .gitignore, generic.mk 2026-06-11 09:51:02 -04:00
9b130b63a2
updated dts - spi flash works 2026-06-11 09:46:43 -04:00
17f091d59d
added wifi back, removed nand nodes - crashing 2026-06-11 02:02:30 -04:00
c8480bdb10
updated dts 2026-06-10 15:35:33 -04:00
cad39f2d5b
commit dts 2026-06-04 17:42:51 -04:00
311573b886
restoring workspace... 2026-06-04 17:30:32 -04:00
Robert Marko
601e0674ae mvebu: cortexa53: uDPU/eDPU: update active bootscript as well
Currently, sysupgrade will only upgrade the unused slot, however since the
whole dual firmware logic is in the bootscript U-boot will just use the
first bootscript it finds.

So, in a case that you are running slot A it will upgrade slot B, however
that means that slot B will be still booted by the old bootscript that came
with the previous firmware version.

This is an issue if you need to change anything, so lets add a custom
function that upgrades the active bootscript as well after flashing the
slot firmware.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
(cherry picked from commit fb7787803c)
2026-05-28 11:19:50 +02:00
Robert Marko
fbf01b4d62 mvebu: cortexa53: uDPU/eDPU convert to dual firmware (A/B)
Methode uDPU and eDPU devices are one of the rare ones with a completely
custom image format being used with custom partition table with F2FS.

Instead of converting the boards to dual firmware (A/B style) and further
expand the already convoluted custom scripts, especially considering that
dual firmware conversion is a breaking change anyway, lets convert to using
the generic eMMC sysupgrade based images.

F2FS ZSTD compression is preserved thanks to fstools now supporting its use
on overlays.

Dual firmware support is implemented via U-Boot scripts so no U-Boot
upgrade is required.

Since there is a partition table layout change, eMMC must be wiped and
reflashed with the generated GPT image from OpenWrt initramfs.

Then on each sysupgrade the firmware slot will be altered.

Instructions:
1. Boot into OpenWrt initramfs
2. Copy openwrt-mvebu-cortexa53-methode_edpu-squashfs-emmc-gpt.img.gz to
the device into /tmp
3. Erase eMMC:
dd if=/dev/zero of=/dev/mmcblk0 bs=1M
4. Extract image
gzip -d /tmp/openwrt-mvebu-cortexa53-methode_edpu-squashfs-emmc-gpt.img.gz
5. Flash image
dd if=/tmp/openwrt-mvebu-cortexa53-methode_edpu-squashfs-emmc-gpt.img of=/dev/mmcblk0
6. Reboot

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
(cherry picked from commit ada2753d6a)
2026-05-28 11:19:50 +02:00
Robert Marko
f5a53f3202 mvebu: cortex-a53: uDPU/eDPU: cleanup recipe a bit
Reuse Device/FitImage recipe instead of open coding it and
drop duplicate KERNEL_INITRAMFS recipe for eDPU.

While at it, lets clean up the boot script to drop uneeded console
setting, earlycon etc.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
(cherry picked from commit f2a532ec09)
2026-05-28 11:19:50 +02:00
Robert Marko
f521e161d5 mvebu: move FitImage recipe to generic image Makefile
Move the Device/FitImage recipe to the generic image Makefile to avoid
duplicating it for other subtargets.

Will be used for uDPU/eDPU.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
(cherry picked from commit f03bb44a08)
2026-05-28 11:19:50 +02:00
Shiji Yang
9cf794cff1 kernel: bump 6.12 to 6.12.91
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.91

Remove upstreamed patches:
- airoha/patches-6.12/017-v6.13-net-airoha-Implement-BQL-support.patch[1]
- airoha/patches-6.12/138-v7.1-net-airoha-Add-missing-RX_CPU_IDX-configuration-in-a.patch[2]
- airoha/patches-6.12/149-v7.1-net-airoha-Move-ndesc-initialization-at-end-of-airoh.patch[3]
- generic/backport-6.12/940-v7.1-net-dsa-realtek-rtl8365mb-fix-mode-mask-calculation.patch[5]

Manually rebased patches:
- airoha/patches-6.12/048-01-v6.15-net-airoha-Move-airoha_eth-driver-in-a-dedicated-fol.patch[1]
- ath79/patches-6.12/800-leds-add-reset-controller-based-driver.patch[4]
- bcm27xx/patches-6.12/950-0122-bcmgenet-Better-coalescing-parameter-defaults.patch[6]

We also backported four patches to fix perf tool regression:
- generic/backport-6.12/216-01-revert-perf-cgroup-update-metric-leader-in-evlist__e.patch
- generic/backport-6.12/216-02-revert-perf-tool_pmu-fix-aggregation-on-duration_tim.patch
- generic/backport-6.12/216-03-revert-perf-python-add-parse_events-function.patch
- generic/backport-6.12/216-04-revert-perf-tool_pmu-factor-tool-events-into-their-o.patch

All other patches are automatically refreshed.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.91&id=ca24fcac1daaa5e8a667981d81986a3eb4b9fb04
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.91&id=f00037a99bc2332ef59dc85298b98b20af165904
[3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.91&id=d36be272adda7f313e39dd118086955d993bf6a7
[4] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.91&id=07d3611389ba7d78b80ea360a42ce32ab2521fbc
[5] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.91&id=3354d6c62fd4baa7b32cbd80cc5a8aa3f2bd0656
[6] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.91&id=b84351dcc359667bc952131c1424b692ec83dce2

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/23444
(cherry picked from commit 8f638f9366)
Link: https://github.com/openwrt/openwrt/pull/23538
[Adapted to patches in 25.12]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-05-27 12:38:31 +02:00
Shiji Yang
0eaee44870 kernel: bump 6.12 to 6.12.90
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.90

All patches are automatically refreshed.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/23444
(cherry picked from commit 979bad2629)
Link: https://github.com/openwrt/openwrt/pull/23538
[Updated and added starfive patches for spi-pl022]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-05-27 12:37:48 +02:00
John Audia
ddcf755363 kernel: bump 6.12 to 6.12.89
No patches automatically rebased via update_kernel.sh

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/23370
(cherry picked from commit cb4fdad4d4)
Link: https://github.com/openwrt/openwrt/pull/23538
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-05-27 12:20:42 +02:00
John Audia
797171a359 kernel: bump 6.12 to 6.12.88
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.88

Manually rebased:
  bcm27xx/patches-6.12/950-0057-MMC-added-alternative-MMC-driver.patch
  bcm27xx/patches-6.12/950-0750-mmc-sd-filter-card-CQ-support-based-on-an-allow-list.patch

All other patches automatically rebased via update_kernel.sh

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/23370
(cherry picked from commit 82e97a66de)
Link: https://github.com/openwrt/openwrt/pull/23538
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-05-27 12:20:42 +02:00
Christian Marangi
8dff4c9a34
airoha: backport net upstream fixes
Airoha reported some bug in the TX/RX descriptor handling and PPE. Backport
the fix for such bug merged in net staging tree.

It's expected that these patch will be dropped in future minor kernel
version when submitted to stable staging tree.

All affected patch automatically refreshed.

(cherry picked from commit 1b9922d5e8)
Link: https://github.com/openwrt/openwrt/pull/23151
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2026-05-22 00:54:34 +02:00
Andrii Kuiukoff
42ea240132 uboot-mediatek: comfast cf-wr632ax: reduce ram speed to 1866 MT/s
Fix instability by reducing RAM speed to 1866 MT/s
in line with Winbond W634GU6RB-11 specs.

Signed-off-by: Andrii Kuiukoff <andros.ua@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22929
(cherry picked from commit 9fb9983467)
Link: https://github.com/openwrt/openwrt/pull/23416
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-05-20 14:48:50 +02:00
Daniel Golle
13ff2256e5 mediatek: don't let devfreq power-off the CPU
Fix a long standing bug in the mediatek-cci-devfreq driver which leads
to the driver switching off the CPU power regulator in case of another
resource not being ready in time -- a classic probe-order race condition.

As a work-around it would of course just as well be possible to set the
CPU regulator as 'regulator-always-on' (and not just 'regulator-boot-on'),
but practically all MT7988 devices have copy&pasted the PMIC device tree
hunk which sets only 'regulator-boot-on').

Hence, in order not having to fix all device trees, a proper fix in the
driver is preferred.

Fixes: #683
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit a45ce4c788)
2026-05-16 00:29:35 +01:00
Dirk Buchwalder
e4c15eb1a0 airoha: an7581: add ubi nvmem driver
Add ubi nvmem driver, required to load nvmem entries from ubi volumes

Signed-off-by: Dirk Buchwalder <buchwalder@posteo.de>
Link: https://github.com/openwrt/openwrt/pull/22151
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit e468534263)
Link: https://github.com/openwrt/openwrt/pull/22294
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-05-15 20:53:04 +02:00
Dirk Buchwalder
feda35516c airoha: an7581: enable fitblk driver
Enable fitblk driver, required to parse the fit image and set-up the rootfs volume

Signed-off-by: Dirk Buchwalder <buchwalder@posteo.de>
Link: https://github.com/openwrt/openwrt/pull/22151
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 0a64ed27a7)
Link: https://github.com/openwrt/openwrt/pull/22294
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-05-15 20:53:04 +02:00
Kenneth Kasilag
887f21e21a airoha: an7581: add uboot chainloader
Due to issues surrounding the implementation of the vendor BMT/BBT
on Airoha, upstream ATF + uboot has switched to UBI flash partitions.

However, some devices shipped on this platform are bootloader locked,
and thus it is impossible to replace ATF + uboot.

During testing for the Gemtek W1700K (#17869), sysupgrades from Linux
(which is unaware of the underlying BMT/BBT) would occasionally write
data into blocks which were remapped by the vendor uboot when it was
read on the following reboot, causing a soft brick.

An acceptable workaround [1],[2] was discussed where an intermediate
uboot would be written by the vendor uboot (which is aware of Airoha
BMT/BBT). This chainloader would then ignore the regions of flash
used by the vendor uboot, and store all relevant data inside of UBI.

UBI would then be used to handle bad block management. As the vendor
ATF + uboot do not read or interact with the UBI region, we would avoid
unwanted remaps from BMT/BBT.

This commit introduces support for building such a chainloader, by
packaging u-boot and DTS into a FIT image; to be flashed like a kernel.

Configuration for the Gemtek W1700K is provided as an example of how the
chainloader is used.

[1] https://github.com/openwrt/openwrt/pull/17869#discussion_r2836066746
[2] https://github.com/openwrt/openwrt/pull/17869#discussion_r2838395671

Signed-off-by: Kenneth Kasilag <kenneth@kasilag.me>
[ move FIP_COMPRESS to Build/Compile, wrap some long lines ]
Link: https://github.com/openwrt/openwrt/pull/22151
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 442e67d31f)
Link: https://github.com/openwrt/openwrt/pull/22294
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-05-15 20:53:04 +02:00