Hi agin, On 2019-02-04, 10:13, "Peng Fan" <[email protected]> wrote: > > I checked out the code on the target device (set up using NXP yocto). I build > with the following command and get the output below: > make KDIR=/usr/src/kernel > ... > /home/arvid/t/imx-jailhouse/inmates/lib/arm64/../arm-common/pci.c: In > function 'pci_read_config': > /home/arvid/t/imx-jailhouse/inmates/lib/arm64/../arm-common/pci.c:19:17: > error: 'PCI_CFG_BASE' undeclared (first use in this function); did you mean > 'PCI_CFG_BAR'? > u64 reg_addr = PCI_CFG_BASE | ((u32)bdf << 12) | (addr & 0xfc); > ^~~~~~~~~~~~ > PCI_CFG_BAR > /home/arvid/t/imx-jailhouse/inmates/lib/arm64/../arm-common/pci.c:19:17: > note: each undeclared identifier is reported only once for each function it > appears in > /home/arvid/t/imx-jailhouse/inmates/lib/arm64/../arm-common/pci.c: In > function 'pci_write_config': > /home/arvid/t/imx-jailhouse/inmates/lib/arm64/../arm-common/pci.c:34:17: > error: 'PCI_CFG_BASE' undeclared (first use in this function); did you mean > 'PCI_CFG_BAR'? > u64 reg_addr = PCI_CFG_BASE | ((u32)bdf << 12) | (addr & 0xfc); > Copy ci/jailhouse-config-imx8mq-evk.h to include/jailhouse/config.h, the error should gone. The NXP vendor branch is still based on 0.9.1, so need this step. Make sure your Linux kernel also use latest 4.14.78 ga branch from https://source.codeaurora.org/external/imx/linux-imx/log/?h=imx_4.14.78_1.0.0_ga Yes! That worked -- thanks! Now, the enable command correctly fails with the following output: [ 1230.766400] jailhouse: mem_region_request failed for hypervisor memory. [ 1230.773390] jailhouse: Did you reserve the memory with "memmap=" or "mem="?
So, I will go on to try to figure out how to address that. Regards, Arvid -- 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.
