Skip to content
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

Not able to compile the driver source for arm64 #496

Open
3 tasks done
obulesuveggidi opened this issue Sep 23, 2024 · 4 comments
Open
3 tasks done

Not able to compile the driver source for arm64 #496

obulesuveggidi opened this issue Sep 23, 2024 · 4 comments

Comments

@obulesuveggidi
Copy link

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

should be compiled and create .ko

Actual behavior (suspected bug)

compilation error

Error logs or terminal output

mantra_banglore@mantra:~/Downloads/esp-hosted-master/esp_hosted_ng/host$ ./rpi_init.sh btuart
Configure Host BT UART with 4 pins, RX, TX, CTS, RTS
Building for sdio protocol
rm -rf *.o sdio/*.o spi/*.o *.ko
make ARCH=arm64 CROSS_COMPILE=/opt/fsl-imx-xwayland/6.1-mickledore/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux- -C /opt/fsl-imx-xwayland/6.1-mickledore/sysroots/armv8a-poky-linux/lib/modules/6.1.36+g04b05c5527e9 M=/home/mantra_banglore/Downloads/imx8mp_docs/esp-hosted-master/esp_hosted_ng/host clean
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Entering directory '/opt/fsl-imx-xwayland/6.1-mickledore/sysroots/armv8a-poky-linux/lib/modules/6.1.36+g04b05c5527e9'
make[1]: *** No rule to make target 'clean'.  Stop.
make[1]: Leaving directory '/opt/fsl-imx-xwayland/6.1-mickledore/sysroots/armv8a-poky-linux/lib/modules/6.1.36+g04b05c5527e9'
make: *** [Makefile:61: clean] Error 2
insmod: ERROR: could not load module esp32_sdio.ko: No such file or directory
sudo: pinctrl: command not found
sudo: pinctrl: command not found
sudo: pinctrl: command not found
sudo: pinctrl: command not found

Steps to reproduce the behavior

  1. change the make command and compile

Project release version

esp-hosted-master

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Linux

Operating system version

ubuntu 20

Shell

sh

Additional context

No response

@mantriyogesh
Copy link
Collaborator

Please try:

gpio_pin_ctl=pinctrl
$gpio_pin_ctl 2> /dev/null
if [ $? -ne 0 ]; then
gpio_pin_ctl=raspi-gpio
fi

@obulesuveggidi
Copy link
Author

The above lines are already available in "esp-hosted/esp_hosted_fg/host/linux/host_control/rpi_init.sh"

@obulesuveggidi
Copy link
Author

Our requirement is,

  1. We interfaced ESP32-C3 with imx8mp through UART
  2. We need to compile the driver for the same.
    Kindly help us to compile the driver source and also the dts configuration

@mantriyogesh
Copy link
Collaborator

The above lines are already available in "esp-hosted/esp_hosted_fg/host/linux/host_control/rpi_init.sh"

it is in 'FG' and not in 'NG'. Anyway, it needs porting if you use non-Raspberry Pi SoC as Linux. See porting guide

We interfaced ESP32-C3 with imx8mp through UART

Uart driver is not yet available. We plan to addbut can't commit right now, when would it be available. right now, spi and sdio driver are available. if you only need bluetooth (and nothing else), uart driver is available. For Wi-Fi or control path, uart driver is not available for Linux SoC.

Kindly help us to compile the driver source and also the dts configuration

If you face issues in SPI or SDIO driver building, we can help there.
dts config is something dependent upon the SoC. you might have to figure it out. if you are stuck , we can guide but it is more of 'help' than 'support'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants