
Geoffroy Van Cutsem
Hi Alfonso,
You are not building with CONFIG_RELEASE=y by any chance? (If the tag info below is correct, the default is not to use that). In case you did, note that it will disable the
use of the serial port.
Based on the output I see, it should work though with the default settings. Are you seeing any output at all on the serial port (e.g. Bios output)? Make sure to use these
settings in minicom (or whatever else you use): 115200 8N1, both HW and SW flow control should turned off (this last one often gets me, the default may be that one is on).
As far as I know, the HVlog error shouldn’t affect the functionality, so there is something else going wrong in your set-up. Let me continue dig through the logs and see if
I can spot some other useful info.
Geoffroy
toggle quoted message
Show quoted text
From: acrn-users@... <acrn-users@...>
On Behalf Of Alfonso Sanchez-Beato
Sent: Thursday, January 9, 2020 10:12 AM
To: acrn-users@...
Subject: Re: [acrn-users] Cannot launch hart RT UOS when running Ubuntu as SOS
Right, I had forgotten to copy acrn.efi to the EFI partition after re-compiling, thanks for reminding me. With that things move forward a bit, but I still get errors:
$ acrn-dm -v
DM version is: 1.4-unstable-bcefd673 (daily tag:acrn-2019w47.1-140000p), build by ubuntu@2020-01-09 09:45:17
ubuntu@nuc:~$ uname -a
Linux nuc 4.19.78-98.iot-lts2018-sos #1 SMP PREEMPT Mon Nov 18 09:22:10 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
I have not been able yet to get output from the serial port, unfortunately.
I see there an hvlog error which I do not know if it is relevant or not:
$ sudo dmesg | grep -i ACRN
[ 0.000000] Command line: BOOT_IMAGE=/boot/acrn/org.clearlinux.iot-lts2018-sos.4.19.78-98 pci_devices_ignore=(0:18:1) console=tty0 console=ttyS0 root=/dev/sda3 rw rootwait ignore_loglevel no_timer_check consoleblank=0 i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x01010F
i915.domain_plane_owners=0x011111110000 i915.enable_gvt=1 i915.enable_guc=0 hvlog=2M@0x1FE00000
[ 0.000000] Hypervisor detected: ACRN
[ 0.054541] Kernel command line: BOOT_IMAGE=/boot/acrn/org.clearlinux.iot-lts2018-sos.4.19.78-98 pci_devices_ignore=(0:18:1) console=tty0 console=ttyS0 root=/dev/sda3 rw rootwait ignore_loglevel no_timer_check consoleblank=0 i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x01010F
i915.domain_plane_owners=0x011111110000 i915.enable_gvt=1 i915.enable_guc=0 hvlog=2M@0x1FE00000
[ 1.058634] acrngt found
[ 1.143414] ACRNTrace: Initialized acrn trace module with 4 cpu
[ 1.144809] ACRN HVLog: Failed to init last hvlog devs, errno -19
[ 1.144976] ACRN HVLog: Initialized hvlog module with 4 cpu
Hi Alfonso
Could you please share acrn.efi and acrn-dm commit info?
With following steps:
-
run “acrn-dm -v” in sos
-
run “version” in HV console
We need them to reproduce this issue.
Thanks!
BR.
Fuzhong
Hi Alfonso
Please share your acrn.efi and acrn-dm, will reproduce this issue on our side.
Thanks!
BR.
Fuzhong
From:
acrn-users@... <acrn-users@...>
On Behalf Of Alfonso Sanchez-Beato
Sent: Wednesday, January 8, 2020 7:39 PM
To: acrn-users@...
Subject: Re: [acrn-users] Cannot launch hart RT UOS when running Ubuntu as SOS
Hi Alfonso,
You are using default launch_hard_rt_vm.sh, right?
Maybe, it is SDC(by default) scenario for your acrn.efi,
Please refer following patch:
diff --git a/hypervisor/arch/x86/Kconfig b/hypervisor/arch/x86/Kconfig
index 41a78fe7..386a074b 100644
--- a/hypervisor/arch/x86/Kconfig
+++ b/hypervisor/arch/x86/Kconfig
@@ -1,6 +1,6 @@
choice
prompt "ACRN Scenario"
- default SDC
+
default INDUSTRY
help
Select the scenario name to load corresponding VM configuration.
Then;
cd ~/acrn-hypervisor
make
sudo make install
And try again.
I tried with that, but no difference in the traces :-/.
Actually I had already tried with 'make all BOARD=nuc7i7dnb SCENARIO=industry', which I guess i the same.
From:
acrn-users@... <acrn-users@...>
On Behalf Of alfonso.sanchez-beato@...
Sent: Wednesday, January 8, 2020 5:44 PM
To: acrn-users@...
Subject: [acrn-users] Cannot launch hart RT UOS when running Ubuntu as SOS
Hi,
I have set-up Ubuntu as service OS by following the instructions in https://projectacrn.github.io/latest/tutorials/using_ubuntu_as_sos.html. ACRN is recognized
as hypervisor and all looks good in principle. However, after that I followed the instructions on how to
start an RT UOS and things fail:
$ sudo /usr/share/acrn/samples/nuc/launch_hard_rt_vm.sh
pm by vuart node-index = 1
SW_LOAD: get ovmf path /usr/share/acrn/bios/OVMF.fd, size 0x200000
failed to create VM hard_rtvm
The kernel output is:
[ 1530.397790] smpboot: CPU 1 is now offline
[ 1530.398653] vhm: try to offline cpu 1 with lapicid 2
[ 1530.409744] smpboot: CPU 2 is now offline
[ 1530.410476] vhm: try to offline cpu 2 with lapicid 4
[ 1530.429694] smpboot: CPU 3 is now offline
[ 1530.430509] vhm: try to offline cpu 3 with lapicid 6
[ 1530.575078] nvme nvme0: failed to set APST feature (-19)
[ 1530.579387] pci-stub 0000:02:00.0: claimed by stub
[ 1530.661794] vhm_dev_open: opening device node
[ 1530.663654] vhm: failed to create VM from Hypervisor !
[ 1531.163905] vhm: failed to create VM from Hypervisor !
[ 1531.664126] vhm: failed to create VM from Hypervisor !
[ 1532.164360] vhm: failed to create VM from Hypervisor !
[ 1532.664589] vhm: failed to create VM from Hypervisor !
[ 1533.164775] vhm: failed to create VM from Hypervisor !
[ 1533.664987] vhm: failed to create VM from Hypervisor !
[ 1534.165215] vhm: failed to create VM from Hypervisor !
[ 1534.665435] vhm: failed to create VM from Hypervisor !
[ 1535.165656] vhm: failed to create VM from Hypervisor !
[ 1535.682037] vhm: freed vm
Any hint on what might be going wrong and instructions on how to debug? I followed previously the tutorial for Clear Linux and was able to launch the RT image. I am using a NUC7i7DNH
device.
Thanks!
Alfonso
|