On Thu, Mar 21, 2019 at 10:59 AM <[email protected]> wrote: >> >> Hi TJF, > > > I was previously using iio but due to ADC sampling rate issues, I've been > trying to use libpruio on my BBB wireless with the latest image from > beaglebone (i.e Debian 9.5, 4.14.71-ti-r80) on an SD card. > > I've installed libpruio through sudo apt-get install libpruio libruio-dev > libpruio-lkm libpruio-doc > > I've read some of the troublshooting on this thread and followed quite a few > steps but I'm encountering a similar problem to the others mentionned here, > once compiled the 1.c program goes to segmentation fault. > > lsmod outputs this: > > root@beaglebone:/var/lib/cloud9# lsmod > Module Size Used by > xt_conntrack 16384 1 > ipt_MASQUERADE 16384 1 > nf_nat_masquerade_ipv4 16384 1 ipt_MASQUERADE > aes_arm_bs 20480 0 > crypto_simd 16384 1 aes_arm_bs > cryptd 24576 1 crypto_simd > wl18xx 110592 0 > wlcore 237568 1 wl18xx > mac80211 696320 2 wl18xx,wlcore > cfg80211 622592 3 wl18xx,wlcore,mac80211 > bnep 28672 2 > hci_uart 69632 0 > btqca 16384 1 hci_uart > bluetooth 552960 24 hci_uart,btqca,bnep > ecdh_generic 28672 1 bluetooth > wlcore_sdio 16384 0 > evdev 24576 1 > uio_pdrv_genirq 16384 0 > usb_f_mass_storage 53248 2 > usb_f_acm 16384 2 > u_serial 20480 3 usb_f_acm > usb_f_ecm 20480 2 > usb_f_rndis 32768 4 > u_ether 20480 2 usb_f_ecm,usb_f_rndis > libcomposite 65536 18 > usb_f_ecm,usb_f_acm,usb_f_mass_storage,usb_f_rndis > iptable_nat 16384 1 > nf_conntrack_ipv4 20480 3 > nf_defrag_ipv4 16384 1 nf_conntrack_ipv4 > nf_nat_ipv4 16384 1 iptable_nat > nf_nat 32768 2 nf_nat_masquerade_ipv4,nf_nat_ipv4 > nf_conntrack 143360 6 > nf_conntrack_ipv4,ipt_MASQUERADE,nf_nat_masquerade_ipv4,xt_conntrack,nf_nat_ipv4,nf_nat > iptable_mangle 16384 0 > iptable_filter 16384 1 > libpruio 16384 0 > uio_pruss 16384 0 > uio 20480 2 uio_pruss,uio_pdrv_genirq > spidev 20480 0 > pruss_soc_bus 16384 0 > pru_rproc 28672 0 > pruss 16384 1 pru_rproc > pruss_intc 16384 1 pru_rproc > ip_tables 24576 3 iptable_mangle,iptable_filter,iptable_nat > x_tables 36864 5 > iptable_mangle,ip_tables,iptable_filter,ipt_MASQUERADE,xt_conntrack > > > I've modified /boot/uEvent.txt to stoppru_rproc from loading as suggested and > rebooted but the output of lsmod stays the same (and the program still goes > to segfault). > > modification in uEvent.txt: > ###PRUSS OPTIONS > ###pru_rproc (4.4.x-ti kernel) > ##uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo > ###pru_rproc (4.14.x-ti kernel) > ##uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo > ###pru_uio (4.4.x-ti, 4.14.x-ti & mainline/bone kernel) > uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo > ### > > I went so far as to remove AM335X-PRU-RPROC-4-14-TI-00A0.dtbo and > AM335X-PRU-RPROC-4-4-TI-00A0.dtbo from /lib/firmware, to no avail. > > Additionally the output of ls -l /dev/uio* is "no such file or directory", I > don't know why. > > root@beaglebone:/var/lib/cloud9# ls -l /dev/uio* > ls: cannot access '/dev/uio*': No such file or directory > > > And in case this helps: > > root@beaglebone:/var/lib/cloud9# ls -l /sys/devices/platform/libpruio > total 0 > -rw-r--r-- 1 root root 4096 Mar 21 14:00 driver_override > -r--r--r-- 1 root root 4096 Mar 21 14:00 modalias > drwxr-xr-x 2 root root 0 Mar 21 14:00 power > -rw-rw-r-- 1 root pruio 4096 Mar 21 13:36 state > lrwxrwxrwx 1 root root 0 Mar 21 14:00 subsystem -> ../../../bus/platform > -rw-r--r-- 1 root root 4096 Mar 21 13:36 uevent > > > Do you have a lead on what the problem might be?
Let's see more details.. sudo /opt/scripts/tools/version.sh Regards, -- Robert Nelson https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYjbKs7rDQfnCc_VKN2MNa-YB1LXLD162rF0aD1KZG3uNA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
