issue with videobuf2-dma-sg.ko
Hi
I am trying to load the cx23885 module. It fails to load and I get this in dmesg;
[ 433.506983] videobuf2_dma_sg: Unknown symbol dma_buf_export (err 0)
I wrote a small script to load each of the dependencies one at a time, which shows pretty clearly the problem is videobuf2-dma-sg.ko.
I am up to date with the media_tree:
$ git log |head commit 59366d3bbae4f67ae3b3a32696faa0798cef1b67 Author: Hans Verkuil <[email protected]> Date: Sat May 2 10:41:49 2015 +0200
v4l/compat.h: fix compiler warning
In file included from <command-line>:0:0:
v4l/compat.h:1605:11: warning: 'struct device_node' declared inside parameter list
u64 *out_values, size_t sz)
^
Can anyone point out how to fix this?
What other information would be useful?
Cheers
Vince
System details
$ uname -a Linux ubuntu 3.13.0-51-generic #84-Ubuntu SMP Wed Apr 15 12:11:46 UTC 2015 i686 i686 i686 GNU/Linux
$ sudo sh load.sh videobuf2_core 3 videodev 2 rc_core 1 altera_ci 0 modprobe -v altera_ci insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/pci/cx23885/altera-ci.ko v4l2_common 2 snd_pcm 4 snd 17 tveeprom 0 modprobe -v tveeprom insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/common/tveeprom.ko cx2341x 0 modprobe -v cx2341x insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/common/cx2341x.ko videobuf2_dma_sg 0 modprobe -v videobuf2_dma_sg insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/v4l2-core/videobuf2-dma-sg.ko modprobe: ERROR: could not insert 'videobuf2_dma_sg': Unknown symbol in module, or unknown parameter (see dmesg) videobuf2_dvb 0 modprobe -v videobuf2_dvb insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/v4l2-core/videobuf2-dvb.ko dvb_core 2 tda18271 0 modprobe -v tda18271 insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/tuners/tda18271.ko altera_stapl 0 modprobe -v altera_stapl insmod /lib/modules/3.13.0-51-generic/kernel/drivers/misc/altera-stapl/altera-stapl.ko cx23885 0 modprobe -v cx23885 insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/v4l2-core/videobuf2-dma-sg.ko modprobe: ERROR: could not insert 'cx23885': Unknown symbol in module, or unknown parameter (see dmesg)
$ dmesg|tail [ 38.177893] nvidia 0000:01:00.0: irq 43 for MSI/MSI-X [ 39.350957] init: plymouth-upstart-bridge main process ended, respawning [ 39.390535] init: plymouth-upstart-bridge main process (1381) terminated with status 1 [ 39.390563] init: plymouth-upstart-bridge main process ended, respawning [ 56.994291] audit_printk_skb: 123 callbacks suppressed [ 56.994298] type=1400 audit(1430633192.185:74): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=2295 comm="apparmor_parser" [ 56.994310] type=1400 audit(1430633192.185:75): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2295 comm="apparmor_parser" [ 56.994991] type=1400 audit(1430633192.185:76): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2295 comm="apparmor_parser" [ 122.119702] videobuf2_dma_sg: Unknown symbol dma_buf_export (err 0) [ 122.243021] videobuf2_dma_sg: Unknown symbol dma_buf_export (err 0)
$ cat load.sh
#!/bin/sh
for m in videobuf2_core videodev rc_core altera_ci v4l2_common snd_pcm snd tveeprom cx2341x videobuf2_dma_sg videobuf2_dvb dvb_core tda18271 altera_stapl cx23885
do
n=`lsmod|grep -F $m -c`
echo $m $n
[ $n -eq 0 ] || continue
echo modprobe -v $m
modprobe -v $m
doneHi Vince,
Quoted 17 lines · Vincent McIntyre
Hi
I am trying to load the cx23885 module. It fails to load and I get this in dmesg;
[ 433.506983] videobuf2_dma_sg: Unknown symbol dma_buf_export (err 0)I wrote a small script to load each of the dependencies one at a time, which shows pretty clearly the problem is videobuf2-dma-sg.ko.
I am up to date with the
media_tree:$ git log |head commit 59366d3bbae4f67ae3b3a32696faa0798cef1b67 Author: Hans Verkuil <[email protected]> Date: Sat May 2 10:41:49 2015 +0200
v4l/compat.h: fix compiler warning
Quoted 7 lines
In file included from <command-line>:0:0:
v4l/compat.h:1605:11: warning: 'structdevice_node' declared inside parameter list
u64*out_values,size_tsz)
^Can anyone point out how to fix this?
What other information would be useful?
Try again, I've hopefully fixed this problem. You need to do a git pull from the media_build.git repo and that should solve it.
Let me know if you run into problems.
Regards,
Hans
Quoted 73 lines
Cheers
VinceSystem details
$ uname -a Linux ubuntu 3.13.0-51-generic #84-Ubuntu SMP Wed Apr 15 12:11:46 UTC 2015 i686 i686 i686 GNU/Linux$ sudo sh load.sh videobuf2_core 3 videodev 2 rc_core 1 altera_ci 0 modprobe -v altera_ci insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/pci/cx23885/altera-ci.ko v4l2_common 2 snd_pcm 4 snd 17 tveeprom 0 modprobe -v tveeprom insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/common/tveeprom.ko cx2341x 0 modprobe -v cx2341x insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/common/cx2341x.ko videobuf2_dma_sg 0 modprobe -v videobuf2_dma_sg insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/v4l2-core/videobuf2-dma-sg.ko modprobe: ERROR: could not insert 'videobuf2_dma_sg': Unknown symbol in module, or unknown parameter (see dmesg) videobuf2_dvb 0 modprobe -v videobuf2_dvb insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/v4l2-core/videobuf2-dvb.ko dvb_core 2 tda18271 0 modprobe -v tda18271 insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/tuners/tda18271.ko altera_stapl 0 modprobe -v altera_stapl insmod /lib/modules/3.13.0-51-generic/kernel/drivers/misc/altera-stapl/altera-stapl.ko cx23885 0 modprobe -v cx23885 insmod /lib/modules/3.13.0-51-generic/kernel/drivers/media/v4l2-core/videobuf2-dma-sg.ko modprobe: ERROR: could not insert 'cx23885': Unknown symbol in module, or unknown parameter (see dmesg)$ dmesg|tail [ 38.177893] nvidia 0000:01:00.0: irq 43 for MSI/MSI-X [ 39.350957] init: plymouth-upstart-bridge main process ended, respawning [ 39.390535] init: plymouth-upstart-bridge main process (1381) terminated with status 1 [ 39.390563] init: plymouth-upstart-bridge main process ended, respawning [ 56.994291] audit_printk_skb: 123 callbacks suppressed [ 56.994298] type=1400 audit(1430633192.185:74): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=2295 comm="apparmor_parser" [ 56.994310] type=1400 audit(1430633192.185:75): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2295 comm="apparmor_parser" [ 56.994991] type=1400 audit(1430633192.185:76): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2295 comm="apparmor_parser" [ 122.119702] videobuf2_dma_sg: Unknown symbol dma_buf_export (err 0) [ 122.243021] videobuf2_dma_sg: Unknown symbol dma_buf_export (err 0)$ cat load.sh #!/bin/sh for m in videobuf2_core videodev rc_core altera_ci v4l2_common snd_pcm snd tveeprom cx2341x videobuf2_dma_sg videobuf2_dvb dvb_core tda18271 altera_stapl cx23885 do n=`lsmod|grep -F $m -c` echo $m $n [ $n -eq 0 ] || continue echo modprobe -v $m modprobe -v $m done--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Hans Verkuil
Hi Vince,
Quoted 4 lines · Vincent McIntyre
Hi
I am trying to load the cx23885 module. It fails to load and I get this in dmesg;
Quoted 8 lines
Quoted 2 lines
[ 433.506983] videobuf2_dma_sg: Unknown symbol dma_buf_export (err 0)Try again, I've hopefully fixed this problem. You need to do a git pull from the media_build.git repo and that should solve it.
Let me know if you run into problems.
That was quick work!
I rebuilt and the module is loading fine again, dmesg attached. Thanks Hans
Vince