You are not logged in.
Pages: 1
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
You can compile it .. ~
https://github.com/raspberrypi/userland
Not much to, just need cmake.
Offline
Hello:
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
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..
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
Best Regards,
tux
Offline
Hello:
... loaded in: /etc/modules
Indeed ...
... 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.
... 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.
... 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
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 .. ~
Offline
Hello:
... uploaded my Devuan-pi4-os64 ...
... is vcgencmd.tar.xz
Great!
... believe will work for you.
Yes.
Indeed it does.
... 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
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
Hello:
"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
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
Hello:
... try sumfin for me ??
Sure, be glad to.
But my guess is that you need this run on a Devuan ascii RPi3b+.
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
root is there, just need to make a passwd
sudo su
passwd
Offline
Hello:
I gave up on Raspbian and managed to get the coffee roasting sofware on the RPi3B+ Devuan installation.
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.
And see if it works.
pi@rpidevuan:~$ /usr/bin/vcgencmd measure_temp
temp=32.7'C
pi@rpidevuan:~$
It did.
Thanks. =-)
Cheers,
A.
Offline
@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
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
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
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 )..
Last edited by tuxd3v (2021-03-15 02:27:28)
Best Regards,
tux
Offline
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,
I also believe that this not a problem any more,
Since Devuan has support for RPi{0,1,,2,3,4}
Best Regards,
tux
Offline
Pages: 1