Jump to content

Recommended Posts

Posted

Hi guys,

 

I am new here. I bought a NanoPi Neo (H3). I am new to Armbian, but not new to Debian. The NanoHat OLED works fine with UbuntuCore 16.04 and kernel 4.14. Now I installed a new microSD card with latest Armbian Bullseye. But the NanoHat doesn't work.

 

Armbian is up-to-date:

 

uname -a
Linux nanopineo 5.15.48-sunxi #22.05.3 SMP Wed Jun 22 07:35:10 UTC 2022 armv7l GNU/Linux

 

cat /proc/cpuinfo
processor	: 0
model name	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 48.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 5

processor	: 1
model name	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 48.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 5

processor	: 2
model name	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 48.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 5

processor	: 3
model name	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 48.00
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 5

Hardware	: Allwinner sun8i Family
Revision	: 0000
Serial		: 02c000816978def6

 

I followed the installation instructions: here for Armbian Stretch and it didn't work. After that I tried the installation instructions for Armbian Buster, but it also doesn't work. In both cases the NanoPi rebooted automatically and I didn't see any issues while the script was executed.

 

sudo -H ./install-compat.sh                                                                                                                                            <master>

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for xxxxxxx: 

Welcome to NanoHatOLED Installer.

Requirements:
1) Must be connected to the internet
2) This script must be run as root user

Steps:
Installs package dependencies:
  - python3       interactive high-level object-oriented language, python3 version
  - BakeBit       an open source platform for connecting BakeBit Sensors to the Pi


Checking Internet Connectivity...
=================================
Connected

Checking User ID...
===================
root

Checking for Updates...
=======================
Hit:1 http://deb.debian.org/debian bullseye InRelease
Get:2 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]                                                                                              
Get:3 http://deb.debian.org/debian bullseye-backports InRelease [44.2 kB]                                                                                            
Get:4 http://security.debian.org bullseye-security InRelease [44.1 kB]                                                                                               
Hit:6 https://itai-nelken.github.io/weekly-box86-debs/debian  InRelease                                                                                              
Hit:7 http://deb.volian.org/volian scar InRelease                                  
Hit:5 http://mirrors.dotsrc.org/armbian-apt bullseye InRelease
Get:8 http://security.debian.org bullseye-security/main armhf Packages [205 kB]
Fetched 333 kB in 5s (64.8 kB/s) 
Reading package lists... Done

Installing Dependencies
=======================
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gcc is already the newest version (4:10.2.1-1).
gcc set to manually installed.
python3 is already the newest version (3.9.2-3).
python3 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Dependencies installed

Compiling with GCC ...
=======================
Compiled NanoHatOLED
Make NanoHatOLED autostart.
Submodule 'BakeBit' (https://github.com/friendlyarm/BakeBit) registered for path 'BakeBit'
Cloning into '/home/xxxxxxx/NanoHatOLED/BakeBit'...
Submodule path 'BakeBit': checked out 'e563636db54d50769d7feab2ecac8d94f9566a78'

Welcome to BakeBit Installer.

Requirements:
1) Must be connected to the internet
2) This script must be run as root user
 
Steps:
Installs package dependencies:
   - i2c-tools        This Python module allows SMBus access through the I2C /dev
   - libi2c-dev       userspace I2C programming library development files
   - minicom          friendly menu driven serial communication program
   - git              fast, scalable, distributed revision control system
   - python3          interactive high-level object-oriented language, Python3 version
   - python3-dev      header files and a static library for Python3
   - python3-pip      alternative Python3 package installer
   - python3-serial   pyserial - module encapsulating access for the serial port
   - python3-psutil   a cross-platform process and system utilities module for Python3
   - python3-pil      Python Imaging Library (Python3)
   - WiringNP         a GPIO access library for NanoPi NEO/NEO2

 NanoPi will reboot after completion.


Checking Internet Connectivity...
=================================
Connected

Checking User ID...
===================

Checking for Updates...
=======================
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org bullseye-security InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease                                                                        
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease                                                                      
Hit:6 https://itai-nelken.github.io/weekly-box86-debs/debian  InRelease                                                              
Hit:7 http://deb.volian.org/volian scar InRelease
Hit:5 http://mirrors.dotsrc.org/armbian-apt bullseye InRelease
Reading package lists... Done

Installing Dependencies
=======================
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.30.2-1).
i2c-tools is already the newest version (4.2-1+b1).
Recommended packages:
  lrzsz
The following NEW packages will be installed:
  libi2c-dev minicom
0 upgraded, 2 newly installed, 0 to remove and 12 not upgraded.
Need to get 291 kB of archives.
After this operation, 1,029 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main armhf libi2c-dev armhf 4.2-1+b1 [13.0 kB]
Get:2 http://deb.debian.org/debian bullseye/main armhf minicom armhf 2.8-2 [278 kB]
Fetched 291 kB in 0s (2,303 kB/s)
Selecting previously unselected package libi2c-dev.
(Reading database ... 40826 files and directories currently installed.)
Preparing to unpack .../libi2c-dev_4.2-1+b1_armhf.deb ...
Unpacking libi2c-dev (4.2-1+b1) ...
Selecting previously unselected package minicom.
Preparing to unpack .../minicom_2.8-2_armhf.deb ...
Unpacking minicom (2.8-2) ...
Setting up libi2c-dev (4.2-1+b1) ...
Setting up minicom (2.8-2) ...
Processing triggers for man-db (2.9.4-2) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3 is already the newest version (3.9.2-3).
The following additional packages will be installed:
  libdeflate0 libexpat1-dev libfreetype6 libimagequant0 libjbig0 libjpeg62-turbo libjs-jquery libjs-sphinxdoc libjs-underscore liblcms2-2 libpython3-dev libpython3.9 libpython3.9-dev libtiff5 libwebp6 libwebpdemux2 libwebpmux3 libxau6 libxcb1 libxdmcp6 mailcap mime-support
  python-pip-whl python3-setuptools python3-wheel python3.9-dev zlib1g-dev
Suggested packages:
  liblcms2-utils python-pil-doc python3-pil-dbg python-psutil-doc python3-wxgtk3.0 | python3-wxgtk python-setuptools-doc
Recommended packages:
  javascript-common python3-olefile
The following NEW packages will be installed:
  libdeflate0 libexpat1-dev libfreetype6 libimagequant0 libjbig0 libjpeg62-turbo libjs-jquery libjs-sphinxdoc libjs-underscore liblcms2-2 libpython3-dev libpython3.9 libpython3.9-dev libtiff5 libwebp6 libwebpdemux2 libwebpmux3 libxau6 libxcb1 libxdmcp6 mailcap mime-support
  python-pip-whl python3-dev python3-pil python3-pip python3-psutil python3-serial python3-setuptools python3-wheel python3.9-dev zlib1g-dev
0 upgraded, 32 newly installed, 0 to remove and 12 not upgraded.
Need to get 11.0 MB of archives.
After this operation, 30.4 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main armhf mailcap all 3.69 [31.7 kB]
Get:2 http://security.debian.org bullseye-security/main armhf libtiff5 armhf 4.2.0-1+deb11u1 [272 kB]
Get:3 http://deb.debian.org/debian bullseye/main armhf mime-support all 3.66 [10.9 kB]
Get:4 http://deb.debian.org/debian bullseye/main armhf libdeflate0 armhf 1.7-1 [43.1 kB]
Get:5 http://deb.debian.org/debian bullseye/main armhf libexpat1-dev armhf 2.2.10-2+deb11u3 [126 kB]
Get:6 http://security.debian.org bullseye-security/main armhf zlib1g-dev armhf 1:1.2.11.dfsg-2+deb11u1 [184 kB]
Get:7 http://deb.debian.org/debian bullseye/main armhf libfreetype6 armhf 2.10.4+dfsg-1 [357 kB]
Get:8 http://deb.debian.org/debian bullseye/main armhf libimagequant0 armhf 2.12.2-1.1 [27.2 kB]
Get:9 http://deb.debian.org/debian bullseye/main armhf libjbig0 armhf 2.1-3.1+b2 [28.4 kB]
Get:10 http://deb.debian.org/debian bullseye/main armhf libjpeg62-turbo armhf 1:2.0.6-4 [123 kB]
Get:11 http://deb.debian.org/debian bullseye/main armhf libjs-jquery all 3.5.1+dfsg+~3.5.5-7 [315 kB]
Get:12 http://deb.debian.org/debian bullseye/main armhf libjs-underscore all 1.9.1~dfsg-3 [100 kB]
Get:13 http://deb.debian.org/debian bullseye/main armhf libjs-sphinxdoc all 3.4.3-2 [127 kB]
Get:14 http://deb.debian.org/debian bullseye/main armhf liblcms2-2 armhf 2.12~rc1-2 [123 kB]
Get:15 http://deb.debian.org/debian bullseye/main armhf libpython3.9 armhf 3.9.2-1 [1,447 kB]
Get:16 http://deb.debian.org/debian bullseye/main armhf libpython3.9-dev armhf 3.9.2-1 [3,160 kB]
Get:17 http://deb.debian.org/debian bullseye/main armhf libpython3-dev armhf 3.9.2-3 [21.7 kB]
Get:18 http://deb.debian.org/debian bullseye/main armhf libwebp6 armhf 0.6.1-2.1 [226 kB]
Get:19 http://deb.debian.org/debian bullseye/main armhf libwebpdemux2 armhf 0.6.1-2.1 [86.7 kB]
Get:20 http://deb.debian.org/debian bullseye/main armhf libwebpmux3 armhf 0.6.1-2.1 [94.2 kB]
Get:21 http://deb.debian.org/debian bullseye/main armhf libxau6 armhf 1:1.0.9-1 [19.0 kB]
Get:22 http://deb.debian.org/debian bullseye/main armhf libxdmcp6 armhf 1:1.1.2-3 [24.9 kB]
Get:23 http://deb.debian.org/debian bullseye/main armhf libxcb1 armhf 1.14-3 [136 kB]
Get:24 http://deb.debian.org/debian bullseye/main armhf python-pip-whl all 20.3.4-4+deb11u1 [1,948 kB]
Get:25 http://deb.debian.org/debian bullseye/main armhf python3.9-dev armhf 3.9.2-1 [515 kB]
Get:26 http://deb.debian.org/debian bullseye/main armhf python3-dev armhf 3.9.2-3 [24.8 kB]
Get:27 http://deb.debian.org/debian bullseye/main armhf python3-pil armhf 8.1.2+dfsg-0.3+deb11u1 [414 kB]
Get:28 http://deb.debian.org/debian bullseye/main armhf python3-setuptools all 52.0.0-4 [366 kB]
Get:29 http://deb.debian.org/debian bullseye/main armhf python3-wheel all 0.34.2-1 [24.0 kB]
Get:30 http://deb.debian.org/debian bullseye/main armhf python3-pip all 20.3.4-4+deb11u1 [337 kB]
Get:31 http://deb.debian.org/debian bullseye/main armhf python3-psutil armhf 5.8.0-1 [183 kB]
Get:32 http://deb.debian.org/debian bullseye/main armhf python3-serial all 3.5~b0-1 [88.8 kB]
Fetched 11.0 MB in 1s (8,095 kB/s)        
Extracting templates from packages: 100%
Selecting previously unselected package mailcap.
(Reading database ... 40912 files and directories currently installed.)
Preparing to unpack .../00-mailcap_3.69_all.deb ...
Unpacking mailcap (3.69) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../01-mime-support_3.66_all.deb ...
Unpacking mime-support (3.66) ...
Selecting previously unselected package libdeflate0:armhf.
Preparing to unpack .../02-libdeflate0_1.7-1_armhf.deb ...
Unpacking libdeflate0:armhf (1.7-1) ...
Selecting previously unselected package libexpat1-dev:armhf.
Preparing to unpack .../03-libexpat1-dev_2.2.10-2+deb11u3_armhf.deb ...
Unpacking libexpat1-dev:armhf (2.2.10-2+deb11u3) ...
Selecting previously unselected package libfreetype6:armhf.
Preparing to unpack .../04-libfreetype6_2.10.4+dfsg-1_armhf.deb ...
Unpacking libfreetype6:armhf (2.10.4+dfsg-1) ...
Selecting previously unselected package libimagequant0:armhf.
Preparing to unpack .../05-libimagequant0_2.12.2-1.1_armhf.deb ...
Unpacking libimagequant0:armhf (2.12.2-1.1) ...
Selecting previously unselected package libjbig0:armhf.
Preparing to unpack .../06-libjbig0_2.1-3.1+b2_armhf.deb ...
Unpacking libjbig0:armhf (2.1-3.1+b2) ...
Selecting previously unselected package libjpeg62-turbo:armhf.
Preparing to unpack .../07-libjpeg62-turbo_1%3a2.0.6-4_armhf.deb ...
Unpacking libjpeg62-turbo:armhf (1:2.0.6-4) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../08-libjs-jquery_3.5.1+dfsg+~3.5.5-7_all.deb ...
Unpacking libjs-jquery (3.5.1+dfsg+~3.5.5-7) ...
Selecting previously unselected package libjs-underscore.
Preparing to unpack .../09-libjs-underscore_1.9.1~dfsg-3_all.deb ...
Unpacking libjs-underscore (1.9.1~dfsg-3) ...
Selecting previously unselected package libjs-sphinxdoc.
Preparing to unpack .../10-libjs-sphinxdoc_3.4.3-2_all.deb ...
Unpacking libjs-sphinxdoc (3.4.3-2) ...
Selecting previously unselected package liblcms2-2:armhf.
Preparing to unpack .../11-liblcms2-2_2.12~rc1-2_armhf.deb ...
Unpacking liblcms2-2:armhf (2.12~rc1-2) ...
Selecting previously unselected package libpython3.9:armhf.
Preparing to unpack .../12-libpython3.9_3.9.2-1_armhf.deb ...
Unpacking libpython3.9:armhf (3.9.2-1) ...
Selecting previously unselected package libpython3.9-dev:armhf.
Preparing to unpack .../13-libpython3.9-dev_3.9.2-1_armhf.deb ...
Unpacking libpython3.9-dev:armhf (3.9.2-1) ...
Selecting previously unselected package libpython3-dev:armhf.
Preparing to unpack .../14-libpython3-dev_3.9.2-3_armhf.deb ...
Unpacking libpython3-dev:armhf (3.9.2-3) ...
Selecting previously unselected package libwebp6:armhf.
Preparing to unpack .../15-libwebp6_0.6.1-2.1_armhf.deb ...
Unpacking libwebp6:armhf (0.6.1-2.1) ...
Selecting previously unselected package libtiff5:armhf.
Preparing to unpack .../16-libtiff5_4.2.0-1+deb11u1_armhf.deb ...
Unpacking libtiff5:armhf (4.2.0-1+deb11u1) ...
Selecting previously unselected package libwebpdemux2:armhf.
Preparing to unpack .../17-libwebpdemux2_0.6.1-2.1_armhf.deb ...
Unpacking libwebpdemux2:armhf (0.6.1-2.1) ...
Selecting previously unselected package libwebpmux3:armhf.
Preparing to unpack .../18-libwebpmux3_0.6.1-2.1_armhf.deb ...
Unpacking libwebpmux3:armhf (0.6.1-2.1) ...
Selecting previously unselected package libxau6:armhf.
Preparing to unpack .../19-libxau6_1%3a1.0.9-1_armhf.deb ...
Unpacking libxau6:armhf (1:1.0.9-1) ...
Selecting previously unselected package libxdmcp6:armhf.
Preparing to unpack .../20-libxdmcp6_1%3a1.1.2-3_armhf.deb ...
Unpacking libxdmcp6:armhf (1:1.1.2-3) ...
Selecting previously unselected package libxcb1:armhf.
Preparing to unpack .../21-libxcb1_1.14-3_armhf.deb ...
Unpacking libxcb1:armhf (1.14-3) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../22-python-pip-whl_20.3.4-4+deb11u1_all.deb ...
Unpacking python-pip-whl (20.3.4-4+deb11u1) ...
Selecting previously unselected package zlib1g-dev:armhf.
Preparing to unpack .../23-zlib1g-dev_1%3a1.2.11.dfsg-2+deb11u1_armhf.deb ...
Unpacking zlib1g-dev:armhf (1:1.2.11.dfsg-2+deb11u1) ...
Selecting previously unselected package python3.9-dev.
Preparing to unpack .../24-python3.9-dev_3.9.2-1_armhf.deb ...
Unpacking python3.9-dev (3.9.2-1) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../25-python3-dev_3.9.2-3_armhf.deb ...
Unpacking python3-dev (3.9.2-3) ...
Selecting previously unselected package python3-pil:armhf.
Preparing to unpack .../26-python3-pil_8.1.2+dfsg-0.3+deb11u1_armhf.deb ...
Unpacking python3-pil:armhf (8.1.2+dfsg-0.3+deb11u1) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../27-python3-setuptools_52.0.0-4_all.deb ...
Unpacking python3-setuptools (52.0.0-4) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../28-python3-wheel_0.34.2-1_all.deb ...
Unpacking python3-wheel (0.34.2-1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../29-python3-pip_20.3.4-4+deb11u1_all.deb ...
Unpacking python3-pip (20.3.4-4+deb11u1) ...
Selecting previously unselected package python3-psutil.
Preparing to unpack .../30-python3-psutil_5.8.0-1_armhf.deb ...
Unpacking python3-psutil (5.8.0-1) ...
Selecting previously unselected package python3-serial.
Preparing to unpack .../31-python3-serial_3.5~b0-1_all.deb ...
Unpacking python3-serial (3.5~b0-1) ...
Setting up liblcms2-2:armhf (2.12~rc1-2) ...
Setting up libxau6:armhf (1:1.0.9-1) ...
Setting up libxdmcp6:armhf (1:1.1.2-3) ...
Setting up libxcb1:armhf (1.14-3) ...
Setting up python3-setuptools (52.0.0-4) ...
Setting up libdeflate0:armhf (1.7-1) ...
Setting up python3-wheel (0.34.2-1) ...
Setting up libjbig0:armhf (2.1-3.1+b2) ...
Setting up python3-psutil (5.8.0-1) ...
Setting up python3-serial (3.5~b0-1) ...
Setting up libpython3.9:armhf (3.9.2-1) ...
Setting up libexpat1-dev:armhf (2.2.10-2+deb11u3) ...
Setting up libjpeg62-turbo:armhf (1:2.0.6-4) ...
Setting up libfreetype6:armhf (2.10.4+dfsg-1) ...
Setting up libimagequant0:armhf (2.12.2-1.1) ...
Setting up libwebp6:armhf (0.6.1-2.1) ...
Setting up zlib1g-dev:armhf (1:1.2.11.dfsg-2+deb11u1) ...
Setting up python-pip-whl (20.3.4-4+deb11u1) ...
Setting up libtiff5:armhf (4.2.0-1+deb11u1) ...
Setting up libjs-jquery (3.5.1+dfsg+~3.5.5-7) ...
Setting up libwebpmux3:armhf (0.6.1-2.1) ...
Setting up mailcap (3.69) ...
Setting up libjs-underscore (1.9.1~dfsg-3) ...
Setting up mime-support (3.66) ...
Setting up libwebpdemux2:armhf (0.6.1-2.1) ...
Setting up libpython3.9-dev:armhf (3.9.2-1) ...
Setting up python3-pil:armhf (8.1.2+dfsg-0.3+deb11u1) ...
Setting up python3-pip (20.3.4-4+deb11u1) ...
Setting up libjs-sphinxdoc (3.4.3-2) ...
Setting up python3.9-dev (3.9.2-1) ...
Setting up libpython3-dev:armhf (3.9.2-3) ...
Setting up python3-dev (3.9.2-3) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+deb11u3) ...
Collecting smbus
  Downloading smbus-1.1.post2.tar.gz (104 kB)
     |████████████████████████████████| 104 kB 3.9 MB/s 
Building wheels for collected packages: smbus
  Building wheel for smbus (setup.py) ... done
  Created wheel for smbus: filename=smbus-1.1.post2-cp39-cp39-linux_armv7l.whl size=39067 sha256=a5dcd18670a0b7054728f963224ad8db4e975d079556266cad9d6c6491f1307c
  Stored in directory: /root/.cache/pip/wheels/27/6b/5f/d61caec49a6f3347a083b3e43fa397c353e086e081029f174d
Successfully built smbus
Installing collected packages: smbus
Successfully installed smbus-1.1.post2
Collecting RPi.GPIO
  Downloading RPi.GPIO-0.7.1.tar.gz (29 kB)
Building wheels for collected packages: RPi.GPIO
  Building wheel for RPi.GPIO (setup.py) ... done
  Created wheel for RPi.GPIO: filename=RPi.GPIO-0.7.1-cp39-cp39-linux_armv7l.whl size=68586 sha256=462588a0c4dfeaadec42e809fcb64608b9faaa4b4f3e06308c9523587b51d4d9
  Stored in directory: /root/.cache/pip/wheels/b4/65/39/789a186465c4823ffa930b950af77c86f1494adf1d8e21ac1a
Successfully built RPi.GPIO
Installing collected packages: RPi.GPIO
Successfully installed RPi.GPIO-0.7.1
Dependencies installed

Installing WiringNP...
=======================
Cloning into 'WiringNP'...
remote: Enumerating objects: 167, done.
remote: Counting objects: 100% (167/167), done.
remote: Compressing objects: 100% (92/92), done.
remote: Total 167 (delta 79), reused 150 (delta 75), pack-reused 0
Receiving objects: 100% (167/167), 186.23 KiB | 2.70 MiB/s, done.
Resolving deltas: 100% (79/79), done.
/home/xxxxxxx/NanoHatOLED/BakeBit/WiringNP /home/xxxxxxx/NanoHatOLED/BakeBit
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
Already up to date.
wiringPi Build script
=====================


WiringPi Library
[UnInstall]
[Compile] wiringPi.c
[Compile] wiringSerial.c
[Compile] wiringShift.c
[Compile] piHiPri.c
[Compile] piThread.c
[Compile] wiringPiSPI.c
wiringPi.c: In function ‘waitForInterrupt’:
wiringPi.c:2476:9: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
 2476 |         return;
      |         ^~~~~~
wiringPi.c:2469:5: note: declared here
 2469 | int waitForInterrupt(int pin, int mS) {
      |     ^~~~~~~~~~~~~~~~
[Compile] wiringPiI2C.c
[Compile] softPwm.c
[Compile] softTone.c
[Compile] softServo.c
[Compile] mcp23008.c
[Compile] mcp23016.c
[Compile] mcp23017.c
[Compile] mcp23s08.c
[Compile] mcp23s17.c
[Compile] sr595.c
[Compile] pcf8574.c
[Compile] pcf8591.c
[Compile] mcp3002.c
[Compile] mcp3004.c
[Compile] mcp4802.c
[Compile] mcp3422.c
[Compile] max31855.c
[Compile] max5322.c
[Compile] sn3218.c
[Compile] drcSerial.c
[Compile] boardtype_friendlyelec.c
boardtype_friendlyelec.c: In function ‘getFieldValueInCpuInfo’:
boardtype_friendlyelec.c:138:44: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  138 |                 GetKeyValue(isGotHardware, p, "Hardware", hardware, hardwareMaxLen);
      |                                            ^
boardtype_friendlyelec.c:127:25: note: in definition of macro ‘GetKeyValue’
  127 |                     if (valP=strtok(line2, ":")) { \
      |                         ^~~~
boardtype_friendlyelec.c:138:44: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  138 |                 GetKeyValue(isGotHardware, p, "Hardware", hardware, hardwareMaxLen);
      |                                            ^
boardtype_friendlyelec.c:129:33: note: in definition of macro ‘GetKeyValue’
  129 |                             if (valP=strtok(0, ":")) { \
      |                                 ^~~~
boardtype_friendlyelec.c:139:44: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  139 |                 GetKeyValue(isGotRevision, p2, "Revision", revision, revisionMaxLen);
      |                                            ^~
boardtype_friendlyelec.c:127:25: note: in definition of macro ‘GetKeyValue’
  127 |                     if (valP=strtok(line2, ":")) { \
      |                         ^~~~
boardtype_friendlyelec.c:139:44: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  139 |                 GetKeyValue(isGotRevision, p2, "Revision", revision, revisionMaxLen);
      |                                            ^~
boardtype_friendlyelec.c:129:33: note: in definition of macro ‘GetKeyValue’
  129 |                             if (valP=strtok(0, ":")) { \
      |                                 ^~~~
boardtype_friendlyelec.c: In function ‘getAllwinnerBoardID’:
boardtype_friendlyelec.c:183:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  183 |                 if (p = strtok(line, ":")) {
      |                     ^
boardtype_friendlyelec.c:186:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  186 |                         if (p = strtok(0, ":")) {
      |                             ^
boardtype_friendlyelec.c: In function ‘getBoardType’:
boardtype_friendlyelec.c:278:27: warning: ‘%s’ directive writing up to 254 bytes into a region of size 253 [-Wformat-overflow=]
  278 |     sprintf(revision2, "0x%s", revision);
      |                           ^~   ~~~~~~~~
boardtype_friendlyelec.c:278:5: note: ‘sprintf’ output between 3 and 257 bytes into a destination of size 255
  278 |     sprintf(revision2, "0x%s", revision);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Link (Dynamic)]
[Install Headers]
[Install Dynamic Lib]

WiringPi Devices Library
[UnInstall]
[Compile] ds1302.c
[Compile] maxdetect.c
[Compile] piNes.c
[Compile] gertboard.c
[Compile] piFace.c
[Compile] lcd128x64.c
[Compile] lcd.c
[Compile] piGlow.c
[Link (Dynamic)]
[Install Headers]
[Install Dynamic Lib]

GPIO Utility
[Compile] gpio.c
[Compile] extensions.c
[Compile] readall.c
[Compile] pins.c
readall.c: In function ‘readallPhys’:
readall.c:649:16: warning: implicit declaration of function ‘getAltSilence’ [-Wimplicit-function-declaration]
  649 |      int alt = getAltSilence (pin);
      |                ^~~~~~~~~~~~~
readall.c:656:23: warning: implicit declaration of function ‘digitalReadSilence’ [-Wimplicit-function-declaration]
  656 |      printf (" | %d", digitalReadSilence (pin)) ;
      |                       ^~~~~~~~~~~~~~~~~~
[Link]
[Install]

All Done.

NOTE: To compile programs with wiringNP, you need to add:
    -lwiringPi
  to your compile line(s).

/home/xxxxxxx/NanoHatOLED/BakeBit
WiringNP Installed
Adding user `root' to group `i2c' ...
Adding user root to group i2c
Done.
 
Making libraries global...
==========================
 
Please restart to implement changes!
  _____  ______  _____ _______       _____ _______ 
 |  __ \|  ____|/ ____|__   __|/\   |  __ \__   __|
 | |__) | |__  | (___    | |  /  \  | |__) | | |   
 |  _  /|  __|  \___ \   | | / /\ \ |  _  /  | |   
 | | \ \| |____ ____) |  | |/ ____ \| | \ \  | |   
 |_|  \_\______|_____/   |_/_/    \_\_|  \_\ |_|   
 
Please restart to implement changes!
To Restart type sudo reboot
To finish changes, we will reboot the Pi.
Pi must reboot for changes and updates to take effect.
If you need to abort the reboot, press Ctrl+C.  Otherwise, reboot!
Rebooting in 5 seconds!
Rebooting in 4 seconds!
Rebooting in 3 seconds!
Rebooting in 2 seconds!
Rebooting in 1 seconds!
Rebooting now!  
Connection to x.x.x.x closed by remote host.
Connection to x.x.x. closed.

 

The OLED stays black.

 

I don't know, if the following information is relevant:

 

gpio readall
piBoardRev: Unable to determine board revision from /proc/cpuinfo
 -> Is not NanoPi based board. 
 ->  You may want to check:
 ->  http://www.lemaker.org/
open /sys/class/sunxi_info/sys_info failed.# 

 

Pressing the 3 buttons/knobs looks good:

 

cat /tmp/nanohat-oled.log
k1 events: 0
k2 events: 0
k3 events: 0
k1 events: 0
k2 events: 0
k3 events: 0

 

The more often I press the knobs, the more events I see here:

 

cat /tmp/nanohat-oled.log
k1 events: 0
k2 events: 0
k3 events: 0
k3 events: 1
found pid 569
found pid 686
found python pid: 569
found python pid: 686
k2 events: 1
k1 events: 1
k2 events: 1
k1 events: 1
k2 events: 1
k3 events: 1

 

This at least in my opinion also looks good:

 

ls -l /sys/class/gpio
total 0
--w--w---- 1 root dialout 4096 Jul  5 00:51 export
lrwxrwxrwx 1 root root       0 Jul  5 00:48 gpio0 -> ../../devices/platform/soc/1c20800.pinctrl/gpiochip0/gpio/gpio0
lrwxrwxrwx 1 root root       0 Jul  5 00:48 gpio2 -> ../../devices/platform/soc/1c20800.pinctrl/gpiochip0/gpio/gpio2
lrwxrwxrwx 1 root root       0 Jul  5 00:48 gpio3 -> ../../devices/platform/soc/1c20800.pinctrl/gpiochip0/gpio/gpio3
lrwxrwxrwx 1 root root       0 Jul  5 00:48 gpiochip0 -> ../../devices/platform/soc/1c20800.pinctrl/gpio/gpiochip0
lrwxrwxrwx 1 root root       0 Jul  5 00:48 gpiochip352 -> ../../devices/platform/soc/1f02c00.pinctrl/gpio/gpiochip352
--w--w---- 1 root dialout 4096 Jul  5 00:48 unexport

 

So the buttons work, but the display stays black.

 

What can I do to analyse the issue? Any idea? What am I missing?

 

Thanks Hoppel

Posted

Hi again,

 

I found the solution in this thread.

 

@crouchingtigerhiddenadam released some code for the NanoHat OLED display here on github. His setup procedure didn't work out-of-the-box with the latest Armbian 22.05.04 Bullseye (5.15.48), but I got it to work and now its better than the original.

 

Features of his code:

  • screen turns off after 15 seconds of inactivity to reduce burn-in
  • variable update rates
  • armbian splash screen
  • date/time screen
  • computer stats screen
  • shutdown screen.

I wrote down all my findings to get it to work and opened an issue on github to request some changes in his setup guide / howto / readme.md.

 

Have fun!

 

Regards Hoppel

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines