mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 22:18:17 +00:00
lunch_uos.sh: reduce the booting time
1. reduce the time once offline cpu failed. 2. remove the passthru of sd card for GP2.0. Tracked-On: #2331 Signed-off-by: Wei Liu <weix.w.liu@intel.com>
This commit is contained in:
parent
7fa8886907
commit
c85153e7fa
@ -108,9 +108,9 @@ else
|
||||
fi
|
||||
|
||||
# for sd card passthrough - SDXC/MMC Host Controller 00:1b.0
|
||||
echo "8086 5aca" > /sys/bus/pci/drivers/pci-stub/new_id
|
||||
echo "0000:00:1b.0" > /sys/bus/pci/devices/0000:00:1b.0/driver/unbind
|
||||
echo "0000:00:1b.0" > /sys/bus/pci/drivers/pci-stub/bind
|
||||
#echo "8086 5aca" > /sys/bus/pci/drivers/pci-stub/new_id
|
||||
#echo "0000:00:1b.0" > /sys/bus/pci/devices/0000:00:1b.0/driver/unbind
|
||||
#echo "0000:00:1b.0" > /sys/bus/pci/drivers/pci-stub/bind
|
||||
|
||||
#for memsize setting, total 8GB(>7.5GB) uos->6GB, 4GB(>3.5GB) uos->2GB
|
||||
memsize=`cat /proc/meminfo|head -n 1|awk '{print $2}'`
|
||||
@ -236,9 +236,9 @@ else
|
||||
fi
|
||||
|
||||
# for sd card passthrough - SDXC/MMC Host Controller 00:1b.0
|
||||
echo "8086 5aca" > /sys/bus/pci/drivers/pci-stub/new_id
|
||||
echo "0000:00:1b.0" > /sys/bus/pci/devices/0000:00:1b.0/driver/unbind
|
||||
echo "0000:00:1b.0" > /sys/bus/pci/drivers/pci-stub/bind
|
||||
#echo "8086 5aca" > /sys/bus/pci/drivers/pci-stub/new_id
|
||||
#echo "0000:00:1b.0" > /sys/bus/pci/devices/0000:00:1b.0/driver/unbind
|
||||
#echo "0000:00:1b.0" > /sys/bus/pci/drivers/pci-stub/bind
|
||||
|
||||
# WIFI
|
||||
echo "11ab 2b38" > /sys/bus/pci/drivers/pci-stub/new_id
|
||||
@ -438,7 +438,7 @@ for i in `ls -d /sys/devices/system/cpu/cpu[1-99]`; do
|
||||
online=`cat $i/online`
|
||||
# during boot time, cpu hotplug may be disabled by pci_device_probe during a pci module insmod
|
||||
while [ "$online" = "1" ]; do
|
||||
sleep 1
|
||||
sleep 0.1
|
||||
echo 0 > $i/online
|
||||
online=`cat $i/online`
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user