Forum | Documentation | Website | Blog

Skip to content
  • Vaishnav Achath's avatar
    sw: linux: add mikrobus driver update patches · 853d3461
    Vaishnav Achath authored
    
    
    mikrobus driver works within buildroot but the click
    device drivers are not being probed correctly:
    in host /opt/gbridge.sh a hack for continously blinking the
    led on the SensorTag/Launchpad is added(this background
    transaction happening continously prevents some of the greybus
    pm suspend events happening, which might have been the cause
    for the kernel panic, with this continous background transfer
    the kernel panic is not seen and qemu machine does not crash)
    
    changes were tested using ATUSB, CC1352R SensorTag
    
    Welcome to Buildroot
    buildroot login: root
    Password:
    IFLP=`ifconfig | grep lowpan`
    ip link set wpan0 down
    iwpan phy phy0 set channel 0 26
    iwpan dev wpan0 set pan_id 0xabcd
      ip link add link wpan0 name lowpan0 type lowpan
      ip link set lowpan0 up
    ip link set wpan0 up
    ip -6 addr add 2001:db8::2/64 dev lowpan0
    sleep 1
    
    killall -9 gbridge
    sleep 1
    
    sleep 5
    
    gbridge > /dev/null 2&1 &
    sleep 5
    for i in `seq 1 100000`; do gpioset 0 6=1; gpioset 0 6=0; \
                             sleep 1; done
    
    greybus 1-2.2: GMP VID=0x00000126, PID=0x00000126
    greybus 1-2.2: DDBL1 Manufacturer=0x00000126, Product=0x00000126
    greybus 1-2.2: excess descriptors in interface manifest
    mikrobus:mikrobus_port_gb_register: mikrobus gb_probe , num cports= 3, manifest_size 252
    mikrobus:mikrobus_port_gb_register: protocol added 11
    mikrobus:mikrobus_port_gb_register: protocol added 3
    mikrobus:mikrobus_port_gb_register: protocol added 2
    mikrobus:mikrobus_port_register: registering port mikrobus-0
    mikrobus_manifest:mikrobus_manifest_attach_device: parsed device 1, driver=bme280, protocol=3, reg=76
    mikrobus_manifest:mikrobus_manifest_attach_device: parsed device 2, driver=opt3001, protocol=3, reg=44
    mikrobus_manifest:mikrobus_manifest_attach_device: parsed device 3, driver=ams-iaq-core, protocol=3, reg=5a
    mikrobus_manifest:mikrobus_manifest_parse:  Greybus Service Sample Application manifest parsed with 3 devices
    mikrobus mikrobus-0: registering device : bme280
    mikrobus mikrobus-0: registering device : opt3001
    mikrobus mikrobus-0: registering device : ams-iaq-core
    
    0-0044  0-005a  0-0076  i2c-0
    
    Mem: 29624K used, 471572K free, 84K shrd, 624K buff, 5152K cached
    CPU:   7% usr   4% sys   0% nic  86% idle   0% io   0% irq   1% sirq
    Load average: 0.22 0.10 0.03 1/56 378
      PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
      193   178 root     S    16060   3%   1% gbridge 2
      178   174 root     S     3744   1%   1% {gbridge.sh} /bin/sh -xv /opt/gbridge.
      312   174 root     R     1532   0%   1% top
       47     2 root     IW       0   0%   1% [kworker/0:3-eve]
       10     2 root     IW       0   0%   0% [rcu_sched]
        9     2 root     SW       0   0%   0% [ksoftirqd/0]
      173     1 root     S     3744   1%   0% /usr/sbin/iiod -D
      165     1 avahi    S     1924   0%   0% avahi-daemon: running [buildroot.local
      174     1 root     S     1548   0%   0% -sh
        1     0 root     S     1532   0%   0% init
      175     1 root     S     1528   0%   0% /sbin/getty -L tty1 0 vt100
      150     1 root     S     1528   0%   0% udhcpc -R -n -O search -p /var/run/udh
       64     1 root     S     1524   0%   0% /sbin/syslogd -n
       68     1 root     S     1520   0%   0% /sbin/klogd -n
      378   178 root     S     1520   0%   0% sleep 1
      115     1 dbus     S     1492   0%   0% dbus-daemon --system
      169     1 root     S     1080   0%   0% /usr/sbin/dropbear -R
       29     2 root     IW       0   0%   0% [kworker/u2:1-fl]
        7     2 root     IW       0   0%   0% [kworker/u2:0-gr]
       13     2 root     SW       0   0%   0% [kdevtmpfs]
    
    Signed-off-by: default avatarVaishnav M A <vaishnav@beagleboard.org>
    853d3461