On 29.07.19 21:51, João Reis wrote:
> Yeah, i forgot to set the flag and the .dtb file i was using wasn't the right
> one (now i am using inmate-zynqmp.dts). But even when i set the flag, it still
> gives me the same error.
> Send here the output of /proc/iomem:
> 
> 00000000-3ecfffff : System RAM
>   00080000-00deffff : Kernel code
>   00e70000-01134fff : Kernel data
> 3ed00000-3ed3ffff : 3ed00000.ddr
> 3fd00000-5fffffff : System RAM
> 7c000000-7c3fffff : Jailhouse hypervisor
> fc000000-fc0fffff : PCI ECAM
> fc100000-fc101fff : //pci@0
>   fc100000-fc1000ff : 0000:00:00.0
> 
> And the config as it is now in attachment.

If you look at tools/jailhouse-cell-linux, you can see the conditions
for considering a region as loadable RAM:

class ARMCommon:
    def setup(self, args, config):
        [...]
        for region in config.memory_regions:
            # Filter out non-RAM regions and small ones at the start of the
            # cell address space that is used for the loader.
            if region.is_ram() and \
               (region.virt_start > 0 or region.size > 0x10000):


class MemoryRegion:
    [...]
    def is_ram(self):
        return ((self.flags & (MemoryRegion.JAILHOUSE_MEM_READ |
                               MemoryRegion.JAILHOUSE_MEM_WRITE |
                               MemoryRegion.JAILHOUSE_MEM_EXECUTE |
                               MemoryRegion.JAILHOUSE_MEM_DMA |
                               MemoryRegion.JAILHOUSE_MEM_IO |
                               MemoryRegion.JAILHOUSE_MEM_COMM_REGION |
                               MemoryRegion.JAILHOUSE_MEM_ROOTSHARED)) ==
                (MemoryRegion.JAILHOUSE_MEM_READ |
                 MemoryRegion.JAILHOUSE_MEM_WRITE |
                 MemoryRegion.JAILHOUSE_MEM_EXECUTE |
                 MemoryRegion.JAILHOUSE_MEM_DMA))

Means, you are missing "MEM_DMA".

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/4f76dc91-7542-40b8-a0d9-eea52e1dd92a%40siemens.com.

Reply via email to