help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting crazy with arm build


From: Andreas Bauer
Subject: getting crazy with arm build
Date: Mon, 6 Dec 2021 23:53:45 +0100

Hi Everyone!

I am having a hard time getting guix os running on a rock-pro (arm) board.

So this is what I dont understand:

Using cross compilation with  "--target=aarch64-linux-gnu" the build fails,
as soon as I add anythign as simple as an ssh server.
Normlally it fails because of "meson build system" or "perl modules". I
read that meson-build is cross-compilation compatible, so
thats the first thing that I dont understand.

With qemu compilation, "--system=aarch64-linux" it is cmpiling forever. I
had to stop after 2 days trying to build my system.
What I dont understand here is this:

1. arm substitutes should be available via bordeaux substitute server
(since bordeaux has arm build farm I thought that this should be happening).
It seems that I do not get any substitutes this way. I understand that
certain exotic packages have to be build on my machine, but something as
basic as the kernel? How can this be?

2. qemu builds only on one core. I have set  "--cores=6", but this seems
not to matter.

3. It see multiple different kernel versions getting compiled. This is very
confusing. I didnt add any extra packages in this regard.

The cookbook mentions a way to build an installer image for arm; but
building the installer image has a lot of packages, so since my small
images dont build in days, I dont think the installer would build in a
week.I know that I saw arm binaries for download at some point on the
guix website. So I wonder why they are no longer there. A binary download
for an installer to me seems to be quite important. But I dont
find anyone asking for it. Am I missing something here?

4. I finally was successful in building an image to get started, and it
would only work when I did add zero packages to the os-image,
and when I have removed all the services except for a shell login. This
image is runnign now, and what I dont understand is, that
this image has to have the kernel inside, otherwise how would it run. It
all came via the cross-compilation. So the substitutes for the kernel
have to be available then! mWhy dont they appear in the qemu build then?

5. The way I am now setting up my rock-pro board is first, I get an image
that only allows me to boot, and login to the shell. Then I add
some bootstrap files to it via etc-service-type with (local-file ...)..
Essentially I add a manifest and an extended os image definiition to it,
and then start building that
on the rock-pro board. Now it would be perfect to add an entire directory
of scripts and batch files to a folder into the image. But the local-file
only allows me
to add one file per line. Is there any option where I could add an entire
folder to the image that gets build? This would help a lot in my
bootstrapping process.

6. Once I am up and running, I need to buy a supported wlan card, as I like
the idea of not having blobs in the kernel. I was searching for such wlan
cards,
(I am searching for options for usb wlan cards), but I am still unsure
which ones can be recommended. Buying such a cheap wlan card is not easy;
on amazon
I cannot search for it. Does someone have recommendations for me? I need
wlan usb cards that work for x86 and rock-pro (arm).

7. I want to setup a simple NFS server. And the docs on guix are quite good
about that. But I am absolutely lost on how to get the permission system
working.
I would assume that the X507 certificates work like normal private/public
key pairs. Unfortunately I have not foudn a single example for that. And I
was searching
for days. Can anyone point me to the right direction?

8. For arm there are wonderful projects like DietPi and openmediavault and
FreeNAS. This projects can be installed in an hour or so. To me, doing
something like
that on Guix makes much more sense. Guix is lightyears ahead of all other
os. Most of the interesting services are available in guix. But configuring
them is
currently a pain in the ass. Its impossible to find examples. I find it
hard to understand why the guix universe, which is used for HPC and other
sophisticated stuff,
does not have that yet. For mailservers it is another issue. Only half of
the commonly used mailserver programms are available in guix. But for a NAS
or a Media
server guix has everythign that is needed. I am running my own mailserver,
as a hobby. But every other year my mailserver breaks; a "normal" os just
breaks at
some point. With guix, I believe it is posible to create unbreakable NAS
and mailservers. And since the configuration is static, it is very easy to
move to a different
server, or to customize the config. So I wonder why nobody made an example
for that?

Thanks!

awb99


reply via email to

[Prev in Thread] Current Thread [Next in Thread]