Skip to contentSkip to conversation

ARM: UniPhier: add initrd_high and fdt_high environments

PATCH New Masahiro Yamada 2 participants 3 messages Apr 14, 2015 – Dec 18, 2015 Arm/uniphier architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: UniPhier: add initrd_high and fdt_high environments

With FIT boot, U-boot puts a device tree and an initramdisk at the tail of the memory.

Some UniPhier boards have a large amount of memory. For those boards, a device tree and an initramdisk are located out of reach of the Linux kernel causing a kernel panic if CONFIG_VMSPLIT_3G is defined in the kernel side.

Add initrd_high and fdt_high to prevent them from going too high.

---

 include/configs/uniphier.h | 2 ++
 1 file changed, 2 insertions(+)
include/configs/uniphier.h +2 -0
index d4688c5..dea340f 100644
@@ -236,6 +236,8 @@
 	"netdev=eth0\0"				\
 	"image_offset=0x00080000\0"		\
 	"image_size=0x00f00000\0"		\
+	"initrd_high=0xa0000000\0"		\
+	"fdt_high=0xa0000000\0"			\
 	"verify=n\0"				\
 	"nandupdate=nand erase 0 0x100000 &&"				\
 		   "tftpboot u-boot-spl.bin &&"				\
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 ARM: UniPhier: add initrd_high and fdt_high environments

Quoted 9 lines · Masahiro Yamada

With FIT boot, U-boot puts a device tree and an initramdisk at the tail of the memory.

Some UniPhier boards have a large amount of memory. For those boards, a device tree and an initramdisk are located out of reach of the Linux kernel causing a kernel panic if CONFIG_VMSPLIT_3G is defined in the kernel side.

Add initrd_high and fdt_high to prevent them from going too high.

Please use bootm_size and see include/configs/ti_armv7_common.h / DEFAULT_LINUX_BOOT_ENV for the why/wheres and then adjust to fit UniPhier, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150414/ad9adf50/attachment.sig>
#2 lore raw

PATCH 1/1 ARM: UniPhier: add initrd_high and fdt_high environments

Hi Tom,

2015-04-15 6:07 GMT+09:00 Tom Rini <[email protected]>:

Quoted 10 lines · Masahiro Yamada
Quoted 9 lines

With FIT boot, U-boot puts a device tree and an initramdisk at the tail of the memory.

Some UniPhier boards have a large amount of memory. For those boards, a device tree and an initramdisk are located out of reach of the Linux kernel causing a kernel panic if CONFIG_VMSPLIT_3G is defined in the kernel side.

Quoted 6 lines
Quoted 1 line

Add initrd_high and fdt_high to prevent them from going too high.

Please use bootm_size and see include/configs/ti_armv7_common.h / DEFAULT_LINUX_BOOT_ENV for the why/wheres and then adjust to fit UniPhier, thanks!

After long silence, I came back again!

I noticed "bootm_size" and "bootm_low" environments are checked for relocation for FDT, but not for Initramdisk.

Namely, "initrd_high" is only the way to prevent the initramdisk from going too high.

So, I posted this patch:
http://patchwork.ozlabs.org/patch/558077/

Signature · 2 lines
Best Regards
Masahiro Yamada