Closed great9 closed 1 year ago
looks like an allocation issue with kmalloc (contagious memory) - modify the
fifo_mtu_multiplier=6
parameter in /etc/modprobe.d
There is a ko loading directive in there for caribouLite (smi_stream_mod_cariboulite.conf)
>> nano /etc/modprobe.d/smi_stream_mod_cariboulite.conf
# SMI STREAM DEV specific options
options smi_stream_dev fifo_mtu_multiplier=**6** addr_dir_offset=2 addr_ch_offset=3
This parameter defines the size of the kfifos allocated by the ko module. The actual size is the fifo_mtu_multiplier
multiplied by the native mtu (half a megabyte*6=3 mb). In the rpizero model this number is automatically downscaled to 2. We may downscale it for your model as well...
you will need to sudo
to do the change.
David
######################################################
## CaribouLite DUMP1090 - ADS-B Receiver ##
######################################################
[INFO] SoapyCaribouliteSession, sessionCount: 0
09-26 21:08:18.902 19405 19405 I FPGA caribou_fpga_program_to_fpga@caribou_fpga.c:209 FPGA already operational - not programming (use 'force_prog=true' to force update)
09-26 21:08:18.902 19405 19405 E CARIBOU_SMI caribou_smi_init@caribou_smi.c:534 couldn't open smi driver file '/dev/smi' (No such file or directory)
09-26 21:08:18.902 19405 19405 E CARIBOULITE Setup cariboulite_init_submodules@cariboulite_setup.c:288 Error setting up smi submodule
09-26 21:08:18.904 19405 19405 I CARIBOU_PROG caribou_prog_release@caribou_prog.c:122 device release completed
09-26 21:08:18.904 19405 19405 E FPGA caribou_fpga_close@caribou_fpga.c:246 caribou_fpga_close: dev not initialized
[ERROR] cariboulite_init_driver() failed
Printing 'findCariboulite' Request:
{channel: HiF}
{driver: Cariboulite}
[INFO] Initializing DeviceID: 1, Label: CaribouLite HiF[9e02dae1], ChannelType: HiF
soapy_sighandler caught SIGSEGV
[INFO] soapy_sighandler killing soapy_cariboulite (cariboulite_release_driver)
09-26 21:08:18.916 19405 19405 E FPGA caribou_fpga_close@caribou_fpga.c:246 caribou_fpga_close: dev not initialized
09-26 21:08:18.916 19405 19405 E CARIBOULITE Setup cariboulite_release_submodules@cariboulite_setup.c:459 FPGA communication release failed (-1)
09-26 21:08:18.916 19405 19405 E IO_UTILS_SPI io_utils_spi_close@io_utils_spi.c:340 closing uninitialized device
CaribouLite: Signal [11] received from pid=[968]
Signal [11] caught, with the following information:
signal errno = 0
signal process pid = 968
signal process uid = 0
signal status = 0
signal errno / SIGSEGV / the process access invalid region of memory
SIGSEGV: memory access violation
After running caribou_dump1090 and getting a ModuleABI version 0.8.2 and library version 0.8.3 error I ran it a couple of more times. There's a kfifo alloc error. did an rmmod and modprobe then caribou_dump1090 again. Here's the dmesg.