ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address
PATCH v2 1/1 ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address
The loading address is too close to the kernel address, so newer kernels may overlap memory space, so loading the device tree may corrupt zImage.
This patch moves the fdt_addr_r to 0x14000000 which is also consistent with guidance that the kernel be allocated 32MB. This places it in the same place as the ramdisk, so this patch moves the ramdisk address 512KB after the fdt.
---
V2: Use 0x14000000 instead of 0x18000000 and move ramdisk to
0x14080000
include/configs/imx6_logic.h +2 -2
@@ -34,8 +34,8 @@"script=boot.scr\0" \"image=zImage\0" \"bootm_size=0x10000000\0" \ -"fdt_addr_r=0x13000000\0" \ -"ramdisk_addr_r=0x14000000\0" \ +"fdt_addr_r=0x14000000\0" \ +"ramdisk_addr_r=0x14080000\0" \ "kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \"ramdisk_file=rootfs.cpio.uboot\0" \"boot_fdt=try\0" \
Signature · 1 line
2.17.1
PATCH v2 1/1 ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address
Quoted 9 lines · Adam Ford
The loading address is too close to the kernel address, so newer kernels may overlap memory space, so loading the device tree may corrupt zImage.
This patch moves the
fdt_addr_rto0x14000000which is also consistent with guidance that the kernel be allocated 32MB. This places it in the same place as the ramdisk, so this patch moves the ramdisk address 512KB after the fdt.Signed-off-by Adam Ford <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200820/79ecf9b4/attachment.sig>
Fabio Estevam
reviewerPATCH v2 1/1 ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address
In reply to Adam FordHi Adam,
Quoted 10 lines · Adam Ford
The loading address is too close to the kernel address, so newer kernels may overlap memory space, so loading the device tree may corrupt zImage.
This patch moves the
fdt_addr_rto0x14000000which is also consistent with guidance that the kernel be allocated 32MB. This places it in the same place as the ramdisk, so this patch moves the ramdisk address 512KB after the fdt.Signed-off-by Adam Ford <[email protected]>
PATCH v2 1/1 ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address
In reply to Adam FordQuoted 9 lines
The loading address is too close to the kernel address, so newer kernels may overlap memory space, so loading the device tree may corrupt zImage. This patch moves the
fdt_addr_rto0x14000000which is also consistent with guidance that the kernel be allocated 32MB. This places it in the same place as the ramdisk, so this patch moves the ramdisk address 512KB after the fdt.Signed-off-by Adam Ford <[email protected]>Reviewed-by Tom Rini <[email protected]>Reviewed-by Fabio Estevam <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================