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>
30 lines
917 B
Diff
30 lines
917 B
Diff
From 2b28bf485b283991eea9f00c5831c1c39c73991f Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
Date: Thu, 21 Mar 2024 19:33:49 +0000
|
|
Subject: [PATCH 6/8] block: add new genhd flag GENHD_FL_NVMEM
|
|
|
|
Add new flag to destinguish block devices which may act as an NVMEM
|
|
provider.
|
|
|
|
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
|
---
|
|
include/linux/blkdev.h | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/include/linux/blkdev.h
|
|
+++ b/include/linux/blkdev.h
|
|
@@ -82,11 +82,13 @@ struct partition_meta_info {
|
|
* ``GENHD_FL_NO_PART``: partition support is disabled. The kernel will not
|
|
* scan for partitions from add_disk, and users can't add partitions manually.
|
|
*
|
|
+ * ``GENHD_FL_NVMEM``: the block device should be considered as NVMEM provider.
|
|
*/
|
|
enum {
|
|
GENHD_FL_REMOVABLE = 1 << 0,
|
|
GENHD_FL_HIDDEN = 1 << 1,
|
|
GENHD_FL_NO_PART = 1 << 2,
|
|
+ GENHD_FL_NVMEM = 1 << 3,
|
|
};
|
|
|
|
enum {
|