The officially official Devuan Forum!

You are not logged in.

#1426 Hardware & System Configuration » Raspberry Pi 3B+ and botting from USB port » 2020-05-27 00:05:52

Altoid
Replies: 4

Hello:

The Raspberry Pi 3B+ supports mass storage boot, unlike other models ( 2B v1.2, 3A+, 3B) which needed a one-time programming of the OTP bit via a line at the end of /boot/config.txt.
I have checked my RPi and verified that the bit is set:

root@rpidevuan:/home/pi# vcgencmd otp_dump | grep 17:
17:3020000a
root@rpidevuan:/home/pi# 

I have also been able to boot a Raspian image from a USB port using an SDCard reader and a standard size 2.0Gb card.
But if I want to boot the same SDCard with a Devuan image, it will not boot.

To compare how the images were burned to the cards, I did blkid and fdisk -l on each of the images after mounting:

Image: LibreELEC-RPi2.arm-9.2.1.img

# fdisk -l
--- snip ---
Disk /dev/sdf: 1.9 GiB, 2032664576 bytes, 3970048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x11072f7d

Device     Boot   Start     End Sectors  Size Id Type
/dev/sdf1  *       8192 1056767 1048576  512M  c W95 FAT32 (LBA)
/dev/sdf2       1056768 1122303   65536   32M 83 Linux
--- snip ---

# blkid

--- snip ---
/dev/sdf1: SEC_TYPE="msdos" UUID="EEA4-304A" TYPE="vfat"
/dev/sdf2: UUID="589c7999-62be-47ac-8847-32b62fd9fdc9" TYPE="ext4"
--- snip ---

Image: devuan_ascii_2.0.0_arm64_raspi3.img

fdisk -l
--- snip ---
Disk /dev/sdf: 1.9 GiB, 2032664576 bytes, 3970048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xac806f8a

Device     Boot  Start     End Sectors  Size Id Type
/dev/sdf1         2048  264191  262144  128M  c W95 FAT32 (LBA)
/dev/sdf2       264192 3872767 3608576  1.7G 83 Linux
--- snip ---

blkid

--- snip ---
/dev/sdf1: SEC_TYPE="msdos" UUID="EEA4-304A" TYPE="vfat" PARTUUID="ac806f8a-01"
/dev/sdf2: UUID="589c7999-62be-47ac-8847-32b62fd9fdc9" TYPE="ext4"
--- snip ---

Besides the difference in size (512M vs 128M) the Raspbian image has the first partition with the boot flag set.

LibreELEC-RPi2.arm-9.2.1
---
/dev/sdf1  *       8192 1056767 1048576  512M  c W95 FAT32 (LBA)
---

devuan_ascii_2.0.0_arm64_raspi3
---
/dev/sdf1          2048   264191   262144  128M  c W95 FAT32 (LBA)
---

Now, if I set the boot flag on the SDCard with the devuan_ascii_2.0.0_arm64_raspi3 image, it still won't boot from the RPis USB port.

What am I missing?

Thanks in advance.

A.

#1427 Re: Installation » Application start-up script problem - ARM64 » 2020-05-25 10:49:08

Hello:

Head_on_a_Stick wrote:

... run my posted command directly rather than modifying ...

Ah.
Sorry.

I always keep a *.bak.
Same result.

Cheers,

A.

#1428 Re: Installation » Application start-up script problem - ARM64 » 2020-05-25 02:12:03

Hello:

Head_on_a_Stick wrote:

... QT_PLUGIN_PATH & LD_LIBRARY_PATH isn't being passed to /usr/share/artisan/artisan ...

I see ...

Head_on_a_Stick wrote:

Can you do that manually?

Of course.

Now the start-up script read like this:

root@rpidevuan:/usr/bin# cat artisan
#!/bin/sh

if [ -f /etc/os-release ]; then
    grep Raspbian /etc/os-release >/dev/null
    # Workaround for issue #187
    if [ $? -eq 0 ]; then
	unset XDG_CURRENT_DESKTOP
    fi
fi

exec /usr/bin/env QT_PLUGIN_PATH=/usr/share/artisan/PyQt5/Qt/plugins LD_LIBRARY_PATH=/usr/share/artisan:$LD_LIBRARY_PATH LIBOVERLAY_SCROLLBAR=0 GTK2_RC_FILES="$HOME/.gtkrc-2.0" /usr/share/artisan/artisan
root@rpidevuan:/usr/bin# 

As it is not in your stanza, I left out this part:

"$@" 2>/dev/null

When I run the script directly via # /usr/share/artisan/artisan the application starts but I still get the same warning.

I've found posts on the web referring to this in RPis which would seem to indicate that it is something from as back as 2017, related to OpenGL and actually keeps some Qt based applications from running. Fortunately, it is not my case.

See here:

https://www.reddit.com/r/voidlinux/comm … lications/
My system does not have a /usr/share/X11/xorg.conf.d/99-fbturbo.conf to rename, so it is a dead end.

https://raspberrypi.stackexchange.com/q … -to-libegl
This involves more complicated stuff like symlinking libraries.

Tonight there was yet another :armhf issue regarding USB communication between the temperature logger and the software but fortunately I was able to solve it by installing usbutils:armhf which removed usbutils and installed a dependency.

I wonder how many more of these libraries I should install?

Thanks for your input.
Much appreciated.

Cheers,

A.

#1429 Re: Installation » Application start-up script problem - ARM64 » 2020-05-24 17:46:33

Hello:

Head_on_a_Stick wrote:

Ah yes, of course, my apologies:

E485:~$ apt-file search libqxcb.so
libqt5gui5: /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
E485:~$

Yes ...
But as I mentioned in my OP, the plugins were in the system:

Altoid wrote:
pi@rpidevuan:~$ ls /usr/share/artisan/PyQt5/Qt/plugins
bearer  iconengines  imageformats  platforms  platformthemes  printsupport
pi@rpidevuan:~$ 

---- snip ----

pi@rpidevuan:~$ ls /usr/share/artisan/PyQt5/Qt/plugins/platforms
libqeglfs.so  libqlinuxfb.so  libqminimal.so  libqminimalegl.so  libqoffscreen.so  libqxcb.so
pi@rpidevuan:~$

The only one that looked like it could be (xcb) was that one.
ie: /usr/share/artisan/PyQt5/Qt/plugins/platforms/libqxcb.so

No matter, the problem is now solved. 8^)

Any idea as what to do with the warning?

root@rpidevuan:/home/pi# /usr/share/artisan/artisan
libEGL warning: DRI2: failed to authenticate
root@rpidevuan:/home/pi#

From what I have seen it is a common issue with RPis and Broadmcom chips.
It crops up if the application is started from the terminal but it could be that it is not a RPi issue.

And again, thanks a lot.

Cheers,

A.

#1430 Re: Installation » Application start-up script problem - ARM64 » 2020-05-24 14:29:19

Hello:

Head_on_a_Stick wrote:

... continued this in the old thread ...

I thought for a while about doing exactly that.
But what I originally saw as an ARM64 dependency issue no longer seemed to be that.

To me, it now looked more like a problem with an application's start-up script.

But you're the one with the know how, I'm just here (stubbornly) poking in the dark.
If you think all this should go as a continuation of the old thread, please let me know and I'll ask fsmithred to move it over. 

Head_on_a_Stick wrote:

... tried installing the libqt5gui5:armhf package?

No.
How could I have possibly known?
I was chasing the missing xcb Qt plugin, there's a whole lot of that and qt.conf on the web.

Now I do.   8^D

root@rpidevuan:/home/pi# apt-get install libqt5gui5:armhf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libglew2.0
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  libbsd0:armhf libdatrie1:armhf libdbus-1-3:armhf libdouble-conversion1:armhf libdrm-amdgpu1:armhf
  libdrm-freedreno1:armhf libdrm-nouveau2:armhf libdrm-radeon1:armhf libedit2:armhf libegl1-mesa:armhf
  libelf1:armhf libeudev1:armhf libevdev2:armhf libexpat1:armhf libfontconfig1:armhf libfreetype6:armhf
  libgbm1:armhf libgcrypt20:armhf libgl1-mesa-dri:armhf libgl1-mesa-glx:armhf libglapi-mesa:armhf
  libgles2-mesa:armhf libglew2.0:armhf libglu1-mesa:armhf libgpg-error0:armhf libgpm2:armhf libgraphite2-3:armhf
  libgudev-1.0-0:armhf libharfbuzz0b:armhf libice6:armhf libicu57:armhf libinput10:armhf libjpeg62-turbo:armhf
  libllvm3.9:armhf libmtdev1:armhf libncurses5:armhf libpcre16-3:armhf libpng16-16:armhf libproxy1v5:armhf
  libqt5core5a:armhf libqt5dbus5:armhf libqt5network5:armhf libqt5svg5:armhf libqt5widgets5:armhf
  libsensors4:armhf libsm6:armhf libssl1.0.2:armhf libthai0:armhf libtinfo5:armhf libtxc-dxtn-s2tc:armhf
  libwacom2:armhf libwayland-client0:armhf libwayland-server0:armhf libx11-6:armhf libx11-xcb1:armhf
  libxau6:armhf libxcb-dri2-0:armhf libxcb-dri3-0:armhf libxcb-glx0:armhf libxcb-icccm4:armhf libxcb-image0:armhf
  libxcb-keysyms1:armhf libxcb-present0:armhf libxcb-randr0:armhf libxcb-render-util0:armhf libxcb-render0:armhf
  libxcb-shape0:armhf libxcb-shm0:armhf libxcb-sync1:armhf libxcb-util0:armhf libxcb-xfixes0:armhf
  libxcb-xinerama0:armhf libxcb-xkb1:armhf libxcb1:armhf libxdamage1:armhf libxdmcp6:armhf libxext6:armhf
  libxfixes3:armhf libxi6:armhf libxkbcommon-x11-0:armhf libxkbcommon0:armhf libxshmfence1:armhf
  libxxf86vm1:armhf mesa-utils:armhf
Suggested packages:
  rng-tools:armhf glew-utils:armhf gpm:armhf qt5-image-formats-plugins:armhf qtwayland5:armhf lm-sensors:armhf
Recommended packages:
  qttranslations5-l10n:armhf qt5-gtk-platformtheme:armhf
The following packages will be REMOVED:
  mesa-utils
The following NEW packages will be installed:
  libbsd0:armhf libdatrie1:armhf libdbus-1-3:armhf libdouble-conversion1:armhf libdrm-amdgpu1:armhf
  libdrm-freedreno1:armhf libdrm-nouveau2:armhf libdrm-radeon1:armhf libedit2:armhf libegl1-mesa:armhf
  libelf1:armhf libeudev1:armhf libevdev2:armhf libexpat1:armhf libfontconfig1:armhf libfreetype6:armhf
  libgbm1:armhf libgcrypt20:armhf libgl1-mesa-dri:armhf libgl1-mesa-glx:armhf libglapi-mesa:armhf
  libgles2-mesa:armhf libglew2.0:armhf libglu1-mesa:armhf libgpg-error0:armhf libgpm2:armhf libgraphite2-3:armhf
  libgudev-1.0-0:armhf libharfbuzz0b:armhf libice6:armhf libicu57:armhf libinput10:armhf libjpeg62-turbo:armhf
  libllvm3.9:armhf libmtdev1:armhf libncurses5:armhf libpcre16-3:armhf libpng16-16:armhf libproxy1v5:armhf
  libqt5core5a:armhf libqt5dbus5:armhf libqt5gui5:armhf libqt5network5:armhf libqt5svg5:armhf
  libqt5widgets5:armhf libsensors4:armhf libsm6:armhf libssl1.0.2:armhf libthai0:armhf libtinfo5:armhf
  libtxc-dxtn-s2tc:armhf libwacom2:armhf libwayland-client0:armhf libwayland-server0:armhf libx11-6:armhf
  libx11-xcb1:armhf libxau6:armhf libxcb-dri2-0:armhf libxcb-dri3-0:armhf libxcb-glx0:armhf libxcb-icccm4:armhf
  libxcb-image0:armhf libxcb-keysyms1:armhf libxcb-present0:armhf libxcb-randr0:armhf libxcb-render-util0:armhf
  libxcb-render0:armhf libxcb-shape0:armhf libxcb-shm0:armhf libxcb-sync1:armhf libxcb-util0:armhf
  libxcb-xfixes0:armhf libxcb-xinerama0:armhf libxcb-xkb1:armhf libxcb1:armhf libxdamage1:armhf libxdmcp6:armhf
  libxext6:armhf libxfixes3:armhf libxi6:armhf libxkbcommon-x11-0:armhf libxkbcommon0:armhf libxshmfence1:armhf
  libxxf86vm1:armhf mesa-utils:armhf
0 upgraded, 85 newly installed, 1 to remove and 0 not upgraded.
Need to get 35.9 MB of archives.
After this operation, 180 MB of additional disk space will be used.
pi@rpidevuan:~$ 

And then ...
... after a whole 180mb of libxwhatever:armhf files, the "#$%& coffee roasting application finally went > live < .  8^D !!!

There's a warning when I start it  directly via # /usr/share/artisan/artisan:

root@rpidevuan:/home/pi# /usr/share/artisan/artisan
libEGL warning: DRI2: failed to authenticate
root@rpidevuan:/home/pi#

I'll have to run some tests to see if it all works, but now things are looking good.

This software now works only because I got help from you and fsmithred and was led to install a huge list of :armhf files missing from Devuan ascii ARM64, even after adding the armhf architecture and making sure there were no unmet dependencies.

Makes me wonder why all these libraries were not pulled in at some time or another, some with the installation of the software and some with the armhf architecture.
It would have saved us all (especially me) a lot of time and hair pulling.  8^7

There are probably quite a few applications that, having been written for armhf RPis, could also run on ARM64 RPis if it were not for this mess I waded into. 
Maybe it would be a good idea to make a sticky with the basics of what happened and why?

I could do that, you guys could previously check it's accuracy.

I'll check to see if the software runs as expected and report back.
In the meanwhile, thank you very much for your help with this matter.

Cheers,

A.

#1431 Installation » Application start-up script problem - ARM64 » 2020-05-24 03:04:53

Altoid
Replies: 8

Hello:

I'm having a problem with the script that starts an application I want to run on my RPi3B+ with Devuan ascii 2.0.0.
It installs without issues on the SDCard with a Raspbian Buster Lite image.

Cannot see why it cannot run on the SDCard with the devuan_ascii_2.0.0_arm64_raspi3.img.

The first problem I had was with not having added the armhf architecture.
This was solved by means of dpkg --add-architecture armhf.

But other problems cropped up and ralph.ronnquist suggested that I needed to install zlib1g:armhf, which I did.
More problems  appeared and HoS suggested I install libstdc++6:armhf which I did.

Q:
Shouldn't these :armhf libraries for part of what gets installed along with the architecture?
So much crap gets pulled in small dumb applications ...

You can see what went on here.

----

So, once I wrote the Devuan image to the SDCard again, I did everything I had learned I had to do thanks to ralph and HoS.

As things stood, the architecture issue was apparently solved:

root@rpidevuan:/home/pi# uname -a
Linux rpidevuan 4.16.14-v8+ #1 SMP PREEMPT Tue Jun 5 18:50:10 CEST 2018 aarch64 GNU/Linux
root@rpidevuan:/home/pi# 
root@rpidevuan:/home/pi# dpkg --print-architecture
arm64
root@rpidevuan:/home/pi# 
root@rpidevuan:/home/pi# dpkg --print-foreign-architectures
armhf
root@rpidevuan:/home/pi# 

The system is up to date and pyhton3.5 (needed but not listed as a dependency of the software) is installed.

root@rpidevuan:/home/pi# apt-get update
Hit:1 http://pkgmaster.devuan.org/merged ascii InRelease
Hit:2 http://pkgmaster.devuan.org/merged ascii-updates InRelease
Hit:3 http://pkgmaster.devuan.org/merged ascii-security InRelease
Reading package lists... Done
root@rpidevuan:/home/pi# 
root@rpidevuan:/home/pi# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@rpidevuan:/home/pi# apt-get update --fix-missing
Hit:1 http://pkgmaster.devuan.org/merged ascii InRelease
Hit:2 http://pkgmaster.devuan.org/merged ascii-updates InRelease
Hit:3 http://pkgmaster.devuan.org/merged ascii-security InRelease
Reading package lists... Done
root@rpidevuan:/home/pi# 

So, as far as I could see, everything is was it should have been Devuan ascii + armhf architecture wise

------------------------------------------------------
The problem is that the software won't start.
------------------------------------------------------

As per the autor's suggestion (the software is not supported for Devuan, just Raspian) in order to get some output, I started it directly via /usr/bin/artisan and got this:

Traceback (most recent call last):
  File "artisan.py", line 68, in <module>
  File "/home/pi/.local/lib/python3.5/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
  File "artisanlib/main.py", line 86, in <module>
  File "/home/pi/.local/lib/python3.5/site-packages/PyInstaller/loader/pyimod03_importers.py", line 714, in load_module
ImportError: libglib-2.0.so.0: cannot open shared object file: No such file or directory
[2510] Failed to execute script artisan

I had to look around the web for a good while to get that the libglib-2.0.so.0 library the script cannot find seems to be a 32bit library included in the libglib2.0-0 package, which is installed ...

root@rpidevuan:/home/pi# apt-get install libglib2.0-0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libglib2.0-0 is already the newest version (2.50.3-2+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@rpidevuan:/home/pi# 

... but not for armhf:   (!)

root@rpidevuan:/home/pi# apt-get install libglib2.0-0:armhf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libblkid1:armhf libffi6:armhf libmount1:armhf libpcre3:armhf libselinux1:armhf libuuid1:armhf uuid-runtime
The following NEW packages will be installed:
  libblkid1:armhf libffi6:armhf libglib2.0-0:armhf libmount1:armhf libpcre3:armhf libselinux1:armhf libuuid1:armhf uuid-runtime
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 3475 kB of archives.
After this operation, 5621 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:2 http://pkgmaster.devuan.org/merged ascii/main arm64 uuid-runtime arm64 2.29.2-1+devuan2.1 [89.1 kB]
Get:3 http://pkgmaster.devuan.org/merged ascii/main armhf libuuid1 armhf 2.29.2-1+devuan2.1 [79.4 kB]
Get:4 http://pkgmaster.devuan.org/merged ascii/main armhf libblkid1 armhf 2.29.2-1+devuan2.1 [161 kB]
Get:6 http://pkgmaster.devuan.org/merged ascii/main armhf libmount1 armhf 2.29.2-1+devuan2.1 [169 kB]
Get:1 http://pkgmaster.devuan.org/merged ascii/main armhf libpcre3 armhf 2:8.39-3 [317 kB]
Get:5 http://pkgmaster.devuan.org/merged ascii/main armhf libselinux1 armhf 2.6-3+b3 [93.4 kB]                                             
Get:7 http://pkgmaster.devuan.org/merged ascii/main armhf libffi6 armhf 3.2.1-6 [18.9 kB]                                                  
Get:8 http://pkgmaster.devuan.org/merged ascii/main armhf libglib2.0-0 armhf 2.50.3-2+deb9u2 [2548 kB]                                     
Fetched 3475 kB in 30s (116 kB/s)                                                                                                          
Selecting previously unselected package libpcre3:armhf.
(Reading database ... 41526 files and directories currently installed.)
Preparing to unpack .../0-libpcre3_2%3a8.39-3_armhf.deb ...
Unpacking libpcre3:armhf (2:8.39-3) ...
Selecting previously unselected package uuid-runtime.
Preparing to unpack .../1-uuid-runtime_2.29.2-1+devuan2.1_arm64.deb ...
Unpacking uuid-runtime (2.29.2-1+devuan2.1) ...
Selecting previously unselected package libuuid1:armhf.
Preparing to unpack .../2-libuuid1_2.29.2-1+devuan2.1_armhf.deb ...
Unpacking libuuid1:armhf (2.29.2-1+devuan2.1) ...
Selecting previously unselected package libblkid1:armhf.
Preparing to unpack .../3-libblkid1_2.29.2-1+devuan2.1_armhf.deb ...
Unpacking libblkid1:armhf (2.29.2-1+devuan2.1) ...
Selecting previously unselected package libselinux1:armhf.
Preparing to unpack .../4-libselinux1_2.6-3+b3_armhf.deb ...
Unpacking libselinux1:armhf (2.6-3+b3) ...
Selecting previously unselected package libmount1:armhf.
Preparing to unpack .../5-libmount1_2.29.2-1+devuan2.1_armhf.deb ...
Unpacking libmount1:armhf (2.29.2-1+devuan2.1) ...
Selecting previously unselected package libffi6:armhf.
Preparing to unpack .../6-libffi6_3.2.1-6_armhf.deb ...
Unpacking libffi6:armhf (3.2.1-6) ...
Selecting previously unselected package libglib2.0-0:armhf.
Preparing to unpack .../7-libglib2.0-0_2.50.3-2+deb9u2_armhf.deb ...
Unpacking libglib2.0-0:armhf (2.50.3-2+deb9u2) ...
Setting up libuuid1:armhf (2.29.2-1+devuan2.1) ...
Processing triggers for libglib2.0-0:arm64 (2.50.3-2+deb9u2) ...
Setting up libpcre3:armhf (2:8.39-3) ...
Setting up libblkid1:armhf (2.29.2-1+devuan2.1) ...
Setting up uuid-runtime (2.29.2-1+devuan2.1) ...
Adding group `uuidd' (GID 111) ...
Done.
Warning: The home dir /run/uuidd you specified can't be accessed: No such file or directory
Adding system user `uuidd' (UID 106) ...
Adding new user `uuidd' (UID 106) with group `uuidd' ...
Not creating home directory `/run/uuidd'.
[ ok ] Starting uuid generator: uuidd.
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up libselinux1:armhf (2.6-3+b3) ...
Setting up libffi6:armhf (3.2.1-6) ...
Setting up libmount1:armhf (2.29.2-1+devuan2.1) ...
Setting up libglib2.0-0:armhf (2.50.3-2+deb9u2) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
root@rpidevuan:/home/pi# 

With that done, yet another error cropped up ...

--- snip ---
ImportError: libdrm.so.2: cannot open shared object file: No such file or directory
[2510] Failed to execute script artisan
root@rpidevuan:/home/pi# 

... so, guessing that it was another armhf library,  I installed it:

root@rpidevuan:/home/pi# apt-get install libdrm2:armhf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libdrm2:armhf
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 32.6 kB of archives.
After this operation, 81.9 kB of additional disk space will be used.
Get:1 http://pkgmaster.devuan.org/merged ascii/main armhf libdrm2 armhf 2.4.74-1 [32.6 kB]
Fetched 32.6 kB in 1s (24.0 kB/s)     
Selecting previously unselected package libdrm2:armhf.
(Reading database ... 41568 files and directories currently installed.)
Preparing to unpack .../libdrm2_2.4.74-1_armhf.deb ...
Unpacking libdrm2:armhf (2.4.74-1) ...
Setting up libdrm2:armhf (2.4.74-1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
root@rpidevuan:/home/pi# 

Things seemed to be getting better but still no cigar:

root@rpidevuan:/home/pi# /usr/share/artisan/artisan
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Reinstalling the application may fix this problem.
Aborted
root@rpidevuan:/home/pi# 

It was nice to see the error message getting shorter ...
... but the shorter it got the less it said.

I've sort of reached the end here and don't know where to go from here.

This is the software's startup script:

pi@rpidevuan:~$ cat /usr/bin/artisan
#!/bin/sh

if [ -f /etc/os-release ]; then
    grep Raspbian /etc/os-release >/dev/null
    # Workaround for issue #187
    if [ $? -eq 0 ]; then
	unset XDG_CURRENT_DESKTOP
    fi
fi
exec /usr/bin/env QT_PLUGIN_PATH=/usr/share/artisan/PyQt5/Qt/plugins LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/gtk-3.0/modules:/usr/share/artisan:$LD_LIBRARY_PATH LIBOVERLAY_SCROLLBAR=0 GTK2_RC_FILES="$HOME/.gtkrc-2.0" /usr/share/artisan/artisan "$@" 2>/dev/null
pi@rpidevuan:~$ 

The Qt plugins are there ...

pi@rpidevuan:~$ ls /usr/share/artisan/PyQt5/Qt/plugins
bearer  iconengines  imageformats  platforms  platformthemes  printsupport
pi@rpidevuan:~$ 
pi@rpidevuan:~$ ls /usr/share/artisan/PyQt5/Qt/plugins/bearer
libqconnmanbearer.so  libqgenericbearer.so  libqnmbearer.so
pi@rpidevuan:~$
pi@rpidevuan:~$ ls /usr/share/artisan/PyQt5/Qt/plugins/iconengines
libqsvgicon.so
pi@rpidevuan:~$
pi@rpidevuan:~$ ls /usr/share/artisan/PyQt5/Qt/plugins/imageformats
libqgif.so  libqico.so  libqjpeg.so  libqsvg.so
pi@rpidevuan:~$
pi@rpidevuan:~$ ls /usr/share/artisan/PyQt5/Qt/plugins/platforms
libqeglfs.so  libqlinuxfb.so  libqminimal.so  libqminimalegl.so  libqoffscreen.so  libqxcb.so
pi@rpidevuan:~$
pi@rpidevuan:~$ ls /usr/share/artisan/PyQt5/Qt/plugins/platformthemes
libqgtk3.so
pi@rpidevuan:~$
pi@rpidevuan:~$ ls /usr/share/artisan/PyQt5/Qt/plugins/printsupport
libcupsprintersupport.so
pi@rpidevuan:~$ 

The plugin (xcb) that the script is not finding may be /usr/share/artisan/PyQt5/Qt/plugins/platforms libqxcb.so but I have no idea if this is so.

Could anyone possibly shed some light on this for me?

Thanks in advance,

A.

#1432 Re: Installation » [Solved] Swap partition: swapon error and priority » 2020-05-22 21:24:45

Hello:

larsH wrote:

... only one swap partition (or swapfile) the priority has no importance.

An update to confirm this.

Long story short ...
Had to install Raspbian in my RPi3b+ and then do all I did before once again.  8^º
No matter, practise = knowledge.

In any case ...
I set up a new /etc/fstab with a /swap partition on the HDD, without turning off the existing swapfile.

When I did swapon -s, I get this:

pi@grouchopi:/$ swapon -s
Filename				Type		Size	Used	Priority
/dev/sda7                              	partition	2675708	0	-2
/var/swap                              	file    	102396	0	-3
pi@grouchopi:/$ free
              total        used        free      shared  buff/cache   available
Mem:         948296       66928      753336       12356      128032      817596
Swap:       2778104           0     2778104
pi@grouchopi:/$ 

I think that the swapfile in the SDCard has it's priority set somewhere at 2 and as a consequence, the /swap parition gets set at 3.

Now I will turn off the swapfile so there's no swapping on the SDCard and change the priority of the /swap partiton to 1 and see how it goes.
The RPi has just 1Gb. RAM.

Cheers,

A.

#1433 Re: Hardware & System Configuration » System Specifications Of Users Systems? » 2020-05-22 15:23:04

Hello:

Sun Microsystems Ultra24 WS - Intel Q9550@2833MHz. / 8.0Gb RAM / 1 x 120Gb SATA SSD for boot + 4x SAS HDDs x storage.
2xNvidia Quadro FX-580 + 3x19" monitors. 

Asus 1000HE - Intel Atom N280/1.66 GHz. 2.0Gb RAM - 500Gb SATA HDD

Cheers,

A.

#1434 Re: ARM Builds » [Solved] Devuan and Raspberry Pi 3B+ hardware » 2020-05-22 14:50:39

Hello:

ShorTie wrote:

... try sumfin for me ??

Sure, be glad to.

But my guess is that you need this run on a Devuan ascii RPi3b+.

ShorTie wrote:
echo 'SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"' > /etc/udev/rules.d/10-vchiq-permissions.rules 
echo 'SUBSYSTEM=="vcio",GROUP="video",MODE="0660"' >> /etc/udev/rules.d/10-vchiq-permissions.rules 
echo 'SUBSYSTEM=="vc-mem",GROUP="video",MODE="0660"' >> /etc/udev/rules.d/10-vchiq-permissions.rules 

I gave up (for the time being) on Devuan ascii on the RPi.
See the thread and the post (#15) with the 'why' here.

Basically, the roasting software I need to use is 'tailored' to how Raspbian is packaged and not supported in Devuan, only Raspbian.

On top of that, I now have the problem of Raspbian not having a root account ...   8^ð !

To be root y have to sudo su.

pi@grouchopi:~ $ sudo su
root@grouchopi:/home/pi# 

No password, save having logged in.

And If I generate a root account (as sudo!) it seems to work but there are issues with /tmp not being there.
eg: if I run mc as root.

I'll ask at the RPi forum first and then here.
Maybe someone will help me sanitize this Raspbian thing enough to make it a bit more comfortable to use.

Cheers,

A.

#1435 Re: Installation » Devuan ARM64 depndency issue » 2020-05-21 18:13:07

Hello:

chris2be8 wrote:

... try ln -s /home/chris /home/pi (replace chris with your id). It probably needs to run as root to update /home.

This 'setting up a user called pi' would be done on a Devuan RPi installation.
ie: which does not come with a predermined sudo enabled userid set up by default.

The only object in setting up a user pi instead of my usual userid groucho is to see if the roasting software will work, as it seems to expect the Raspbian default.
ie: a predetermined userid pi with the corresponding /pi sub-dir in /home.
Which is obviously not present in Devuan (which would seem to be the proper way to do things).

When the software scripts look for the expected /home/pi/.config files and does not find them, everything goes south.
At least, that is what I think is happening.

Thanks for your input.

Cheers,

A.

#1436 Re: Installation » Devuan ARM64 depndency issue » 2020-05-21 11:20:02

Hello:

Head_on_a_Stick wrote:

Try ...

I've decided to give up, at least for the time being.
But not on Devuan, it will always be my Linux distribution.

But I really need to get the roasting software running and see if it is worthwhile to use the RPi for that.

The people at raspberry.org have no support for Devuan and the author of the software I need to run on the RPi has no support for Devuan either.
He built and tested it for Raspbian only.
But to the exteme.

eg:

I burned the latest (minimal Buster Lite) Raspbian image on the 2.0Gb SDCard and got the HDD working.
After a rather long update/upgrade cycle I installed the basics (xserver-xorg, slim, openbox, tint2, lxterminal) and then the roasting software.
Worked as expected.

And what did I find?

Confusingly enough (for me), the Raspbian image comes with a default user, already set up with a login password, sudo membership and all.
But no root access which you have to set up yourself.

By sudoing your way along ...  8^7'

And what name would this default user have?
You guessed it: none other than pi.

Which is why (?) the script could not find /home/pi in my Devuan installation.

There is a significant (?) difference between the installations.

While uname -a with the Devuan image gave this output ...

groucho@rpidevuan:~$ uname -a
Linux rpidevuan 4.16.14-v8+ #1 SMP PREEMPT Tue Jun 5 18:50:10 CEST 2018 aarch64 GNU/Linux
groucho@rpidevuan:~$ 

... the Raspbian image gave this one:

pi@grouchopi:~ $ uname -a
Linux grouchopi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux
pi@grouchopi:~ $ 

ie: v8+ and aarch64 vis-a-vis v7+ and armv7.
Would this have a bearing in all the issues I have found?

I don't have the necessary know-how to change whatever scripts need to be changed in order for the software to run on Devuan.
So for the time being I'll see how it does on Raspbian.

When I have some more time on my hands, I'll try with a Devuan image again.
Maybe setting up a user named pi will make a difference?

In the meanwhile, any further ideas are welcome.
I've run out.

Cheers,

A.

#1437 Re: Installation » Devuan ARM64 depndency issue » 2020-05-20 19:16:20

Hello:

Head_on_a_Stick wrote:

Just before LIBOVERLAY_SCROLLBAR=0, the space is the delimiter.

Right.

Head_on_a_Stick wrote:

Not really, LD_LIBRARY_PATH just makes the application search the custom locations first.

I see ...

Must be why, after following ralph.ronnquist's suggestion to install zlib1g:armhf, I now have a whole new can of worms on my hands.
Evidently he was right, I did need to install zlib1g:armhf.

Now, when I run the application as root from /usr/share/artisan I don't get the output I got before installing it ...
ie:

root@rpidevuan:/# /usr/share/artisan/artisan
/usr/share/artisan/artisan: error while loading shared libraries: 
libz.so.1: cannot open shared object file: No such file or directory
root@rpidevuan:/# 

... where the problem was just libz.so.1 not being found.

The output is more populated and there is no mention of libz.so.1:

t@rpidevuan:/home/groucho# /usr/share/artisan/artisan
Traceback (most recent call last):
  File "artisan.py", line 68, in <module>
  File "/home/pi/.local/lib/python3.5/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
  File "artisanlib/main.py", line 86, in <module>
  File "/home/pi/.local/lib/python3.5/site-packages/PyInstaller/loader/pyimod03_importers.py", line 714, in load_module
ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
[1624] Failed to execute script artisan
root@rpidevuan:/home/groucho# 

When I saw python3.5 I remembered having seen that the software needed that version of python which came installed in the Raspbian image.

Sure enough, the version in Devuan ascii was 2.7, so I installed 3.5.

But to no avail, the output was exactly the same.

There is no /pi sub-directory in my /home directory.
Nor are any of the other two files listed ie: artisan.py, main.py in the output present in my system.

libstdc++.so.6 is present but not in the LD_LIBRARY_PATH=:

root@rpidevuan:/home/groucho# locate libstdc++.so.6
/usr/lib/aarch64-linux-gnu/libstdc++.so.6
/usr/lib/aarch64-linux-gnu/libstdc++.so.6.0.22
/usr/share/gdb/auto-load/usr/lib/aarch64-linux-gnu/libstdc++.so.6.0.22-gdb.py
root@rpidevuan:/home/groucho# 

It seems that the developer really meant it: the software was build and tested for Raspian.

On one hand, python3.5 is not listed as a dependency (because Raspbian has it built in) and on the other, Raspbian seems to have some rather unique file locations.
eg: /home/pi/.local/lib/python3.5/site-packages/PyInstaller/loader/pyimod03_importers.py

All that python stuff in the /home directory?
I've been through quite a few distributions, can't recall having seen that before.

So ...
Short of just giving up and using Raspbian on my RPi to run the roasting software, any ideas towards making this work?

Thanks for your input.

A.

#1438 Re: Installation » Devuan ARM64 depndency issue » 2020-05-20 10:27:13

Hello:

ralph.ronnquist wrote:

... need to install zlib1g:armhf

A compression library from what I have read.
For some reason adding the armfh architecture did not pull it in.
Shouldn't it have been pulled in?

It installed without issue.
What use will it have?

Is there anything else armfh related that should have been pulled in?

Q1:
Would it be correct to assume that the developer sends everything to /dev/null because his Artisan software for RPi is build and tested for
Raspian Stretch
, which is Debian and relies on systemd for taking care of the log?

If so, I'd need to be able to generate one.

Q2:
Would this suffice?

root@rpidevuan:/home/groucho# touch /var/log/artisan.log
root@rpidevuan:/home/groucho#

then ...

--- snip ---
/usr/share/artisan/artisan "$@" 2>/var/log/artisan.log

instead of:

--- snip ---
/usr/share/artisan/artisan "$@" 2>/dev/null

Thanks  for your input.

Cheers,

A.

#1439 Re: Installation » Devuan ARM64 depndency issue » 2020-05-20 01:14:37

Hello:

Head_on_a_Stick wrote:

... didn't update your sources immediately after adding the armhf ...

It could very well be, really can't recall.

I've made some advances with some indications from the developer.
Seems that there is no configured log file, everything goes to /dev/null.

But if I run the application as root from /usr/share/artisan I get some output:

root@rpidevuan:/# /usr/share/artisan/artisan
/usr/share/artisan/artisan: error while loading shared libraries: 
libz.so.1: cannot open shared object file: No such file or directory
root@rpidevuan:/# 

The library libz.so.1 that the executable cannot find *is* present in /lib/aarch64-linux-gnu/:

root@rpidevuan:/# locate libz.so.1
/lib/aarch64-linux-gnu/libz.so.1
/lib/aarch64-linux-gnu/libz.so.1.2.8
root@rpidevuan:/# 

The problem is that the start-up script is telling the application to look for it elsewhere:

root@rpidevuan:/usr/bin# cat artisan
#!/bin/sh

if [ -f /etc/os-release ]; then
    grep Raspbian /etc/os-release >/dev/null
    # Workaround for issue #187
    if [ $? -eq 0 ]; then
 unset XDG_CURRENT_DESKTOP
    fi
fi
exec /usr/bin/env QT_PLUGIN_PATH=/usr/share/artisan/PyQt5/Qt/plugins
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/gtk-3.0/modules:/usr/share/a
rtisan:$LD_LIBRARY_PATH LIBOVERLAY_SCROLLBAR=0
GTK2_RC_FILES="$HOME/.gtkrc-2.0" /usr/share/artisan/artisan "$@" 2>/dev/null
root@rpidevuan:/usr/bin# 

There is no /usr/lib/x86_64-linux-gnu in my system.
But there is a /usr/lib/aarch64-linux-gnu/gtk-3.0.

It is not too clear to me how the path should read and where the library should be.
ie: where does the LD_LIBRARY_PATH= stanza end?

Any suggestions?

Thanks in advance,

A.

#1440 Re: Installation » Devuan ARM64 depndency issue » 2020-05-19 16:53:18

Hello:

Altoid wrote:

Running (yes, again) apt-get check, apt-get update and apt-get upgrade showed everything was (should be) in place.

I now have to check and see if the roasting software works.
I'll post back on that later on.

Well ...
Later on came ...
... and went.

And much to my chagrin, the roasting software wouldn't start.   8 ^⁷
Nothing.
No output.

Unless I have missed something, there are no missing dependencies.

To make things worse, I cannot find anything within the logs in RPi's installation.

How can I debug this if I cannot get any data from the logs?

Thanks in advance,

A.

#1441 Re: Installation » Devuan ARM64 depndency issue » 2020-05-19 15:01:03

Hello:

Altoid wrote:

If so, how to fix it?

I found a post in an Italian site with a clue to this problem, which was related to some other software.
It said that the fix was apt install -f.

Having nothing much to lose ...

root@rpidevuan:/home/groucho# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  gcc-6-base:armhf libc6:armhf libgcc1:armhf
Suggested packages:
  glibc-doc:armhf locales:armhf
The following NEW packages will be installed:
  gcc-6-base:armhf libc6:armhf libgcc1:armhf
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 2559 kB of archives.
After this operation, 8950 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://pkgmaster.devuan.org/merged ascii/main armhf gcc-6-base armhf 6.3.0-18+deb9u1 [180 kB]
Get:2 http://pkgmaster.devuan.org/merged ascii/main armhf libgcc1 armhf 1:6.3.0-18+deb9u1 [38.5 kB]
Get:3 http://pkgmaster.devuan.org/merged ascii/main armhf libc6 armhf 2.24-11+deb9u4 [2341 kB]
Fetched 2559 kB in 4s (544 kB/s)       
Preconfiguring packages ...
Selecting previously unselected package gcc-6-base:armhf.
(Reading database ... 38598 files and directories currently installed.)
Preparing to unpack .../gcc-6-base_6.3.0-18+deb9u1_armhf.deb ...
Unpacking gcc-6-base:armhf (6.3.0-18+deb9u1) ...
Selecting previously unselected package libgcc1:armhf.
Preparing to unpack .../libgcc1_1%3a6.3.0-18+deb9u1_armhf.deb ...
Unpacking libgcc1:armhf (1:6.3.0-18+deb9u1) ...
Selecting previously unselected package libc6:armhf.
Preparing to unpack .../libc6_2.24-11+deb9u4_armhf.deb ...
Unpacking libc6:armhf (2.24-11+deb9u4) ...
Setting up gcc-6-base:armhf (6.3.0-18+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up libgcc1:armhf (1:6.3.0-18+deb9u1) ...
Setting up libc6:armhf (2.24-11+deb9u4) ...
Setting up artisan:armhf (2.1.2) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
root@rpidevuan:/home/groucho#

Interesting ...
So then I went about seeing what would happen with lxappearance:

root@rpidevuan:/home/groucho# apt-get install lxappearance
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  gtk2-engines lxde-settings-daemon
The following NEW packages will be installed:
  gtk2-engines lxappearance lxde-settings-daemon
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 438 kB of archives.
After this operation, 1900 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://pkgmaster.devuan.org/merged ascii/main arm64 gtk2-engines arm64 1:2.20.2-3 [342 kB]
Get:2 http://pkgmaster.devuan.org/merged ascii/main arm64 lxappearance arm64 0.6.3-1 [80.4 kB]
Get:3 http://pkgmaster.devuan.org/merged ascii/main arm64 lxde-settings-daemon arm64 0.5.3-2 [15.7 kB]
Fetched 438 kB in 2s (184 kB/s)            
Selecting previously unselected package gtk2-engines:arm64.
(Reading database ... 38908 files and directories currently installed.)
Preparing to unpack .../gtk2-engines_1%3a2.20.2-3_arm64.deb ...
Unpacking gtk2-engines:arm64 (1:2.20.2-3) ...
Selecting previously unselected package lxappearance.
Preparing to unpack .../lxappearance_0.6.3-1_arm64.deb ...
Unpacking lxappearance (0.6.3-1) ...
Selecting previously unselected package lxde-settings-daemon.
Preparing to unpack .../lxde-settings-daemon_0.5.3-2_arm64.deb ...
Unpacking lxde-settings-daemon (0.5.3-2) ...
Processing triggers for mime-support (3.60) ...
Setting up gtk2-engines:arm64 (1:2.20.2-3) ...
Setting up lxde-settings-daemon (0.5.3-2) ...
Setting up lxappearance (0.6.3-1) ...
root@rpidevuan:/home/groucho# 

Also interesting ...
Now the only thing left to see was what would happen with the roasting software installation, which I understood as installed but not configured:

root@rpidevuan:/home/groucho/Downloads# apt install ./artisan-linux-2.1.2_raspbian-stretch.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
--- empty line added ---
Note, selecting 'artisan:armhf' instead of './artisan-linux-2.1.2_raspbian-stretch.deb'        <------------------- what is this about?
artisan:armhf is already the newest version (2.1.2).
--- empty line added ---
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@rpidevuan:/home/groucho/Downloads#

It seemed were more upgrades to do:

root@rpidevuan:/home/groucho/Downloads# apt-get update
Hit:1 http://pkgmaster.devuan.org/merged ascii InRelease
Hit:2 http://pkgmaster.devuan.org/merged ascii-updates InRelease
Hit:3 http://pkgmaster.devuan.org/merged ascii-security InRelease
Reading package lists... Done
root@rpidevuan:/home/groucho/Downloads#
root@rpidevuan:/home/groucho/Downloads# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  colord-data
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1340 kB of archives.
After this operation, 33.8 kB disk space will be freed.
Do you want to continue? [Y/n] 
Get:1 http://pkgmaster.devuan.org/merged ascii/main armhf colord-data all 1.3.3-1+devuan1 [1340 kB]
Fetched 1340 kB in 2s (521 kB/s)      
(Reading database ... 39018 files and directories currently installed.)
Preparing to unpack .../colord-data_1.3.3-1+devuan1_all.deb ...
Unpacking colord-data (1.3.3-1+devuan1) over (1.2.1-1+devuan1) ...
Setting up colord-data (1.3.3-1+devuan1) ...
root@rpidevuan:/home/groucho/Downloads# 

Done ...
Running (yes, again) apt-get check, apt-get update and apt-get upgrade showed everything was (should be) in place.

I now have to check and see if the roasting software works.
I'll post back on that later on.

In the meanwhile ...
Could someone with the neccesary know-how explain what happened?

Why did I have to use apt install -f to get this right?

Thanks in advance.

Cheers,

A.

#1442 Re: Installation » Devuan ARM64 depndency issue » 2020-05-19 13:14:50

Hello:

Altoid wrote:

3.
Could it be that the use of an image on my RPi 3B+ makes it non-upgradeable?
ie: certain libraries cannot be installed/upgraded, hence the dependency issue.

While continuing to set up my RPi, I came across the same problem, albeit not linked to the roasting sofware but to a Devuan package:

root@rpidevuan:/home/groucho# apt-get install lxappearance
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 artisan:armhf : Depends: libc6:armhf (>= 2.17) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@rpidevuan:/home/groucho# 

Rather puzzled by this, I checked on the dependencies for lxappearance:

root@rpidevuan:/home/groucho# apt-cache depends lxappearance
lxappearance
  Depends: libatk1.0-0
  Depends: libc6                               <------------------- here it is
  Depends: libcairo2
  Depends: libdbus-1-3
  Depends: libdbus-glib-1-2
  Depends: libfontconfig1
  Depends: libfreetype6
  Depends: libgdk-pixbuf2.0-0
  Depends: libglib2.0-0
  Depends: libgtk2.0-0
  Depends: libpango-1.0-0
  Depends: libpangocairo-1.0-0
  Depends: libpangoft2-1.0-0
  Depends: libx11-6
  Recommends: gtk2-engines
  Recommends: lxde-settings-daemon
    lxsession
root@rpidevuan:/home/groucho# 

The package libc6 shows up again as a dependency for lxappearance.
But what I don't understand is artisan:armhf being mentioned again but in this context.

Seeing that the problem is also present when installing a regular Devuan package, I think that its being related to the roasting software can be ruled out.

Could it then be something related to the Devuan image I used?

If so, how to fix it?

Thanks in advance,

A.

#1443 Re: ARM Builds » [Solved] Devuan and Raspberry Pi 3B+ hardware » 2020-05-19 13:03:02

Hello:

ShorTie wrote:

"If when running vcgencmd on a raspberry pi you get VCHI initialization failed then you need to add the video group to your user."

Yes, I saw that.

I added my user to video and also to www-data as recommended in some other post I saw, did not work.

But it's not really an issue, just a heads up.  =-)

Thanks for your input.

Cheers,

A.

#1444 Re: Installation » Devuan ARM64 depndency issue » 2020-05-19 11:17:32

Hello:

Altoid wrote:

Any ideas?

I posted this issue on the Artisan-user mailing list and got this answer:

I fear I cannot help with this one. Artisan on RPi is build and tested for
Raspian Stretch (next version will add a build for Raspian Buster). You
seem to run Devuan, right? Such a configuration is simply not supported.
Try to run from source...

Independently of the fact that the develper's answer really leaves much to be desired, a couple of questions come to mind:

1.
As far as I know (others may know better), Raspbian Stretch is based on Debian Stretch which in turn is nothing but Devuan ascii without the hindrances that systemd imposes on it.

Is this so or am I missing something here?

2.
If I am not missing something and my reasoning correct, then the dependency problem I am having is not at all related to Devuan (as expected).
ie: there should be no difference between running the roasting software on Raspbian Stretch or on Devuan ascii, there does not seem to be any systemd related problem.

I successfully run an older version of the roasting software on Devuan ascii 32bit/netbook, so what gives?

3.
Could it be that the use of an image on my RPi 3B+ makes it non-upgradeable?
ie: certain libraries cannot be installed/upgraded, hence the dependency issue.

The image of Ritchie Havens opening at Woodstock in 1969 came to mind this morning:

"Sometimes I feel like a motherless child
A long way from my home"

Any idea as to how I can solve this, short of having to use Raspbian on my RPi3B+?

Thanks in advance,

A.

#1445 Re: Installation » Devuan ARM64 depndency issue » 2020-05-18 22:32:46

Hello:

Head_on_a_Stick wrote:

... that should be

# apt install libc6:armhf

I'm afraid that won't work.

root@rpidevuan:/home/groucho# apt install libc6:armhf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6:armhf : Depends: libgcc1:armhf but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@rpidevuan:/home/groucho#
Head_on_a_Stick wrote:

... use

# apt install ./artisan-linux-2.1.2_raspbian-stretch.deb

to pull in the dependencies automatically.

No luck either ...

root@rpidevuan:/home/groucho/Downloads# apt install ./artisan-linux-2.1.2_raspbian-stretch.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 artisan:armhf : Depends: libc6:armhf (>= 2.17) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@rpidevuan:/home/groucho/Downloads# 

As you can see in both instances the problem of dependecy is the same:

--- snip ---
The following packages have unmet dependencies:
 libc6:armhf : Depends: libgcc1:armhf but it is not going to be installed
--- snip ---
--- snip ---
The following packages have unmet dependencies:
 artisan:armhf : Depends: libc6:armhf (>= 2.17) but it is not installed
--- snip ---

Not one to give up, I insisted with the new arrival at the apt rebellion ...

root@rpidevuan:/# apt install libgcc1:armhf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 artisan:armhf : Depends: libc6:armhf (>= 2.17) but it is not going to be installed
 libgcc1:armhf : Depends: gcc-6-base:armhf (= 6.3.0-18+deb9u1) but it is not going to be installed
                 Depends: libc6:armhf (>= 2.4) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@rpidevuan:/# 

... but it did not work.

Thanks a lot for your input.

Cheers,

A.

#1446 Installation » Devuan ARM64 depndency issue » 2020-05-18 20:32:01

Altoid
Replies: 16

Helloo:

Finally got my VGA/HDMI thingy and went about installing the coffee roaster software.

At first it would not install because of an architecture problem.

Some google and it was solved via dpkg --add-architecture armhf.
Still have to figure out the armhf / ARM64 thing.

So I then it installed properly but when I tried to start it, it would not.

I tried reinstalling the application and got this:

root@rpidevuan:/home/groucho/Downloads# dpkg -i artisan-linux-2.1.2_raspbian-stretch.deb
Selecting previously unselected package artisan:armhf.
(Reading database ... 37452 files and directories currently installed.)
Preparing to unpack artisan-linux-2.1.2_raspbian-stretch.deb ...
Unpacking artisan:armhf (2.1.2) ...
dpkg: dependency problems prevent configuration of artisan:armhf:
 artisan:armhf depends on libc6 (>= 2.17).

dpkg: error processing package artisan:armhf (--install):
 dependency problems - leaving unconfigured
Processing triggers for mime-support (3.60) ...
Errors were encountered while processing:
 artisan:armhf
root@rpidevuan:/home/groucho/Downloads#

 

I'm guessing that libc6 refers to libc6:arm64, which is present in the system ...

groucho@rpidevuan:~$ uname -a
Linux rpidevuan 4.16.14-v8+ #1 SMP PREEMPT Tue Jun 5 18:50:10 CEST 2018 aarch64 GNU/Linux
groucho@rpidevuan:~$ 
groucho@rpidevuan:~$ locate libc6
/usr/share/doc/libc6
/usr/share/doc/libc6/BUGS
/usr/share/doc/libc6/NEWS.Debian.gz
/usr/share/doc/libc6/NEWS.gz
/usr/share/doc/libc6/README.Debian.gz
/usr/share/doc/libc6/README.hesiod.gz
/usr/share/doc/libc6/changelog.Debian.gz
/usr/share/doc/libc6/changelog.gz
/usr/share/doc/libc6/copyright
/usr/share/lintian/overrides/libc6
/var/lib/dpkg/info/libc6:arm64.conffiles
/var/lib/dpkg/info/libc6:arm64.list
/var/lib/dpkg/info/libc6:arm64.md5sums
/var/lib/dpkg/info/libc6:arm64.postinst
/var/lib/dpkg/info/libc6:arm64.postrm
/var/lib/dpkg/info/libc6:arm64.preinst
/var/lib/dpkg/info/libc6:arm64.shlibs
/var/lib/dpkg/info/libc6:arm64.symbols
/var/lib/dpkg/info/libc6:arm64.templates
/var/lib/dpkg/info/libc6:arm64.triggers
groucho@rpidevuan:~$ 
groucho@rpidevuan:~$ cat /usr/share/doc/libc6/copyright
This is the Debian prepackaged version of the GNU C Library version 2.23.
--- snip ---

... or to libc6:armhf which is not and I cannot find in the repository:

root@rpidevuan:/home/groucho# apt-get install libc6-armhf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libc6-armhf
root@rpidevuan:/home/groucho# 

The nearest thing I have found is libc6-armhf-cross, but when I try to install it I get this:

root@rpidevuan:/home/groucho# apt-get install libc6-armhf-cross
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 artisan:armhf : Depends: libc6:armhf (>= 2.17) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@rpidevuan:/home/groucho# 

Running apt --fix-broken install gets rid of artisan:armhf but that does not solve the problem, which apparently needs an uninstallable library.

Any ideas?

Thanks in advance,

A.

#1447 Re: ARM Builds » [Solved] Devuan and Raspberry Pi 3B+ hardware » 2020-05-18 01:47:56

Hello:

ShorTie wrote:

... uploaded my Devuan-pi4-os64 ...
... is vcgencmd.tar.xz

Great!

ShorTie wrote:

... believe will work for you.

Yes.
Indeed it does.

ShorTie wrote:

... need to make a deb ...

It would be make installing it more straightforward.
But seeing it is an ARM64 thing, maybe it would be best (?) for it to be in the image/installer.

In the meanwhile, those of us who are tinkering with Devuan/RPi can manage perfectly with tar.
The files get set up in the proper places Devuan-wise so no issues.

It need to be run it as root otherwise you get an error.

eg:

groucho@rpidevuan:~$ /usr/bin/vcgencmd measure_temp
VCHI initialization failed
groucho@rpidevuan:~$ 
root@rpidevuan:/home/groucho# /usr/bin/vcgencmd measure_temp
temp=35.4'C
root@rpidevuan:/home/groucho# 

Thank you so much for doing this.  =-)

Best,

A.

#1448 Re: ARM Builds » [Solved] Devuan and Raspberry Pi 3B+ hardware » 2020-05-17 10:01:17

Hello:

tuxd3v wrote:

... loaded in: /etc/modules

Indeed ...

tuxd3v wrote:

... information for a module via sysfs in /etc/rc.local or other place, if you find appropriate in a daemon.

I'll take your word for it.  =-)
I have no idea how all that works.

All I know is that if I need a module, that is one way to load it. 

tuxd3v wrote:

... creating a layer above another layer of complexity, and then mixing in another ...

The thing is that vcgencmd is specific to Broadcom chips but we don't have a *.deb for it.
And all the GPIO stuff that the RPi uses for things much more complex than the one I am implementing does not seem (at least I have not found it) to be anywhere but in Raspbian.

tuxd3v wrote:

... greatest thing in the universe...

It would seem that ARM64, as far as Linux is concerned, is systemd land.
Exclusively.

Thanks for your input.

Cheers,

A.

#1449 Re: ARM Builds » [Solved] Devuan and Raspberry Pi 3B+ hardware » 2020-05-15 21:59:45

Hello:

ShorTie wrote:

You can compile it ...

Yes, I also saw that link in a post at the raspberry pi forums.
But I also read a number of other posts that pointed out that it was not as straightforward as it would seem.

My point would be that, as it seems to be a rather important bit (?) of what is needed to get ARM64 Debian to work smoothly ...
Shouldn't it be in the repository or better yet, part of the image/installation?

And then there's the GPIO stuff that apparently depends on systemd.   =^ *'

Thanks for your input.

Cheers,

A.

#1450 Re: Hardware & System Configuration » Raspberry Pi 3B+ and USB HDD shutdown » 2020-05-15 19:52:49

Hello:

ShorTie wrote:

... best idea ...

Quite so ...

As you may have read, originally I started powering the HDD from one of the RPi's USB ports.
There was a problem with the SDD not spinning up but it was nothing other than the usual in these cases: the length and gauge of the cable with the micro-USB plug.

I wonder how they say too long / too thin in Chinese?   8^7

So I just got rid of it through some light PS surgery and replaced it with nothing.
The PS has three comfortable USB charging ports on the back and are enough.

Done that, I started powering the RPi with shorter and much better quality power only usb cable (Blackberry phone, I think) from one of the USB ports.
Voltage measurements taken at idle read 5.14V which would seem to be correct.

ShorTie wrote:

Pi's cut usb power, long before ...

I also thought as much.
So I switched to powering the HDD from one of the PS's USB ports.

Not being under RPi control, the HDD's shut down timing/scheme would be different.
ie: not as sudden.

Well ...
Turns out that the HDD's shutdown is exactly the same whether the HDD is powered from a USB port on the RPi or a USB port on a separate power supply.
A separate power supply that is not switched off when the RPi is shut down.

Whatever controls this HDD shutdown is within the Devuan image's configuration and evidently does it under the assumption that it is controlling a SD Card and not a HDD.
But I have not been able to figure out what/where it is.

I say this because I have observed that this same HDD does not shut down in the same manner when connected to my Asus 1000HE netbook.

Thanks for your input.

Cheers,

A.

Board footer

Forum Software