On 19.10.18 04:45, minskey guo wrote:
On Friday, October 19, 2018 at 12:17:13 AM UTC+8, J. Kiszka wrote:
On 18.10.18 12:47, minskey guo wrote:
Hi, all,
Does anybody successfully run Linux in non-root cell on NUC6CAY or any
x86 platform ? By following the readme.txt at jailhouse git tree. I can run
apic-demo on that platform, and the serial port output is OK.
Serial port? How did you enable that? The original NUC6CAY has no UART
interface, not even internally, to my best knowledge.
Thank u for the response.
Oops, I run into the issue on NUC7i5D Kabylake platform. For NUC6CAY, you can
unplug the WiFi card and replace it with a PCIe2UART card.
Yeah, ok, that option I considered as well but then went for the EFI framebuffer
path instead.
Following your link, I downloaded jailhouse-image, built it and then use the
kconfig in the directory of jailhouse-image
:jailhouse-demo-amd64/linux-jailhouse-4.14.70-r0/linux-fb67a109309134bee65d97e29076128d603227b3/
to build the mainline kernel:
commit 3a27203102ebfa67bd0bced05b1def499bb59db2 (HEAD -> jailhouse,
mainline/master)
Merge: a24a0eb9c897 4628a64591e6
Author: Greg Kroah-Hartman <gre...@linuxfoundation.org>
Date: Sun Oct 14 08:34:31 2018 +0200
Merge tag 'libnvdimm-fixes-4.19-rc8' of
git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
to get a bzImage for non-root cell. Now, the COM1 has output now during
booting non-root-cell linux , but I run into another issue:
1.797742] RAPL PMU: API unit is 2^-32 Joules, 5 fixed counters, 655360 ms
ovfl timer
[ 1.805696] RAPL PMU: hw unit of domain pp0-core 2^-14 Joules
[ 1.811470] RAPL PMU: hw unit of domain package 2^-14 Joules
[ 1.817155] RAPL PMU: hw unit of domain dram 2^-14 Joules
[ 1.822574] RAPL PMU: hw unit of domain pp1-gpu 2^-14 Joules
[ 1.828254] RAPL PMU: hw unit of domain psys 2^-14 Joules
[ 1.833679] clocksource: tsc: mask: 0xffffffffffffffff max_cycles:
0x2717868ea45, max_idle_s
[ 1.843722] clocksource: Switched to clocksource tsc
FATAL: Invalid PIO read, port: 87 size: 1
That's a legacy resources, and that indicates your kernel lacks Jailhouse
awareness (CONFIG_JAILHOUSE_GUEST). There kernel will also report during boot if
it detected (and is aware of) Jailhouse.
Jan
RIP: 0xffffffff82394fb4 RSP: 0xffffc9000001bea8 FLAGS: 246
RAX: 0x0000000000000000 RBX: 0x0000000000000006 RCX: 0x0000000000000000
RDX: 0x0000000000000000 RSI: 0x0000000000000000 RDI: 0xffffffff82394faf
CS: 10 BASE: 0x0000000000000000 AR-BYTES: a09b EFER.LMA 1
CR0: 0x0000000080050033 CR3: 0x000000000200a001 CR4: 0x00000000003626b0
EFER: 0x0000000000000d01
Parking CPU 1 (Cell: "rt-linux")
From the /proc/ioports, port 87 is not used:
0000-0cf7 : PCI Bus 0000:00
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-0060 : keyboard
0062-0062 : PNP0C09:00
0062-0062 : EC data
0064-0064 : keyboard
0066-0066 : PNP0C09:00
0066-0066 : EC cmd
0070-0077 : rtc0
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
03f8-03ff : serial
040a-040b : wdat_wdt
0680-069f : pnp 00:02
0a00-0a1f : pnp 00:00
0a20-0a2f : pnp 00:00
0a30-0a3f : pnp 00:00
0a40-0a4f : pnp 00:00
0a50-0a5f : pnp 00:00
0a60-0a6f : pnp 00:00
In my non-root cell config, I did it like this:
.pio_bitmap = {
[ 0/8 ... 0x2f7/8] = -1,
[ 0x2f8/8 ... 0x2ff/8] = 0, /* serial2 */
[ 0x300/8 ... 0x3f7/8] = -1,
[ 0x3f8/8 ... 0x3ff/8] = 0, /* serial1 */
[ 0x400/8 ... 0xdfff/8] = -1,
[0xe000/8 ... 0xe007/8] = 0, /* OXPCIe952 serial2 */
[0xe008/8 ... 0xffff/8] = -1,
},
Should I disable port 87, or have to figure out which device or driver is
attempting to access it and then disable that device or driver ?
BRs,
-minskey
--
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 jailhouse-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.