The officially official Devuan Forum!

You are not logged in.

#26 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-07-27 17:33:49

You are missing the point.

Device Tree files
There are various Device Tree blob files, which have the extension .dtb. These contain the hardware definitions of the various models of Raspberry Pi, and are used on boot to set up the kernel according to which Pi model is detected.

https://www.raspberrypi.org/documentati … _folder.md

The keyword here is: Detected.

The DTB file should not be defined, as the bootloader detects which version of the pi and loads it accordingly. You can however define it inside the /boot/config.txt file, but that is usually only done if it's not in its default location or someone is using a custom DTB. Either way, this is done during the normal boot process of the Pi and has nothing to do with u-boot ==> {boot.scr,extlinux,grub}

So the problem still becomes, how does each kernel know which DTB to load if it is not definable when using u-boot and only takes place after the fact? I believe you had mentioned before that it may be/is possible for grub to copy the correct dtb into place during the boot process and if so I assume this would be doable. But then we still have the problem of Kernel packaging, which at this time isn't suitable.

You are more than welcome to work out the logistical elements of this and contribute if you wanna make this happen. You can find me on irc @ libera: #devuan-arm or #arm-img-builder

#27 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-07-27 13:25:17

On other SoCs the device tree blob/binary needs to be loaded with the kernel in Extlinux and is defined by using

fdtdir /location

and

fdt /location/file

but on the PI this can't been done. Not sure why Grub would be able to handle this, but ok? I'll read over ur post further when I have some time.

#28 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-07-27 03:07:45

So if I'm reading that correctly it depends highly on kernel packaging, yes? I believe I've already went over this and suggested that the current packaging isn't adequate. It simply isn't suitable for multi kernel boot and I never set it up to do so.

#29 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-07-27 02:52:06

Extlinux can load device-trees. It is the next stage of the bootloader on the Pi that gets confused, which is really just the first stage. That's the So what? As you so finely put it.

If you've had it working for 6 months why are you keeping it a secret and being a jerk about it here? Why not just contribute?

#30 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-07-27 02:26:45

ehem

Lets say we use u-boot. The DTB file can't be defined in extlinux, as the next stage of the bootloader will get confused and at worst not boot at all. If it did boot by chance, it would be all out of whack and certain onboard things wouldn't work. How do I know this? I've experimented with it smile

Your hate of the device-tree doesn't change how the bootloader works. In all honesty it would probs be easier to get a multi OS boot before a multi kernel boot on the same medium.

As for the device-tree, its essential. There are no if and or buts about it. This is not your Dads x86 computer smile Not all DTB files are gonna support the next kernel exactly the same and there isn't much any of us can do about it and unfortunately defining that DTB using extlinux and or grub is gonna create a headache in the boot process.

Of course, I'm just going on my own testing. I welcome you to play with it and see if you can get further.

Edit:
I'll extend an olive branch. How would one define which DTB to use for each kernel, if the DTB is undefinable?

#31 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-07-27 01:20:50

ehem wrote:
c0rnelius wrote:
ehem wrote:

You use U-Boot's UEFI support to have it load GRUB (SuSE uses this approach).  While wasteful due to having an extra bootloader stage, you gain GRUB's massively better functionality.

You aren't taking under account kernel packaging and the problems therein. Not to mention overlays and whatnots are gonna be different between kernel revisions, so now that would also need to be taken under consideration. Grub would also need to be scripted to know what to look for, which presents even more headaches.

Even other SBCs that use grub aren't trying to boot more than one kernel, as there is a lot of things to account for. But hey, if you feel like looking into it and investing the time and effort to make it work, go for it.

There was some discussion on Debian bug #824954.  Some of the necessary scripting can be found as GRUB wishlist #52939.

This though is only needed for covering the most extreme case, where GRUB needs to load a kernel-specific device-tree.  This isn't needed if you're switching between kernel patch levels, which is adequate if you're switching between 5.10.0-1 and 5.10.0-2 (which would be security update versions).  This is also overkill if you're simply rebuilding Devuan's kernel source with custom configuration.

You're also yet again ignoring the other highly important case.  It is possible, but quite difficult to boot Xen directly from U-Boot.  Whereas, GRUB will boot Xen out of the box.

In other news I find device-trees rather underwhelming.  Most UEFI implementations will boot Linux kernels from 3.0 to 5.10 with the exact same implementation.  The same implementation will also boot *BSD, or other closed OSes from Redmond.  Yet a device-tree implementation is only likely to work with one kernel version of one OS.

I'm not ignoring it, I just don't care smile I find it at this time to be a bit fruitless, hence why I suggested if you wanna put in the work to make it happen. Have at it!

You can simply review the latest changes in mainline to find what ur saying about kernel revisions isn't accurate at this time: https://git.kernel.org/pub/scm/linux/ke … 10.52&dt=2

I'm not against getting this working, I'm simply saying that the effort needed to get that done would be very time consuming.

Cheers!

#32 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-07-26 22:24:04

ehem wrote:
c0rnelius wrote:
ehem wrote:

Is there any hope Raspberry PI 4B images with U-Boot => GRUB will show up?

I like being able to easily boot previous kernels when the latest fails (modified kernels do fail and sometimes security update kernels have introduced severe reversions).  Also the Raspberry PI 4B has hardware suitable for running Xen and recent versions of GRUB (2.02 has the module, but only >=2.04 has an appropriate /etc/grub.d/20_linux_xen) will load Xen/ARM64 out of the box.

This would be easier to accomplish using u-boot and extlinux, with extlinux you can add an optional menu. One problem though, would be the current kernel packaging, as currently it purges the old kernel, dtbs, initrd, overlays and headers during install.

That doesn't seem easier except for the first time setup.  Maintenance is harder since it means spinning everything by hand, whereas GRUB has everything scripted out of the box.

More importantly, you missed the second part.  I don't believe extlinux can load Xen (two kernels plus an initial ramdisk).

c0rnelius wrote:

As for Grub, I've played around with it on other SBCs, but am not 100% sure how to set that up correctly on a Pi.

You use U-Boot's UEFI support to have it load GRUB (SuSE uses this approach).  While wasteful due to having an extra bootloader stage, you gain GRUB's massively better functionality.

You aren't taking under account kernel packaging and the problems therein. Not to mention overlays and whatnots are gonna be different between kernel revisions, so now that would also need to be taken under consideration. Grub would also need to be scripted to know what to look for, which presents even more headaches.

Even other SBCs that use grub aren't trying to boot more than one kernel, as there is a lot of things to account for. But hey, if you feel like looking into it and investing the time and effort to make it work, go for it.

#33 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-07-26 14:49:03

ehem wrote:

Is there any hope Raspberry PI 4B images with U-Boot => GRUB will show up?

I like being able to easily boot previous kernels when the latest fails (modified kernels do fail and sometimes security update kernels have introduced severe reversions).  Also the Raspberry PI 4B has hardware suitable for running Xen and recent versions of GRUB (2.02 has the module, but only >=2.04 has an appropriate /etc/grub.d/20_linux_xen) will load Xen/ARM64 out of the box.

This would be easier to accomplish using u-boot and extlinux, with extlinux you can add an optional menu. One problem though, would be the current kernel packaging, as currently it purges the old kernel, dtbs, initrd, overlays and headers during install.

As for Grub, I've played around with it on other SBCs, but am not 100% sure how to set that up correctly on a Pi.

#34 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-06-09 03:09:09

Aconcagua wrote:

Need to admit, didn't pay attention if WiFi was available right from the start or not, was concentrated on other stuff. Cleared the SD card again and tried the image at arm-files.devuan.org, but failed it to complete boot process, was trying to run some script again and again (suppose the init script).

Restarted with the image at https://github.com/pyavitz/rpi-img-buil … tag/images, booted so far, `ip addr` seems to reveal two adapters, not fully sure, though, as console prints several characters at the left out of the screen (how to fix?). Once network is set up correctly that won't disturb me too much any more as I'll be accessing the RPi via ssh anyway...

Didn't find the first image in the forum history any more (the one with root + toor login), so cannot tell if that would had recognised the wlan card right from the beginning.

I just flashed the img from the github and this is what I get.

patrick@devuan-test:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether dc:a6:32:52:16:57 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether dc:a6:32:52:16:58 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.164/24 brd 10.0.0.255 scope global dynamic wlan0
       valid_lft 172791sec preferred_lft 172791sec
    inet6 2601:586:4d80:3830:dea6:32ff:fe52:1658/64 scope global dynamic mngtmpaddr 
       valid_lft 598sec preferred_lft 298sec
    inet6 fe80::dea6:32ff:fe52:1658/64 scope link 
       valid_lft forever preferred_lft forever
patrick@devuan-test:~$ sudo iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11  ESSID:"*REMOVED*"  
          Mode:Managed  Frequency:5.785 GHz  Access Point: A2:3D:CF:FF:C5:EB   
          Bit Rate=433.3 Mb/s   Tx-Power=31 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=66/70  Signal level=-44 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

As for hostapd which was mentioned, but now gone??? I know nothing of the subject and as far as that's concerned, someone else would need to help you out on that front.

#35 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-06-08 07:56:36

Aconcagua wrote:

Tried out, required yet a bit of extra work, but finally without systemd. Solely the WiFi adapter is not recognised. Anyone suffering from the same problem? Any hints?

Did it ever work or did you install something and it stopped working? If it wasn't setup upon firstboot, it can than be done manually using the following script.

#36 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-05-02 09:38:16

vladomiro wrote:
c0rnelius wrote:

I can't speak for LXDE, but Xfce appears to be working just fine: screenshot
Only thing that really needed adjusting was adding pulseaudio -D to Session and Startup

XFCE is working fine, but only have a small problem: pulse audio doesn't detect stereo sound, only plays mono analogic. Do you know a way to tell pulse audio there is a stereo option?

Everything else works great, I use it as a desktop PC and even have used it to broadcast audio to an icescast server (of course, without using the audio card).

Edit the following file: /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf
Example: https://github.com/pyavitz/rpi-img-buil … .conf#L104 to L109

Then reboot. After which it should default to stereo.

#37 Re: ARM Builds » Installer images for armel, armhf and ppc64 need testing » 2021-04-26 14:15:44

zen253230 wrote:

Sorry to ask the question !
but I tried at least twenty times to login on Rpi2 image with
login/password = pi/board
And I can swear it doesn't work after checking caps lock, input language,...!
any hint about where I could be wrong, please ?

Try this one: https://github.com/pyavitz/rpi-img-buil … -26.img.xz

The name of the img is misleading, as it will actually boot both the Raspberry Pi 2 and 3.
More information on the img and options can be found here: https://github.com/pyavitz/rpi-img-buil … tag/images

#38 Re: ARM Builds » Installer images for armel, armhf and ppc64 need testing » 2021-04-09 10:27:40

Florent wrote:

Hi everyone,

Flashed the folllowing image on an SD card and launched.
devuan_beowulf_3.1.0_arm64_rpi4.img
The install starts, but I get stucked after one minute with a login and password prompt:
"BCM2711 login"
Cannot find the solution in the README.txt file. Made a quick search on google but could not find anything.

Would you happen to know what I am missing or a step I might have overlooked?

Should be:
username: pi
password: board

As for sudo, it's setup so that you do not need to input a password to execute sudo.
You can find more information about the base image here: https://github.com/pyavitz/rpi-img-buil … tag/images

#39 Re: ARM Builds » Testimage: RaspberryPi 3+, Chimaera + TDE 14.1 » 2021-03-31 09:53:38

berni51 wrote:

@cOrnelius: Thanks, that worked perfect and the image now runs fine at an USB-3 port. On another raspi 4 I use one of your images and there I must not fix the quirk issue. Is this depending from the SSD type and manufacturer?

Yes, it seems to vary in USB-3 storage type and manufacture.

#40 Re: ARM Builds » Testimage: RaspberryPi 3+, Chimaera + TDE 14.1 » 2021-03-30 22:16:12

Sounds like a usb-storage.quirks issue. Try adding it to the cmdlline and see if it corrects the usb3 problem.

#41 Re: ARM Builds » I2C, Devuan and Raspberry PI 4B (8GB) » 2021-02-27 15:02:48

Alright, well I just installed some needed bits and it seems to be appearing for me.

uncomment:

dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on

Install:
sudo apt install -y python3-dev python-smbus i2c-tools python3-pil python3-pip python3-setuptools python3-rpi.gpio

make sure the above modue is in /etc/modules and reboot.

Came right up:

ls /dev/i2c*
/dev/i2c-1
patrick@devuan:~$ sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- -- 

#42 Re: ARM Builds » I2C, Devuan and Raspberry PI 4B (8GB) » 2021-02-27 13:45:45

sudo modprobe i2c-dev

cat /etc/modules If you see it already there, then uncomment it and upon reboot it should load every time. If not, just add it to the file. i2c-dev

#43 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-02-25 13:47:31

Johnnie390 wrote:

LXDE is also working, I have no problems wuth that.

The root password I need. I also the the equivalent of the sdcard-copier as available in RASPIOS to copy the sdcard to my USB SSD drive.

Thanks!

Regards,

J.

If you are using one of my images it doesn't a have a root password, as that's a security risk. You can easily create one though: sudo passwd root

As for writing to SSD run:

deb-eeprom -u (updates the script and shows options)
deb-eeprom -v (edit version variable to 11.8)
deb-eeprom -U (this will upgrade you to the latest eeprom)

Now reboot and attach the SSD (make sure only one SSD or USB storage device is attached)

deb-eeprom -w (this will setup eeprom, partition the drive and transfer the contents of the SDCARD to the SSD) 

My images by default should just boot off SSD. So next time just write the img to SSD, attach and go.

Note:
If you run into problems such as the drive being slow or not bootable, then you need to add usb storage quirks to the cmdline.txt

#44 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-02-25 13:14:36

I can't speak for LXDE, but Xfce appears to be working just fine: screenshot
Only thing that really needed adjusting was adding pulseaudio -D to Session and Startup

#45 Re: ARM Builds » Is any work planned for devuan on the raspberry pi 4? » 2021-02-25 10:55:33

Images can be located here: Images
Along with an explanation on how to use them. Such as a wifi setup script and the ability to choose your own username & password upon first boot.

I don't support armhf images, but do have an armhf branch for those who don't mind building their own images.

#46 Re: ARM Builds » Repartioning the SSD after flashing a Devuan Beowulf image » 2021-01-30 13:38:34

ralph.ronnquist wrote:

Note that you can set the uuid of an ext4 parition with tune2fs, i.e. you should be able to restore the uuid of the shrunk partition.

Might be easier just to add the new root=PARTUUID=newid-02 to /boot/cmdline.txt and be done with it. Or you could just hard code it in with something such as root=/dev/sda2.

#47 Re: ARM Builds » Repartioning the SSD after flashing a Devuan Beowulf image » 2021-01-30 11:44:41

My guess would be that after using gparted the PARTUUID has changed. Attach the SSD and run sudo blkid and see if it matches whats in /boot/cmdline.txt

#48 Re: ARM Builds » sshd via wlan0 only if ethernet cable is plugged - otherwise no sshd » 2021-01-29 04:58:02

Not to brag or anything like this, but I do have some images available over here - https://github.com/pyavitz/rpi-img-buil … tag/images
Pretty sure all this business works.

#49 Re: ARM Builds » VLC and HVEC/x265 on the Raspberry Pi 4 with arm64 » 2021-01-21 23:06:06

Personally I think this approach is just silliness and what I mean by this is, that these boards "no matter what the manufacture may suggest" are a niche device. If you are interested in proper video playback, I would go with an OS that is specializing in this approach.

I wouldn't buy a toaster to cook a turkey and then act surprised when it didn't work.

I tend to lean towards Amlogic SoC's for video play back and use CoreELEC and just throw things at it like you would any commercial device: Chromecast, Firestick and Roku. This could also be done using the Pi4 and LibreELEC, but generally not as cost effective.

#50 Re: ARM Builds » VLC and HVEC/x265 on the Raspberry Pi 4 with arm64 » 2021-01-03 20:51:24

I don't think you are going to get "HVEC/x265 on the Raspberry Pi 4 with arm64" as the best I've  been able to do is 1080p/x264 using MPV and MESA 20.3 and that's a frankenbuild of sorts. x265 always tends to stumble over its self, but I haven't tested MESA 21.0 as of yet, so maybe there is hope?

Board footer

Forum Software