On 30.07.19 17:54, João Reis wrote:
> Ok, so i realized i was declaring, on non root cell, a memory region that
> belonged to non-reserved memory from root cell(3fd00000-5fffffff : System 
> RAM).
> I've changed the memory region to reserved memory (address 0x90000000), 
> because
> on u-boot the memory reservation argument is mem=1536M, which equals to top
> address 0x5fffffff.
> 
> /* RAM */ {
> .phys_start = 0x90000000,
> .virt_start = 0x90000000,
> .size = 0x20000000, 
> .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
> JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_LOADABLE |
> JAILHOUSE_MEM_DMA,
> },

Do you also still have a small region at guest virtual address 0, to put the
loader there?

> 
> After issuing "jailhouse cell linux ultra96-linux-demo2.cell Image -d
> inmate-zynqmp.dtb -i rootfs.cpio -c "console=ttyS0, 115200" -k 4"
> 
> The following error appears:
> 
> [   82.987144] Created Jailhouse cell "non-root"
> Cell "non-root" can be loaded
> 
> Traceback (most recent call last):
>   File "/usr/local/libexec/jailhouse/jailhouse-cell-linux", line 826, in 
> <module>
>     cell.load(open(linux_loader, mode='rb').read(), arch.loader_address())
>   File "/usr/local/lib/python2.7/dist-packages/pyjailhouse/cell.py", line 44, 
> in
> load
>     fcntl.ioctl(self.dev, self.JAILHOUSE_CELL_LOAD, load)
> IOError: [Errno 22] Invalid argument

Does the hypervisor report that "Cell "XXX" can be loaded"? Then the error is
reported by the driver module, load_image(). And I would bet on a missing region
at address 0.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/c30da773-76bd-3691-3828-e8f7ed592d52%40siemens.com.

Reply via email to