mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-13 12:59:45 +00:00
samples: move samples to specifi platform diretory
Move the platform apl-mrb samples to devicemodel samples directory. Add the install target to the missing samples files and re-organize the samples directory structure to have nuc and apl-mrb samples. Suggested-by: Arzhan Kinzhalin <arzhan.i.kinzhalin@intel.com> Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
This commit is contained in:
committed by
Jack Ren
parent
d3ef8ae5cb
commit
9563e248b7
31
devicemodel/samples/nuc/launch_uos.sh
Executable file
31
devicemodel/samples/nuc/launch_uos.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
function launch_clear()
|
||||
{
|
||||
vm_name=vm$1
|
||||
|
||||
|
||||
#check if the vm is running or not
|
||||
vm_ps=$(pgrep -a -f acrn-dm)
|
||||
result=$(echo $vm_ps | grep "${vm_name}")
|
||||
if [[ "$result" != "" ]]; then
|
||||
echo "$vm_name is running, can't create twice!"
|
||||
exit
|
||||
fi
|
||||
|
||||
#for memsize setting
|
||||
mem_size=1000M
|
||||
|
||||
acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \
|
||||
-s 5,virtio-console,@pty:pty_port \
|
||||
-s 6,virtio-hyper_dmabuf \
|
||||
-s 3,virtio-blk,/root/clear-21260-kvm.img \
|
||||
-s 4,virtio-net,tap0 \
|
||||
-k /usr/lib/kernel/org.clearlinux.pk414-standard.4.14.23-19 \
|
||||
-B "root=/dev/vda3 rw rootwait maxcpus=$2 nohpet console=tty0 console=hvc0 \
|
||||
console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \
|
||||
consoleblank=0 tsc=reliable i915.avail_planes_per_pipe=$4 \
|
||||
i915.enable_hangcheck=0 i915.nuclear_pageflip=1" $vm_name
|
||||
}
|
||||
|
||||
launch_clear 2 1 "64 448 8" 0x00000C clear
|
Reference in New Issue
Block a user