Make installation error

Hello,
I urgently need your help please.
When reinstalling the Raspberry Pi 4B Ver. 1.4 and Pi OS (32-bit), MAKE reports the errors below.
sudo apt-get update, sudo apt-get upgrade and sudo reboot have been run before.

Could someone please give me a tip on how to install correctly?
(PS. The text was translated with Google Translator. Please understand. Thank you!)

admin@rasppi:~/raspbee2-rtc-master $ make
checking deb package dependencies…
i2c-tools
build-essential
raspberrypi-kernel-headers
download rtc-pcf85063.c for kernel version 6.1 …
curl -O --max-time 10 https://raw.githubusercontent.com/torvalds/linux/v6.1/drivers/rtc/rtc-pcf85063.c
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 17384 100 17384 0 0 67379 0 --:–:-- --:–:-- --:–:-- 67119
build rtc module…
make -C /lib/modules/6.1.21-v8+/build M=/home/admin/raspbee2-rtc-master modules
make[1]: *** /lib/modules/6.1.21-v8+/build: No such file or directory. Stop.
make: *** [Makefile:17: build] Error 2

Hello, you can take a look here kernel source build directory missing on 6.1.21-v8+ - Raspberry Pi Forums
But what is your OS ? and Pi OS (32-bit) mean nothing, and admin@rasppi ??? admin or rasppi are not defaut value on classic OS.

Pi os is raspvian

And why he don’t use the defaut procedure for Raspbian?
https://phoscon.de/en/raspbee2/install#raspbian

This one install the kernel raspberrypi-kernel-headers

Thank you very much for your contributions.
I have completely reinstalled a parallel Raspberry Pi 4B Ver. 1.4 and Pi OS (32-bit) SEVERAL TIMES and tried to install deConz according to the standard Raspbian procedure. To no avail!
I’m afraid that a change from Raspbeery Pi OS from April 2023 is causing the error?
If someone has the time and inclination, please can he follow the installation of deConz in the standard Raspbian procedure. I bet he won’t get anywhere either?!
PS. I had to reinstall my installation of deConz, which had been running for 1 year, after the update, because the boot files were missing after the update.

Thanks for the link.
That seems to be exactly my problem.
I entered arm_64bit=0 and repeated the procedures from the link.
All unfortunately to no avail.
Your post so far was the error looks like this:

admin@smarthome:/lib/modules $ sudo apt install i2c-tools build-essential raspberrypi-kernel-headers
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
build-essential is already the newest version (12.9).
i2c-tools is already the newest version (4.2-1+b1).
raspberrypi-kernel-headers is already the newest version (1:1.20230405-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
admin@smarthome:/lib/modules $ curl -O -L https://github.com/dresden-elektronik/raspbee2-rtc/archive/master.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
Warning: Failed to create the file master.zip: Permission denied
100 512 0 512 0 0 849 0 --:–:-- --:–:-- --:–:-- 849
curl: (23) Failure writing output to destination

Why are you trying to get master.zip in that folder ? It seems that user admin doesn’t have (hopefully) access to this system folder.

I suggest to get back to user home folder before curl command.

Does this changed message possibly give someone an idea?

root@smarthome:/home/admin/raspbee2-rtc-master# make
checking deb package dependencies…
i2c-tools
build-essential
raspberrypi-kernel-headers
build rtc module…
make -C /lib/modules/6.1.21-v7l+/build M=/home/admin/raspbee2-rtc-master modules
make[1]: Entering directory ‘/usr/src/linux-headers-6.1.21-v7l+’
CC [M] /home/admin/raspbee2-rtc-master/rtc-pcf85063.o
/home/admin/raspbee2-rtc-master/rtc-pcf85063.c: In function ‘pcf85063_probe’:
/home/admin/raspbee2-rtc-master/rtc-pcf85063.c:561:15: error: ‘struct rtc_device’ has no member named ‘uie_unsupported’
561 | pcf85063->rtc->uie_unsupported = 1;
| ^~
make[2]: *** [scripts/Makefile.build:250: /home/admin/raspbee2-rtc-master/rtc-pcf85063.o] Error 1
make[1]: *** [Makefile:2012: /home/admin/raspbee2-rtc-master] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-6.1.21-v7l+’
make: *** [Makefile:17: build] Error 2

Bringt diese geänderte Meldung eventuell jemanden auf eine Idee?
Die Installation ist wie folgt gelaufen:

  1. rpi-imager.exe aufgerufen.
  2. Als Betriebssystem Pi OS (32-bit) gewählt.
  3. Erweiterte Option:
  • SSH aktivieren: Passwort zur Authentifizierung verwenden
  • Benutzername und Passwort setzten: Benutzer: admin, Passwort: mein Passwort
  1. Schreiben.
  2. Danach die Standard-Prozedure deConz für RaspBee II verwendet.

Danke für deine Tipp:
Was sollte ich den genau tun?

English please.

1 Like

Make a try with a pre installed SD image SD-cart images (take the desktop)
You will need to update the OS after, it’s old image.

Thank you very much for your support and your patience. Unfortunately, Linux is not my core competence, or rather, I only have a rudimentary basic understanding and work through the instructions stubbornly.

The solution:
Before the installation procedure, I got the rights with ‘sudo su’ and then went through the installation without errors.
Update:
Please add the entry ‘arm_64bit=0’ to the config .txt ‘sudo nano /boot/config.txt’ at the end.