Hi,

> -----Original Message-----
> From: Arvid Rosén [mailto:[email protected]]
> Sent: 2019年2月4日 17:25
> To: Peng Fan <[email protected]>; [email protected]
> Subject: Re: Status on NXP i.mx8
> 
> 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://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsour
> ce.codeaurora.org%2Fexternal%2Fimx%2Flinux-imx%2Flog%2F%3Fh%3Dimx
> _4.14.78_1.0.0_ga&amp;data=02%7C01%7Cpeng.fan%40nxp.com%7Cc7fe59
> 22c6e44f34570608d68a829d7c%7C686ea1d3bc2b4c6fa92cd99c5c301635%7
> C0%7C0%7C636848690928531933&amp;sdata=ooZnnC6EuPVub77uZ09xYzM
> uK14t1dtIhth4D85%2Bytg%3D&amp;reserved=0
> 
> 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="?

In U-Boot stage, before booting Linux, execute `run jh_mmcboot` or `run 
jh_netboot`.
It should fix your issue.

Regards,
Peng.

> 
> 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.

Reply via email to