esp-hosted
esp-hosted copied to clipboard
I can't compile the driver on the Raspberry Pi
Checklist
- [X] Checked the issue tracker for similar issues to ensure this is not a duplicate
- [X] Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
- [X] Tested with the latest version to ensure the issue hasn't been fixed
How often does this bug occurs?
always
Expected behavior
rpi_init.sh compilation fails and the esp32_sdio.ko cannot be generated, so the driver module cannot be loaded
rpi_init.sh编译失败,esp32_sdio.ko未生成,所以无法加载driver module
Actual behavior (suspected bug)
Error logs or terminal output
arm-linux-gnueabihf-gcc-12:error: unrecognized argument in option '-mstack-protector-guard=sysreg'
arm-linux-gnueabihf-gcc-12:error: unrecognized command-line option '-mbranch-protection=pac-ret'
arm-linux-gnueabihf-gcc-12:error: unrecognized command-line option '-mstack-protector-guard-reg=sp_el0'; did you mean '-mstack-protector-gaurd-offset='?
insmod: ERROR: could not load module esp32_sdio.ko: No such file or directory
Steps to reproduce the behavior
cd esp_hosted_fg/host/linux/host_control/
./rpi_init.sh sdio
Project release version
release/fg-v0.0.5
System architecture
ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)
Operating system
Linux
Operating system version
Raspberry Pi OS 64bit
Shell
Bash
Additional context
I'm using a Raspberry Pi 4B and ESP32-WROVER-B module, connected via a 10cm Dupont cable.
我使用的是树莓派4B和ESP32-WROVER-B模组,通过10cm杜邦线连接