unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vagrant Cascadian <vagrant@debian.org>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: 31308@debbugs.gnu.org
Subject: [bug#31308] [PATCH 0/3] Support u-boot on wandboard and mx6cuboxi
Date: Tue, 01 May 2018 14:41:38 -0700	[thread overview]
Message-ID: <87tvrruk8d.fsf@aikidev.net> (raw)
In-Reply-To: <20180501224229.1520d136@scratchpost.org>

[-- Attachment #1: Type: text/plain, Size: 1737 bytes --]

On 2018-05-01, Danny Milosavljevic <dannym@scratchpost.org> wrote:
> For an eventual u-boot-installer, how do you install u-boot on wandboard?
>
> And how do we detect that we have to use this kind of installation method based on u-boot's .config ?

An interesting idea... I had thought about making an SD image either as
a separate target, or integrating it into u-boot-BOARD for targets that
support booting from SD.


> For comparison, for sunxi, it's:
>
> .config contains CONFIG_SYS_SOC="sunxi" => install via "dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8".

I've been using:

  https://salsa.debian.org/debian/u-boot/blob/master/debian/u-boot-imx.README.Debian

Which pretty much comes down to:

  dd conv=fsync,notrunc if=SPL of=DEVICE|IMAGEFILE bs=1k seek=1
  dd conv=fsync,notrunc if=u-boot.img of=DEVICE|IMAGEFILE bs=1k seek=69

That works on wandboard and mx6cuboxi, as well as several other imx6
targets.

The novena target requires u-boot.img to be copied to the first
partition with a fat or ext filesystem, and only the SPL is written to
the raw device.

With usbarmory (imx5), only the u-boot.img portion is installed directly
to the raw device at the offset above; there is no SPL.

CONFIG_SPL=y seems to be the best indicator that it needs SPL, and as
far as I know with CONFIG_MX[5,6]=y SPL is always installed to the same
offset.

It's less obvious to me comparing other configuration options what
determines which method is needed for u-boot.img. Maybe with recent
u-boot versions, it's possible to use either an offset or read it from a
filesystem with a single image; I didn't have much luck with that in the
past.

I'll experiment a little more and see what I can figure out.


live well,
  vagrant

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

      reply	other threads:[~2018-05-01 21:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-29  7:28 [bug#31308] [PATCH 0/3] Support u-boot on wandboard and mx6cuboxi Vagrant Cascadian
2018-04-29 15:26 ` bug#31308: " Danny Milosavljevic
2018-04-30  5:41   ` [bug#31308] " Vagrant Cascadian
2018-04-30 21:01 ` Ludovic Courtès
2018-04-30 21:18   ` Vagrant Cascadian
2018-05-01 19:55     ` Ludovic Courtès
2018-05-01 20:42     ` Danny Milosavljevic
2018-05-01 21:41       ` Vagrant Cascadian [this message]

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=87tvrruk8d.fsf@aikidev.net \
    --to=vagrant@debian.org \
    --cc=31308@debbugs.gnu.org \
    --cc=dannym@scratchpost.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).