From 8e2a8c2d73c3674205abb7027fdd64ff370a3243 Mon Sep 17 00:00:00 2001
From: Dariusz Iwanoczko <dariusz.iwanoczko@genexis.eu>
Date: Tue, 15 Apr 2025 11:24:18 +0200
Subject: [PATCH 1/2] airoha: an7581: Adjust partition number after remove
 rootfs_data from kernel

Currenlty rootfs_data partition for overlay is mounted as loop device in
userspace. After revert two patches in kernel, number of partition has
changed. These reverts force to update partition number for 2nd bank to
be properly booted.

Ref: https://dev.iopsys.eu/airoha/linux/-/merge_requests/148

Issue: #16552
---
 airoha/an7581/base-files/etc/system_layout/emmc.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airoha/an7581/base-files/etc/system_layout/emmc.json b/airoha/an7581/base-files/etc/system_layout/emmc.json
index 88a8da578..4676ae81d 100644
--- a/airoha/an7581/base-files/etc/system_layout/emmc.json
+++ b/airoha/an7581/base-files/etc/system_layout/emmc.json
@@ -9,7 +9,7 @@
     {
       "id": 2,
       "name": "B",
-      "rootfs": "/dev/mmcblk0p67",
+      "rootfs": "/dev/mmcblk0p66",
       "overlay": "/tmp/rootfs_data2"
     }
   ],
-- 
GitLab


From cd9b6f2b6771a1ac0dd8f069eaa1a1d46b113a6e Mon Sep 17 00:00:00 2001
From: Dariusz Iwanoczko <dariusz.iwanoczko@genexis.eu>
Date: Wed, 23 Apr 2025 08:45:39 +0200
Subject: [PATCH 2/2] airoha: update an7581 linux kernel

Changes:
* a484f851 Revert "block: paritions: Align FIT remaining space to 512KB"
* d3acd72f Revert "fitblk: Enable fitblk rootfs data partition"

Issue: #16552
---
 airoha/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airoha/Config.in b/airoha/Config.in
index b07934e7f..9119cf36b 100644
--- a/airoha/Config.in
+++ b/airoha/Config.in
@@ -3,7 +3,7 @@ if TARGET_airoha
 	config KERNEL_GIT_CLONE_URI
 		default "https://dev.iopsys.eu/airoha/linux.git"
 	config KERNEL_GIT_REF
-		default "c12dccbe34dc4af0025a2b28b091913109b8db68" if TARGET_airoha_an7581
+		default "d3acd72fe58e6342886ed95859ba81f7cd1140e7" if TARGET_airoha_an7581
 		default "ec7d684104cb9c3d372c7406a6dccd1a9095550a" if TARGET_airoha_en7523
 	config KERNEL_GIT_MIRROR_HASH
 		default "e76032cce99c247d73bae1b67bc7a1de58a8a3def4c6f2426f322ad062b608de"
-- 
GitLab