unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 27327@debbugs.gnu.org
Subject: [bug#27327] [PATCH] bootloader: Add u-boot.
Date: Fri, 16 Jun 2017 11:04:34 +0200	[thread overview]
Message-ID: <20170616110434.7640597f@scratchpost.org> (raw)
In-Reply-To: <87zid8gwag.fsf@gnu.org>

Hi Ludo,

On Fri, 16 Jun 2017 10:40:39 +0200
ludo@gnu.org (Ludovic Courtès) wrote:

> > +   (package #f)
> > +   (installer #f)))  
> 
> I still find it weird to use #f for these two fields.
> 
> I would find it more reasonable to have, say, a ‘make-u-boot-bootloader’
> that returns a <bootloader> with all the fields appropriately set (not
> #f).  Otherwise it sounds like we’re going to have to deal with support
> requests #about “wrong type to apply: #f”, and I’d like to avoid that.
> :-)

Yeah, but I think Mathieu added explicit support for leaving those #f.

> Can’t we just say that ‘package’ is always a <package> 

Difficult.  U-Boot is more like a BIOS is on PCs.  That means in normal operation you'd not flash it.  If there was a mistake in the flashed U-Boot often you can't fix it again without electronics knowledge and gear (if at all - serial pads must be available on the board).  There's no extra BIOS.  U-Boot does it all:  RAM initialization, keyboard initialization, display initialization etcetc.

Sometimes flashing is only possible via serial cable (or worse) from an external machine.

Also, there are lots of forks of U-Boot.  Since U-Boot is licensed under GPL the package should be available somewhere - but not necessarily in the U-Boot master branch (and often it's in fact not available there).

In short, we should add U-Boot packages gradually, and only after testing each U-Boot package on the hardware.

That means in the beginning we'd have a LOT of (package #f) - but that's still preferrable to bricking.

>and that
> ‘installer’ is always a procedure?

Yeah, the installation procedure could probably check (if package (invoke "...")).  

I've submitted this minimal patch mostly to make clear how U-Boot would extend extlinux.  I think it's good to have it in place as a guard against too-much-syslinux-bias :)

That said, it should actually make GuixSD boot on a machine with U-Boot already installed.

  reply	other threads:[~2017-06-16  9:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-11 10:58 bug#27327: [PATCH] bootloader: Add u-boot Danny Milosavljevic
2017-06-16  8:40 ` [bug#27327] " Ludovic Courtès
2017-06-16  9:04   ` Danny Milosavljevic [this message]
2017-06-16 12:37     ` Ludovic Courtès

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=20170616110434.7640597f@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=27327@debbugs.gnu.org \
    --cc=ludo@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).