Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post Reply
User avatar
tobetter
Posts: 7750
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1191 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

istanbulls wrote:
Wed Apr 21, 2021 5:14 am
Thanks @tobetter,
I use it with love,
Is there any improvement for homecloud-display.
Do you have an issue with OLED? Not displaying at all or want another features?

User avatar
tobetter
Posts: 7750
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1191 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Wed Apr 21, 2021 6:50 am
Upgraded.
Reboot, command line OK, desktop not
Trying to figure out what went wrong...
Don't you have Desktop UI? Do you use Panfrost?
What do you have with "dpkg -l | grep groovy" ?

User avatar
istanbulls
Posts: 517
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 332 times
Been thanked: 89 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by istanbulls »

tobetter wrote:
Wed Apr 21, 2021 8:44 am
istanbulls wrote:
Wed Apr 21, 2021 5:14 am
Thanks @tobetter,
I use it with love,
Is there any improvement for homecloud-display.
Do you have an issue with OLED? Not displaying at all or want another features?
There was also a problem with 20.10.
I got over the problem at 20.10, installed 20.04 minimal and installed homecloud-display and then upgraded to 20.10, with this method the oled screen worked at 20.10.

I tried the same method in 21.04, it didn't work. I installed 20.04 and then set up homecloud-display it worked, then I upgraded to 21.04 oled screen went off while upgrading.

Code: Select all

n2p@odroid:~$ sudo apt install --reinstall odroid-homecloud-display
[sudo] n2p için parola: 
Paket listeleri okunuyor... Bitti
Bağımlılık ağacı oluşturuluyor... Bitti
Durum bilgisi okunuyor... Bitti               
0 paket yükseltilecek, 0 yeni paket kurulacak, 1 paket yeniden kurulacak, 0 paket kaldırılacak ve 3 paket yükseltilmeyecek.
5.740 B arşiv dosyası indirilecek.
Bu işlem tamamlandıktan sonra 0 B ek disk alanı kullanılacak.
İndir: 1 http://ppa.linuxfactory.or.kr hirsute/main arm64 odroid-homecloud-display arm64 5:0.1+202103120438~hirsute [5.740 B]
2 sn.'de 5.740 B alındı (3.382 B/s)                  
(Veritabanı okunuyor ... 134680 dosya veya dizin kurulu durumda.)
Paket açılacak: .../odroid-homecloud-display_5%3a0.1+202103120438~hirsute_arm64.deb ...
Paket açılıyor: odroid-homecloud-display (5:0.1+202103120438~hirsute) üzerine (5:0.1+202103120438~hirsute) ...
Ayarlanıyor: odroid-homecloud-display (5:0.1+202103120438~hirsute) ...
Collecting luma.core
  Using cached luma.core-2.3.1-py2.py3-none-any.whl (71 kB)
Collecting luma.oled
  Using cached luma.oled-3.8.1-py2.py3-none-any.whl (32 kB)
Collecting luma.lcd
  Using cached luma.lcd-2.9.0-py2.py3-none-any.whl (25 kB)
Requirement already satisfied: pillow>=4.0.0 in /usr/lib/python3/dist-packages (
from luma.core) (8.1.2)
Collecting cbor2
  Using cached cbor2-5.2.0-cp39-cp39-linux_aarch64.whl
Requirement already satisfied: smbus2 in /usr/local/lib/python3.9/dist-packages 
(from luma.core) (0.4.1)
Collecting pyftdi
  Using cached pyftdi-0.52.9-py3-none-any.whl (139 kB)
Requirement already satisfied: spidev in /usr/local/lib/python3.9/dist-packages 
(from luma.core) (3.5)
Collecting deprecated
  Using cached Deprecated-1.2.12-py2.py3-none-any.whl (9.5 kB)
Collecting RPI.GPIO
  Using cached RPi.GPIO-0.7.0.tar.gz (30 kB)
Requirement already satisfied: wrapt<2,>=1.10 in /usr/local/lib/python3.9/dist-p
ackages (from deprecated->luma.core) (1.12.1)
Requirement already satisfied: pyusb>=1.0.0 in /usr/local/lib/python3.9/dist-pac
kages (from pyftdi->luma.core) (1.1.1)
Requirement already satisfied: pyserial>=3.0 in /usr/local/lib/python3.9/dist-pa
ckages (from pyftdi->luma.core) (3.5)
Building wheels for collected packages: RPI.GPIO
  Building wheel for RPI.GPIO (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0
] = '"'"'/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/set
up.py'"'"'; __file__='"'"'/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb
884b6ff09f857/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);
code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
 __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-9j359lob
       cwd: /tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/
  Complete output (102 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.9
  creating build/lib.linux-aarch64-3.9/RPi
  copying RPi/__init__.py -> build/lib.linux-aarch64-3.9/RPi
  creating build/lib.linux-aarch64-3.9/RPi/GPIO
  copying RPi/GPIO/__init__.py -> build/lib.linux-aarch64-3.9/RPi/GPIO
  running build_ext
  building 'RPi._GPIO' extension
  creating build/temp.linux-aarch64-3.9
  creating build/temp.linux-aarch64-3.9/source
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/c_gpio.c -o build/temp.linux-aarch64-3.9/source/c_gpi
o.o
  source/c_gpio.c: In function ‘setup’:
  source/c_gpio.c:130:9: warning: cast from pointer to integer of different size
 [-Wpointer-to-int-cast]
    130 |     if ((uint32_t)gpio_mem % PAGE_SIZE)
        |         ^
  source/c_gpio.c:131:34: warning: cast from pointer to integer of different siz
e [-Wpointer-to-int-cast]
    131 |         gpio_mem += PAGE_SIZE - ((uint32_t)gpio_mem % PAGE_SIZE);
        |                                  ^
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/common.c -o build/temp.linux-aarch64-3.9/source/commo
n.o
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/constants.c -o build/temp.linux-aarch64-3.9/source/co
nstants.o
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/cpuinfo.c -o build/temp.linux-aarch64-3.9/source/cpui
nfo.o
  source/cpuinfo.c: In function ‘get_rpi_info’:
  source/cpuinfo.c:139:28: warning: format ‘%llx’ expects argument of type ‘long
 long unsigned int *’, but argument 3 has type ‘uint64_t *’ {aka ‘long unsigned 
int *’} [-Wformat=]
    139 |       sscanf(revision, "%llx", &rev);
        |                         ~~~^   ~~~~
        |                            |   |
        |                            |   uint64_t * {aka long unsigned int *}
        |                            long long unsigned int *
        |                         %lx
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/event_gpio.c -o build/temp.linux-aarch64-3.9/source/e
vent_gpio.o
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/py_gpio.c -o build/temp.linux-aarch64-3.9/source/py_g
pio.o
  source/py_gpio.c: In function ‘PyInit__GPIO’:
  source/py_gpio.c:1046:4: warning: ‘PyEval_ThreadsInitialized’ is deprecated [-
Wdeprecated-declarations]
   1046 |    if (!PyEval_ThreadsInitialized())
        |    ^~
  In file included from /usr/include/python3.9/Python.h:145,
                   from source/py_gpio.c:23:
  /usr/include/python3.9/ceval.h:129:36: note: declared here
    129 | Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
        |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
  source/py_gpio.c:1047:7: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprec
ated-declarations]
   1047 |       PyEval_InitThreads();
        |       ^~~~~~~~~~~~~~~~~~
  In file included from /usr/include/python3.9/Python.h:145,
                   from source/py_gpio.c:23:
  /usr/include/python3.9/ceval.h:130:37: note: declared here
    130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
        |                                     ^~~~~~~~~~~~~~~~~~
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/py_pwm.c -o build/temp.linux-aarch64-3.9/source/py_pw
m.o
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/soft_pwm.c -o build/temp.linux-aarch64-3.9/source/sof
t_pwm.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-B
symbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,r
elro -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4
=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORT
IFY_SOURCE=2 build/temp.linux-aarch64-3.9/source/c_gpio.o build/temp.linux-aarch
64-3.9/source/common.o build/temp.linux-aarch64-3.9/source/constants.o build/tem
p.linux-aarch64-3.9/source/cpuinfo.o build/temp.linux-aarch64-3.9/source/event_g
pio.o build/temp.linux-aarch64-3.9/source/py_gpio.o build/temp.linux-aarch64-3.9
/source/py_pwm.o build/temp.linux-aarch64-3.9/source/soft_pwm.o -o build/lib.lin
ux-aarch64-3.9/RPi/_GPIO.cpython-39-aarch64-linux-gnu.so
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: multiple 
definition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:4
1: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: multiple 
definition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40
: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: multiple 
definition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: fi
rst defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38: multiple 
definition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h
:38: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: multiple 
definition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37
: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:36: multiple 
definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:36: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:35: multiple 
definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:35: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:34: multiple 
definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:34: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: multiple 
definition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: 
first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: multiple de
finition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: fi
rst defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: multiple de
finition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: 
first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: multiple de
finition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-ins
tall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: firs
t defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38: multiple de
finition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:3
8: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: multiple de
finition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41:
 first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: multiple de
finition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: 
first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:36: multiple de
finition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h
:36: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:34: multiple de
finition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h
:34: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:35: multiple de
finition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h
:35: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:42: multiple
 definition of `both_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants
.h:42: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:41: multiple
 definition of `falling_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/consta
nts.h:41: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:40: multiple
 definition of `rising_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/t
mp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constan
ts.h:40: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:39: multiple
 definition of `pud_down'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.
h:39: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:38: multiple
 definition of `pud_up'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:
38: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:37: multiple
 definition of `pud_off'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h
:37: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:36: multiple
 definition of `bcm'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:36:
 first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:35: multiple
 definition of `board'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:3
5: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:34: multiple
 definition of `unknown'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h
:34: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:33: multiple
 definition of `spi'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:33:
 first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:32: multiple
 definition of `i2c'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:32:
 first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:31: multiple
 definition of `serial'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:
31: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:30: multiple
 definition of `pwm'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:30:
 first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:29: multiple
 definition of `output'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:
29: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:28: multiple
 definition of `input'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:2
8: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:27: multiple
 definition of `low'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:27:
 first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:26: multiple
 definition of `high'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-
install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:26
: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38: multiple def
inition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38
: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/py_pwm.h:23: multiple def
inition of `PWMType'; build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-ins
tall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/py_pwm.h:23: firs
t defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: multiple def
inition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: 
first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: multiple def
inition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-
install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: f
irst defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: multiple def
inition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-inst
all-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: first
 defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: multiple def
inition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-
install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: f
irst defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:36: multiple def
inition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:
36: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:35: multiple def
inition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:
35: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:34: multiple def
inition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:
34: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: multiple def
inition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-in
stall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: fir
st defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/soft_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/soft_pwm.c:28: multiple
 definition of `threads'; build/temp.linux-aarch64-3.9/source/event_gpio.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/event_gpio
.c:60: first defined here
  collect2: error: ld returned 1 exit status
  error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for RPI.GPIO
  Running setup.py clean for RPI.GPIO
Failed to build RPI.GPIO
Installing collected packages: RPI.GPIO, pyftdi, deprecated, cbor2, luma.core, l
uma.oled, luma.lcd
    Running setup.py install for RPI.GPIO ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv
[0] = '"'"'/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/s
etup.py'"'"'; __file__='"'"'/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1b
fb884b6ff09f857/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__
);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(cod
e, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_afqk_4y/install
-record.txt --single-version-externally-managed --compile --install-headers /usr
/local/include/python3.9/RPI.GPIO
         cwd: /tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f85
7/
    Complete output (102 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-aarch64-3.9
    creating build/lib.linux-aarch64-3.9/RPi
    copying RPi/__init__.py -> build/lib.linux-aarch64-3.9/RPi
    creating build/lib.linux-aarch64-3.9/RPi/GPIO
    copying RPi/GPIO/__init__.py -> build/lib.linux-aarch64-3.9/RPi/GPIO
    running build_ext
    building 'RPi._GPIO' extension
    creating build/temp.linux-aarch64-3.9
    creating build/temp.linux-aarch64-3.9/source
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/c_gpio.c -o build/temp.linux-aarch64-3.9/source/c_g
pio.o
    source/c_gpio.c: In function ‘setup’:
    source/c_gpio.c:130:9: warning: cast from pointer to integer of different si
ze [-Wpointer-to-int-cast]
      130 |     if ((uint32_t)gpio_mem % PAGE_SIZE)
          |         ^
    source/c_gpio.c:131:34: warning: cast from pointer to integer of different s
ize [-Wpointer-to-int-cast]
      131 |         gpio_mem += PAGE_SIZE - ((uint32_t)gpio_mem % PAGE_SIZE);
          |                                  ^
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/common.c -o build/temp.linux-aarch64-3.9/source/com
mon.o
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/constants.c -o build/temp.linux-aarch64-3.9/source/
constants.o
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/cpuinfo.c -o build/temp.linux-aarch64-3.9/source/cp
uinfo.o
    source/cpuinfo.c: In function ‘get_rpi_info’:
    source/cpuinfo.c:139:28: warning: format ‘%llx’ expects argument of type ‘lo
ng long unsigned int *’, but argument 3 has type ‘uint64_t *’ {aka ‘long unsigne
d int *’} [-Wformat=]
      139 |       sscanf(revision, "%llx", &rev);
          |                         ~~~^   ~~~~
          |                            |   |
          |                            |   uint64_t * {aka long unsigned int *}
          |                            long long unsigned int *
          |                         %lx
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/event_gpio.c -o build/temp.linux-aarch64-3.9/source
/event_gpio.o
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/py_gpio.c -o build/temp.linux-aarch64-3.9/source/py
_gpio.o
    source/py_gpio.c: In function ‘PyInit__GPIO’:
    source/py_gpio.c:1046:4: warning: ‘PyEval_ThreadsInitialized’ is deprecated 
[-Wdeprecated-declarations]
     1046 |    if (!PyEval_ThreadsInitialized())
          |    ^~
    In file included from /usr/include/python3.9/Python.h:145,
                     from source/py_gpio.c:23:
    /usr/include/python3.9/ceval.h:129:36: note: declared here
      129 | Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
          |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
    source/py_gpio.c:1047:7: warning: ‘PyEval_InitThreads’ is deprecated [-Wdepr
ecated-declarations]
     1047 |       PyEval_InitThreads();
          |       ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/python3.9/Python.h:145,
                     from source/py_gpio.c:23:
    /usr/include/python3.9/ceval.h:130:37: note: declared here
      130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
          |                                     ^~~~~~~~~~~~~~~~~~
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/py_pwm.c -o build/temp.linux-aarch64-3.9/source/py_
pwm.o
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/soft_pwm.c -o build/temp.linux-aarch64-3.9/source/s
oft_pwm.o
    aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,
-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z
,relro -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9
.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FO
RTIFY_SOURCE=2 build/temp.linux-aarch64-3.9/source/c_gpio.o build/temp.linux-aar
ch64-3.9/source/common.o build/temp.linux-aarch64-3.9/source/constants.o build/t
emp.linux-aarch64-3.9/source/cpuinfo.o build/temp.linux-aarch64-3.9/source/event
_gpio.o build/temp.linux-aarch64-3.9/source/py_gpio.o build/temp.linux-aarch64-3
.9/source/py_pwm.o build/temp.linux-aarch64-3.9/source/soft_pwm.o -o build/lib.l
inux-aarch64-3.9/RPi/_GPIO.cpython-39-aarch64-linux-gnu.so
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: multipl
e definition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h
:41: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: multipl
e definition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:
40: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: multipl
e definition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: 
first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38: multipl
e definition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:38: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: multipl
e definition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:
37: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:36: multipl
e definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o
:/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/comm
on.h:36: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:35: multipl
e definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o
:/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/comm
on.h:35: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:34: multipl
e definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o
:/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/comm
on.h:34: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: multipl
e definition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33
: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: multiple 
definition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: 
first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: multiple 
definition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40
: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: multiple 
definition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: fi
rst defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38: multiple 
definition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h
:38: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: multiple 
definition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:4
1: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: multiple 
definition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37
: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:36: multiple 
definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:36: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:34: multiple 
definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:34: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:35: multiple 
definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:35: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:42: multip
le definition of `both_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/t
mp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constan
ts.h:42: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:41: multip
le definition of `falling_edge'; build/temp.linux-aarch64-3.9/source/constants.o
:/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/cons
tants.h:41: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:40: multip
le definition of `rising_edge'; build/temp.linux-aarch64-3.9/source/constants.o:
/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/const
ants.h:40: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:39: multip
le definition of `pud_down'; build/temp.linux-aarch64-3.9/source/constants.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constant
s.h:39: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:38: multip
le definition of `pud_up'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.
h:38: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:37: multip
le definition of `pud_off'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants
.h:37: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:36: multip
le definition of `bcm'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:3
6: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:35: multip
le definition of `board'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h
:35: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:34: multip
le definition of `unknown'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants
.h:34: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:33: multip
le definition of `spi'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:3
3: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:32: multip
le definition of `i2c'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:3
2: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:31: multip
le definition of `serial'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.
h:31: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:30: multip
le definition of `pwm'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:3
0: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:29: multip
le definition of `output'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.
h:29: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:28: multip
le definition of `input'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h
:28: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:27: multip
le definition of `low'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:2
7: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:26: multip
le definition of `high'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:
26: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38: multiple d
efinition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:
38: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/py_pwm.h:23: multiple d
efinition of `PWMType'; build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/py_pwm.h:23: fi
rst defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: multiple d
efinition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41
: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: multiple d
efinition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40:
 first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: multiple d
efinition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-in
stall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: fir
st defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: multiple d
efinition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37:
 first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:36: multiple d
efinition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/t
mp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.
h:36: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:35: multiple d
efinition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/t
mp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.
h:35: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:34: multiple d
efinition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/t
mp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.
h:34: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: multiple d
efinition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-
install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: f
irst defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/soft_pwm.o:/tmp/pip-install
-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/soft_pwm.c:28: multip
le definition of `threads'; build/temp.linux-aarch64-3.9/source/event_gpio.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/event_gp
io.c:60: first defined here
    collect2: error: ld returned 1 exit status
    error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sy
s, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jzxnv27y/rpi-gpio_7
da830c4ed1c47c1bfb884b6ff09f857/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/setup.py'"'"';f=getattr(tokeniz
e, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record
 /tmp/pip-record-_afqk_4y/install-record.txt --single-version-externally-managed
 --compile --install-headers /usr/local/include/python3.9/RPI.GPIO Check the log
s for full command output.
n2p@odroid:~$ 

amirul
Posts: 71
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Wed Apr 21, 2021 8:48 am
amirul wrote:
Wed Apr 21, 2021 6:50 am
Upgraded.
Reboot, command line OK, desktop not
Trying to figure out what went wrong...
Don't you have Desktop UI? Do you use Panfrost?
What do you have with "dpkg -l | grep groovy" ?
Yes I am on panfrost
Seems that I did not fully upgrade
Results of dpkg -l | grep groovy

Code: Select all

ii  bootscript-odroidn2                        5:2021.03+202103031600~groovy                                        arm64        Boot script to run by U-boot
ii  cpufrequtils                               5:008-1.1+202102191351~groovy                                        arm64        utilities to deal with the cpufreq Linux kernel feature
ii  flash-kernel                               5:3.99+202104021221~groovy                                           arm64        utility to make certain embedded devices bootable
ii  glmark2-data                               5:2021.02+202104151655~groovy                                        arm64        data files for the glmark2 OpenGL (ES) 2.0 benchmark
ii  glmark2-es2-drm                            5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 DRM benchmark
ii  glmark2-es2-wayland                        5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 Wayland benchmark
ii  glmark2-wayland                            5:2021.02+202104151655~groovy                                        arm64        OpenGL 2.0 Wayland benchmark
ii  libasound2:arm64                           5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for ALSA applications
ii  libasound2-data                            5:1.2.2-2.1+202011031242~groovy                                      arm64        Configuration files and profiles for ALSA drivers
ii  libatopology2:arm64                        5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for handling ALSA topology definitions
ii  libcpufreq0                                5:008-1.1+202102191351~groovy                                        arm64        shared library to deal with the cpufreq Linux kernel feature
ii  libegl-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the EGL API -- Mesa vendor library
ii  libgbm1:arm64                              5:21.1.0-devel+202102191202~groovy                                   arm64        generic buffer management API -- runtime
ii  libgl1-mesa-dri:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:arm64                        5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the GL API -- shared library
ii  libglx-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- GLX vendor library
ii  linux-image-5.11.0-odroid-arm64            5.11.14-202104151956~groovy                                          arm64        Linux 5.11 for 64-bit ARMv8 machines
ii  linux-libc-dev:arm64                       5.11.14-202104151956~groovy                                          arm64        Linux support headers for userspace development
ii  mesa-va-drivers:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:arm64                   5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:arm64                  5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa Vulkan graphics drivers
ii  odroid-alsa                                5:0.1+202010302014~groovy                                            arm64        ODROID ALSA configuration package
ii  odroid-base                                5:3+202102212206~groovy                                              arm64        ODROID base package
ii  ubuntu-desktop                             5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop system
ii  ubuntu-desktop-minimal                     5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop minimal system
ii  ubuntu-drivers-common                      5:0.8.6.1+202011031245~groovy                                        arm64        Detect and install additional Ubuntu driver packages
ii  ubuntu-minimal                             5:1.459+202011020113~groovy                                          arm64        Minimal core of Ubuntu
ii  ubuntu-wallpapers-groovy                   21.04.1-0ubuntu1                                                     all          Ubuntu 20.10 Wallpapers
What do I do now?

User avatar
tobetter
Posts: 7750
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1191 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Wed Apr 21, 2021 6:03 pm
tobetter wrote:
Wed Apr 21, 2021 8:48 am
amirul wrote:
Wed Apr 21, 2021 6:50 am
Upgraded.
Reboot, command line OK, desktop not
Trying to figure out what went wrong...
Don't you have Desktop UI? Do you use Panfrost?
What do you have with "dpkg -l | grep groovy" ?
Yes I am on panfrost
Seems that I did not fully upgrade
Results of dpkg -l | grep groovy

Code: Select all

ii  bootscript-odroidn2                        5:2021.03+202103031600~groovy                                        arm64        Boot script to run by U-boot
ii  cpufrequtils                               5:008-1.1+202102191351~groovy                                        arm64        utilities to deal with the cpufreq Linux kernel feature
ii  flash-kernel                               5:3.99+202104021221~groovy                                           arm64        utility to make certain embedded devices bootable
ii  glmark2-data                               5:2021.02+202104151655~groovy                                        arm64        data files for the glmark2 OpenGL (ES) 2.0 benchmark
ii  glmark2-es2-drm                            5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 DRM benchmark
ii  glmark2-es2-wayland                        5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 Wayland benchmark
ii  glmark2-wayland                            5:2021.02+202104151655~groovy                                        arm64        OpenGL 2.0 Wayland benchmark
ii  libasound2:arm64                           5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for ALSA applications
ii  libasound2-data                            5:1.2.2-2.1+202011031242~groovy                                      arm64        Configuration files and profiles for ALSA drivers
ii  libatopology2:arm64                        5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for handling ALSA topology definitions
ii  libcpufreq0                                5:008-1.1+202102191351~groovy                                        arm64        shared library to deal with the cpufreq Linux kernel feature
ii  libegl-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the EGL API -- Mesa vendor library
ii  libgbm1:arm64                              5:21.1.0-devel+202102191202~groovy                                   arm64        generic buffer management API -- runtime
ii  libgl1-mesa-dri:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:arm64                        5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the GL API -- shared library
ii  libglx-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- GLX vendor library
ii  linux-image-5.11.0-odroid-arm64            5.11.14-202104151956~groovy                                          arm64        Linux 5.11 for 64-bit ARMv8 machines
ii  linux-libc-dev:arm64                       5.11.14-202104151956~groovy                                          arm64        Linux support headers for userspace development
ii  mesa-va-drivers:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:arm64                   5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:arm64                  5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa Vulkan graphics drivers
ii  odroid-alsa                                5:0.1+202010302014~groovy                                            arm64        ODROID ALSA configuration package
ii  odroid-base                                5:3+202102212206~groovy                                              arm64        ODROID base package
ii  ubuntu-desktop                             5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop system
ii  ubuntu-desktop-minimal                     5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop minimal system
ii  ubuntu-drivers-common                      5:0.8.6.1+202011031245~groovy                                        arm64        Detect and install additional Ubuntu driver packages
ii  ubuntu-minimal                             5:1.459+202011020113~groovy                                          arm64        Minimal core of Ubuntu
ii  ubuntu-wallpapers-groovy                   21.04.1-0ubuntu1                                                     all          Ubuntu 20.10 Wallpapers
What do I do now?
Many packages more than I guess... :)
What do you have in the file /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list?

amirul
Posts: 71
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Wed Apr 21, 2021 6:04 pm
amirul wrote:
Wed Apr 21, 2021 6:03 pm
tobetter wrote:
Wed Apr 21, 2021 8:48 am
amirul wrote:
Wed Apr 21, 2021 6:50 am
Upgraded.
Reboot, command line OK, desktop not
Trying to figure out what went wrong...
Don't you have Desktop UI? Do you use Panfrost?
What do you have with "dpkg -l | grep groovy" ?
Yes I am on panfrost
Seems that I did not fully upgrade
Results of dpkg -l | grep groovy

Code: Select all

ii  bootscript-odroidn2                        5:2021.03+202103031600~groovy                                        arm64        Boot script to run by U-boot
ii  cpufrequtils                               5:008-1.1+202102191351~groovy                                        arm64        utilities to deal with the cpufreq Linux kernel feature
ii  flash-kernel                               5:3.99+202104021221~groovy                                           arm64        utility to make certain embedded devices bootable
ii  glmark2-data                               5:2021.02+202104151655~groovy                                        arm64        data files for the glmark2 OpenGL (ES) 2.0 benchmark
ii  glmark2-es2-drm                            5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 DRM benchmark
ii  glmark2-es2-wayland                        5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 Wayland benchmark
ii  glmark2-wayland                            5:2021.02+202104151655~groovy                                        arm64        OpenGL 2.0 Wayland benchmark
ii  libasound2:arm64                           5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for ALSA applications
ii  libasound2-data                            5:1.2.2-2.1+202011031242~groovy                                      arm64        Configuration files and profiles for ALSA drivers
ii  libatopology2:arm64                        5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for handling ALSA topology definitions
ii  libcpufreq0                                5:008-1.1+202102191351~groovy                                        arm64        shared library to deal with the cpufreq Linux kernel feature
ii  libegl-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the EGL API -- Mesa vendor library
ii  libgbm1:arm64                              5:21.1.0-devel+202102191202~groovy                                   arm64        generic buffer management API -- runtime
ii  libgl1-mesa-dri:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:arm64                        5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the GL API -- shared library
ii  libglx-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- GLX vendor library
ii  linux-image-5.11.0-odroid-arm64            5.11.14-202104151956~groovy                                          arm64        Linux 5.11 for 64-bit ARMv8 machines
ii  linux-libc-dev:arm64                       5.11.14-202104151956~groovy                                          arm64        Linux support headers for userspace development
ii  mesa-va-drivers:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:arm64                   5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:arm64                  5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa Vulkan graphics drivers
ii  odroid-alsa                                5:0.1+202010302014~groovy                                            arm64        ODROID ALSA configuration package
ii  odroid-base                                5:3+202102212206~groovy                                              arm64        ODROID base package
ii  ubuntu-desktop                             5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop system
ii  ubuntu-desktop-minimal                     5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop minimal system
ii  ubuntu-drivers-common                      5:0.8.6.1+202011031245~groovy                                        arm64        Detect and install additional Ubuntu driver packages
ii  ubuntu-minimal                             5:1.459+202011020113~groovy                                          arm64        Minimal core of Ubuntu
ii  ubuntu-wallpapers-groovy                   21.04.1-0ubuntu1                                                     all          Ubuntu 20.10 Wallpapers
What do I do now?
Many packages more than I guess... :)
What do you have in the file /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list?
# deb http://ppa.linuxfactory.or.kr hirsute main non-free # disabled on upgrade to hirsute
# deb-src http://ppa.linuxfactory.or.kr hirsute main non-free # disabled on upgrade to hirsute
# deb http://ppa.linuxfactory.or.kr hirsute contrib # disabled on upgrade to hirsute

User avatar
tobetter
Posts: 7750
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1191 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Wed Apr 21, 2021 6:28 pm
tobetter wrote:
Wed Apr 21, 2021 6:04 pm
amirul wrote:
Wed Apr 21, 2021 6:03 pm
tobetter wrote:
Wed Apr 21, 2021 8:48 am
amirul wrote:
Wed Apr 21, 2021 6:50 am
Upgraded.
Reboot, command line OK, desktop not
Trying to figure out what went wrong...
Don't you have Desktop UI? Do you use Panfrost?
What do you have with "dpkg -l | grep groovy" ?
Yes I am on panfrost
Seems that I did not fully upgrade
Results of dpkg -l | grep groovy

Code: Select all

ii  bootscript-odroidn2                        5:2021.03+202103031600~groovy                                        arm64        Boot script to run by U-boot
ii  cpufrequtils                               5:008-1.1+202102191351~groovy                                        arm64        utilities to deal with the cpufreq Linux kernel feature
ii  flash-kernel                               5:3.99+202104021221~groovy                                           arm64        utility to make certain embedded devices bootable
ii  glmark2-data                               5:2021.02+202104151655~groovy                                        arm64        data files for the glmark2 OpenGL (ES) 2.0 benchmark
ii  glmark2-es2-drm                            5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 DRM benchmark
ii  glmark2-es2-wayland                        5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 Wayland benchmark
ii  glmark2-wayland                            5:2021.02+202104151655~groovy                                        arm64        OpenGL 2.0 Wayland benchmark
ii  libasound2:arm64                           5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for ALSA applications
ii  libasound2-data                            5:1.2.2-2.1+202011031242~groovy                                      arm64        Configuration files and profiles for ALSA drivers
ii  libatopology2:arm64                        5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for handling ALSA topology definitions
ii  libcpufreq0                                5:008-1.1+202102191351~groovy                                        arm64        shared library to deal with the cpufreq Linux kernel feature
ii  libegl-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the EGL API -- Mesa vendor library
ii  libgbm1:arm64                              5:21.1.0-devel+202102191202~groovy                                   arm64        generic buffer management API -- runtime
ii  libgl1-mesa-dri:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:arm64                        5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the GL API -- shared library
ii  libglx-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- GLX vendor library
ii  linux-image-5.11.0-odroid-arm64            5.11.14-202104151956~groovy                                          arm64        Linux 5.11 for 64-bit ARMv8 machines
ii  linux-libc-dev:arm64                       5.11.14-202104151956~groovy                                          arm64        Linux support headers for userspace development
ii  mesa-va-drivers:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:arm64                   5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:arm64                  5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa Vulkan graphics drivers
ii  odroid-alsa                                5:0.1+202010302014~groovy                                            arm64        ODROID ALSA configuration package
ii  odroid-base                                5:3+202102212206~groovy                                              arm64        ODROID base package
ii  ubuntu-desktop                             5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop system
ii  ubuntu-desktop-minimal                     5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop minimal system
ii  ubuntu-drivers-common                      5:0.8.6.1+202011031245~groovy                                        arm64        Detect and install additional Ubuntu driver packages
ii  ubuntu-minimal                             5:1.459+202011020113~groovy                                          arm64        Minimal core of Ubuntu
ii  ubuntu-wallpapers-groovy                   21.04.1-0ubuntu1                                                     all          Ubuntu 20.10 Wallpapers
What do I do now?
Many packages more than I guess... :)
What do you have in the file /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list?
# deb http://ppa.linuxfactory.or.kr hirsute main non-free # disabled on upgrade to hirsute
# deb-src http://ppa.linuxfactory.or.kr hirsute main non-free # disabled on upgrade to hirsute
# deb http://ppa.linuxfactory.or.kr hirsute contrib # disabled on upgrade to hirsute
At least you must have this line, but looks like need more bandages to fix it after. :(

Code: Select all

deb http://ppa.linuxfactory.or.kr hirsute main 

User avatar
tobetter
Posts: 7750
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1191 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

istanbulls wrote:
Wed Apr 21, 2021 4:28 pm
tobetter wrote:
Wed Apr 21, 2021 8:44 am
istanbulls wrote:
Wed Apr 21, 2021 5:14 am
Thanks @tobetter,
I use it with love,
Is there any improvement for homecloud-display.
Do you have an issue with OLED? Not displaying at all or want another features?
There was also a problem with 20.10.
I got over the problem at 20.10, installed 20.04 minimal and installed homecloud-display and then upgraded to 20.10, with this method the oled screen worked at 20.10.

I tried the same method in 21.04, it didn't work. I installed 20.04 and then set up homecloud-display it worked, then I upgraded to 21.04 oled screen went off while upgrading.

Code: Select all

n2p@odroid:~$ sudo apt install --reinstall odroid-homecloud-display
[sudo] n2p için parola: 
Paket listeleri okunuyor... Bitti
Bağımlılık ağacı oluşturuluyor... Bitti
Durum bilgisi okunuyor... Bitti               
0 paket yükseltilecek, 0 yeni paket kurulacak, 1 paket yeniden kurulacak, 0 paket kaldırılacak ve 3 paket yükseltilmeyecek.
5.740 B arşiv dosyası indirilecek.
Bu işlem tamamlandıktan sonra 0 B ek disk alanı kullanılacak.
İndir: 1 http://ppa.linuxfactory.or.kr hirsute/main arm64 odroid-homecloud-display arm64 5:0.1+202103120438~hirsute [5.740 B]
2 sn.'de 5.740 B alındı (3.382 B/s)                  
(Veritabanı okunuyor ... 134680 dosya veya dizin kurulu durumda.)
Paket açılacak: .../odroid-homecloud-display_5%3a0.1+202103120438~hirsute_arm64.deb ...
Paket açılıyor: odroid-homecloud-display (5:0.1+202103120438~hirsute) üzerine (5:0.1+202103120438~hirsute) ...
Ayarlanıyor: odroid-homecloud-display (5:0.1+202103120438~hirsute) ...
Collecting luma.core
  Using cached luma.core-2.3.1-py2.py3-none-any.whl (71 kB)
Collecting luma.oled
  Using cached luma.oled-3.8.1-py2.py3-none-any.whl (32 kB)
Collecting luma.lcd
  Using cached luma.lcd-2.9.0-py2.py3-none-any.whl (25 kB)
Requirement already satisfied: pillow>=4.0.0 in /usr/lib/python3/dist-packages (
from luma.core) (8.1.2)
Collecting cbor2
  Using cached cbor2-5.2.0-cp39-cp39-linux_aarch64.whl
Requirement already satisfied: smbus2 in /usr/local/lib/python3.9/dist-packages 
(from luma.core) (0.4.1)
Collecting pyftdi
  Using cached pyftdi-0.52.9-py3-none-any.whl (139 kB)
Requirement already satisfied: spidev in /usr/local/lib/python3.9/dist-packages 
(from luma.core) (3.5)
Collecting deprecated
  Using cached Deprecated-1.2.12-py2.py3-none-any.whl (9.5 kB)
Collecting RPI.GPIO
  Using cached RPi.GPIO-0.7.0.tar.gz (30 kB)
Requirement already satisfied: wrapt<2,>=1.10 in /usr/local/lib/python3.9/dist-p
ackages (from deprecated->luma.core) (1.12.1)
Requirement already satisfied: pyusb>=1.0.0 in /usr/local/lib/python3.9/dist-pac
kages (from pyftdi->luma.core) (1.1.1)
Requirement already satisfied: pyserial>=3.0 in /usr/local/lib/python3.9/dist-pa
ckages (from pyftdi->luma.core) (3.5)
Building wheels for collected packages: RPI.GPIO
  Building wheel for RPI.GPIO (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0
] = '"'"'/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/set
up.py'"'"'; __file__='"'"'/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb
884b6ff09f857/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);
code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
 __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-9j359lob
       cwd: /tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/
  Complete output (102 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.9
  creating build/lib.linux-aarch64-3.9/RPi
  copying RPi/__init__.py -> build/lib.linux-aarch64-3.9/RPi
  creating build/lib.linux-aarch64-3.9/RPi/GPIO
  copying RPi/GPIO/__init__.py -> build/lib.linux-aarch64-3.9/RPi/GPIO
  running build_ext
  building 'RPi._GPIO' extension
  creating build/temp.linux-aarch64-3.9
  creating build/temp.linux-aarch64-3.9/source
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/c_gpio.c -o build/temp.linux-aarch64-3.9/source/c_gpi
o.o
  source/c_gpio.c: In function ‘setup’:
  source/c_gpio.c:130:9: warning: cast from pointer to integer of different size
 [-Wpointer-to-int-cast]
    130 |     if ((uint32_t)gpio_mem % PAGE_SIZE)
        |         ^
  source/c_gpio.c:131:34: warning: cast from pointer to integer of different siz
e [-Wpointer-to-int-cast]
    131 |         gpio_mem += PAGE_SIZE - ((uint32_t)gpio_mem % PAGE_SIZE);
        |                                  ^
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/common.c -o build/temp.linux-aarch64-3.9/source/commo
n.o
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/constants.c -o build/temp.linux-aarch64-3.9/source/co
nstants.o
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/cpuinfo.c -o build/temp.linux-aarch64-3.9/source/cpui
nfo.o
  source/cpuinfo.c: In function ‘get_rpi_info’:
  source/cpuinfo.c:139:28: warning: format ‘%llx’ expects argument of type ‘long
 long unsigned int *’, but argument 3 has type ‘uint64_t *’ {aka ‘long unsigned 
int *’} [-Wformat=]
    139 |       sscanf(revision, "%llx", &rev);
        |                         ~~~^   ~~~~
        |                            |   |
        |                            |   uint64_t * {aka long unsigned int *}
        |                            long long unsigned int *
        |                         %lx
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/event_gpio.c -o build/temp.linux-aarch64-3.9/source/e
vent_gpio.o
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/py_gpio.c -o build/temp.linux-aarch64-3.9/source/py_g
pio.o
  source/py_gpio.c: In function ‘PyInit__GPIO’:
  source/py_gpio.c:1046:4: warning: ‘PyEval_ThreadsInitialized’ is deprecated [-
Wdeprecated-declarations]
   1046 |    if (!PyEval_ThreadsInitialized())
        |    ^~
  In file included from /usr/include/python3.9/Python.h:145,
                   from source/py_gpio.c:23:
  /usr/include/python3.9/ceval.h:129:36: note: declared here
    129 | Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
        |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
  source/py_gpio.c:1047:7: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprec
ated-declarations]
   1047 |       PyEval_InitThreads();
        |       ^~~~~~~~~~~~~~~~~~
  In file included from /usr/include/python3.9/Python.h:145,
                   from source/py_gpio.c:23:
  /usr/include/python3.9/ceval.h:130:37: note: declared here
    130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
        |                                     ^~~~~~~~~~~~~~~~~~
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/py_pwm.c -o build/temp.linux-aarch64-3.9/source/py_pw
m.o
  aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -
fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffi
le-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/i
nclude/python3.9 -c source/soft_pwm.c -o build/temp.linux-aarch64-3.9/source/sof
t_pwm.o
  aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-B
symbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,r
elro -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4
=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORT
IFY_SOURCE=2 build/temp.linux-aarch64-3.9/source/c_gpio.o build/temp.linux-aarch
64-3.9/source/common.o build/temp.linux-aarch64-3.9/source/constants.o build/tem
p.linux-aarch64-3.9/source/cpuinfo.o build/temp.linux-aarch64-3.9/source/event_g
pio.o build/temp.linux-aarch64-3.9/source/py_gpio.o build/temp.linux-aarch64-3.9
/source/py_pwm.o build/temp.linux-aarch64-3.9/source/soft_pwm.o -o build/lib.lin
ux-aarch64-3.9/RPi/_GPIO.cpython-39-aarch64-linux-gnu.so
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: multiple 
definition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:4
1: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: multiple 
definition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40
: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: multiple 
definition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: fi
rst defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38: multiple 
definition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h
:38: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: multiple 
definition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37
: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:36: multiple 
definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:36: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:35: multiple 
definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:35: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:34: multiple 
definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:34: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: multiple 
definition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: 
first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: multiple de
finition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: fi
rst defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: multiple de
finition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: 
first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: multiple de
finition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-ins
tall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: firs
t defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38: multiple de
finition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:3
8: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: multiple de
finition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41:
 first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: multiple de
finition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: 
first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:36: multiple de
finition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h
:36: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:34: multiple de
finition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h
:34: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:35: multiple de
finition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h
:35: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:42: multiple
 definition of `both_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants
.h:42: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:41: multiple
 definition of `falling_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/consta
nts.h:41: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:40: multiple
 definition of `rising_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/t
mp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constan
ts.h:40: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:39: multiple
 definition of `pud_down'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.
h:39: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:38: multiple
 definition of `pud_up'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:
38: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:37: multiple
 definition of `pud_off'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h
:37: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:36: multiple
 definition of `bcm'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:36:
 first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:35: multiple
 definition of `board'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:3
5: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:34: multiple
 definition of `unknown'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h
:34: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:33: multiple
 definition of `spi'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:33:
 first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:32: multiple
 definition of `i2c'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:32:
 first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:31: multiple
 definition of `serial'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:
31: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:30: multiple
 definition of `pwm'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:30:
 first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:29: multiple
 definition of `output'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:
29: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:28: multiple
 definition of `input'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:2
8: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:27: multiple
 definition of `low'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:27:
 first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:26: multiple
 definition of `high'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-
install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:26
: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38: multiple def
inition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38
: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/py_pwm.h:23: multiple def
inition of `PWMType'; build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-ins
tall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/py_pwm.h:23: firs
t defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: multiple def
inition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: 
first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: multiple def
inition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-
install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: f
irst defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: multiple def
inition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-inst
all-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: first
 defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: multiple def
inition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-
install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: f
irst defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:36: multiple def
inition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:
36: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:35: multiple def
inition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:
35: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:34: multiple def
inition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:
34: first defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-jzx
nv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: multiple def
inition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-in
stall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: fir
st defined here
  /usr/bin/ld: build/temp.linux-aarch64-3.9/source/soft_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/soft_pwm.c:28: multiple
 definition of `threads'; build/temp.linux-aarch64-3.9/source/event_gpio.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/event_gpio
.c:60: first defined here
  collect2: error: ld returned 1 exit status
  error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for RPI.GPIO
  Running setup.py clean for RPI.GPIO
Failed to build RPI.GPIO
Installing collected packages: RPI.GPIO, pyftdi, deprecated, cbor2, luma.core, l
uma.oled, luma.lcd
    Running setup.py install for RPI.GPIO ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv
[0] = '"'"'/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/s
etup.py'"'"'; __file__='"'"'/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1b
fb884b6ff09f857/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__
);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(cod
e, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_afqk_4y/install
-record.txt --single-version-externally-managed --compile --install-headers /usr
/local/include/python3.9/RPI.GPIO
         cwd: /tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f85
7/
    Complete output (102 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-aarch64-3.9
    creating build/lib.linux-aarch64-3.9/RPi
    copying RPi/__init__.py -> build/lib.linux-aarch64-3.9/RPi
    creating build/lib.linux-aarch64-3.9/RPi/GPIO
    copying RPi/GPIO/__init__.py -> build/lib.linux-aarch64-3.9/RPi/GPIO
    running build_ext
    building 'RPi._GPIO' extension
    creating build/temp.linux-aarch64-3.9
    creating build/temp.linux-aarch64-3.9/source
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/c_gpio.c -o build/temp.linux-aarch64-3.9/source/c_g
pio.o
    source/c_gpio.c: In function ‘setup’:
    source/c_gpio.c:130:9: warning: cast from pointer to integer of different si
ze [-Wpointer-to-int-cast]
      130 |     if ((uint32_t)gpio_mem % PAGE_SIZE)
          |         ^
    source/c_gpio.c:131:34: warning: cast from pointer to integer of different s
ize [-Wpointer-to-int-cast]
      131 |         gpio_mem += PAGE_SIZE - ((uint32_t)gpio_mem % PAGE_SIZE);
          |                                  ^
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/common.c -o build/temp.linux-aarch64-3.9/source/com
mon.o
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/constants.c -o build/temp.linux-aarch64-3.9/source/
constants.o
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/cpuinfo.c -o build/temp.linux-aarch64-3.9/source/cp
uinfo.o
    source/cpuinfo.c: In function ‘get_rpi_info’:
    source/cpuinfo.c:139:28: warning: format ‘%llx’ expects argument of type ‘lo
ng long unsigned int *’, but argument 3 has type ‘uint64_t *’ {aka ‘long unsigne
d int *’} [-Wformat=]
      139 |       sscanf(revision, "%llx", &rev);
          |                         ~~~^   ~~~~
          |                            |   |
          |                            |   uint64_t * {aka long unsigned int *}
          |                            long long unsigned int *
          |                         %lx
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/event_gpio.c -o build/temp.linux-aarch64-3.9/source
/event_gpio.o
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/py_gpio.c -o build/temp.linux-aarch64-3.9/source/py
_gpio.o
    source/py_gpio.c: In function ‘PyInit__GPIO’:
    source/py_gpio.c:1046:4: warning: ‘PyEval_ThreadsInitialized’ is deprecated 
[-Wdeprecated-declarations]
     1046 |    if (!PyEval_ThreadsInitialized())
          |    ^~
    In file included from /usr/include/python3.9/Python.h:145,
                     from source/py_gpio.c:23:
    /usr/include/python3.9/ceval.h:129:36: note: declared here
      129 | Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void);
          |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
    source/py_gpio.c:1047:7: warning: ‘PyEval_InitThreads’ is deprecated [-Wdepr
ecated-declarations]
     1047 |       PyEval_InitThreads();
          |       ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/python3.9/Python.h:145,
                     from source/py_gpio.c:23:
    /usr/include/python3.9/ceval.h:130:37: note: declared here
      130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
          |                                     ^~~~~~~~~~~~~~~~~~
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/py_pwm.c -o build/temp.linux-aarch64-3.9/source/py_
pwm.o
    aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
 -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=
. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -f
file-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9.4=. -fstack-protector-stro
ng -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr
/include/python3.9 -c source/soft_pwm.c -o build/temp.linux-aarch64-3.9/source/s
oft_pwm.o
    aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,
-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z
,relro -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-lKm0LE/python3.9-3.9
.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FO
RTIFY_SOURCE=2 build/temp.linux-aarch64-3.9/source/c_gpio.o build/temp.linux-aar
ch64-3.9/source/common.o build/temp.linux-aarch64-3.9/source/constants.o build/t
emp.linux-aarch64-3.9/source/cpuinfo.o build/temp.linux-aarch64-3.9/source/event
_gpio.o build/temp.linux-aarch64-3.9/source/py_gpio.o build/temp.linux-aarch64-3
.9/source/py_pwm.o build/temp.linux-aarch64-3.9/source/soft_pwm.o -o build/lib.l
inux-aarch64-3.9/RPi/_GPIO.cpython-39-aarch64-linux-gnu.so
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: multipl
e definition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h
:41: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: multipl
e definition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:
40: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: multipl
e definition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: 
first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38: multipl
e definition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:38: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: multipl
e definition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:
37: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:36: multipl
e definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o
:/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/comm
on.h:36: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:35: multipl
e definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o
:/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/comm
on.h:35: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:34: multipl
e definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o
:/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/comm
on.h:34: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip-instal
l-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: multipl
e definition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33
: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: multiple 
definition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: 
first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: multiple 
definition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40
: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: multiple 
definition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: fi
rst defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38: multiple 
definition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h
:38: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: multiple 
definition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:4
1: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: multiple 
definition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37
: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:36: multiple 
definition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:36: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:34: multiple 
definition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:34: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:35: multiple 
definition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/
tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common
.h:35: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:42: multip
le definition of `both_edge'; build/temp.linux-aarch64-3.9/source/constants.o:/t
mp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constan
ts.h:42: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:41: multip
le definition of `falling_edge'; build/temp.linux-aarch64-3.9/source/constants.o
:/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/cons
tants.h:41: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:40: multip
le definition of `rising_edge'; build/temp.linux-aarch64-3.9/source/constants.o:
/tmp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/const
ants.h:40: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:39: multip
le definition of `pud_down'; build/temp.linux-aarch64-3.9/source/constants.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constant
s.h:39: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:38: multip
le definition of `pud_up'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.
h:38: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:37: multip
le definition of `pud_off'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants
.h:37: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:36: multip
le definition of `bcm'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:3
6: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:35: multip
le definition of `board'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h
:35: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:34: multip
le definition of `unknown'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants
.h:34: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:33: multip
le definition of `spi'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:3
3: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:32: multip
le definition of `i2c'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:3
2: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:31: multip
le definition of `serial'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.
h:31: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:30: multip
le definition of `pwm'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:3
0: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:29: multip
le definition of `output'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/
pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.
h:29: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:28: multip
le definition of `input'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h
:28: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:27: multip
le definition of `low'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pip
-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:2
7: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-install-
jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:26: multip
le definition of `high'; build/temp.linux-aarch64-3.9/source/constants.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/constants.h:
26: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:38: multiple d
efinition of `gpio_direction'; build/temp.linux-aarch64-3.9/source/common.o:/tmp
/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:
38: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/py_pwm.h:23: multiple d
efinition of `PWMType'; build/temp.linux-aarch64-3.9/source/py_gpio.o:/tmp/pip-i
nstall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/py_pwm.h:23: fi
rst defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41: multiple d
efinition of `module_setup'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/p
ip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:41
: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40: multiple d
efinition of `setup_error'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:40:
 first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: multiple d
efinition of `rpiinfo'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-in
stall-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:39: fir
st defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37: multiple d
efinition of `pin_to_gpio'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pi
p-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:37:
 first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:36: multiple d
efinition of `pin_to_gpio_rev3'; build/temp.linux-aarch64-3.9/source/common.o:/t
mp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.
h:36: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:35: multiple d
efinition of `pin_to_gpio_rev2'; build/temp.linux-aarch64-3.9/source/common.o:/t
mp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.
h:35: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:34: multiple d
efinition of `pin_to_gpio_rev1'; build/temp.linux-aarch64-3.9/source/common.o:/t
mp/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.
h:34: first defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_pwm.o:/tmp/pip-install-j
zxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: multiple d
efinition of `gpio_mode'; build/temp.linux-aarch64-3.9/source/common.o:/tmp/pip-
install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/common.h:33: f
irst defined here
    /usr/bin/ld: build/temp.linux-aarch64-3.9/source/soft_pwm.o:/tmp/pip-install
-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/soft_pwm.c:28: multip
le definition of `threads'; build/temp.linux-aarch64-3.9/source/event_gpio.o:/tm
p/pip-install-jzxnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/source/event_gp
io.c:60: first defined here
    collect2: error: ld returned 1 exit status
    error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sy
s, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jzxnv27y/rpi-gpio_7
da830c4ed1c47c1bfb884b6ff09f857/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jz
xnv27y/rpi-gpio_7da830c4ed1c47c1bfb884b6ff09f857/setup.py'"'"';f=getattr(tokeniz
e, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record
 /tmp/pip-record-_afqk_4y/install-record.txt --single-version-externally-managed
 --compile --install-headers /usr/local/include/python3.9/RPI.GPIO Check the log
s for full command output.
n2p@odroid:~$ 
Sorry, it's my bad.
Please do install the package odroid-homecloud-display again.

Code: Select all

$ sudo apt update
$ sudo apt install odroid-homecloud-display

User avatar
istanbulls
Posts: 517
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 332 times
Been thanked: 89 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by istanbulls »

Thanks @tobetter,

Code: Select all

sudo apt update
sudo apt dist-upgrade
solved the problem, it works like a champ.

Code: Select all

n2p@odroid:~$ uname -a
Linux odroid 5.11.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.11.15-202104211203~hirsute (2021-04-21) aarch64 aarch64 aarch64 GNU/Linux
Have you tried the usb2 tip I told you for petitboot-SSD?
Will you have time for this?

User avatar
tobetter
Posts: 7750
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1191 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

istanbulls wrote:
Wed Apr 21, 2021 7:20 pm
Have you tried the usb2 tip I told you for petitboot-SSD?
Will you have time for this?
:mrgreen:
These users thanked the author tobetter for the post:
istanbulls (Wed Apr 21, 2021 7:27 pm)

amirul
Posts: 71
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Wed Apr 21, 2021 6:31 pm
amirul wrote:
Wed Apr 21, 2021 6:28 pm
tobetter wrote:
Wed Apr 21, 2021 6:04 pm
amirul wrote:
Wed Apr 21, 2021 6:03 pm
tobetter wrote:
Wed Apr 21, 2021 8:48 am
amirul wrote:
Wed Apr 21, 2021 6:50 am
Upgraded.
Reboot, command line OK, desktop not
Trying to figure out what went wrong...
Don't you have Desktop UI? Do you use Panfrost?
What do you have with "dpkg -l | grep groovy" ?
Yes I am on panfrost
Seems that I did not fully upgrade
Results of dpkg -l | grep groovy

Code: Select all

ii  bootscript-odroidn2                        5:2021.03+202103031600~groovy                                        arm64        Boot script to run by U-boot
ii  cpufrequtils                               5:008-1.1+202102191351~groovy                                        arm64        utilities to deal with the cpufreq Linux kernel feature
ii  flash-kernel                               5:3.99+202104021221~groovy                                           arm64        utility to make certain embedded devices bootable
ii  glmark2-data                               5:2021.02+202104151655~groovy                                        arm64        data files for the glmark2 OpenGL (ES) 2.0 benchmark
ii  glmark2-es2-drm                            5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 DRM benchmark
ii  glmark2-es2-wayland                        5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 Wayland benchmark
ii  glmark2-wayland                            5:2021.02+202104151655~groovy                                        arm64        OpenGL 2.0 Wayland benchmark
ii  libasound2:arm64                           5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for ALSA applications
ii  libasound2-data                            5:1.2.2-2.1+202011031242~groovy                                      arm64        Configuration files and profiles for ALSA drivers
ii  libatopology2:arm64                        5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for handling ALSA topology definitions
ii  libcpufreq0                                5:008-1.1+202102191351~groovy                                        arm64        shared library to deal with the cpufreq Linux kernel feature
ii  libegl-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the EGL API -- Mesa vendor library
ii  libgbm1:arm64                              5:21.1.0-devel+202102191202~groovy                                   arm64        generic buffer management API -- runtime
ii  libgl1-mesa-dri:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:arm64                        5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the GL API -- shared library
ii  libglx-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- GLX vendor library
ii  linux-image-5.11.0-odroid-arm64            5.11.14-202104151956~groovy                                          arm64        Linux 5.11 for 64-bit ARMv8 machines
ii  linux-libc-dev:arm64                       5.11.14-202104151956~groovy                                          arm64        Linux support headers for userspace development
ii  mesa-va-drivers:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:arm64                   5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:arm64                  5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa Vulkan graphics drivers
ii  odroid-alsa                                5:0.1+202010302014~groovy                                            arm64        ODROID ALSA configuration package
ii  odroid-base                                5:3+202102212206~groovy                                              arm64        ODROID base package
ii  ubuntu-desktop                             5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop system
ii  ubuntu-desktop-minimal                     5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop minimal system
ii  ubuntu-drivers-common                      5:0.8.6.1+202011031245~groovy                                        arm64        Detect and install additional Ubuntu driver packages
ii  ubuntu-minimal                             5:1.459+202011020113~groovy                                          arm64        Minimal core of Ubuntu
ii  ubuntu-wallpapers-groovy                   21.04.1-0ubuntu1                                                     all          Ubuntu 20.10 Wallpapers
What do I do now?
Many packages more than I guess... :)
What do you have in the file /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list?
# deb http://ppa.linuxfactory.or.kr hirsute main non-free # disabled on upgrade to hirsute
# deb-src http://ppa.linuxfactory.or.kr hirsute main non-free # disabled on upgrade to hirsute
# deb http://ppa.linuxfactory.or.kr hirsute contrib # disabled on upgrade to hirsute
At least you must have this line, but looks like need more bandages to fix it after. :(

Code: Select all

deb http://ppa.linuxfactory.or.kr hirsute main 
Managed to whittle it down to

Code: Select all

ii  libasound2:arm64                           5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for ALSA applications
ii  libasound2-data                            5:1.2.2-2.1+202011031242~groovy                                      arm64        Configuration files and profiles for ALSA drivers
ii  libatopology2:arm64                        5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for handling ALSA topology definitions
ii  libegl-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the EGL API -- Mesa vendor library
ii  libgbm1:arm64                              5:21.1.0-devel+202102191202~groovy                                   arm64        generic buffer management API -- runtime
ii  libgl1-mesa-dri:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:arm64                        5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the GL API -- shared library
ii  libglx-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- GLX vendor library
ii  ubuntu-wallpapers-groovy                   21.04.1-0ubuntu1                                                     all          Ubuntu 20.10 Wallpapers
When I do apt list, I can see the hirsute versions for the above. How do I force apt to update to that version?

User avatar
tobetter
Posts: 7750
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1191 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Wed Apr 21, 2021 7:44 pm
tobetter wrote:
Wed Apr 21, 2021 6:31 pm
amirul wrote:
Wed Apr 21, 2021 6:28 pm
tobetter wrote:
Wed Apr 21, 2021 6:04 pm
amirul wrote:
Wed Apr 21, 2021 6:03 pm
tobetter wrote:
Wed Apr 21, 2021 8:48 am
amirul wrote:
Wed Apr 21, 2021 6:50 am
Upgraded.
Reboot, command line OK, desktop not
Trying to figure out what went wrong...
Don't you have Desktop UI? Do you use Panfrost?
What do you have with "dpkg -l | grep groovy" ?
Yes I am on panfrost
Seems that I did not fully upgrade
Results of dpkg -l | grep groovy

Code: Select all

ii  bootscript-odroidn2                        5:2021.03+202103031600~groovy                                        arm64        Boot script to run by U-boot
ii  cpufrequtils                               5:008-1.1+202102191351~groovy                                        arm64        utilities to deal with the cpufreq Linux kernel feature
ii  flash-kernel                               5:3.99+202104021221~groovy                                           arm64        utility to make certain embedded devices bootable
ii  glmark2-data                               5:2021.02+202104151655~groovy                                        arm64        data files for the glmark2 OpenGL (ES) 2.0 benchmark
ii  glmark2-es2-drm                            5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 DRM benchmark
ii  glmark2-es2-wayland                        5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 Wayland benchmark
ii  glmark2-wayland                            5:2021.02+202104151655~groovy                                        arm64        OpenGL 2.0 Wayland benchmark
ii  libasound2:arm64                           5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for ALSA applications
ii  libasound2-data                            5:1.2.2-2.1+202011031242~groovy                                      arm64        Configuration files and profiles for ALSA drivers
ii  libatopology2:arm64                        5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for handling ALSA topology definitions
ii  libcpufreq0                                5:008-1.1+202102191351~groovy                                        arm64        shared library to deal with the cpufreq Linux kernel feature
ii  libegl-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the EGL API -- Mesa vendor library
ii  libgbm1:arm64                              5:21.1.0-devel+202102191202~groovy                                   arm64        generic buffer management API -- runtime
ii  libgl1-mesa-dri:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:arm64                        5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the GL API -- shared library
ii  libglx-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- GLX vendor library
ii  linux-image-5.11.0-odroid-arm64            5.11.14-202104151956~groovy                                          arm64        Linux 5.11 for 64-bit ARMv8 machines
ii  linux-libc-dev:arm64                       5.11.14-202104151956~groovy                                          arm64        Linux support headers for userspace development
ii  mesa-va-drivers:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:arm64                   5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:arm64                  5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa Vulkan graphics drivers
ii  odroid-alsa                                5:0.1+202010302014~groovy                                            arm64        ODROID ALSA configuration package
ii  odroid-base                                5:3+202102212206~groovy                                              arm64        ODROID base package
ii  ubuntu-desktop                             5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop system
ii  ubuntu-desktop-minimal                     5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop minimal system
ii  ubuntu-drivers-common                      5:0.8.6.1+202011031245~groovy                                        arm64        Detect and install additional Ubuntu driver packages
ii  ubuntu-minimal                             5:1.459+202011020113~groovy                                          arm64        Minimal core of Ubuntu
ii  ubuntu-wallpapers-groovy                   21.04.1-0ubuntu1                                                     all          Ubuntu 20.10 Wallpapers
What do I do now?
Many packages more than I guess... :)
What do you have in the file /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list?
# deb http://ppa.linuxfactory.or.kr hirsute main non-free # disabled on upgrade to hirsute
# deb-src http://ppa.linuxfactory.or.kr hirsute main non-free # disabled on upgrade to hirsute
# deb http://ppa.linuxfactory.or.kr hirsute contrib # disabled on upgrade to hirsute
At least you must have this line, but looks like need more bandages to fix it after. :(

Code: Select all

deb http://ppa.linuxfactory.or.kr hirsute main 
Managed to whittle it down to

Code: Select all

ii  libasound2:arm64                           5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for ALSA applications
ii  libasound2-data                            5:1.2.2-2.1+202011031242~groovy                                      arm64        Configuration files and profiles for ALSA drivers
ii  libatopology2:arm64                        5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for handling ALSA topology definitions
ii  libegl-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the EGL API -- Mesa vendor library
ii  libgbm1:arm64                              5:21.1.0-devel+202102191202~groovy                                   arm64        generic buffer management API -- runtime
ii  libgl1-mesa-dri:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:arm64                        5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the GL API -- shared library
ii  libglx-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- GLX vendor library
ii  ubuntu-wallpapers-groovy                   21.04.1-0ubuntu1                                                     all          Ubuntu 20.10 Wallpapers
When I do apt list, I can see the hirsute versions for the above. How do I force apt to update to that version?
Can you try to run these commands? Please use <Ctrl-C><Ctrl-V>!!

Code: Select all

sudo apt update
sudo apt install -y --allow-downgrades $(apt-cache madison `dpkg -l | grep ~groovy | awk '{print $2}'` | awk '{printf("%s=%s ",$1,$3)}')

amirul
Posts: 71
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Wed Apr 21, 2021 8:14 pm
amirul wrote:
Wed Apr 21, 2021 7:44 pm
tobetter wrote:
Wed Apr 21, 2021 6:31 pm
amirul wrote:
Wed Apr 21, 2021 6:28 pm
tobetter wrote:
Wed Apr 21, 2021 6:04 pm
amirul wrote:
Wed Apr 21, 2021 6:03 pm
tobetter wrote:
Wed Apr 21, 2021 8:48 am
amirul wrote:
Wed Apr 21, 2021 6:50 am
Upgraded.
Reboot, command line OK, desktop not
Trying to figure out what went wrong...
Don't you have Desktop UI? Do you use Panfrost?
What do you have with "dpkg -l | grep groovy" ?
Yes I am on panfrost
Seems that I did not fully upgrade
Results of dpkg -l | grep groovy

Code: Select all

ii  bootscript-odroidn2                        5:2021.03+202103031600~groovy                                        arm64        Boot script to run by U-boot
ii  cpufrequtils                               5:008-1.1+202102191351~groovy                                        arm64        utilities to deal with the cpufreq Linux kernel feature
ii  flash-kernel                               5:3.99+202104021221~groovy                                           arm64        utility to make certain embedded devices bootable
ii  glmark2-data                               5:2021.02+202104151655~groovy                                        arm64        data files for the glmark2 OpenGL (ES) 2.0 benchmark
ii  glmark2-es2-drm                            5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 DRM benchmark
ii  glmark2-es2-wayland                        5:2021.02+202104151655~groovy                                        arm64        OpenGL ES 2.0 Wayland benchmark
ii  glmark2-wayland                            5:2021.02+202104151655~groovy                                        arm64        OpenGL 2.0 Wayland benchmark
ii  libasound2:arm64                           5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for ALSA applications
ii  libasound2-data                            5:1.2.2-2.1+202011031242~groovy                                      arm64        Configuration files and profiles for ALSA drivers
ii  libatopology2:arm64                        5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for handling ALSA topology definitions
ii  libcpufreq0                                5:008-1.1+202102191351~groovy                                        arm64        shared library to deal with the cpufreq Linux kernel feature
ii  libegl-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the EGL API -- Mesa vendor library
ii  libgbm1:arm64                              5:21.1.0-devel+202102191202~groovy                                   arm64        generic buffer management API -- runtime
ii  libgl1-mesa-dri:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:arm64                        5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the GL API -- shared library
ii  libglx-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- GLX vendor library
ii  linux-image-5.11.0-odroid-arm64            5.11.14-202104151956~groovy                                          arm64        Linux 5.11 for 64-bit ARMv8 machines
ii  linux-libc-dev:arm64                       5.11.14-202104151956~groovy                                          arm64        Linux support headers for userspace development
ii  mesa-va-drivers:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:arm64                   5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa VDPAU video acceleration drivers
ii  mesa-vulkan-drivers:arm64                  5:21.1.0-devel+202102191202~groovy                                   arm64        Mesa Vulkan graphics drivers
ii  odroid-alsa                                5:0.1+202010302014~groovy                                            arm64        ODROID ALSA configuration package
ii  odroid-base                                5:3+202102212206~groovy                                              arm64        ODROID base package
ii  ubuntu-desktop                             5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop system
ii  ubuntu-desktop-minimal                     5:1.459+202011020113~groovy                                          arm64        The Ubuntu desktop minimal system
ii  ubuntu-drivers-common                      5:0.8.6.1+202011031245~groovy                                        arm64        Detect and install additional Ubuntu driver packages
ii  ubuntu-minimal                             5:1.459+202011020113~groovy                                          arm64        Minimal core of Ubuntu
ii  ubuntu-wallpapers-groovy                   21.04.1-0ubuntu1                                                     all          Ubuntu 20.10 Wallpapers
What do I do now?
Many packages more than I guess... :)
What do you have in the file /etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list?
# deb http://ppa.linuxfactory.or.kr hirsute main non-free # disabled on upgrade to hirsute
# deb-src http://ppa.linuxfactory.or.kr hirsute main non-free # disabled on upgrade to hirsute
# deb http://ppa.linuxfactory.or.kr hirsute contrib # disabled on upgrade to hirsute
At least you must have this line, but looks like need more bandages to fix it after. :(

Code: Select all

deb http://ppa.linuxfactory.or.kr hirsute main 
Managed to whittle it down to

Code: Select all

ii  libasound2:arm64                           5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for ALSA applications
ii  libasound2-data                            5:1.2.2-2.1+202011031242~groovy                                      arm64        Configuration files and profiles for ALSA drivers
ii  libatopology2:arm64                        5:1.2.2-2.1+202011031242~groovy                                      arm64        shared library for handling ALSA topology definitions
ii  libegl-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the EGL API -- Mesa vendor library
ii  libgbm1:arm64                              5:21.1.0-devel+202102191202~groovy                                   arm64        generic buffer management API -- runtime
ii  libgl1-mesa-dri:arm64                      5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- DRI modules
ii  libglapi-mesa:arm64                        5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the GL API -- shared library
ii  libglx-mesa0:arm64                         5:21.1.0-devel+202102191202~groovy                                   arm64        free implementation of the OpenGL API -- GLX vendor library
ii  ubuntu-wallpapers-groovy                   21.04.1-0ubuntu1                                                     all          Ubuntu 20.10 Wallpapers
When I do apt list, I can see the hirsute versions for the above. How do I force apt to update to that version?
Can you try to run these commands? Please use <Ctrl-C><Ctrl-V>!!

Code: Select all

sudo apt update
sudo apt install -y --allow-downgrades $(apt-cache madison `dpkg -l | grep ~groovy | awk '{print $2}'` | awk '{printf("%s=%s ",$1,$3)}')
Tried the commands but failed with alsa-lib not found or something.
Then apt install with /hirsute after the package name (libgbm1/hirsute etc), updated the pkgs. Now no pkgs with ~groovy anymore but still cannot log in to desktop.

User avatar
tobetter
Posts: 7750
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1191 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Wed Apr 21, 2021 9:27 pm
Tried the commands but failed with alsa-lib not found or something.
Then apt install with /hirsute after the package name (libgbm1/hirsute etc), updated the pkgs. Now no pkgs with ~groovy anymore but still cannot log in to desktop.
Do you have desktop login screen after rebooting?
What do you have with dpkg -l | grep alsa-lib?

amirul
Posts: 71
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Wed Apr 21, 2021 10:26 pm
amirul wrote:
Wed Apr 21, 2021 9:27 pm
Tried the commands but failed with alsa-lib not found or something.
Then apt install with /hirsute after the package name (libgbm1/hirsute etc), updated the pkgs. Now no pkgs with ~groovy anymore but still cannot log in to desktop.
Do you have desktop login screen after rebooting?
What do you have with dpkg -l | grep alsa-lib?
Yes I do get the login screen after boot. Your command string now results in 0 upgraded, 0 newly installed....
That's what it should do since dpkg -l | grep ~groovy now is nothing after I manually installed the hirsute pkgs.
Any other ideas?

User avatar
tobetter
Posts: 7750
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1191 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Wed Apr 21, 2021 10:48 pm
tobetter wrote:
Wed Apr 21, 2021 10:26 pm
amirul wrote:
Wed Apr 21, 2021 9:27 pm
Tried the commands but failed with alsa-lib not found or something.
Then apt install with /hirsute after the package name (libgbm1/hirsute etc), updated the pkgs. Now no pkgs with ~groovy anymore but still cannot log in to desktop.
Do you have desktop login screen after rebooting?
What do you have with dpkg -l | grep alsa-lib?
Yes I do get the login screen after boot. Your command string now results in 0 upgraded, 0 newly installed....
That's what it should do since dpkg -l | grep ~groovy now is nothing after I manually installed the hirsute pkgs.
Any other ideas?
So you do not have install package alsa-lib?
What happens when your password entered? Does it deny to login with any message on the screen?
Can you check any logs suspcious in /var/log?

amirul
Posts: 71
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Wed Apr 21, 2021 10:56 pm
amirul wrote:
Wed Apr 21, 2021 10:48 pm
tobetter wrote:
Wed Apr 21, 2021 10:26 pm
amirul wrote:
Wed Apr 21, 2021 9:27 pm
Tried the commands but failed with alsa-lib not found or something.
Then apt install with /hirsute after the package name (libgbm1/hirsute etc), updated the pkgs. Now no pkgs with ~groovy anymore but still cannot log in to desktop.
Do you have desktop login screen after rebooting?
What do you have with dpkg -l | grep alsa-lib?
Yes I do get the login screen after boot. Your command string now results in 0 upgraded, 0 newly installed....
That's what it should do since dpkg -l | grep ~groovy now is nothing after I manually installed the hirsute pkgs.
Any other ideas?
So you do not have install package alsa-lib?
What happens when your password entered? Does it deny to login with any message on the screen?
Can you check any logs suspcious in /var/log?
This is getting a bit lengthy. Perhaps if you could give me the link to the new img file, I'll just start again :D

User avatar
tobetter
Posts: 7750
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1191 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Wed Apr 21, 2021 11:03 pm
tobetter wrote:
Wed Apr 21, 2021 10:56 pm
amirul wrote:
Wed Apr 21, 2021 10:48 pm
tobetter wrote:
Wed Apr 21, 2021 10:26 pm
amirul wrote:
Wed Apr 21, 2021 9:27 pm
Tried the commands but failed with alsa-lib not found or something.
Then apt install with /hirsute after the package name (libgbm1/hirsute etc), updated the pkgs. Now no pkgs with ~groovy anymore but still cannot log in to desktop.
Do you have desktop login screen after rebooting?
What do you have with dpkg -l | grep alsa-lib?
Yes I do get the login screen after boot. Your command string now results in 0 upgraded, 0 newly installed....
That's what it should do since dpkg -l | grep ~groovy now is nothing after I manually installed the hirsute pkgs.
Any other ideas?
So you do not have install package alsa-lib?
What happens when your password entered? Does it deny to login with any message on the screen?
Can you check any logs suspcious in /var/log?
This is getting a bit lengthy. Perhaps if you could give me the link to the new img file, I'll just start again :D
:lol:
If you do not mind, please do install from the Petitboot, do run netboot_default in the Petitboot command line.
viewtopic.php?p=326161#p326161

amirul
Posts: 71
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

tobetter wrote:
Wed Apr 21, 2021 11:06 pm
amirul wrote:
Wed Apr 21, 2021 11:03 pm
If you do not mind, please do install from the Petitboot, do run netboot_default in the Petitboot command line.
viewtopic.php?p=326161#p326161
I'm at a bit of a loss here, how do I get to boot into Petitboot?
Do you mean to run netboot_default or booting to the Petitboot??

amirul
Posts: 71
Joined: Wed Dec 30, 2020 6:03 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 13 times
Been thanked: 10 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by amirul »

Never mind. After the latest update, managed to boot to desktop but took a very long time from the login screen. :D
Observations:
1. Files does not follow the icon choice made in Tweaks
2. Mouse cursor a bit blinky and sometimes disappears

User avatar
tobetter
Posts: 7750
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1191 times
Contact:

Re: Ubuntu 20.10 / Debian 11 for ODROID-N2/C4/HC4

Post by tobetter »

amirul wrote:
Fri Apr 23, 2021 1:23 am
Never mind. After the latest update, managed to boot to desktop but took a very long time from the login screen. :D
Observations:
1. Files does not follow the icon choice made in Tweaks
2. Mouse cursor a bit blinky and sometimes disappears
I think the very first boot would take some time, but it will be longer later.
Not sure what file icons you mean...but actually this is not the scope of mine...since they are from Canonical...:D
Mouse cursor would be Mesa issue and found another artifacts with some apps, looking into this from time to time.

For Ubuntu 21.04, let's keep talking in another thread.
viewtopic.php?f=52&t=42300

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: mctom and 6 guests