That *seems* to have fixed it. Will need to run a test to be sure. It does 
allow me to configure the audio pin as pruout, and I do see gpio entries 
and the uio events in sysfs.

I was wondering if it was the old U-Boot - I presume the old one doesn't 
understand uboot overlays??

(was I correct to remove "cape_universal=enable" from the kernel command 
line entry in uEnv.txt (or does it not matter once uboot overlays are 
enabled?)

The syntax of the directives I added to uEnv.txt look (to me) like they are 
hard-coded into u-boot -- is that correct? That is, rather than generic 
directives that look like:

enable_uboot_overlay=<some overlay found in /lib/firmware>
enable_uboot_overlay=<some other overlay found in /lib/firmware>
disable_uboot_overlay=<yet another...>

we now have:

enable_uboot_overlays=1                # OK, that seems generic... tell 
u-boot to handle overlays

disable_uboot_overlay_audio=1 .    #  "audio" is hardcoded in the directive 
itself

uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo         # u-boot 
even knows about prus?

enable_uboot_cape_universal=1                                              
           # ... and cape_universal?



Thank you for the response.


On Friday, March 23, 2018 at 3:44:56 PM UTC-7, ags wrote:
>
> I gave up trying to figure out how to get config-pins, overlays, uboot, 
> etc all in-sync to allow access to all the available pru pins, so I 
> followed previous instructions to update.
>
> What I did:
>
> debian@BBBWl:~$ cd /opt/scripts/tools
> debian@BBBWl:~$ sudo ./update_kernel.sh
>
> edited /boot/uEnv.txt to include:
>
> enable_uboot_overlays=1
>
> disable_uboot_overlay_audio=1
>
> uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo
>
> enable_uboot_cape_universal=1
>
>
> and changed this:
>
>
> cmdline=coherent_pool=1M quiet cape_universal=enable
>
>
> to this:
>
>
> cmdline=coherent_pool=1M quiet
>
>
> rebooted and...
>
>
> Last login: Fri Mar 23 22:01:29 2018 from 10.8.0.6
>
> debian@BBBWl:~$ uname -r
>
> 4.4.113-ti-r148
>
> debian@BBBWl:~$ config-pin -l p9.25
>
> default gpio gpio_pu gpio_pd qep pruout pruin
>
> debian@BBBWl:~$ config-pin p9.25 pruout
>
> P9_25 pinmux file not found!
>
> cape-universala overlay not found
>
> run "config-pin overlay cape-universala" to load the cape
>
> checked to see if the bb-cape-overlays had been updated and saw a newer 
> version so installed that:
>
> debian@BBBWl:~$ apt show bb-cape-overlays
>
> Package: bb-cape-overlays
>
> Version: 4.4.20180322.0-0rcnee0~jessie+20180322
>
> Maintainer: Robert Nelson <robertcnel...@gmail.com>
>
> Installed-Size: 2,289 kB
>
> Priority: extra
>
> Section: misc
>
> Download-Size: 66.7 kB
>
> APT-Sources: http://repos.rcn-ee.com/debian/ jessie/main armhf Packages
>
> Description: Device tree overlays for Beaglebone.
>
>  Device tree overlays for Beaglebone /lib/firmware/
>
>
> rebooted and same problem.
>
> I then looked to see if the uio_pruss driver had been installed...
>
>
> debian@BBBWl:/opt/scripts/tools$ ls /sys/class/uio
>
> debian@BBBWl:/opt/scripts/tools$
>
>
> Bad.
>
>
> debian@BBBWl:/opt/scripts/tools$ ls /sys/class/gpio
>
> export  *gpio12*  *gpio13*  *gpiochip0*  *gpiochip32*  *gpiochip64*  
> *gpiochip96*  unexport
>
>
> Worse.
>
>
> So now I have no uio_pruss driver, and just two gpio pins.
>
> Info:
>
>
> debian@BBBWl:/opt/scripts/tools$ sudo ./version.sh 
>
> git:/opt/scripts/:[9d965a5f40ae00774c81164f87a450a678ab79f6]
>
> eeprom:[A335BNLTBWA51650BBWG0378]
>
> model:[TI_AM335x_BeagleBone_Black_Wireless]
>
> dogtag:[BeagleBoard.org Debian Image 2016-11-06]
>
> bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 
> 2016.11-rc3-00002-g73df7f]:[location: dd MBR]
>
> kernel:[4.4.113-ti-r148]
>
> nodejs:[v6.12.2]
>
> uboot_overlay_options:[enable_uboot_overlays=1]
>
> uboot_overlay_options:[disable_uboot_overlay_audio=1]
>
>
> uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo]
>
> uboot_overlay_options:[enable_uboot_cape_universal=1]
>
> pkg:[bb-cape-overlays]:[4.4.20180322.0-0rcnee0~jessie+20180322]
>
> pkg:[bb-wl18xx-firmware]:[1.20161020-0rcnee1~bpo80+20161020+1]
>
> WARNING:pkg:[firmware-ti-connectivity]:[NOT_INSTALLED]
>
> groups:[debian : debian adm kmem dialout cdrom floppy audio dip video 
> plugdev users systemd-journal netdev i2c admin spi tisdk weston-launch 
> xenomai]
>
> cmdline:[console=ttyO0,115200n8 
> root=UUID=ac4731db-c4db-463f-9129-07e6746b98ba ro rootfstype=ext4 rootwait 
> coherent_pool=1M quiet]
>
> dmesg | grep pinctrl-single
>
> [    1.179799] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 
> size 568
>
> dmesg | grep gpio-of-helper
>
> [    1.180937] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0
>
> [    1.181098] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1
>
> [    1.181110] gpio-of-helper ocp:cape-universal: ready
>
> END
>
>
> Help please...
>
>
>

-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/e70349c1-f1eb-49a3-8f06-64d97b4d1975%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to