-
Notifications
You must be signed in to change notification settings - Fork 186
Some questions about the "ESP-Hosted" SDK #110
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
Comments
Hi @mantriyogesh , Could you provide some help ? |
Hello @Rainbow-Cai , Thank you for trying ESP-Hosted solution. These errors are actually because of old kernel. |
Hello Carlos, Can you please provided output of
|
Sure
|
Overall to get SPI working, stepwise explanation is provided in documentation. While getting platform up, Focus should be to check porting guide. Here pins like Reset pin, handshake and data ready pinconfiguration is mentioned.
Ideally there should not be issues while building, as I could see, in linux kernel v3.18.44, function like hci_register_dev() is available. Alternative solutions:
|
hi, I met the same problem, and just commented the code related with bluetooth. For wifi, it works normally now. |
Thanks @Ncerzzk and @mantriyogesh. I got a little bit further by commenting out BT. I also updated to the lastest image of my target just in case.
Now the log shows
Perhaps SPI module is not being loaded?. If I load it manually with |
I see that spi disabler is not in place yet. |
Hi @mantriyogesh, since I can't use the spidev_disabler.dts directly on my platform I need to look at how it is configured then run the tests mentioned in #101. This is the log so far after disabling spisvc.ko
After that the target resets because of the failed module load. |
This is part of getting the platform up so that ESP-Hosted can be into the picture.
It might take little time to get the platform up. But this is important, without which ESP-Hosted will not be able to load. |
For device tree related changes, you can also refer to sample DT for SPI disabler |
Hello @Rainbow-Cai |
I had to attend other priority issues with the HW and target platform. But as soon as I can test SPI and other recommendations I'll get back here. Thanks. |
We have found an issue with the SPI interface, which we have now solved. The kernel module now compiles and loads. Thanks for your help. |
Hello @darthrookie |
Hello @darthrookie |
It was related to how Legato needs different kernel modules and the order those are enabled to be able to use the SPI interface as in an RPi.
I consider that the issue has been solved, but it was @Rainbow-Cai who opened it. |
Thank you @darthrookie for the heads up. @Rainbow-Cai, Could you please help in closing the issue if it is solved up to your expectations? |
Hi, ERROR: modpost: "hci_recv_frame" [/home/glide/projects/renesas_5.10_kernel/build/tmp/work/smarc_rzg2lc-poky-linux/esp/1.0-r0/git/host/linux/host_driver/esp32/esp32_spi.ko] undefined! |
@meera1310 It is better if you can raise new issue and tag related issue in that. |
Hi Espressif,
We are porting the esp-hosted solution to a Legato system. We are able to build the kernel module but still have some details to get around.
The Log as follow:
[64/384] Build kernel driver module
make: Entering directory '/home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi'
make -C /home/carlos/fx30_workspace/leaf-data/SWI-FX30-CATM/wp77-toolchain/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel M=/home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi modules
make[1]: Entering directory '/home/carlos/.leaf/wp77-toolchain_SWI9X06Y_02.18.05.00-linux64/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel'
CC [M] /home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/main.o
CC [M] /home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/esp_bt.o
CC [M] /home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/esp_rb.o
CC [M] /home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/esp_serial.o
CC [M] /home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/esp_spi.o
LD [M] /home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/esp32_spi.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: "hci_register_dev" [/home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/esp32_spi.ko] undefined!
WARNING: "hci_recv_frame" [/home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/esp32_spi.ko] undefined!
WARNING: "hci_unregister_dev" [/home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/esp32_spi.ko] undefined!
WARNING: "bt_err" [/home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/esp32_spi.ko] undefined!
WARNING: "hci_alloc_dev" [/home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/esp32_spi.ko] undefined!
WARNING: "hci_free_dev" [/home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/esp32_spi.ko] undefined!
CC /home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/esp32_spi.mod.o
LD [M] /home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi/esp32_spi.ko
make[1]: Leaving directory '/home/carlos/.leaf/wp77-toolchain_SWI9X06Y_02.18.05.00-linux64/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel'
make: Leaving directory '/home/carlos/fx30_workspace/_build_mySystem/wp77xx/modules/esp32_spi'
root@fx30s:~# logread -f | grep "esp32"
Jan 7 23:43:11 fx30s user.info Legato: INFO | supervisor[22226]/supervisor T=main | kernelModules.c ReleaseModulesMemory() 840 | Released memory of module 'esp32_spi.ko'
Jan 7 23:43:14 fx30s user.info Legato: INFO | supervisor[22522]/supervisor T=main | kernelModules.c ModuleGetParams() 355 | Module esp32_spi.ko uses no parameters.
Jan 7 23:43:14 fx30s user.info Legato: INFO | supervisor[22522]/supervisor T=main | kernelModules.c ExecuteCommand() 190 | Execute '/sbin/insmod /legato/systems/current/modules/esp32_spi.ko'
Jan 7 23:43:14 fx30s user.err Legato: =ERR= | supervisor[22522]/supervisor T=main | kernelModules.c installModules() 771 | Error in installing module esp32_spi.ko
Jan 7 23:43:14 fx30s user.warn kernel: [171791.136516] esp32_spi: Unknown symbol hci_free_dev (err 0)
Jan 7 23:43:14 fx30s user.warn kernel: [171791.136650] esp32_spi: Unknown symbol hci_alloc_dev (err 0)
Jan 7 23:43:14 fx30s user.warn kernel: [171791.136689] esp32_spi: Unknown symbol bt_err (err 0)
Jan 7 23:43:14 fx30s user.warn kernel: [171791.136702] esp32_spi: Unknown symbol hci_unregister_dev (err 0)
Jan 7 23:43:14 fx30s user.warn kernel: [171791.136718] esp32_spi: Unknown symbol hci_recv_frame (err 0)
Jan 7 23:43:14 fx30s user.warn kernel: [171791.136742] esp32_spi: Unknown symbol hci_register_dev (err 0)
^C
root@fx30s:~# uname -a
Linux fx30s 3.18.44 #2 PREEMPT Tue Jan 29 11:21:07 PST 2019 armv7l GNU/Linux
The text was updated successfully, but these errors were encountered: