Re: GPT ERROR when write preempt img to sata on NUC7i5BNB


siming
 

thanks for the responds.I did the dd comond in the acrn boot. 
After I install the service VM with./acrn_quick_setup.sh ,I cannot boot into Clear-linux-native-5.5.11-922. The HDMI is nothing out when I choose this.
    Clear Linux OS(acrn)
    Clear Linux OS(Clear-linux-iot-lts2018-sos-4.19.97-104)
    Clear Linux OS(Clear-linux-native-5.5.11-922)
Did I miss something in the set up of the service vm?
thanks

在 2020-07-31 12:58:21,"Liu, Fuzhong" <fuzhong.liu@...> 写道:

Hi

The dd issue is for acrn boot or native boot?

Please  boot into native and try it again.

Thanks!

 

BR.

Fuzhong

From: acrn-users@... <acrn-users@...> On Behalf Of siming
Sent: Friday, July 31, 2020 11:34 AM
To: acrn-users@...
Subject: [acrn-users] GPT ERROR when write preempt img to sata on NUC7i5BNB

 

Hi,

    My board is NUC7i5BNB, with two disks: an NVMe disk for the Clear Linux-based Service VM and a SATA disk for the RTVM.Accoring to https://projectacrn.github.io/1.6/getting-started/rt_industry.html#install-and-launch-the-preempt-rt-vmwhen I write preempt img to sata, there is always have gpt errors. I have chaged another sata disk, but it's the same error.

root@nuc-acrn /home/acrn # dd if=./preempt-rt-32680.img of=/dev/sda bs=4M oflag=sync status=progress iflag=fullblock seek=0 conv=notrunc
9122611200 bytes (9.1 GB, 8.5 GiB) copied, 124 s, 73.5 MB/s
2186+1 records in
2186+1 records out 
9169755648 bytes (9.2 GB, 8.5 GiB) copied, 126.281 s, 72.6 MB/s
[  171.967643] GPT:Primary header thinks Alt. header is not at the end of the disk.
[  171.967982] GPT:17909678 != 234441647
[  171.968146] GPT:Alternate GPT header not at the end of the disk.
[  171.968406] GPT:17909678 != 234441647
[  171.968616] GPT: Use GNU Parted to correct GPT errors.
[  171.968864]  sda: sda1 sda2 sda3

then I run the launch_hard_rt_vm.sh, it cannot create VM from Hypervisor.

root@nuc-acrn /home/acrn # ./launch_hard_rt_vm.sh
cpu1 online=1 
[ 1525.901370] smpboot: CPU 1 is now offline
[ 1525.902204] vhm: try to offline cpu 1 with lapicid 2
cpu2 online=1 
[ 1525.916019] smpboot: CPU 2 is now offline
[ 1525.917264] vhm: try to offline cpu 2 with lapicid 1
cpu3 online=1 
[ 1525.929538] smpboot: CPU 3 is now offline
[ 1525.930969] vhm: try to offline cpu 3 with lapicid 3
[ 1525.935378] ata1.00: disabled
[ 1525.938524] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1525.939206] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[ 1525.941643] sd 0:0:0:0: [sda] Stopping disk
[ 1525.941888] sd 0:0:0:0: [sda] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[ 1525.956762] pci-stub 0000:00:17.0: claimed by stub
pm by vuart node-index = 1 
SW_LOAD: get ovmf path /usr/share/acrn/bios/OVMF.fd, size 0x200000 
vm_create: hard_rtvm 
[ 1525.981345] vhm_dev_open: opening device node
VHM api version 1.0 
[ 1525.982333] vhm: failed to create VM from Hypervisor !
[ 1526.483047] vhm: failed to create VM from Hypervisor !
[ 1526.983377] vhm: failed to create VM from Hypervisor !
[ 1527.483702] vhm: failed to create VM from Hypervisor !
[ 1527.984028] vhm: failed to create VM from Hypervisor !
[ 1528.484363] vhm: failed to create VM from Hypervisor !
[ 1528.984686] vhm: failed to create VM from Hypervisor !
[ 1529.485021] vhm: failed to create VM from Hypervisor !
[ 1529.985346] vhm: failed to create VM from Hypervisor !
[ 1530.485672] vhm: failed to create VM from Hypervisor !
failed to create VM hard_rtvm 
vm_create failed
[ 1530.994415] vhm: freed vm

Thanks!

ZS

 

 



 

Join {acrn-users@lists.projectacrn.org to automatically receive all group messages.