Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: berni51 on 17 December 2022, 17:32:52

Title: Armtix on BPi-M5
Post by: berni51 on 17 December 2022, 17:32:52
Hi there,

I'm just trying to install armtix on a BananaPi M5, but the installation fails dramatically: The BPi will not boot. There is no response, the screen stays black.
What I did was:
- preparing a SD card mit /boot(vfat) and /-partition, copied the corresponding files onto it and tried to boot.
Even a dirty hack with a running Archlinux and the armit file system failed.

Installing a running Archlinux works fine (but off course with systemd).

Has anybody here successfully installed Armtix on a BananaPi or do I riding a dead horse?

Regards
Berni
Title: Re: Armtix on BPi-M5
Post by: replabrobin on 17 December 2022, 18:47:07
phoenix_rus is the expert for armtix; this page lists his initial work https://info.armtixlinux.org/ I don't see bananapi there. I use armtix on rpi4, but I didn't use his u-boot setup. Instead I used a manjaro rpi4 aarch64 installation and forced it to work with the armtix kernels etc.

This page illustrates manjaro on bpi https://forum.banana-pi.org/t/manjaro-linux-image-mainline-uboot-kernel-sdcard/10185
Title: Re: Armtix on BPi-M5
Post by: berni51 on 17 December 2022, 23:20:48
Thanks for your hints. Will try the Manjaro image from Russia for my BPi.

Regards
Berni
Title: Re: Armtix on BPi-M5
Post by: berni51 on 18 December 2022, 11:08:56
Unfortunately the image from phoenix_rus does not boot with my BPI-M5. Nothing happens, really nothing, the screen stays dark.
 :'(

Berni
Title: Re: Armtix on BPi-M5
Post by: phoenix_king_rus on 18 December 2022, 15:16:10
I always say the best way to debug ARM is to use UART. It will provide boot info even if kernel won't boot at all
Title: Re: Armtix on BPi-M5
Post by: berni51 on 18 December 2022, 18:49:56
I tried, but there is nothing on the uart. The only response I get from the debug-uart of the BPI, there I see some hardware info about the Pi. Thats all. Looks like the u.boot fails to boot.
Is the BPI-M5 so different?
Title: Re: Armtix on BPi-M5
Post by: phoenix_king_rus on 19 December 2022, 10:43:56
Which u-boot do you use?
Title: Re: Armtix on BPi-M5
Post by: berni51 on 19 December 2022, 10:59:24
I used the u-boot for the BPI-M2+ from the OpenBSD package. That was the most similar I could find.
Title: Re: Armtix on BPi-M5
Post by: phoenix_king_rus on 19 December 2022, 11:17:26
Lol, that's the answer. These boards use completely differenet SoCs, therefore M2 uboot will never work on M5. You should find or build image for M5 separately
Title: Re: Armtix on BPi-M5
Post by: replabrobin on 19 December 2022, 16:03:28
FWIW there are some archlinux instructions here

https://wiki.banana-pi.org/Banana_Pi_BPI-M5#Linux

I wonder if that could be a starting point to do a conversion to armtix. Earlier berni51 wrote that he did get archlinux working.
Title: Re: Armtix on BPi-M5
Post by: berni51 on 19 December 2022, 19:03:26
OK, thanks. I will try to find a suitable u-boot - building one may be too heavy for me.  :'(
Title: Re: Armtix on BPi-M5
Post by: berni51 on 20 December 2022, 16:59:50
FWIW there are some archlinux instructions here

https://wiki.banana-pi.org/Banana_Pi_BPI-M5#Linux

I wonder if that could be a starting point to do a conversion to armtix. Earlier berni51 wrote that he did get archlinux working.

This idea was not so bad - honestly it works! I wrote the archlinuxarm image onto mmcblk1 and changed the root in the boot.ini to /dev/sda2.
On another sd card I copied the armtix file system and connected it via usb. That is my sda.
And indeed I bootet the arch image but then run into the armtix file system with the wonderfull openrc. So far, so good.
I probably should change the image and initramfs-linux.img with the armtix files. But how to do this? Simply copying will surely fail.

Title: Re: Armtix on BPi-M5
Post by: phoenix_king_rus on 21 December 2022, 06:37:19
You need to check u-boot configs for that
Title: Re: Armtix on BPi-M5
Post by: berni51 on 21 December 2022, 10:43:51
Thank you. The boot.ini shows, that u-boot loads:
$loadaddress = /Image
$initrd_loadaddress = /initramfs-linux.uimg
$dtb_loadaddress = /dtbs/amlogic/meson64_bananapi_m5.dtb, alternatevly meson64_bananapi_m2_pro.dtb

I believe (but don't really know) that the dtb is OK and must not be changed, but the Image and initramfs-linux.uimg.

In the /boot directory of Armtix there is the Image file, but not the uimg file. Instead there is an img file.

My question is: Is it OK to simply copy Image and initramfs-linux.img onto the mmcblk and change the name in boot.ini from initramfs-linux.uimg to initramfs-linux.img?
I have no idea whats the difference between an img and an uimg file, sorry.  :-[
Title: Re: Armtix on BPi-M5
Post by: phoenix_king_rus on 22 December 2022, 10:36:03
uimg is u-boot formatted initramfs. You can try command from Firefly RK3399 instructions to make one