Re: [PATCH 1/2] ARM: at91: usb-a926x: remove nand partitions from config

2023-05-02 Thread Sascha Hauer
On Thu, Apr 27, 2023 at 08:47:17PM +0200, Wolfram Sang wrote:
> We define partitions as well in the board file. Leading to:
> 
> New partition nand0.at91bootstrap (0x-0x0001) on nand0 overlaps 
> with partition at91bootstrap_raw (0x-0x0001), not creating it
> cannot create nand0.at91bootstrap: Invalid argument
> addpart: Invalid argument
> 
> So, remove it from the config file.
> 
> Signed-off-by: Wolfram Sang 
> ---
> 
> Or shall I rather remove it from the board file?

No, doing it in the board file is preferred.

Sascha


-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |



[PATCH 1/2] ARM: at91: usb-a926x: remove nand partitions from config

2023-04-27 Thread Wolfram Sang
We define partitions as well in the board file. Leading to:

New partition nand0.at91bootstrap (0x-0x0001) on nand0 overlaps 
with partition at91bootstrap_raw (0x-0x0001), not creating it
cannot create nand0.at91bootstrap: Invalid argument
addpart: Invalid argument

So, remove it from the config file.

Signed-off-by: Wolfram Sang 
---

Or shall I rather remove it from the board file?

 arch/arm/boards/usb-a926x/defaultenv-usb-a926x/config | 4 
 1 file changed, 4 deletions(-)

diff --git a/arch/arm/boards/usb-a926x/defaultenv-usb-a926x/config 
b/arch/arm/boards/usb-a926x/defaultenv-usb-a926x/config
index 49199ba391..f9159cb946 100644
--- a/arch/arm/boards/usb-a926x/defaultenv-usb-a926x/config
+++ b/arch/arm/boards/usb-a926x/defaultenv-usb-a926x/config
@@ -29,10 +29,6 @@ kernelimage=zImage
 #kernelimage=Image
 #kernelimage=Image.lzo
 
-nand_device=atmel_nand
-nand_parts="128k(at91bootstrap),256k(barebox)ro,128k(bareboxenv),128k(bareboxenv2),128k(oftree),4M(kernel),120M(rootfs),-(data)"
-rootfs_mtdblock_nand=6
-
 autoboot_timeout=3
 
 bootargs="console=ttyS0,115200"
-- 
2.35.1