Skip to content
Permalink
Browse files

tools: cell-linux: arm: Do not page align the ramdisk size

When updating linux initrd size in inmate DT, the size is aligned
to page. Because of this some initrd images were not able to mount
by inmate as Linux is seeing junk at end of specified initrd.
Pass the exact initrd size to the Linux kernel.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information...
Lokesh Vutla' via Jailhouse authored and jan-kiszka committed Sep 27, 2019
1 parent 7cc0dc9 commit b66f75c353cd3b0e4b3eacd786eb3ef4908ef6f9
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/jailhouse-cell-linux
@@ -317,7 +317,7 @@ class ARMCommon:

ramdisk_size = 0
if args.initrd:
ramdisk_size = page_align(os.fstat(args.initrd.fileno()).st_size)
ramdisk_size = os.fstat(args.initrd.fileno()).st_size
# leave sufficient space between the kernel and the initrd
decompression_factor = self.default_decompression_factor()
if args.kernel_decomp_factor:

0 comments on commit b66f75c

Please sign in to comment.
You can’t perform that action at this time.