All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikolay Dimitrov <picmaster@mail.bg>
To: Otavio Salvador <otavio.salvador@ossystems.com.br>,
	 Otavio Salvador <otavio@ossystems.com.br>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: [meta-fsl-arm][RFC][PATCH] image_types_fsl: Add extlinux support
Date: Tue, 01 Sep 2015 12:48:29 +0300	[thread overview]
Message-ID: <55E5746D.4050307@mail.bg> (raw)
In-Reply-To: <CAP9ODKqvJt9B3u+9eKXkfpwMFGnrqpCt_psqKmGyyyNwYbAfmg@mail.gmail.com>

Hi Otavio,

On 08/31/2015 10:28 PM, Otavio Salvador wrote:
> Hello Nikolay,
>
> (pressed too soon, Send)
>
> On Mon, Aug 31, 2015 at 1:27 PM, Otavio Salvador
> <otavio@ossystems.com.br> wrote:
>> On Fri, Aug 28, 2015 at 7:35 PM, Nikolay Dimitrov <picmaster@mail.bg> wrote:
>>> Add support for booting via extlinux. This feature is supported only for U-Boot.
>>> Here is how it works - during boot U-Boot scans through a list of boot drives
>>> to find a partition containing the extlinux config file (this partition
>>> should be either marked as a bootable, or should be the 1st one of all the
>>> non-bootable partitions on the disk). The extlinux.conf file should be located
>>> on one of the following paths:
>>>
>>> /boot/extlinux/extlinux.conf
>>> /extlinux/extlinux.conf
>>>
>>> This patch uses the /extlinux/extlinux.conf path, in order to avoid funny paths
>>> (/boot/boot/...) if later the vfat bootable partition needs to be mounted
>>> (usually done at /boot).
>>>
>>> Here's an example extlinux.conf:
>>>
>>> default yocto
>>> label yocto
>>>          kernel /zImage
>>>          devicetree /imx6dl-riotboard.dtb
>>>          append console=ttymxc1,115200 root=/dev/mmcblk0p2 rw
>>>
>>> And this is an example machine.conf that can use extlinux boot mechanism:
>>>
>>> EXTLINUX_CONF = "yes"
>>> EXTLINUX_DEVICETREE = "imx6dl-riotboard.dtb"
>>> EXTLINUX_CONSOLE = "ttymxc1,115200"
>>> EXTLINUX_ROOTDEV = "/dev/mmcblk0p2 rw"
>>>
>>> Advantages:
>>> - Boot parameters are not hardcoded in the bootloader and can be managed by
>>>    userspace tools (including package managers)
>>> - One board can have multiple boot configurations
>>> - Others?
>>>
>>> Disadvantages:
>>> - My patch generates a simplified extlinux.conf with only 1 boot configuration.
>>>    Would be nice if we can have board-specific extlinux.conf, but I couldn't
>>>    find a proper way to do it
>>> - Boot params (devicetree, console) are duplicated because the extlinux/kernel
>>>    needs them in a format different from the existing in the machine.conf
>>> - Others?
>>>
>>> Signed-off-by: Nikolay Dimitrov <picmaster@mail.bg>
>>
>> First I would like to thank you
>
> ... for working on this.
>
> This is something we should really get moving and this is a very good base.
>
> However, I think we ought to reuse the syslinux class for this. Is it
> possible for you to take a look on this?

Sure, I'll look at it.

Regards,
Nikolay


      reply	other threads:[~2015-09-01  9:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-28 22:35 [meta-fsl-arm][RFC][PATCH] image_types_fsl: Add extlinux support Nikolay Dimitrov
2015-08-31 16:27 ` Otavio Salvador
2015-08-31 19:28   ` Otavio Salvador
2015-09-01  9:48     ` Nikolay Dimitrov [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

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

  git send-email \
    --in-reply-to=55E5746D.4050307@mail.bg \
    --to=picmaster@mail.bg \
    --cc=meta-freescale@yoctoproject.org \
    --cc=otavio.salvador@ossystems.com.br \
    --cc=otavio@ossystems.com.br \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.