[SOLVED] rpi4 installation 06 February 2021, 21:57:01 Anybody have some simple instructions on how to install armtix on raspberry pi 4? I found some generic images and suspect that https://armtix.artixlinux.org/images/armtix-runit-20210201.tar.xz is the filesystem I need to install on an SD card. The tar contains dtbs including one labelled rpi4...I don't see either config.txt or cmdline.txt which I see in say manjaro for arm or alarm. So I guess I need to do something to get a bootable system. It's not even obvious what file system type I should use for the card. Last Edit: 04 October 2021, 19:40:13 by nous
Re: rpi4 installation Reply #1 – 07 February 2021, 08:19:05 RPi4 is a complex thing. I have one, tried to work with with mainline kernel v5.8, but since USB didn't work then, i decided to keep it for future. ALARM claim USB should work with v5.10The way i propose is approximately following: create fat partition on SD, flash u-boot and firmware on it (ALARM provide these packages in [alarm] repo), then u-boot will be kernel8 and firmware will provide config files also. After that you are able to use it as any other board with u-boot.Once i confirm it is usable, i'll add to supported devices
Re: rpi4 installation Reply #2 – 07 February 2021, 17:29:50 I "THINK" I heard kernel 5.9 fixed usb but I could be wrong. I would give 5.9 or 5.10 if available a try. I would go with 5.10 if it was available. I don't have a SBC so I can't confirm
Re: rpi4 installation Reply #3 – 07 February 2021, 18:47:56 Thanks; I looked at the manjaro pkgbuild for rpi https://gitlab.manjaro.org/manjaro-arm/packages/core/linux-rpi4/-/blob/master/PKGBUILD and it seems they build in a standard way (I think without uboot an explicit conflict with 'uboot-raspberrypi'). their /boot ends up with kernel8, config/cmdlibe.txt and all the dtbs in /boot/overlays like alarm. I might try overwriting the armtix /boot and see if I can get a boot. I guess I would need to keep the armtix initramfs-linux.img, but a quick test shouldn't take more than a few tries. My experience with uboot has been painful so I prefer not to go that route.
Re: rpi4 installation Reply #4 – 08 February 2021, 22:11:31 So I tried the manjaro approach. 1) create 2 partitions p1 220Mb w95 (lba) vfat32 p2 29Gb linux ext4 mount as root & boot label root as ROOT_ARMTX2) bsdtar -xpf armtix-runit-20210201.tar.xz -C root3) rsync -a manjaro:/boot/ boot; edit boot/cmdline.txt and change the root label from ROOT_MNJRO to ROOT_ARMTXthis copies all the manjaro boot things/dtbs and structure to our /boot etc etc4) cp root/boot/*.img boot/ this transfers the armtix initramfs .img files; there also an kernel8.img from manjaro in our boot,but since manjaro also has the same initramfs file names I hope their kernel8 will use the armtix initramfs.5) sync and umount root boottransfer the sd card to the rpi4; turn on its powersee a boot process with quite a few errors about unsafe mounting points eg /proc etc /varend up with a login (no hostname); I can log in as root / armtix and there's a system with runit / runsv elogind sshd etc etc. Any way it seems possible to adopt the standard rpi4 approach. I'm probably not clever enough to get rid of all the errors though. Last Edit: 08 February 2021, 22:17:42 by replabrobin
Re: rpi4 installation Reply #5 – 09 February 2021, 08:38:44 If you boot with manjaro kernel, you should also install their modules to /lib/modules/ 1 Likes
Re: rpi4 installation Reply #6 – 09 February 2021, 11:01:11 yes you are perfectly correct. I am no expert after copying those I can still boot, but I am still seeing the errorsDetected unsafe path transition / -> /xxx during canonicalization of /xxxI tried using the armtix kernel Image by copying to kernel8 and see the penguin rather than the raspberry in the console, but still see those errors and the boot fails in a hard loop somewhere.The root filesystem seems a bit odd eg hostname is stuck in /lib/gettext, but most things seem to work. The clock is off as I only have these runningarmtix@armtix-kat gettext]$ pstreerunit---runsvdir-+-runsv---sshd---sshd---sshd---bash---pstree |-runsv---dhcpcd-+-dhcpcd---dhcpcd | `-2*[dhcpcd] |-6*[runsv---agetty] |-runsv---udevd |-runsv---elogind `-runsv---dbus-daemon[armtix@armtix-kat gettext]$ dateThu Jan 1 00:04:17 UTC 1970[armtix@armtix-kat gettext]$ but I guess I can wait till there's a proper setup made by real experts. Until then I grin and bear things with manjaro
Re: rpi4 installation Reply #7 – 09 February 2021, 12:05:38 Quote from: replabrobin – on 09 February 2021, 11:01:11Detected unsafe path transition / -> /xxx during canonicalization of /xxxThese messages are related to tmpfiles/sysusers IIRC, i had them during updates too but they don't seem to affect running systemQuote from: replabrobin – on 09 February 2021, 11:01:11I tried using the armtix kernel Image by copying to kernel8 and see the penguin rather than the raspberry in the console, but still see those errors and the boot fails in a hard loop somewhere.Due to the output you've shown below it's probably some problem with peripherials rather than boot. Can't say more since i didn't run rpi4 yet.Quote from: replabrobin – on 09 February 2021, 11:01:11The root filesystem seems a bit odd eg hostname is stuck in /lib/gettext, but most things seem to work. The clock is off as I only have these runningWdym? According to the ouput below, you have hostname set to armtix-kat, gettext is your wd. If you didn't plug RTC battery clock will always be off, you need ntpd to sync itQuote from: replabrobin – on 09 February 2021, 11:01:11armtix@armtix-kat gettext]$ pstreerunit---runsvdir-+-runsv---sshd---sshd---sshd---bash---pstree |-runsv---dhcpcd-+-dhcpcd---dhcpcd | `-2*[dhcpcd] |-6*[runsv---agetty] |-runsv---udevd |-runsv---elogind `-runsv---dbus-daemonThis is proper output
Re: rpi4 installation Reply #8 – 09 February 2021, 18:59:09 Quote from: phoenix_king_rus – on 09 February 2021, 12:05:38Wdym? According to the ouput below, you have hostname set to armtix-kat, gettext is your wd. Thanks for the replies; I just meant that there is no hostname executable in /usr/bin. I edited /etc/hostname to make it explicit. Not really a big deal though.
Re: rpi4 installation Reply #9 – 09 February 2021, 22:28:01 I googled for these errorsDetected unsafe path transition / -> /xxx during canonicalization of /xxxand found they were due to an error in creation of the rootfs seemingly / was owned by me at creation so that caused these errors.After faking todays date withdate -s'....' I was able to update via pacman -Syyu; I didn't know the signing keys for the armtix repos so I put SigLevel = Never in pacman.conf.Was able to updateall except the kernel; but I see that ther are now specific aarch64/linux-raspberrypi4-5.10.14-1-aarch64.pkg.tar.xz and linux-raspberrypi4-headers-5.10.14-1-aarch64.pkg.tar.xz rpi4 packages. They seem to follow the standard installation layout. So I will try them out.I was able to install and start openntpd, syslog-ng & vim etc etc. So I think I will proceed further.Thanks to phoenix_king_rus and all the others who are assisting with armtix.
Re: rpi4 installation Reply #10 – 10 February 2021, 06:55:17 Quote from: replabrobin – on 09 February 2021, 22:28:01and found they were due to an error in creation of the rootfs seemingly / was owned by me at creation so that caused these errors.IIRC i got these errors with / owned by root. Anyway, it doesn't seem to break anything to meQuote from: replabrobin – on 09 February 2021, 22:28:01Was able to updateall except the kernel; but I see that ther are now specific aarch64/linux-raspberrypi4-5.10.14-1-aarch64.pkg.tar.xz and linux-raspberrypi4-headers-5.10.14-1-aarch64.pkg.tar.xz rpi4 packages. They seem to follow the standard installation layout. So I will try them out.In case of rpi4 kernel there is a small difference: kernel itself is installed as rpi4Image instead of kernel8.img
Re: rpi4 installation Reply #11 – 10 February 2021, 14:15:17 I installed into a clean boot and find it wont boot without all the .dat, .bin & .elf files. also the rpi4Image needs to be kernel8.img and the initramfs-linux-rpi4.img has to be initramfs-linux.img. I'm not sure where the other startup files are suposed to come from; mine came from manjaro and I suppose the kernel8 and other filenames could be baked in by them. Anyhow I have a booting system without obvious boot errors uname -a now reportsLinux armtix-kat 5.10.14-1-ARTIX #1 SMP PREEMPT Tue Feb 9 12:10:28 MSK 2021 aarch64 GNU/Linuxgreat work armtix/artix people. 1 Likes
Re: rpi4 installation Reply #12 – 10 February 2021, 16:03:24 Quote from: replabrobin – on 10 February 2021, 14:15:17I installed into a clean boot and find it wont boot without all the .dat, .bin & .elf files.This is what i dislike rpi4 for. This firmware is required by their boardsQuote from: replabrobin – on 10 February 2021, 14:15:17 also the rpi4Image needs to be kernel8.img and the initramfs-linux-rpi4.img has to be initramfs-linux.img. I'm not sure where the other startup files are suposed to come fromUnlike ALARM (idk about manjaro) i mark each kernel and initramfs such that they don't conflict with each other (und u-boot in case of rpi). It is up to user to create desirable config. In your case you can either rename files with each update or create config.txt pointing out the correct ones instead of default
Re: rpi4 installation Reply #13 – 03 October 2021, 08:46:55 Quote from: replabrobin – on 10 February 2021, 14:15:17I installed into a clean boot and find it wont boot without all the .dat, .bin & .elf files. also the rpi4Image needs to be kernel8.img and the initramfs-linux-rpi4.img has to be initramfs-linux.img. I'm not sure where the other startup files are suposed to come from; mine came from manjaro and I suppose the kernel8 and other filenames could be baked in by them. Anyhow I have a booting system without obvious boot errors uname -a now reportsLinux armtix-kat 5.10.14-1-ARTIX #1 SMP PREEMPT Tue Feb 9 12:10:28 MSK 2021 aarch64 GNU/Linuxgreat work armtix/artix people.Hi, it would be possible to provide the final steps to get a working ARMtix? Tried to follow the original ones, but looks like something's missing, and tried to replicate your steps from the whole post, but honestly i got lost over them, so i would love to have a free-SystemD working RPi 1 Likes
Re: rpi4 installation Reply #14 – 03 October 2021, 11:01:37 Quote from: Alionicle – on 03 October 2021, 08:46:55Hi, it would be possible to provide the final steps to get a working ARMtix? Tried to follow the original ones, but looks like something's missing, and tried to replicate your steps from the whole post, but honestly i got lost over them, so i would love to have a free-SystemD working RPiDo you have any info to debug issue? I.e., you can determine the failure step by looking at LEDs reporting board status and use serial cable to get debug messages