* [PATCH V2] ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address
@ 2020-08-20 13:56 Adam Ford
2020-08-20 14:39 ` Tom Rini
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Adam Ford @ 2020-08-20 13:56 UTC (permalink / raw)
To: u-boot
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.
Signed-off-by: Adam Ford <aford173@gmail.com>
---
V2: Use 0x14000000 instead of 0x18000000 and move ramdisk to
0x14080000
diff --git a/include/configs/imx6_logic.h b/include/configs/imx6_logic.h
index 63662dd18d..6b992f9ab8 100644
--- a/include/configs/imx6_logic.h
+++ b/include/configs/imx6_logic.h
@@ -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" \
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH V2] ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address
2020-08-20 13:56 [PATCH V2] ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address Adam Ford
@ 2020-08-20 14:39 ` Tom Rini
2020-08-20 16:57 ` Fabio Estevam
2020-08-25 14:00 ` sbabic at denx.de
2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2020-08-20 14:39 UTC (permalink / raw)
To: u-boot
On Thu, Aug 20, 2020 at 08:56:49AM -0500, Adam Ford wrote:
> 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.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
--
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>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH V2] ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address
2020-08-20 13:56 [PATCH V2] ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address Adam Ford
2020-08-20 14:39 ` Tom Rini
@ 2020-08-20 16:57 ` Fabio Estevam
2020-08-25 14:00 ` sbabic at denx.de
2 siblings, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2020-08-20 16:57 UTC (permalink / raw)
To: u-boot
Hi Adam,
On Thu, Aug 20, 2020 at 10:57 AM Adam Ford <aford173@gmail.com> wrote:
>
> 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.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH V2] ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address
2020-08-20 13:56 [PATCH V2] ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address Adam Ford
2020-08-20 14:39 ` Tom Rini
2020-08-20 16:57 ` Fabio Estevam
@ 2020-08-25 14:00 ` sbabic at denx.de
2 siblings, 0 replies; 4+ messages in thread
From: sbabic at denx.de @ 2020-08-25 14:00 UTC (permalink / raw)
To: u-boot
> 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.
> Signed-off-by: Adam Ford <aford173@gmail.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>
> Reviewed-by: Fabio Estevam <festevam@gmail.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
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
=====================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-08-25 14:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-20 13:56 [PATCH V2] ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address Adam Ford
2020-08-20 14:39 ` Tom Rini
2020-08-20 16:57 ` Fabio Estevam
2020-08-25 14:00 ` sbabic at denx.de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox