嗨,我已经编译了启用了Comedi支持的内核。我正在使用jetsonhacks的指南:
https://www.jetsonhacks.com/2018/03/22/build-kernel-modules-nvidia-jetson-tx2-2/
我目前已经安装了comedilib并编译了一些示例程序。正确的驱动程序用于/ dev / comedi0,但是当我运行其中任何一个时,都没有输出,并且bash实例冻结。我检查了dmesg的输出,它包含以下行:
[ 9.627985] comedi: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.628691] comedi: version 0.7.76 - http://www.comedi.org
[ 9.630232] comedi_pci: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.631796] comedi_8255: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.633675] ni_tio: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.635493] mite: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.637141] ni_tiocmd: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.640587] ni_pcimio: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.641187] pci 0000:01:00.0: enabling device (0000 -> 0002)
[ 9.641199] pci 0000:01:00.0: enabling bus mastering
[ 9.641207] ni_pcimio 0000:02:04.0: enabling device (0000 -> 0002)
[ 9.641258] ni_pcimio 0000:02:04.0: enabling bus mastering
[ 9.641340] mite: version = 1, type = 4, mite mode = 1, interface mode = 3
[ 9.641342] mite: num channels = 8, write post fifo depth = 1, wins = 0, iowins = 2
[ 9.641363] comedi comedi0: fifo size is 64.
[ 9.678851] Unable to handle kernel paging request at virtual address 3ffffbcc22efe40
[ 9.678854] pgd = ffffffc1e3bb4000
[ 9.678858] [3ffffbcc22efe40] *pgd=0000000000000000, *pud=0000000000000000
[ 9.678862] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[ 9.678877] Modules linked in: ni_pcimio(C+) ni_tiocmd(C) mite(C) ni_tio(C) comedi_8255(C) comedi_pci(C) comedi(C) bcmdhd pci_tegra nfsd nfs_acl bluedroid_pm
[ 9.678883] CPU: 4 PID: 340 Comm: systemd-udevd Tainted: G C 4.4.38-tegraFSAEv2 #2
我当前正在使用PCI NI-6220-> pci / pcie适配器-> jetson tx2。
感谢您的任何帮助。