Enabling SPI0 on P9 header

61 views
Skip to first unread message

ferdster

unread,
Feb 16, 2018, 6:57:55 PM2/16/18
to BeagleBoard
Hi,

Using "Debian 9.3 2018-01-28 4GB SD IoT" on a Seeed Studio BBGW, how do I enable SPI0 on the P9 expansion header? Specifically, having trouble changing modes of P9_17 and P9_22.

root@beaglebone:~/beaglebone-universal-io# ./config-pin P9_17 spi
[ 9965.384388] bone-pinmux-helper ocp:P9_17_pinmux: Failed to find state spi
bash: line 0: echo: write error: No such device
Cannot write pinmux file: /sys/devices/platform/ocp/ocp:P9_17_pinmux/state
root@beaglebone:~/beaglebone-universal-io# ./config-pin P9_18 spi
root@beaglebone:~/beaglebone-universal-io# ./config-pin P9_21 spi
root@beaglebone:~/beaglebone-universal-io# ./config-pin P9_22 spi
[ 9979.783283] bone-pinmux-helper ocp:P9_22_pinmux: Failed to find state spi
bash: line 0: echo: write error: No such device
Cannot write pinmux file: /sys/devices/platform/ocp/ocp:P9_22_pinmux/state
root@beaglebone:~/beaglebone-universal-io# ./config-pin -q P9_17
P9_17 Mode: default Direction: in Value: 0
root@beaglebone:~/beaglebone-universal-io# ./config-pin -q P9_18
P9_18 Mode: spi
root@beaglebone:~/beaglebone-universal-io# ./config-pin -q P9_21
P9_21 Mode: spi
root@beaglebone:~/beaglebone-universal-io# ./config-pin -q P9_22
P9_22 Mode: default Direction: in Value: 0

Thanks.

Robert Nelson

unread,
Feb 16, 2018, 7:45:28 PM2/16/18
to Beagle Board, Ferdi Tjandra
On Fri, Feb 16, 2018 at 5:57 PM, ferdster <ftja...@gmail.com> wrote:
> Hi,
>
> Using "Debian 9.3 2018-01-28 4GB SD IoT" on a Seeed Studio BBGW, how do I
> enable SPI0 on the P9 expansion header? Specifically, having trouble
> changing modes of P9_17 and P9_22.
>
> root@beaglebone:~/beaglebone-universal-io# ./config-pin P9_17 spi
> [ 9965.384388] bone-pinmux-helper ocp:P9_17_pinmux: Failed to find state spi
> bash: line 0: echo: write error: No such device

Oh don't do that... config-pin was forked a while back and is already
pre-installed. By using that old version, nothing will sync up..

Regards,

--
Robert Nelson
https://rcn-ee.com/
Message has been deleted

ferdster

unread,
Feb 17, 2018, 8:00:18 PM2/17/18
to BeagleBoard
Doh, thank you!
Reply all
Reply to author
Forward
0 new messages