On 2017-02-28 08:08, Harison wrote:
> Hello. I would like to test eMMC with jailhouse hypervisor.
> I installed a newly patched hypervisor on the Jetson tx1 board, But I had a
> problem.
> The settings for the internal memory area are as follows. IRQchips only set
> the GIC for uarta.
> I added mem=3648M vmalloc=512M to the kenrel.
>
> .mem_regions = {
> /* UART */ {
> .phys_start = 0x70006000,
> .virt_start = 0x70006000,
> .size = 0x1000,
> .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
> JAILHOUSE_MEM_IO,
> },
>
> /* RAM */ {
> .phys_start = 0x17bfe0000,
> .virt_start = 0x0,
> .size = 0x00010000,
> .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
> JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_LOADABLE,
>
> },
>
> /* inmate RAM */ {
> .phys_start = 0x168000000,
> .virt_start = 0x168000000,
> .size = 0x10000000,
> .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
> JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_DMA |
> JAILHOUSE_MEM_LOADABLE,
>
> For the non root cell, I run the following command.
>
> $LOAD_ADDR=0x169000000
> $DTB_ADDR=0x170000000
> $sudo jailhouse cell create jetson-test-a.cell
> $sudo jailhouse cell load jetson-test-a inmates/tools/arm64/linux-loader.bin
> -a 0x0 Image -a $LOAD_ADDR inmate-jetson-tx1.dtb -a $DTB_ADDR -s
> "kernel=$LOAD_ADDR dtb=$DTB_ADDR" -a 0x1000
> $sudo jailhouse cell start jetson-test-a
>
> I could see the output of stared cell "jetson-test-a" in the terminal window,
> but the kernel did not boot.
> In this case, do you think that the linux-loader provided by jailhouse does
> not work properly?
> Can I assume the settings are wrong?
> I added mem=3648M to limit the memory area of the root cell. Should I add
> mem= and vmalloc to the non root cell device tree for the non root cell?
>
You should try "jailhouse cell linux" first, instead of the open-coded
approach (the latter was removed from docs in master). It automates the
steps a prevents some of the common mistakes along this.
The next question would then be where you got the kernel from
(queues/jailhouse from my tree?) and which config you are using.
Jan
--
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux
--
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].
For more options, visit https://groups.google.com/d/optout.