unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: Andreas Enge <andreas@enge.fr>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: Porting GuixSD to ARM article.
Date: Mon, 22 Jan 2018 22:51:27 +0100	[thread overview]
Message-ID: <20180122225127.28494aa4@scratchpost.org> (raw)
In-Reply-To: <20180122211500.GA2400@jurong>

Hi,

> - In my case, I own an Olimex Lime 1. I think that this might correspond
>   to a20-olinuxino-micro-installation-os. Whatever it is, it does not have
>   integrated memory, but needs to run directly from the micro SD card.

I've added a20-olinuxino-lime-installation-os to guix master now.

I don't have the Lime1, so please test it.

>   So how do I install it, since I cannot boot from one medium and install
>   easily to another one? Should I attach an SD card reader to install onto
>   a second SD card, then boot from that in a second step?

Yes, that's a possibility.  You can also transfer over the network etc.

What this installation-os disk-image gives you is an image file.  You can
transport it on non-SD cards.  In the end it has to somehow end up on
an SD card, of course :)

I've also tested our new "--system" facility which allows us to build the
ARM image on x86_64 - but I'm sad to say that glibc has a bug which makes
the build fail
<https://sourceware.org/bugzilla/show_bug.cgi?id=22273>.

In short, right now you have to build armhf images on an armhf machine
(which takes foreeeever).  At least it doesn't have to be exactly the
same machine, so I volunteer the guix build farm's Novena :->

It still bothers me that we build these huge images for different ARM
systems although only u-boot, MAYBE the kernel and MAYBE the debug tty
differ.

We should change it not to build common parts again, I think.

The easiest way to do that would be to build a generic ARM image
with extlinux bootloader (i.e. without u-boot itself), the multi ARM
Linux kernel (we do that already) and then have the agetty fish out
the console from the kernel command line at runtime (so that the agetty
configuration is not different either).

We could add a new argument to the kernel command line, or fish the tty
out of the existing "console" kernel argument.

We can boot the system via the vendor's u-boot (all ARM systems I've used
have one) and our Linux kernel & GNU system.

In the booted system, one can then reconfigure with u-boot (or not).

That way, we'd have only one ARM image for all ARM (v7) systems.

  reply	other threads:[~2018-01-22 21:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-22 13:12 Porting GuixSD to ARM article Mathieu Othacehe
2017-12-22 15:38 ` Vincent Legoll
2017-12-22 22:43   ` Mathieu Othacehe
2017-12-22 15:58 ` Pjotr Prins
2017-12-22 22:44   ` Mathieu Othacehe
2018-01-22 21:15 ` Andreas Enge
2018-01-22 21:51   ` Danny Milosavljevic [this message]
2018-01-23  9:29     ` Mathieu Othacehe
2018-01-23 10:04       ` Danny Milosavljevic
2018-01-23 10:42         ` Mathieu Othacehe
2018-01-23 11:51           ` Ricardo Wurmus
2018-01-23 18:35             ` Danny Milosavljevic
2018-01-23  9:23   ` Mathieu Othacehe
2018-01-23 20:46     ` Andreas Enge
2018-01-24  8:17       ` Mathieu Othacehe
2018-01-24 10:12         ` Andreas Enge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180122225127.28494aa4@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=andreas@enge.fr \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).