Files
guix-router/packages/patches/linux-mt6000/451-block-partitions-of-assign-Device-Tree-node-to-parti.patch
ssmithxandClaude Opus 5.5 5de6046e8d MT6000: kernel, system, root image and FIT boot image
linux-mt6000: Nonguix linux 6.17 with ARCH_MEDIATEK and the MT7986
drivers, OpenWrt's block NVMEM provider and mac-base patches (WiFi
calibration and MACs from the eMMC factory partition), bootargs-append,
and OpenWrt's GL-MT6000 device tree.

mt6000.scm: the Pi's OpenWrt userland on the MT6000 (lan1-5 + WiFi in
br-lan, eth1 WAN).  Shared pieces move to packages/router-base.scm;
the Pi's system is unchanged.

build-mt6000-root.sh builds the ext4 root for the rootfs partition and,
with scripts/mt6000-fit.sh, the FIT that GL's U-Boot boots from the
kernel partition -- for the system inside the image, whose root is the
partition's UUID.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 19:37:33 -04:00

26 lines
909 B
Diff

From 5d265996597a6b0d654bbeda1bc3bae197061de7 Mon Sep 17 00:00:00 2001
From: Daniel Golle <daniel@makrotopia.org>
Date: Mon, 7 Oct 2024 23:43:32 +0100
Subject: [PATCH 2/8] block: partitions: of: assign Device Tree node to
partition
Assign partition of_node so other drivers are able to identify a
partition by its Device Tree node.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
block/partitions/of.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/block/partitions/of.c
+++ b/block/partitions/of.c
@@ -48,7 +48,7 @@ static void add_of_partition(struct pars
u64 offset = of_read_number(reg, a_cells) / SECTOR_SIZE;
u64 size = of_read_number(reg + a_cells, s_cells) / SECTOR_SIZE;
- put_partition(state, slot, offset, size);
+ of_put_partition(state, slot, offset, size, np);
if (of_property_read_bool(np, "read-only"))
state->parts[slot].flags |= ADDPART_FLAG_READONLY;