package: layerscape: change loadaddr address
authorPawel Dembicki <paweldembicki@gmail.com>
Tue, 18 Apr 2023 09:37:04 +0000 (11:37 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 28 May 2023 18:22:23 +0000 (20:22 +0200)
At this moment loadaddr in most layerscape boards are configured to
0x81000000. 5.15 kernel on some boards is bigger than 5.10 and it cause error:

Loading kernel from FIT Image at 81000000 ...

Using 'config-1' configuration
Trying 'kernel-1' kernel subimage
Description: ARM64 OpenWrt Linux-5.15.112
Created: 2023-05-21 17:39:35 UTC
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x810000ec
Data Size: 7513944 Bytes = 7.2 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x80000000
Entry Point: 0x80000000
Hash algo: crc32
Hash value: 6fd69550
Hash algo: sha1
Hash value: ee34c753ffb615e199a428762824ad4a0aaef90a
Verifying Hash Integrity ... crc32+ sha1+ OK
Loading fdt from FIT Image at 81000000 ...

Using 'config-1' configuration
Trying 'fdt-1' fdt subimage
Description: ARM64 OpenWrt fsl_ls1088a-rdb-sdboot device tree blob
Created: 2023-05-21 17:39:35 UTC
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x8172a98c
Data Size: 19794 Bytes = 19.3 KiB
Architecture: AArch64
Hash algo: crc32
Hash value: 59792ba3
Hash algo: sha1
Hash value: 135585a49f86cd85acea559b78b0098ae99d5e12
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x8172a98c
Uncompressing Kernel Image
ERROR: new format image overwritten - must RESET the board to recover
resetting ...

This patch changes loadaddr to 0x88000000 (like LS1012A-FRDM board) to
avoid overlapping for bigger images (like initramfs) too.

Tested-by: Alexandra Alth <alexandra@alth.de> [LS1088ARDB]
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
16 files changed:
package/boot/uboot-layerscape/files/fsl_ls1012a-frwy-sdboot-uEnv.txt
package/boot/uboot-layerscape/files/fsl_ls1012a-rdb-uEnv.txt
package/boot/uboot-layerscape/files/fsl_ls1021a-iot-sdboot-uEnv.txt
package/boot/uboot-layerscape/files/fsl_ls1021a-twr-sdboot-uEnv.txt
package/boot/uboot-layerscape/files/fsl_ls1021a-twr-uEnv.txt
package/boot/uboot-layerscape/files/fsl_ls1043a-rdb-sdboot-uEnv.txt
package/boot/uboot-layerscape/files/fsl_ls1043a-rdb-uEnv.txt
package/boot/uboot-layerscape/files/fsl_ls1046a-frwy-sdboot-uEnv.txt
package/boot/uboot-layerscape/files/fsl_ls1046a-frwy-uEnv.txt
package/boot/uboot-layerscape/files/fsl_ls1046a-rdb-sdboot-uEnv.txt
package/boot/uboot-layerscape/files/fsl_ls1046a-rdb-uEnv.txt
package/boot/uboot-layerscape/files/fsl_ls1088a-rdb-sdboot-uEnv.txt
package/boot/uboot-layerscape/files/fsl_ls1088a-rdb-uEnv.txt
package/boot/uboot-layerscape/files/fsl_ls2088a-rdb-uEnv.txt
package/boot/uboot-layerscape/files/fsl_lx2160a-rdb-sdboot-uEnv.txt
package/boot/uboot-layerscape/files/fsl_lx2160a-rdb-uEnv.txt

index 592158955e8002f1612a88e8a0d759f017403f20..18efdc1bc34e503e4e01cda5a9c43bc320a0a33e 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 fdt_high=0x8fffffff
 initrd_high=0xffffffffffffffff
 sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
index 8d57d51ece75c5b45ced095cc8f8a6112f0dd738..0898354e7744b5dba02b9e4d63a835dca5d0ea83 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 bootm_size=0x10000000
 qspi_boot=sf probe 0:0;sf read $fdtaddr f00000 100000;sf read $loadaddr 1000000 1000000;bootm $loadaddr - $fdtaddr
 bootargs=root=/dev/mtdblock8 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=1550000.spi:1m(bl2),4m(fip),1m(u-boot-env),4m(reserved-1),3m(pfe),2m(reserved-2),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware)
index ae0d6a6f96bdf3c555de4bacafbda03ec58d5647..f8ec2c10fe869f085cf6ef97573f3c528691592d 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 fdt_high=0x8fffffff
 initrd_high=0xffffffff
 sd_boot=ext4load mmc 0:1 ${loadaddr} fitImage;bootm ${loadaddr}
index 55620d67257c830bcb135fed3f77f92783063ef2..d7f67e78ec870c354487b7d912cdbf47f22ed4e3 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 fdt_high=0x8fffffff
 initrd_high=0xffffffff
 sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
index 6d4647b1fd6e1c6795f3b4b9a12a81d325a38410..26fb3e9207b28863e76ac7e461f4a7c65fdef793 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 bootm_size=0x10000000
 nor_boot=cp.b 60f00000 $fdtaddr 100000;cp.b 61000000 $loadaddr 1000000;bootm $loadaddr - $fdtaddr
 bootargs=root=/dev/mtdblock6 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1m(rcw),2m(u-boot),1m(u-boot-env),11m(reserved-1),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware) cma=64M@0x0-0xb0000000
index 3c39c2263de06d50032385f14ebe941083f1bdb1..591210eea73728d1e71a649b3c2ec2a710e082d0 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 fdt_high=0x8fffffff
 initrd_high=0xffffffffffffffff
 hwconfig=fsl_ddr:bank_intlv=auto
index acb61ca00a32db3832fa7ffe7baab0313d9f4497..c601cab92f8b5db65459beff4286aa45b84c693e 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 bootm_size=0x10000000
 hwconfig=fsl_ddr:bank_intlv=auto
 nor_boot=cp.b 60f00000 $fdtaddr 100000;cp.b 61000000 $loadaddr 1000000;bootm $loadaddr - $fdtaddr
index 303157cb8004052e27fd2c1f8d6d8836bcaac3e5..e69332efacbda13d5a91714c3f9d3083c4f56400 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 bootm_size=0x10000000
 hwconfig=fsl_ddr:bank_intlv=auto
 sd_boot=ext4load mmc 0:1 ${loadaddr} fitImage;bootm ${loadaddr}
index 5461bba9b667167caecb33948f9ba4c1a50dc3e5..ad5cc77841dccf5e657a88ce5c3ca7873c79c0ad 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 bootm_size=0x10000000
 hwconfig=fsl_ddr:bank_intlv=auto
 qspi_boot=sf probe 0:0;sf read $fdtaddr f00000 100000;sf read $loadaddr 1000000 1000000;bootm $loadaddr - $fdtaddr
index 3c39c2263de06d50032385f14ebe941083f1bdb1..591210eea73728d1e71a649b3c2ec2a710e082d0 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 fdt_high=0x8fffffff
 initrd_high=0xffffffffffffffff
 hwconfig=fsl_ddr:bank_intlv=auto
index e52e48802bc23cc7f9e09a8d6bf86b8cde04a32c..dab8faaf1322ca245e1e5c0cefd804de0d2dfa0a 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 bootm_size=0x10000000
 hwconfig=fsl_ddr:bank_intlv=auto
 qspi_boot=sf probe 0:0;sf read $fdtaddr f00000 100000;sf read $loadaddr 1000000 1000000;bootm $loadaddr - $fdtaddr
index f616cb1398657f558ff9a5e90e3e9eacff510779..5b235378448a42851d44caba90b543bc4184c053 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 fdt_high=0xa0000000
 initrd_high=0xffffffffffffffff
 hwconfig=fsl_ddr:bank_intlv=auto
index 210c18721df2f264b16556f03ecf3eae8a6d86d8..a15717bcb80c81ff03e004383e3aba5db5b0a54a 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 fdt_high=0xa0000000
 initrd_high=0xffffffffffffffff
 hwconfig=fsl_ddr:bank_intlv=auto
index 946029d1f16cd2896fcc34b603407ff9629a1ce2..646aed4427826a933bf49d96ab07edcb2a460699 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 fdt_high=0xa0000000
 initrd_high=0xffffffffffffffff
 hwconfig=fsl_ddr:bank_intlv=auto
index d1373199150ae61e06e473226c8ffc3b0ed45dca..2d8043d7b1b28da558e48571d574bfbb96aaa319 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 bootm_size=0x10000000
 hwconfig=fsl_ddr:bank_intlv=auto
 mc_init=mmc read 80000000 5000 1800;mmc read 80300000 7000 800;fsl_mc start mc 80000000 80300000;mmc read 80400000 6800 800;fsl_mc apply dpl 80400000
index 41fde35c88c1665645d94cd7658058cf556f1f59..16f905afc685a587f032ac21c9c0c98c850d790e 100644 (file)
@@ -1,5 +1,5 @@
 fdtaddr=0x8f000000
-loadaddr=0x81000000
+loadaddr=0x88000000
 bootm_size=0x10000000
 hwconfig=fsl_ddr:bank_intlv=auto
 mc_init=sf probe 0:0;sf read 80000000 a00000 300000;sf read 80300000 e00000 100000;fsl_mc start mc 80000000 80300000;sf read 80400000 d00000 100000;fsl_mc apply dpl 80400000