Greybus cannot bind I2C device
The node device fails to bind to I2C.
After starting gbridge
, the /dev/gpiochipN
is created, but I cannot control the GPIO using gpioset
, or the script at https://github.com/jadonk/beagleconnect#blinky.
No device corresponding to I2C is created at /dev/bus/i2c/devices/
Steps to reproduce
-
The BeagleConnect node is programmed with
greybus/net
-
Setup the network on the BeagleConnect Gateway as:
$ ip a show lowpan0 37: lowpan0@wpan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1280 qdisc noqueue state UNKNOWN group default qlen 1000 link/6lowpan 9e:0b:a4:e8:00:d3:45:53 brd ff:ff:ff:ff:ff:ff:ff:ff inet6 2001:db8::2/64 scope global valid_lft forever preferred_lft forever inet6 fe80::9c0b:a4e8:d3:4553/64 scope link valid_lft forever preferred_lft forever
-
Start
gbridge
on the Gateway
Output
[00:0** Booting Zephyr OS build ce09a0eff8aa ***
0:00.002,105] <err> greybus_platform_i2c_control: i2c control: failed to get binding for device 'I2C_0S'
[00:00:00.009,887] <inf> greybus_transport_tcpip: CPort 0 mapped to TCP/IP port 4242
[00:00:00.010,223] <inf> greybus_transport_tcpip: CPort 1 mapped to TCP/IP port 4243
[00:00:00.010,559] <inf> greybus_transport_tcpip: CPort 2 mapped to TCP/IP port 4244
[00:00:00.010,772] <inf> greybus_transport_tcpip: Greybus TCP/IP Transport initialized
[00:00:00.010,864] <inf> greybus_manifest: Registering CONTROL greybus driver.
[00:00:00.011,199] <inf> greybus_manifest: Registering GPIO greybus driver.
[00:00:00.011,505] <inf> greybus_manifest: Registering I2C greybus driver.
[00:00:00.011,505] <err> greybus_platform: no mapping for cport 2
[00:00:00.011,535] <err> greybus: Can not init WEST_TOPDIR/modules/lib/greybus/subsys/greybus/i2c.c
[00:00:00.011,566] <inf> greybus_service: Greybus is active
[00:00:00.025,878] <inf> net_config: Initializing network
[00:00:00.133,819] <inf> net_config: IPv6 address: 2001:db8::1
[00:01:04.719,299] <err> greybus: No driver registered! Can not connect CP2.
[00:01:04.719,329] <err> greybus_control: Can not connect cport 2: error -22
[00:01:04.864,227] <err> greybus: Cport 2 does not have a valid driver registered
[00:01:05.839,965] <err> greybus: Cport 2 does not have a valid driver registered
[00:01:06.817,016] <err> greybus_control: Cannot notify GB driver of disconnect event.
[00:01:06.817,047] <err> greybus: No driver registered! Can not disconnect CP2.
[00:01:06.817,077] <err> greybus_control: Can not disconnect cport 2: error -22