The officially official Devuan Forum!

You are not logged in.

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

Altoid
Member
Registered: 2017-05-07
Posts: 1,415  

[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: 21  

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: 1,415  

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: 183  

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: 1,415  

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: 21  

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: 1,415  

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: 21  

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: 1,415  

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: 21  

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: 1,415  

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: 21  

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: 1,415  

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

#14 2021-03-14 20:07:52

dave
Member
Registered: 2020-09-28
Posts: 12  

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

@ShoreTie   re: vcgencmd tar.xz file dated May 17, 2020.

Thanks.  Works for me on a Raspberry Pi 3 Model B Rev 1.2 running beowulf.

Offline

#15 2021-03-14 22:24:09

yeti
Member
From: I'm not here: U R halucinating
Registered: 2017-02-23
Posts: 304  

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

Would grabbing the deb-src from RasPIan and rebuilding it on Devuan work?
You'd have a deb (apt-ftparchive?) then for a local repo () or to dpkg -i it.
You'd notice incompatible updates then, which you won't get if installed without the OS's knowledge.


<πš‹πš˜πšπš’ πš˜πš—πš•πš˜πšŠπš='πšπš˜πšŒπšžπš–πšŽπš—πš.πš‹πš˜πšπš’.πš’πš—πš—πšŽπš›π™·πšƒπ™Όπ™»="π™³πš’πšœπšŠπš‹πš•πšŽ π™Ήπš‚!";'>
π”“π”©π”’π”žπ”°π”’ π”©π”’π”žπ”³π”’ 𝔢𝔬𝔲𝔯 π”£π”žπ”²π”©π”±π”° 𝔦𝔫 𝔱π”₯𝔒 𝔰𝔒𝔠𝔱𝔦𝔬𝔫 π”Ÿπ”’π”©π”¬π”΄ π”žπ”«π”‘ 𝔑𝔬𝔫'𝔱 𝔣𝔬𝔯𝔀𝔒𝔱 𝔱𝔬 π”²π”«π”°π”²π”Ÿπ”°π” π”―π”¦π”Ÿπ”’!

Offline

#16 2021-03-15 02:26:21

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

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

yeti wrote:

Would grabbing the deb-src from RasPIan and rebuilding it on Devuan work?
You'd have a deb (apt-ftparchive?) then for a local repo () or to dpkg -i it.
You'd notice incompatible updates then, which you won't get if installed without the OS's knowledge.

hello  yeti,
I believe that at some point the userland deb packages from Raspbian, need uboot packages or so..
I saw already here a problem related with it..

I believe the easier way will be to compile from source, lets say in '/opt/userland_or_so',
Shortie has above some good comments about what's needed, and maybe those udev rules are needed.

I didn't tested yet, I am waiting orders that are in the mail, but will later do a nice test, "from top to bottom", on camera, and maybe display smile

To check temperatures and such, it already works!
there are some commands that enquire the Videocore about a lot of things, some work, and some don't;
I never managed to put some to work, but again, without the hardware attached, its difficult to test( waiting very impatiently for my mail orders smile  )..

Last edited by tuxd3v (2021-03-15 02:27:28)


Best Regards,
tux

Offline

#17 2021-03-22 02:58:37

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

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

Hello Altoid,
You can use Devuan Image for RPi3,
It should Work..

Hello Yeti,
I just downloaded last Devuan Image for RPi1,
And the RaspBerryPi userland is working, I manage to get Camera working and a lot of commands, smile

I also believe that this not a problem any more,
Since Devuan has support for RPi{0,1,,2,3,4} smile


Best Regards,
tux

Offline

Board footer