[Marvell-armhf] Setting u-boot ftd_high to resolve kernel hung (#10204)

Why I did it
Kernel hang in during early boot is caused due overwriting of device tree with uncompressing kernel. Added the fdt_high which gives a safe offset from kernel location.

How I did it
Setting uboot environment variable fdt_high.

How to verify it
Successful boot of bullseye kernel on Marvell Armada 380/385.

Change-Id: I3e2521780f5ecdb3bdf6cbb6542250814ca11959
Signed-off-by: Pavan Naregundi <pnaregundi@marvell.com>
This commit is contained in:
pavannaregundi 2022-03-24 19:54:49 +05:30 committed by GitHub
parent 97c02075f5
commit 7eb321c376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@ echo "Preparing for installation ... "
# global defines
kernel_addr=0x1100000
fdt_addr=0x1000000
fdt_high=0x10fffff
initrd_addr=0x2000000
VAR_LOG=512
@ -152,6 +153,7 @@ prepare_boot_menu() {
# Set boot configs
fw_setenv ${FW_ARG} kernel_addr $kernel_addr > /dev/null
fw_setenv ${FW_ARG} fdt_addr $fdt_addr > /dev/null
fw_setenv ${FW_ARG} fdt_high $fdt_high > /dev/null
fw_setenv ${FW_ARG} initrd_addr $initrd_addr > /dev/null
fw_setenv ${FW_ARG} mtdids 'nand0=armada-nand' > /dev/null
if [ $UBOOT_FW_DEFAULT -eq 1 ]