From 705756d213ed76c24cd9a8d92ba9e2cae6e25b1a Mon Sep 17 00:00:00 2001
From: Arne Jonsson <arne.jonsson@seliro.com>
Date: Mon, 7 Feb 2022 14:33:56 +0100
Subject: [PATCH] config and flash layout fixes

---
 .../etc/system_layout/DNA0332TLS.json         | 22 -------------------
 iopsys-brcm63xx-arm/config/dna0332tls/config  |  2 +-
 .../lib/preinit/70_flash_layout_fixup         |  2 +-
 3 files changed, 2 insertions(+), 24 deletions(-)
 delete mode 100644 iopsys-brcm63xx-arm/base-files/etc/system_layout/DNA0332TLS.json

diff --git a/iopsys-brcm63xx-arm/base-files/etc/system_layout/DNA0332TLS.json b/iopsys-brcm63xx-arm/base-files/etc/system_layout/DNA0332TLS.json
deleted file mode 100644
index 904500db8..000000000
--- a/iopsys-brcm63xx-arm/base-files/etc/system_layout/DNA0332TLS.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
-  "type": "nand",
-  "banks": [
-    {
-      "id": 0,
-      "name": "A",
-      "rootfs": "/dev/ubiblock0_4",
-      "overlay": "ubi0:defaults"
-    },
-    {
-      "id": 1,
-      "name": "B",
-      "rootfs": "/dev/ubiblock0_6",
-      "overlay": "ubi0:defaults"
-    }
-  ],
-  "overlay_scope": [
-    "/"
-  ],
-  "mounts": [
-  ]
-}
diff --git a/iopsys-brcm63xx-arm/config/dna0332tls/config b/iopsys-brcm63xx-arm/config/dna0332tls/config
index e6de4eddc..da3e027b0 100644
--- a/iopsys-brcm63xx-arm/config/dna0332tls/config
+++ b/iopsys-brcm63xx-arm/config/dna0332tls/config
@@ -1,5 +1,5 @@
 CONFIG_TARGET_FAMILY="DNA0332"
-CONFIG_BCM_KERNEL_PROFILE="DNA0332"
+CONFIG_BCM_KERNEL_PROFILE="963146GW_WL21D2GA"
 CONFIG_BCM_CHIP_ID="63146"
 
 CONFIG_BCM_VOICE=y
diff --git a/iopsys-brcm63xx-arm/dna0332tls/base-files/lib/preinit/70_flash_layout_fixup b/iopsys-brcm63xx-arm/dna0332tls/base-files/lib/preinit/70_flash_layout_fixup
index e67cecbbd..9f90a29d2 100644
--- a/iopsys-brcm63xx-arm/dna0332tls/base-files/lib/preinit/70_flash_layout_fixup
+++ b/iopsys-brcm63xx-arm/dna0332tls/base-files/lib/preinit/70_flash_layout_fixup
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-OVERLAY_LEBS_COUNT=300 
+OVERLAY_LEBS_COUNT=300 /* equal to about 36MB */
 
 flash_layout_fixup () {
 	vol_name="overlay1"
-- 
GitLab