Sending code around as html does not really help, especially since i
guess that you have a formatting problem with your bootloader
configuration.
My guess is that you want to "append" to the APPEND line and not create
a new line behind it. You might want to add a completely new entry for
that.
LABEL jailhouse
MENU LABEL jailhouse kernel
LINUX /boot/Image-jailhouse
INITRD /boot/initrd-jailhouse
APPEND ${cbootargs} quiet mem=7808M vmalloc=512M
This would be an example entry expecting two new files
"Image-jailhouse" and "initrd-jailhouse", making sure you do not have
to overwrite the previously working kernel.
But as long as you do not see the change in /proc/cmdline you have a
boot configuration issue not related to jailhouse at all. Consult the
documentation of your distro or the booloader used by it.
Henning
On Tue, 28 Jan 2020 13:50:09 -0800
Saroj Sapkota <[email protected]> wrote:
> I'm trying to run jailhouse on Jetson tx2 kit. I downloaded the
> jailhouse and compiled it and run the command
>
> =>sudo insmod Downloads/linux-jailhouse-jetson/driver/jailhouse.ko
>
> // there is no error message in terminal console
>
> but it gives following output on the serial console:
>
> tx2@tx2-desktop:~$ [ 129.954491] jailhouse: loading out-of-tree
> module taints kernel.
>
> After this I tried to enable jailhouse through this command
>
> =>sudo jailhouse enable
> Downloads/linux-jetson/configs/arm64/jetson-tx2.cell // terminal
> displays: JAILHOUSE_ENABLE: Invalid argument
>
> //and on the terminal console it displays:
>
> [ 333.421533] jailhouse: mem_region_request failed for hypervisor
> memory mem_region_request failed for hypervisor memory
> mem_region_request failed for hypervisor memory mem_region_request
> failed for hypervisor memory. [ 333.428303] jailhouse: Did you
> reserve the memory with "memmap=" or "mem="?
>
> I have changed /boot/extlinux/extlinux.conf file as follows:
> TIMEOUT 30
> DEFAULT primary
>
> MENU TITLE L4T boot options
>
> LABEL primary
> MENU LABEL primary kernel
> LINUX /boot/Image
> INITRD /boot/initrd
> APPEND ${cbootargs} quiet
> *mem=7808M vmalloc=512M*
> # When testing a custom kernel, it is recommended that you create a
> backup of
> # the original kernel and add a new entry to this file so that the
> device can
> # fallback to the original kernel. To do this:
> #
> # 1, Make a backup of the original kernel
> # sudo cp /boot/Image /boot/Image.backup
> #
> # 2, Copy your custom kernel into /boot/Image
> #
> # 3, Uncomment below menu setting lines for the original kernel
> #
> # 4, Reboot
>
> # LABEL backup
> # MENU LABEL backup kernel
> # LINUX /boot/Image.backup
> # INITRD /boot/initrd
> # APPEND ${cbootargs}
>
> but this change is not working. So what's the wrong in this
> extlinux.conf file as boot up is ignoring *mem=7808M vmalloc=512M
> *this statement. Please help me through this error.
> Thank you
>
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/20200129123244.22fa5113%40md1za8fc.ad001.siemens.net.