public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Nikolay Dimitrov <picmaster@mail.bg>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] arm: imx: Switch Wandboard to use config_distro_bootcmd.h.
Date: Fri, 26 Jun 2015 20:44:10 +0300	[thread overview]
Message-ID: <558D8F6A.70900@mail.bg> (raw)
In-Reply-To: <CAAGJuFgVkgdHVjOBVnh_qUCdpK7XKAkpcmy6ZTE+JrzKWSFg5Q@mail.gmail.com>

Hi XoD,

On 06/26/2015 02:54 PM, XoD wrote:
> Hello,
> I have now tested upstream uboot-imx with OpenELEC with SPL suppport for
> wandbard.
>
> It's work great without your patch. but with your path, OpenELEC don't boot.
>
> The default uboot config assume than kernel file name is zImage.
> But OpenELEC use a filename KERNEL.
> The actual version of OpenELEC use a uEnv.txt file with this line :
> zImage=/KERNEL
> bootfile=/KERNEL
> But this no longer work with your patch.
>
> How I can configure uboot to open a file named KERNEL instead of zImage (at
> build time or at runtime) ?

config_distro_bootcmd uses a cool feature called "extlinux", which
allows you to define a boot configuration without hacking in U-Boot
source/configuration. Here's how it works:

1. U-Boot scans a list of boot devices (mmc, usb, pxe, dhcp)
2. When it find a bootable local storage (mmc, usb) it looks for the
first bootable partition, or just first one if no partition was marked
as bootable
3. U-Boot looks for extlinux.conf in "/" and "/boot". This file
contains the actual boot configuration (kernel image, bootargs, etc)
that will be executed on boot. Here's how a simple extlinux.conf looks
like:

-----> cut <-----
default linux

label linux
kernel /boot/zImage
devicetree /boot/mydevicetree.dtb
append console=ttymxc1,115200 root=/dev/mmcblk0p1 rw
-----> cut <-----

4. U-Boot boots the "default" configuration.

Hope this helps.

Regards,
Nikolay

  reply	other threads:[~2015-06-26 17:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-28  1:24 [U-Boot] [PATCH] arm: imx: Switch Wandboard to use config_distro_bootcmd.h Vagrant Cascadian
     [not found] ` <20150328131538.GG5034@excalibur.cnev.de>
2015-03-29 13:05   ` Tom Rini
2015-03-29 15:55     ` [U-Boot] [PATCH] Document the format of the console environment variable Karsten Merker
2015-03-30  7:06       ` Hans de Goede
2015-05-19 15:23     ` [U-Boot] [PATCH] arm: imx: Switch Wandboard to use config_distro_bootcmd.h XoD
2015-05-19 20:42       ` Vagrant Cascadian
2015-05-20  7:36         ` XoD
2015-06-26 11:54           ` XoD
2015-06-26 17:44             ` Nikolay Dimitrov [this message]
2015-06-26 19:15               ` XoD
  -- strict thread matches above, loose matches on Subject: below --
2015-10-27 19:06 Vagrant Cascadian
2015-10-27 19:13 ` Vagrant Cascadian
2015-10-27 19:14   ` Otavio Salvador
2015-10-27 19:14 ` Otavio Salvador

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

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

  git send-email \
    --in-reply-to=558D8F6A.70900@mail.bg \
    --to=picmaster@mail.bg \
    --cc=u-boot@lists.denx.de \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox