Problems using Grove Pi+ on Raspberry Pi 4

First of all, here is my system information:

========
uname -a

Linux raspi402 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux

====
lshw

raspi402
description: ARMv7 Processor rev 3 (v7l)
product: Raspberry Pi 4 Model B Rev 1.4
width: 32 bits
capabilities: smp
*-core
description: Motherboard
physical id: 0
*-cpu:0
description: CPU
product: cpu
physical id: 1
bus info: cpu@0
size: 1500MHz
capacity: 1500MHz
capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
*-cpu:1
description: CPU
product: cpu
physical id: 2
bus info: cpu@1
size: 1500MHz
capacity: 1500MHz
capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
*-cpu:2
description: CPU
product: cpu
physical id: 3
bus info: cpu@2
size: 1500MHz
capacity: 1500MHz
capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
*-cpu:3
description: CPU
product: cpu
physical id: 4
bus info: cpu@3
size: 1500MHz
capacity: 1500MHz
capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
*-memory
description: System memory
physical id: 5
size: 7875MiB
*-pci
description: PCI bridge
product: Broadcom Limited
vendor: Broadcom Limited
physical id: 0
bus info: pci@0000:00:00.0
version: 10
width: 32 bits
clock: 33MHz
capabilities: pci pm pciexpress normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:58 memory:600000000-6000fffff
*-usb
description: USB controller
product: VL805 USB 3.0 Host Controller
vendor: VIA Technologies, Inc.
physical id: 0
bus info: pci@0000:01:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress xhci bus_master cap_list
configuration: driver=xhci_hcd latency=0
resources: irq:59 memory:600000000-600000fff
*-usbhost:0
product: xHCI Host Controller
vendor: Linux 5.4.51-v7l+ xhci-hcd
physical id: 0
bus info: usb@1
logical name: usb1
version: 5.04
capabilities: usb-2.00
configuration: driver=hub slots=1 speed=480Mbit/s
*-usb
description: USB hub
product: USB2.0 Hub
vendor: VIA Labs, Inc.
physical id: 1
bus info: usb@1:1
version: 4.21
capabilities: usb-2.10
configuration: driver=hub maxpower=100mA slots=4 speed=480Mbit/s
*-usbhost:1
product: xHCI Host Controller
vendor: Linux 5.4.51-v7l+ xhci-hcd
physical id: 1
bus info: usb@2
logical name: usb2
version: 5.04
capabilities: usb-3.00
configuration: driver=hub slots=4 speed=5000Mbit/s
*-network
description: Ethernet interface
physical id: 1
logical name: eth0
serial: dc:a6:32:c2:2b:89
size: 1Gbit/s
capacity: 1Gbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=bcmgenet driverversion=v2.0 duplex=full ip=192.168.178.177 link=yes multicast=yes port=MII speed=1Gbit/s

cat /boot/config.txt

disable_overscan=1
dtparam=i2c_arm=on
dtparam=spi=on
dtoverlay=spi-bcm2708
dtparam=audio=on
[pi4]
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
gpio=8=op,dh
dtparam=i2c1=on
dtoverlay=w1-gpio
enable_uart=1
dtparam=i2c1=on
dtparam=i2c_arm=on

I installed the drivers & resources via “curl -kL dexterindustries.com/update_gopigo | bash”. I connected a Grove LED to Port D4 for testing, and the LED blinked as expected when running the suitable python script. Then I connected an Seeed air quaity sensor, but the test faild. No data was presended by the python script - the script hang up.

Here is the summary of the Grove Pi troubleshooting script:

==============================
GrovePi Troubleshooting Script

Check space left

Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf
/dev/root 29G 6,3G 22G 23% /
devtmpfs 3,8G 0 3,8G 0% /dev
tmpfs 3,9G 0 3,9G 0% /dev/shm
tmpfs 3,9G 289M 3,6G 8% /run
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 54M 199M 22% /boot
tmpfs 788M 4,0K 788M 1% /run/user/1000

Check for dependencies

python 2.7.16-1 install ok installed
python-pip 18.1-5+rpt1 install ok installed
git 1:2.20.1-2+deb10u3 install ok installed
libi2c-dev 4.1-1 install ok installed
python-serial 3.4-4 install ok installed
python-rpi.gpio 0.7.0-0.1~bpo10+1 install ok installed
i2c-tools 4.1-1 install ok installed
python-smbus 4.1-1 install ok installed
dpkg-query: Kein Paket gefunden, das auf arduino passt
dpkg-query: Kein Paket gefunden, das auf minicom passt
scratch 1.4.0.6~dfsg1-6 install ok installed

find: ‘/home/pi/thinclient_drives’: Keine Berechtigung
find: ‘/run/user/1000/gvfs’: Keine Berechtigung
wiringPi Not Found (ERR)
find: ‘/home/pi/thinclient_drives’: Keine Berechtigung
find: ‘/run/user/1000/gvfs’: Keine Berechtigung
I2C still in blacklist (ERR)
SPI still in blacklist (ERR)

Check for addition in /modules

I2C-dev already there
i2c-bcm2708 already there
spi-dev already there

Hardware revision

gpio version: 2.50
Copyright © 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
Type: Unknown17, Revision: 04, Memory: 0MB, Maker: Sony

  • Device tree is enabled.
    *–> Raspberry Pi 4 Model B Rev 1.4
  • This Raspberry Pi supports user-level GPIO access.

Check the /dev folder

i2c-1
spidev0.0
spidev0.1
ttyAMA0

USB device status

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M

Raspbian for Robots Version

cat: /home/pi/di_update/Raspbian_For_Robots/Version: Datei oder Verzeichnis nicht gefunden

Hostname

raspi402

Checking for Atmega chip

avrdude: Version 5.10, compiled on Jun 18 2012 at 12:38:29
Copyright © 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright © 2007-2009 Joerg Wunsch

     System wide configuration file is "/etc/avrdude.conf"
     User configuration file is "/home/pi/.avrduderc"
     User configuration file does not exist or is not a regular file, skipping

     Using Port                    : unknown
     Using Programmer              : gpio

gpio/direction: No such file or directory

avrdude done. Thank you.

Checking I2C bus for devices

Checking I2C bus 0

Error: Could not open file /dev/i2c-0' or /dev/i2c/0’: No such file or directory

Checking I2C bus 1

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: – 04 – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --

Checking for firmware version

No further data was in the output of that script. The problems I recognized:

dpkg-query: Kein Paket gefunden, das auf arduino passt (No package found that fits on arduino)
dpkg-query: Kein Paket gefunden, das auf minicom passt (No package found that fits on arduino)
find: ‘/run/user/1000/gvfs’: Keine Berechtigung (No authorization)
wiringPi Not Found (ERR)
find: ‘/run/user/1000/gvfs’: Keine Berechtigung (No authorization)
I2C still in blacklist (ERR)
SPI still in blacklist (ERR)
gpio/direction: No such file or directory
Checking for firmware version -> no output

What can I do the system works correctly?

(Disclaimer - I don’t know anything)

You did a GoPiGo3 for GrovePi?

You have a “pi” user?

Did you also do the GrovePi update (as the pi user)?

curl -kL dexterindustries.com/update_grovepi | bash