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- Regards, Peng > > Cheers, > Arvid > > On 2019-02-02, 15:32, "Peng Fan" <[email protected]> wrote: > > Hi, > > Sorry for top writing. > > The upstream imx8mq support might be broken. You could try code, > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsour > ce.codeaurora.org%2Fexternal%2Fimx%2Fimx-jailhouse%2Flog%2F%3Fh%3Di > mx_4.14.78_1.0.0_ga&data=02%7C01%7Cpeng.fan%40nxp.com%7C1b3 > df5f24a5a49f4aaab08d68a797145%7C686ea1d3bc2b4c6fa92cd99c5c301635 > %7C0%7C0%7C636848651526164307&sdata=6Phl6Z0D7w%2B7GeTisB > YLN6IL4Ew8czC%2F3wo32FI1a90%3D&reserved=0 . > Actually we have a virtualization release including jailhouse, but code > has > not been public now, but will soon be public. You could give a try using the > upper link. > Need find some time to upstream the vendor code. > > Regards, > Peng. > > From: [email protected] > [mailto:[email protected]] On Behalf Of Arvid Rosén > Sent: 2019年2月2日 6:58 > To: [email protected] > Subject: Status on NXP i.mx8 > > Hi! > > I just found Jailhouse, and I think it is a very interesting project. I > would > like to try it on a NXP i.MX8 EVK, namely exactly this: > > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww > w.nxp.com%2Fsupport%2Fdeveloper-resources%2Frun-time-software%2Fi.m > x-developer-resources%2Fevaluation-kit-for-the-i.mx-8m-applications-proces > sor%3AMCIMX8M-EVK&data=02%7C01%7Cpeng.fan%40nxp.com%7C1b > 3df5f24a5a49f4aaab08d68a797145%7C686ea1d3bc2b4c6fa92cd99c5c30163 > 5%7C0%7C0%7C636848651526164307&sdata=ubpELWIpZzwA0MmtqO > jVRUVb8fG%2BRuWOcmtBq%2FGFpjg%3D&reserved=0 > > This is new stuff to me, but I managed to use Yocto to create an image > that runs a Linux Kernel v4.14.78. I also manage to build jailhouse from git > on > the board. > > Then, it start to get tricky. > > I start by issuing the following command, which works > /usr/local/sbin/jailhouse enable ~/jailhouse/configs/arm64/imx8mq.cell > > I can also run: > /usr/local/sbin/jailhouse cell create > jailhouse/configs/imx8mq-gic-demo.cell > This gives me an, in dmesg: > [46672.927620] Created Jailhouse cell "gic-demo" > > What then? > I have tried this: > /usr/local/sbin/jailhouse cell load gic-demo > jailhouse/inmates/demos/arm64/gic-demo.bin > This gives me an instant crash, with the folloing output: > > [44859.014164] The Jailhouse was closed. > [44936.688241] The Jailhouse is opening. > [44943.531522] CPU3: shutdown > [44943.534236] psci: CPU3 killed. > [44943.546785] Created Jailhouse cell "gic-demo" > [44951.801985] Bad mode in Error handler detected on CPU0, code > 0xbf000002 -- SError > [44951.809476] Internal error: Oops - bad mode: 0 [#6] PREEMPT SMP > [44951.815395] Modules linked in: jailhouse(O) 8021q garp stp mrp > crc32_ce crct10dif_ce qca6174(O) galcore(O) [last unloaded: jailhouse] > [44951.827409] CPU: 0 PID: 13109 Comm: jailhouse Tainted: G D > O 4.14.78-imx_4.14.78_1.0.0_ga+g66620c3d281c #1 > [44951.838014] Hardware name: Freescale i.MX8MQ EVK (DT) > [44951.843063] task: ffff8000b8c65100 task.stack: ffff0000206d0000 > [44951.848983] PC is at 0xffff856e491c > [44951.852469] LR is at 0x401b08 > [44951.855434] pc : [<0000ffff856e491c>] lr : [<0000000000401b08>] > pstate: 80000000 > [44951.862826] sp : 0000fffffc21e010 > [44951.866138] x29: 0000fffffc21e010 x28: 0000000000402000 > [44951.871450] x27: 0000000000000005 x26: 0000000000000001 > [44951.876761] x25: 000000000c24b2b0 x24: 0000fffffc21ee22 > [44951.882072] x23: 0000fffffc21e318 x22: 0000000000000005 > [44951.887384] x21: 0000000000000005 x20: 000000000c24b2b0 > [44951.892694] x19: 0000000000000003 x18: 000000000000081c > [44951.898006] x17: 0000000000413108 x16: 0000ffff856e4910 > [44951.903317] x15: 0000ffff85621de0 x14: 0000ffff8562f2c8 > [44951.908629] x13: 000000000000270f x12: 0000000000000001 > [44951.913940] x11: 0000000000000000 x10: 0101010101010101 > [44951.919250] x9 : 0000ffff857ae270 x8 : 000000000000001d > [44951.924562] x7 : 0000000000000000 x6 : 0000000000000000 > [44951.929873] x5 : 0000000000000077 x4 : 000000000c24b2c0 > [44951.935184] x3 : 0000000000000000 x2 : 000000000c24b260 > [44951.940495] x1 : 0000000040300003 x0 : 0000000000000000 > [44951.945806] Process jailhouse (pid: 13109, stack limit = > 0xffff0000206d0000) > [44951.952853] ---[ end trace 528a201c8566b124 ]--- > > What do I need to do to run the gic-demo on my board? Am I doing > anything wrong, and in what state is the NXP IMX support currently? > > Thanks, > 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 mailto:[email protected]. > For more options, visit > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgrou > ps.google.com%2Fd%2Foptout&data=02%7C01%7Cpeng.fan%40nxp.co > m%7C1b3df5f24a5a49f4aaab08d68a797145%7C686ea1d3bc2b4c6fa92cd99 > c5c301635%7C0%7C0%7C636848651526164307&sdata=GmSAwyvsOJA > 1QM%2BNOdkNWND4GFAeB4JzcbbqmpeXWlc%3D&reserved=0. > > > -- > 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://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgrou > ps.google.com%2Fd%2Foptout&data=02%7C01%7Cpeng.fan%40nxp.co > m%7C1b3df5f24a5a49f4aaab08d68a797145%7C686ea1d3bc2b4c6fa92cd99 > c5c301635%7C0%7C0%7C636848651526164307&sdata=GmSAwyvsOJA > 1QM%2BNOdkNWND4GFAeB4JzcbbqmpeXWlc%3D&reserved=0. -- 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.
