-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No restore possible with mesh shell app from /tests using qemu_x86 on RaspberryPi3 #30416
Comments
@CSparn, I don't know if qemu provides flash support. Native_posix does provide flash support where a file is used as a flash emulator. Maybe it is possible to achieve your goal using native_posix. |
Hi, Greetings |
@CSparn, I don't know if that is the correct way to use flash on qemu. Qemu_x86 does provide simulated flash storage support but I think this is all done in memory and not on a "flash" device (even if you provide -pflash image_name). Is there a zephyr flash driver to support the -pflash area added to the command line ? For storage you need to be able to write this "flash", so a flash driver is needed. |
Hi, |
Hi @CSparn, please give native_posix a try, this has full support for flash storage. |
Hi, --------------Update--------------- And I could find a solution for native_posix in ubuntu and it works well there. I can not directly copy the app from Ubuntu(x86_64) to the RaspberryPi(armv71). Greetings |
This assertion will happen if you have not correctly configured your Bluetooth/BLE controller so that qemu (or native_posix) finds it. |
@carlescufi, IIRC the question was to have persistent storage support for qemu, so that on a restart the previous stored settings could be used. I think a flash driver is missing for the case a file is passed to qemu as a flash representation. |
Sure, but I was addressing the error log from the PR description. |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
Hi, |
Hi,
I'm trying to run the mesh shell from tests on a RaspberryPi with Qemu_x86.
This is working fine as long as I'm not expecting to use store and restore of the mesh network.
After some research I released that this is not working, because qemu has no flash where it can save the data.
So I created an image with 8MB to pass it to the qemu command as pflash:
qemu-img create -f raw flash/flash.img 8M
The final qemu command looks like this:
qemu-system-x86_64 -m 9 -cpu qemu32,+nx,+pae -device isa-debug-exit,iobase=0xf4,iosize=0x04 -no-reboot -nographic -net none -pidfile qemu.pid -chardev stdio,id=con,mux=on -serial chardev:con -mon chardev==con,mode=readline -drive file=flash/flash.img,format=raw,if=pflash -serial unix:/tmp/bt-server-bredr -s -kernel zephyr/build/zephyr/zephyr.elf
When I'm running it like that, nothing happens. Qemu is started but no shell is shown. When I'm deleting the if=pflash from the command qemu and the mesh shell is starting. But when I run the 'mesh init' command qemu crahes with the error:
ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:374 k_sem_take failed with err -11
I'm not even sure if this is a bug in the zephyr code or if I did something wrong configuring qemu. But does any have an idea how to get this working?
To Reproduce
Steps to reproduce the behavior:
sudo ./btproxy -u -i 0
Expected behavior
Error Message or nothing.
Thanks in Advance
CSparn
The text was updated successfully, but these errors were encountered: