Skip to content

Commit 955162b

Browse files
jren1lijinxia
authored andcommitted
minor fix on sample script bridge.sh
Signed-off-by: Jack Ren <jack.ren@intel.com>
1 parent 32fbc35 commit 955162b

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

devicemodel/samples/bridge.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ EOF
4949
fi
5050
5151
# add tap device under the bridge
52+
ifconfig acrn_tap0 up
5253
brctl addif acrn-br0 acrn_tap0

devicemodel/samples/launch_uos.sh

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,15 @@ if [[ "$result" != "" ]]; then
1313
exit
1414
fi
1515

16-
1716
#for memsize setting
18-
memsize=`cat /proc/meminfo|head -n 1|awk '{print $2}'`
19-
if [ $memsize -gt 4000000 ];then
20-
mem_size=1750M
21-
fi
22-
2317
mem_size=1000M
2418

25-
./acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \
19+
acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \
2620
-s 5,virtio-console,@pty:pty_port \
2721
-s 6,virtio-hyper_dmabuf \
28-
-s 3,virtio-blk,/home/root/clear.img \
29-
-s 4,virtio-net,tap0 -k /home/root/bzImage \
22+
-s 3,virtio-blk,/root/clear-21180-kvm.img \
23+
-s 4,virtio-net,tap0 \
24+
-k /usr/lib/kernel/org.clearlinux.pk414-standard.4.14.23-19 \
3025
-B "root=/dev/vda3 rw rootwait noxsave maxcpus=$2 nohpet console=tty0 console=hvc0 \
3126
console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \
3227
consoleblank=0 tsc=reliable i915.avail_planes_per_pipe=$4 \

0 commit comments

Comments
 (0)