Using tree overlays

236 views
Skip to first unread message

Andy Bushnell

unread,
Oct 15, 2017, 10:12:31 PM10/15/17
to BeagleBoard
Hi,

I'm looking for information on using overlays for GPIO and the UART's.  For the BBB I have used Molloy's book but things have changed from that.  I'm using C++ with cape manager.  Page 222 in exploring Beaglebone.

Thanks!
Andy

GaryH

unread,
Oct 29, 2017, 1:26:32 PM10/29/17
to BeagleBoard
I think that uboot overlays are now being used:

I would also like to reassign pins, but I haven't found how to do this with uboot overlays.
Here's a link for changing pin assignments from the command line using config-pin:

I used config-pin to reassign I2C1 to UART1:
$  sudo config-pin P2_09 uart
$  sudo config-pin P2_11 uart

This reverts back to I2C1 on reboot.

Gary

cyril.jo...@gmail.com

unread,
Feb 23, 2018, 5:39:41 AM2/23/18
to BeagleBoard
Hi, do you know how to make the config-pin permanent ? Do we have to use U-Boot overlays for that ?

Especially I configured can0 and can1 interfaces in /etc/network/interfaces so that they would be up automatically.
So the calls of config-pin need to be done before the interfaces are setup otherwise the CAN bus doesn't work, and I would need to manually set them down and up again.

As anybody done that ?

Thanks,
Cyril
Reply all
Reply to author
Forward
0 new messages