Running bluetooth examples using qemu


Primini
 

Hi everyone!

I am trying to run examples from samples using qemu_x86 board but I am facing with bluetooth init error -5 when executing examples that handle connection/disconnection callbacks.

I follow the steps available in zephyr doc page: http://docs.zephyrproject.org/subsystems/bluetooth/devel.html - "Testing with QEMU"

For exampĺe, running central sample I've got the following output:

$ make run
[  2%] Built target offsets
[  3%] Built target offsets_h
[ 27%] Built target kernel
[ 37%] Built target app
[ 38%] Built target linker_pass2_script
[ 39%] Built target linker_script
[ 70%] Built target zephyr
[ 72%] Built target subsys__bluetooth__common
[ 81%] Built target subsys__bluetooth__host
[ 82%] Built target subsys__net
[ 83%] Built target arch__x86__soc__ia32
[ 85%] Built target zephyr_prebuilt
[ 85%] Built target obj_list
[ 86%] Built target output_src_pre
[ 88%] Built target output_lib
[ 89%] Built target output_obj_renamed
[ 90%] Built target gen_idt_output
[ 91%] Built target staticIdt_o
[ 92%] Built target gdt_o
[ 94%] Built target irq_int_vector_map_o
[ 97%] Built target mmu_tables_o
[ 98%] Built target kernel_elf
[100%] 
To exit from QEMU enter: 'CTRL+a, x'
[QEMU] CPU: qemu32,+nx,+pae
qemu-system-i386: warning: Unknown firmware file in legacy mode: genroms/multiboot.bin

Bluetooth init failed (err -5)



I also have configured btproxy in my ubuntu host:

$ sudo ./btproxy -u
Listening on /tmp/bt-server-bredr
Opening user channel for hci0
New client connected


Is there anything missing in the configuration or maybe additional steps?


Regards!

Primini

Join devel@lists.zephyrproject.org to automatically receive all group messages.