Skip to content

Commit dcb8a75

Browse files
gzhai7lijinxia
authored andcommitted
DM: Turn on WIFI/BT passthrough for Android UOS
This patch turn on WIFI/BT in launch_UOS.sh based on WIFI BDF on SBL, which is different from ABL. Still need WIFI/BT driver in Android to make WIFI/BT passthrough work. Signed-off-by: Edwin Zhai <edwin.zhai@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
1 parent 11f4b01 commit dcb8a75

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

devicemodel/samples/apl-mrb/launch_uos.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,16 @@ echo "8086 5aca" > /sys/bus/pci/drivers/pci-stub/new_id
209209
echo "0000:00:1b.0" > /sys/bus/pci/devices/0000:00:1b.0/driver/unbind
210210
echo "0000:00:1b.0" > /sys/bus/pci/drivers/pci-stub/bind
211211

212+
# WIFI is 4:0.0 on SBL, and 3:0.0 on ABL
213+
echo "11ab 2b38" > /sys/bus/pci/drivers/pci-stub/new_id
214+
echo "0000:04:00.0" > /sys/bus/pci/devices/0000:04:00.0/driver/unbind
215+
echo "0000:04:00.0" > /sys/bus/pci/drivers/pci-stub/bind
216+
217+
# Bluetooth passthrough depends on WIFI
218+
echo "8086 5abc" > /sys/bus/pci/drivers/pci-stub/new_id
219+
echo "0000:00:18.0" > /sys/bus/pci/devices/0000:00:18.0/driver/unbind
220+
echo "0000:00:18.0" > /sys/bus/pci/drivers/pci-stub/bind
221+
212222
#for memsize setting
213223
memsize=`cat /proc/meminfo|head -n 1|awk '{print $2}'`
214224
if [ $memsize -gt 4000000 ];then
@@ -278,9 +288,11 @@ fi
278288
-s 10,virtio-hyper_dmabuf \
279289
-s 11,wdt-i6300esb \
280290
-s 14,passthru,0/e/0 \
291+
-s 23,passthru,0/17/0 \
281292
-s 15,passthru,0/f/0 \
282-
-s 24,passthru,0/17/0 \
283293
-s 27,passthru,0/1b/0 \
294+
-s 24,passthru,0/18/0 \
295+
-s 18,passthru,4/0/0 \
284296
-M \
285297
$boot_image_option \
286298
--enable_trusty \

0 commit comments

Comments
 (0)