Hi Peng,
On 2019-02-04, 09:58, "Peng Fan" <[email protected]> wrote:
Hi Arvid,
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Arvid Rosén
> Sent: 2019年2月4日 16:19
> To: Peng Fan <[email protected]>; [email protected]
> Subject: Re: Status on NXP i.mx8
>
> Hi Peng,
>
> Thanks for your reply. I am glad to hear that you are bringing Jailhouse
into a
> supported release, which will make these things easier for noobs like me
to
> play around with.
>
> I did try the imx-jailhouse repo (both imx_4.14.78_1.0.0_ga and
> imx_4.14.62_1.0.0_beta branches), but neither compile out of the box. I
don't
> know if it is worth it for me to dig into what caused that. I'll continue
to see if I
> can get the memory reservation right first at least.
What error do you see? I just checked again, the imx_4.14.78_1.0.0_ga
branch has our latest release code.
My command as below to compile imx-jailhouse with NXP yocto gcc.
.
/opt/fsl-imx-internal-xwayland/4.14-sumo/environment-setup-aarch64-poky-linux
unset CFLAGS
unset LDFLAGS
make KDIR=/home/Freenix/work/sw-stash/linux-imx8 CC="aarch64-poky-linux-gcc
--sysroot=$SDKTARGETSYSROOT" ARCH=arm64 CROSS_COMPILE=aarch64-poky-linux- clean
make KDIR=/home/Freenix/work/sw-stash/linux-imx8 CC="aarch64-poky-linux-gcc
--sysroot=$SDKTARGETSYSROOT" ARCH=arm64 CROSS_COMPILE=aarch64-poky-linux-
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);
The same procedure works for mainline jailhouse.
Cheers,
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.