> > *1. The directory tree in /sys/class/uio is empty, software loading > firmware into PRU* > *exits with SEGFAULT:*
That is the real hint. The uio pru driver module is not loaded. So any attempts to use said files or directory structure is going to fail . . . I'd have to say that something is wrong with you device tree file, but I'm not that good with pinmuxing in dts file so . . . I can not say one way or another. You seem to be using the correct kernel though for using the uio PRU driver. *bone* On Fri, Mar 25, 2016 at 9:46 AM, Sylwester <[email protected]> wrote: > > What am I trying to achieve? > ============================ > > 1. Toggle P9_27 via PRU as an "hello world" example. > 2. Get uio_pruss up and running, making /sys/class/uio/ not empty anymore > 3. Getting "exploringBB/chp13/signalTest" working. > > What is my current setup? > ========================= > > Linux beaglebone 4.1.20-bone-rt-r20 #1 Sat Mar 19 06:28:47 UTC 2016 armv7l > GNU/Linux > > > 1. Beagle Bone Black with latest Image (Debian 8.3) running from SD-Card > 2. eMMC and HDMI Disabled via* dtb=am335x-boneblack-overlay.dtb* in > /boot/uEnv.txt on SD > 3. The bb.org-overlays set up and Installed. > 4. Set up DTS file to initialize PRUSS and Pin P9_27 in Mode 5, as Output > for PRU > DTS File here: > https://github.com/DatanoiseTV/BBB-PRU/blob/master/overlay/DatanoiseTV-001.dts > 0x1a4 0xd was previously 0x1a4 0x5, but this didn't work as well. > > What are the current problems? > ============================== > 1. The directory tree in /sys/class/uio is empty, software loading > firmware into PRU > exits with SEGFAULT: > > open("/dev/uio0", O_RDWR|O_SYNC) = -1 ENOENT (No such file or > directory) > > open("/sys/class/uio/uio0/maps/map0/addr", O_RDONLY) = -1 ENOENT (No such > file or directory) > > --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xd00} --- > > +++ killed by SIGSEGV +++ > > Segmentation fault > > > 2. GPIO direction and state apparently not initialized correcty. > > > > -- > 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]. > For more options, visit https://groups.google.com/d/optout. > -- 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]. For more options, visit https://groups.google.com/d/optout.
