Description
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
virtual serial interface espso is not created after runing esphosted fg in both rpi4b and esp32s3 even after flashing their respective repositories from github
Actual behavior (suspected bug)
when runing the commad bash -x ./rpi_init.sh wifi=spi
[ 204.596250] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/spi@7e204000/spidev@0/status
[ 204.627263] esp32_spi: loading out-of-tree module taints kernel.
please help me in fixing this why after the module is inserted it is exiting why iam getting warning of memory leakage , why iam getting message that kernel is getting tainted
Error logs or terminal output
currently i have commented the dts file seprately and also commented device_tree_dependency_spi() and device overlay in boot/firmware/config.text and additional spi device overlay if spi all in rpi.insit.sh just make spi enable for getting this log.iam not able to make virtual serial interface espso in fg set up
issues to to kernel module esp32_spio.ko its getting inserted by script but its exiting
[[ 204.596250] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/spi@7e204000/spidev@0/status
[ 204.627263] esp32_spi: loading out-of-tree module taints kernel.
[ 485.863572] esp32_spi: esp_serial_cleanup:
[ 486.333378] esp32_spi: esp_spi_thread: esp spi thread cleared
dmesg | tail -n 50
[ 12.268969] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[ 12.269712] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 12.269753] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 12.270757] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[ 12.282325] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[ 12.282900] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 12.282939] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 12.283479] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[ 12.283554] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 12.283574] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 12.283591] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 12.283657] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 12.283966] rpivid feb10000.codec: Device registered as /dev/video19
[ 12.295543] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[ 12.306115] alsactl[408]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
[ 12.311881] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 12.311931] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 12.320233] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[ 12.320276] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[ 12.336739] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[ 12.336787] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[ 13.762696] Adding 204796k swap on /var/swap. Priority:-2 extents:6 across:3465216k SS
[ 15.709808] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 15.711050] bcmgenet fd580000.ethernet eth0: Link is Down
[ 19.835969] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 82.233704] bcmgenet fd580000.ethernet eth0: Link is Down
[ 204.596250] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/spi@7e204000/spidev@0/status
[ 204.627263] esp32_spi: loading out-of-tree module taints kernel.
[ 204.627761] esp32_spi: esp_reset: Resetpin of Host is 518
[ 204.627979] esp32_spi: esp_reset: Triggering ESP reset.
[ 204.628110] esp32_spi: spi_init: ESP: SPI host config: GPIOs: Handshake[534] DataReady[539]
[ 204.628116] esp32_spi: spi_dev_init: Config - GPIOs: resetpin[518] Handshake[534] Dataready[539]
[ 204.628120] esp32_spi: spi_dev_init: Config - SPI: clock[10MHz] bus[0] cs[0] mode[2]
[ 204.628128] esp32_spi: esp_spi_thread: esp spi thread created
[ 485.863572] esp32_spi: esp_serial_cleanup:
[ 486.333378] esp32_spi: esp_spi_thread: esp spi thread cleared
[ 499.956462] esp32_spi: esp_reset: Resetpin of Host is 518
[ 499.956684] esp32_spi: esp_reset: Triggering ESP reset.
[ 499.956817] esp32_spi: spi_init: ESP: SPI host config: GPIOs: Handshake[534] DataReady[539]
[ 499.956823] esp32_spi: esp_spi_thread: esp spi thread created
[ 499.956823] esp32_spi: spi_dev_init: Config - GPIOs: resetpin[518] Handshake[534] Dataready[539]
[ 499.956827] esp32_spi: spi_dev_init: Config - SPI: clock[10MHz] bus[0] cs[0] mode[2]
[ 634.947893] esp32_spi: esp_serial_cleanup:
[ 635.413359] esp32_spi: esp_spi_thread: esp spi thread cleared
[ 649.013527] esp32_spi: esp_reset: Resetpin of Host is 518
[ 649.013748] esp32_spi: esp_reset: Triggering ESP reset.
[ 649.013898] esp32_spi: spi_init: ESP: SPI host config: GPIOs: Handshake[534] DataReady[539]
[ 649.013904] esp32_spi: spi_dev_init: Config - GPIOs: resetpin[518] Handshake[534] Dataready[539]
[ 649.013908] esp32_spi: spi_dev_init: Config - SPI: clock[10MHz] bus[0] cs[0] mode[2]
[ 649.014189] esp32_spi: esp_spi_thread: esp spi thread created
tas@raspberrypi:~/esp-hosted/esp_hosted_fg/host/linux/host_control $ bash -x ./rpi_init.sh wifi=spi
resetpin=518
clockspeed=10
spi_bus=0
spi_cs=0
spi_mode=2
spi_handshake=534
spi_dataready=539
cpu_perf=on
XTRA_MODULE_PARAMS=
BT_CONFIG=
WIFI_CONFIG=wifi_on
CROSS_COMPILE=/bin/arm-linux-gnueabihf-
++ uname -r
KERNEL_BUILD_DIR=/lib/modules/6.6.47+rpt-rpi-v7l/build
ARCH=
TEST_RAW_TP=0
IF_TYPE=
MODULE_NAME=esp32_.ko
SCRIPT_DIR=/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control
MAKE_DIR=/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/../host_driver/esp32/
cd /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/../host_driver/esp32/
parse_arguments wifi=spi
log_enter
log 'Entering parse_arguments'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:43] Entering parse_arguments'
[2024-09-10 16:45:43] Entering parse_arguments
'[' wifi=spi '!=' '' ']'
case $1 in
WIFI_TP=spi
'[' spi = spi ']'
log 'Wi-Fi on SPI'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:43] Wi-Fi on SPI'
[2024-09-10 16:45:43] Wi-Fi on SPI
shift
'[' '' '!=' '' ']'
verify_transport_combination
'[' spi '!=' '' ']'
IF_TYPE=spi
'[' '' '!=' '' ']'
'[' spi = '' ']'
verify_clock_freq
'[' 10 '!=' '' ']'
'[' spi = spi ']'
'[' 10 -gt 40 ']'
'[' spi = sdio ']'
log_exit
log 'Exiting parse_arguments'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:43] Exiting parse_arguments'
[2024-09-10 16:45:43] Exiting parse_arguments
log 'Building for spi protocol'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:43] Building for spi protocol'
[2024-09-10 16:45:43] Building for spi protocol
MODULE_NAME=esp32_spi.ko
populate_module_params
add_module_param resetpin
local param_name=resetpin
'[' 518 = '' ']'
XTRA_MODULE_PARAMS=' resetpin=518'
log 'Adding module_param '''resetpin=518''''
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:43] Adding module_param '''resetpin=518''''
[2024-09-10 16:45:43] Adding module_param 'resetpin=518'
add_module_param clockspeed
local param_name=clockspeed
'[' 10 = '' ']'
XTRA_MODULE_PARAMS=' resetpin=518 clockspeed=10'
log 'Adding module_param '''clockspeed=10''''
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:43] Adding module_param '''clockspeed=10''''
[2024-09-10 16:45:43] Adding module_param 'clockspeed=10'
'[' spi = spi ']'
add_module_param spi_bus
local param_name=spi_bus
'[' 0 = '' ']'
XTRA_MODULE_PARAMS=' resetpin=518 clockspeed=10 spi_bus=0'
log 'Adding module_param '''spi_bus=0''''
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:43] Adding module_param '''spi_bus=0''''
[2024-09-10 16:45:43] Adding module_param 'spi_bus=0'
add_module_param spi_cs
local param_name=spi_cs
'[' 0 = '' ']'
XTRA_MODULE_PARAMS=' resetpin=518 clockspeed=10 spi_bus=0 spi_cs=0'
log 'Adding module_param '''spi_cs=0''''
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:43] Adding module_param '''spi_cs=0''''
[2024-09-10 16:45:43] Adding module_param 'spi_cs=0'
add_module_param spi_mode
local param_name=spi_mode
'[' 2 = '' ']'
XTRA_MODULE_PARAMS=' resetpin=518 clockspeed=10 spi_bus=0 spi_cs=0 spi_mode=2'
log 'Adding module_param '''spi_mode=2''''
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:43] Adding module_param '''spi_mode=2''''
[2024-09-10 16:45:43] Adding module_param 'spi_mode=2'
add_module_param spi_handshake
local param_name=spi_handshake
'[' 534 = '' ']'
XTRA_MODULE_PARAMS=' resetpin=518 clockspeed=10 spi_bus=0 spi_cs=0 spi_mode=2 spi_handshake=534'
log 'Adding module_param '''spi_handshake=534''''
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:43] Adding module_param '''spi_handshake=534''''
[2024-09-10 16:45:43] Adding module_param 'spi_handshake=534'
add_module_param spi_dataready
local param_name=spi_dataready
'[' 539 = '' ']'
XTRA_MODULE_PARAMS=' resetpin=518 clockspeed=10 spi_bus=0 spi_cs=0 spi_mode=2 spi_handshake=534 spi_dataready=539'
log 'Adding module_param '''spi_dataready=539''''
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:43] Adding module_param '''spi_dataready=539''''
[2024-09-10 16:45:43] Adding module_param 'spi_dataready=539'
port_populate_local_params
'[' on = on ']'
for cpu in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
sudo sh -c 'echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor'
for cpu in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
sudo sh -c 'echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor'
for cpu in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
sudo sh -c 'echo performance > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor'
for cpu in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
sudo sh -c 'echo performance > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor'
echo 'Current CPU governor settings:'
Current CPU governor settings:
for cpu in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
++ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo '/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: performance'
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: performance
for cpu in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
++ cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo '/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: performance'
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: performance
for cpu in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
++ cat /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo '/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor: performance'
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor: performance
for cpu in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
++ cat /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
echo '/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: performance'
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: performance
build_user_space_apps
log_enter
log 'Entering build_user_space_apps'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:43] Entering build_user_space_apps'
[2024-09-10 16:45:43] Entering build_user_space_apps
build_c_demo_app
log_enter
log 'Entering build_c_demo_app'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:43] Entering build_c_demo_app'
[2024-09-10 16:45:43] Entering build_c_demo_app
cd /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/
make clean
rm -f *.out *.o
make -j8 test
gcc -C -Wall --sysroot= -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../../common/protobuf-c -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../../common/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../control_lib/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../control_lib/src/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../virtual_serial_if/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../components/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../port/include -I. /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../../common/protobuf-c/protobuf-c/protobuf-c.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../../common/esp_hosted_config.pb-c.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../control_lib/src/ctrl_core.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../control_lib/src/ctrl_api.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../virtual_serial_if/src/serial_if.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../components/src/esp_queue.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../port/src/platform_wrapper.c ./test_utils.c -lpthread -lrt -latomic test.c -o test.out
'[' 0 -ne 0 ']'
make -j8 stress
gcc -C -Wall --sysroot= -fsanitize=undefined -fsanitize-address-use-after-scope -fsanitize-undefined-trap-on-error -fstack-protector-all -fstack-check -fsanitize=address -fsanitize=pointer-compare -fno-omit-frame-pointer -static-libasan -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../../common/protobuf-c -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../../common/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../control_lib/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../control_lib/src/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../virtual_serial_if/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../components/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../port/include -I. /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../../common/protobuf-c/protobuf-c/protobuf-c.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../../common/esp_hosted_config.pb-c.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../control_lib/src/ctrl_core.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../control_lib/src/ctrl_api.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../virtual_serial_if/src/serial_if.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../../components/src/esp_queue.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/c_support/../../port/src/platform_wrapper.c ./test_utils.c -lpthread -lrt -latomic stress.c -o stress.out -ggdb3 -g
'[' 0 -ne 0 ']'
cd ..
log_exit
log 'Exiting build_c_demo_app'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:53] Exiting build_c_demo_app'
[2024-09-10 16:45:53] Exiting build_c_demo_app
build_python_demo_app
log_enter
log 'Entering build_python_demo_app'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:53] Entering build_python_demo_app'
[2024-09-10 16:45:53] Entering build_python_demo_app
cd /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/
make clean
rm -f commands.so *.o
make -j8
gcc -C -Wall -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../../../common/protobuf-c -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../../../common/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../../control_lib/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../../control_lib/src/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../../virtual_serial_if/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../../components/include -I/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../port/include -I. /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../../../common/protobuf-c/protobuf-c/protobuf-c.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../../../common/esp_hosted_config.pb-c.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../../control_lib/src/ctrl_core.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../../control_lib/src/ctrl_api.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../../virtual_serial_if/src/serial_if.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../../components/src/esp_queue.c /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/python_support/../../port/src/platform_wrapper.c -lrt -lpthread -latomic -o commands.so -shared -fPIC
'[' 0 -ne 0 ']'
cd ..
log_exit
log 'Exiting build_python_demo_app'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:55] Exiting build_python_demo_app'
[2024-09-10 16:45:55] Exiting build_python_demo_app
log_exit
log 'Exiting build_user_space_apps'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:55] Exiting build_user_space_apps'
[2024-09-10 16:45:55] Exiting build_user_space_apps
remove_module
log_enter
log 'Entering remove_module'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:55] Entering remove_module'
[2024-09-10 16:45:55] Entering remove_module
++ lsmod
++ grep esp32
++ wc -l
'[' 1 '!=' 0 ']'
++ lsmod
++ grep esp32_sdio
++ wc -l
'[' 0 '!=' 0 ']'
sudo rmmod esp32_spi
'[' 0 -ne 0 ']'
log 'esp module removed using script'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:57] esp module removed using script'
[2024-09-10 16:45:57] esp module removed using script
log_exit
log 'Exiting remove_module'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:57] Exiting remove_module'
[2024-09-10 16:45:57] Exiting remove_module
build_module
'[' 0 = 0 ']'
VAL_CONFIG_TEST_RAW_TP=n
'[' '' '!=' '' ']'
VAL_BT_ENABLED=n
'[' '' = '' ']'
++ getconf LONG_BIT
arch_num_bits=32
'[' 32 = 32 ']'
arch_found=arm
ARCH=arm
cd /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_control/../host_driver/esp32/
log 'Current dir: /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:57] Current dir: /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32'
[2024-09-10 16:45:57] Current dir: /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32
log 'Building for target spi'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:57] Building for target spi'
[2024-09-10 16:45:57] Building for target spi
log 'Using ARCH as : arm'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:57] Using ARCH as : arm'
[2024-09-10 16:45:57] Using ARCH as : arm
log 'Using KERNEL as /lib/modules/6.6.47+rpt-rpi-v7l/build'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:57] Using KERNEL as /lib/modules/6.6.47+rpt-rpi-v7l/build'
[2024-09-10 16:45:57] Using KERNEL as /lib/modules/6.6.47+rpt-rpi-v7l/build
log 'Using CONFIG_TEST_RAW_TP as '
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:45:57] Using CONFIG_TEST_RAW_TP as '
[2024-09-10 16:45:57] Using CONFIG_TEST_RAW_TP as
make -j8 target=spi KERNEL=/lib/modules/6.6.47+rpt-rpi-v7l/build ARCH=arm CONFIG_TEST_RAW_TP=n CONFIG_BT_ENABLED=n
rm -rf .o sdio/.o spi/*.o *.ko
make ARCH=arm CROSS_COMPILE= -C /lib/modules/6.6.47+rpt-rpi-v7l/build M=/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32 clean
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/usr/src/linux-headers-6.6.47+rpt-rpi-v7l'
CLEAN /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32/Module.symvers
make[1]: Leaving directory '/usr/src/linux-headers-6.6.47+rpt-rpi-v7l'
make ARCH=arm CROSS_COMPILE= -C /lib/modules/6.6.47+rpt-rpi-v7l/build M=/home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32 modules
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/usr/src/linux-headers-6.6.47+rpt-rpi-v7l'
CC [M] /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32/main.o
CC [M] /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32/esp_stats.o
CC [M] /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32/spi/esp_spi.o
CC [M] /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32/esp_serial.o
CC [M] /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32/esp_rb.o
CC [M] /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32/esp_fw_verify.o
LD [M] /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32/esp32_spi.o
MODPOST /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32/Module.symvers
CC [M] /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32/esp32_spi.mod.o
LD [M] /home/itas/esp-hosted/esp_hosted_fg/host/linux/host_driver/esp32/esp32_spi.ko
make[1]: Leaving directory '/usr/src/linux-headers-6.6.47+rpt-rpi-v7l'
'[' 0 -ne 0 ']'
insert_module
log_enter
log 'Entering insert_module'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:46:10] Entering insert_module'
[2024-09-10 16:46:10] Entering insert_module
'[' '' '!=' '' ']'
sudo insmod esp32_spi.ko resetpin=518 clockspeed=10 spi_bus=0 spi_cs=0 spi_mode=2 spi_handshake=534 spi_dataready=539
'[' 0 -ne 0 ']'
++ lsmod
++ grep esp32
++ wc -l
'[' 1 '!=' 0 ']'
log 'esp32 module inserted using script'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:46:10] esp32 module inserted using script'
[2024-09-10 16:46:10] esp32 module inserted using script
log_exit
log 'Exiting insert_module'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:46:10] Exiting insert_module'
[2024-09-10 16:46:10] Exiting insert_module
log '--- finished ---'
++ date '+%Y-%m-%d %H:%M:%S'
echo '[2024-09-10 16:46:10] --- finished ---'
[2024-09-10 16:46:10] --- finished ---
please help me in fixing this why after the module is inserted it is exiting why iam getting warning o memory lekage , why iam getting message that kernel is getting tainted
Steps to reproduce the behavior
see error
bash -x ./rpi_init.sh wifi=spi
Project release version
ESP-Hosted-FG-release_0.0.5.tgz for rpi4b and ESP-Hosted-FG-release_0.0.5.tgz for esp32 s3 wroom 1
System architecture
ARM 32-bit (Raspberry Pi 32-bit)
Operating system
Linux
Operating system version
PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)" NAME="Raspbian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=raspbian ID_LIKE=debian
Shell
Bash
Additional context
SPI Initialization: The esp32_spi module is initialized successfully with SPI bus 0, Chip Select 0, and SPI mode 2. The GPIOs for handshake and data ready are correctly set.
Resets and Reinitializations: The logs show multiple resets of the ESP32 and reinitializations of the SPI module. This might be triggered by specific actions like resetting the ESP32 or reloading the module.
Potential Overlay Warning: The warning about a potential memory leak when removing the overlay
why esps0 is not created or enabled why module is getting exit