Skip to first unread message

zaenal abidin

unread,
Jan 12, 2017, 1:19:35 PM1/12/17
to BeagleBoard
how to change/enable mode pin?
i ever change at "/sys/kerner/debug/pinctr/44e10800# pins" 
but output is "invalid argument"

anyone know?


Drew Fustini

unread,
Jan 12, 2017, 10:08:36 PM1/12/17
to Beagle Board
On Thu, Jan 12, 2017 at 12:19 PM, zaenal abidin
<zaenalabi...@gmail.com> wrote:
> how to change/enable mode pin?
> i ever change at "/sys/kerner/debug/pinctr/44e10800# pins"
> but output is "invalid argument"

The config-pin utility (which relies on cape-universal) is the
simplest way to configure BeagleBone pins:
https://github.com/cdsteinkuehler/beaglebone-universal-io

How are you planning to use the pins?

-drew

zaenal abidin

unread,
Jan 12, 2017, 10:10:46 PM1/12/17
to beagl...@googlegroups.com

I use it for input/output infrared

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/DjYKc4L8UBs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAEf4M_Cq9NLrFBRnp585si_AcMA8AKQiiTcvcAJHi8RmJCWykw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Drew Fustini

unread,
Jan 12, 2017, 10:15:46 PM1/12/17
to Beagle Board
On Thu, Jan 12, 2017 at 9:10 PM, zaenal abidin
<zaenalabi...@gmail.com> wrote:
> I use it for input/output infrared

I'm afraid that's not enough information for me to help. It would be
helpful if you could post a schematic and a list of the parts that you
are using.

-drew

zaenal abidin

unread,
Jan 13, 2017, 1:12:35 AM1/13/17
to beagl...@googlegroups.com

Example: default pin p8_3 is gmc_ad6 (mode0). I want to change  that pin to mode7(gpio1_6)
How to change? I cant solve it..still mode0 

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/DjYKc4L8UBs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.

Drew Fustini

unread,
Jan 13, 2017, 2:06:30 AM1/13/17
to Beagle Board
On Fri, Jan 13, 2017 at 12:12 AM, zaenal abidin
<zaenalabi...@gmail.com> wrote:
> Example: default pin p8_3 is gmc_ad6 (mode0). I want to change that pin to
> mode7(gpio1_6)
> How to change? I cant solve it..still mode0

It seems that P8_3 is used by the eMMC by default. I am using Debian
8.6 (2016-11-27). When I first tried config-pin for that pin, I got
this error:

debian@beaglebone:~$ config-pin -q P8.3
P8_03 pinmux file not found!
cape-universala overlay not found
run "config-pin overlay cape-universala" to load the cape

I edited /boot/uEnv.txt to use dtb that disables eMMC and enabled
cape-universala:

uname_r=4.4.39-ti-r79
dtb=am335x-boneblack-overlay.dtb
cmdline=coherent_pool=1M quiet cape_universal=enable
cape_enable=bone_capemgr.enable_partno=cape-universala

After rebooting, the cape-universala overlay is loaded:

debian@beaglebone:~$ cat /sys/devices/platform/bone_capemgr/slots
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,cape-universala

P8_3 can now be set in GPIO mode with config-pin:

debian@beaglebone:~$ sudo config-pin -q P8.3
P8_03 Mode: default Direction: in Value: 1

debian@beaglebone:~$ sudo config-pin -l P8.3
default gpio gpio_pu gpio_pd

debian@beaglebone:~$ sudo config-pin P8.3 gpio

debian@beaglebone:~$ sudo config-pin -q P8.3
P8_03 Mode: gpio Direction: in Value: 1


-drew

Drew Fustini

unread,
Jan 13, 2017, 8:20:45 PM1/13/17
to Beagle Board
On Fri, Jan 13, 2017 at 1:06 AM, Drew Fustini <pdp7...@gmail.com> wrote:
> I edited /boot/uEnv.txt to use dtb that disables eMMC and enabled
> cape-universala

If you have questions about what exactly to edit in /boot/uEnv.txt,
then please post the full contents of your /boot/uEnv.txt

-drew
Reply all
Reply to author
Forward
0 new messages