The officially official Devuan Forum!

You are not logged in.

#1 2020-05-14 20:46:48

Altoid
Member
Registered: 2017-05-07
Posts: 419  

[Solved] Devuan and Raspberry Pi 3B+ hardware

Hello:

Working on my RPi3B+ hardware setup I have come across a few things for which I am still trying to wrap my head around.
Evidently ARM is not x86 and ARM64 is not x86_64.

One of the things that I'm not getting is the configuration of things related to the GPIO pins.
It seems that most if not all the settings for the GPIO pins rely on systemd, which Raspbian uses.

Another thing I have come across is the fact that vcgencmd is not in the image I've installed and cannot be installed from the repository.
And there's probably more I will be finding out about as I make progress with my installation/configuration.

Is there a way of getting around all this or will I end up having to use Raspbian in my RPi3B+?

Thanks in advance,

A.

Last edited by Altoid (2020-06-19 14:35:39)

Offline

#2 2020-05-15 18:43:48

ShorTie
Member
Registered: 2020-05-14
Posts: 11  

Re: [Solved] Devuan and Raspberry Pi 3B+ hardware

You can compile it .. hmm~
https://github.com/raspberrypi/userland
Not much to, just need cmake.

Offline

#3 2020-05-15 21:59:45

Altoid
Member
Registered: 2017-05-07
Posts: 419  

Re: [Solved] Devuan and Raspberry Pi 3B+ hardware

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.

Offline

#4 2020-05-17 06:28:11

tuxd3v
Member
Registered: 2019-11-14
Posts: 99  

Re: [Solved] Devuan and Raspberry Pi 3B+ hardware

Hello,
modules can be loaded in: /etc/modules

then you can pass some information for a module via sysfs in /etc/rc.local or other place, if you find appropriate in a daemon.. smile
well they are just creating a layer above another layer of complexity, and then mixing in another mammoth atop( systemd )

And they thing its the greatest thing in the universe..
its that and flying Unicorns big_smile


Best Regards,
tux

Offline

#5 2020-05-17 10:01:17

Altoid
Member
Registered: 2017-05-07
Posts: 419  

Re: [Solved] Devuan and Raspberry Pi 3B+ hardware

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.

Offline

#6 2020-05-17 22:50:22

ShorTie
Member
Registered: 2020-05-14
Posts: 11  

Re: [Solved] Devuan and Raspberry Pi 3B+ hardware

I've uploaded my Devuan-pi4-os64 to github.
https://github.com/ShorTie8/Devuan-pi4-os64

With in it is vcgencmd.tar.xz
Which I do believe will work for you.

untar with

tar xf vcgencmd.tar.xz -C /

contains:
usr/bin/vcgencmd
usr/lib/libvcos.so
usr/lib/libvchiq_arm.so

Have A Great Day
ShorTie

ps: I need to make a deb for it .. hmm~

Offline

#7 2020-05-18 01:47:56

Altoid
Member
Registered: 2017-05-07
Posts: 419  

Re: [Solved] Devuan and Raspberry Pi 3B+ hardware

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.

Last edited by Altoid (2020-05-18 01:50:42)

Offline

#8 2020-05-18 08:05:44

ShorTie
Member
Registered: 2020-05-14
Posts: 11  

Re: [Solved] Devuan and Raspberry Pi 3B+ hardware

https://chewett.co.uk/blog/258/vchi-ini … -pi-fixed/

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

Try that maybe

Offline

#9 2020-05-19 13:03:02

Altoid
Member
Registered: 2017-05-07
Posts: 419  

Re: [Solved] Devuan and Raspberry Pi 3B+ hardware

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.

Offline

#10 2020-05-22 13:09:31

ShorTie
Member
Registered: 2020-05-14
Posts: 11  

Re: [Solved] Devuan and Raspberry Pi 3B+ hardware

Ok, care to try sumfin for me ??

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 

And see if it works.
Most likely need to re-boot.

Offline

#11 2020-05-22 14:50:39

Altoid
Member
Registered: 2017-05-07
Posts: 419  

Re: [Solved] Devuan and Raspberry Pi 3B+ hardware

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.

Offline

#12 2020-06-02 11:52:56

ShorTie
Member
Registered: 2020-05-14
Posts: 11  

Re: [Solved] Devuan and Raspberry Pi 3B+ hardware

root is there, just need to make a passwd

sudo su
passwd

Offline

#13 2020-06-02 13:30:44

Altoid
Member
Registered: 2017-05-07
Posts: 419  

Re: [Solved] Devuan and Raspberry Pi 3B+ hardware

Hello:

I gave up on Raspbian and managed to get the coffee roasting sofware on the RPi3B+ Devuan installation.

ShorTie wrote:

Ok, care to try sumfin for me ??

Sure ...

root@rpidevuan:/home/pi# echo 'SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"' > /etc/udev/rules.d/10-vchiq-permissions.rules
root@rpidevuan:/home/pi# 
root@rpidevuan:/home/pi# echo 'SUBSYSTEM=="vcio",GROUP="video",MODE="0660"' >> /etc/udev/rules.d/10-vchiq-permissions.rules 
root@rpidevuan:/home/pi# 
root@rpidevuan:/home/pi# echo 'SUBSYSTEM=="vc-mem",GROUP="video",MODE="0660"' >> /etc/udev/rules.d/10-vchiq-permissions.rules 
root@rpidevuan:/home/pi# 

Done.

Rebooted and logged into SLiM without any issues.

ShorTie wrote:

And see if it works.

pi@rpidevuan:~$ /usr/bin/vcgencmd measure_temp
temp=32.7'C
pi@rpidevuan:~$ 

It did.
Thanks.  =-)

Cheers,

A.

Offline

Board footer