All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V4 2/3] ARM: tegra: rework boot scripts
Date: Thu, 13 Feb 2014 17:32:52 -0700	[thread overview]
Message-ID: <52FD6434.9040505@wwwdotorg.org> (raw)
In-Reply-To: <20140213111644.345a78aa@adria.ausil.us>

On 02/13/2014 10:16 AM, Dennis Gilmore wrote:
> On Thu, 13 Feb 2014 09:39:41 -0700
> Stephen Warren <swarren@wwwdotorg.org> wrote:
> 
>> On 02/13/2014 04:13 AM, Dennis Gilmore wrote:
>>> Hi Stephen,
>>>
>>> I noticed one issue
>>>
>>> On Wed,  5 Feb 2014 09:24:58 -0700
>>> Stephen Warren <swarren@wwwdotorg.org> wrote:
>>>
>>>> From: Stephen Warren <swarren@nvidia.com>
>>>>
>>>> Update the common Tegra boot scripts in the default environment to
>>>>
>>>> a) Make use of the new "test -e" shell command to avoid some error
>>>>    messages.
>>>>
>>>> b) Allow booting using the sysboot command and extlinux.conf. This
>>>>    allows easy creation of boot menus, and provides a simple
>>>> interface for distros to parameterize/configure the boot process.
>>
>>>> diff --git a/include/configs/tegra-common-post.h
>>>> b/include/configs/tegra-common-post.h index
>>
>>>> +	"do_sysboot_boot="
>>>> \
>>>> +		"sysboot ${devtype} ${devnum}:${rootpart} any
>>>> "           \
>>>> +			"${scriptaddr}
>>>> ${prefix}extlinux.conf\0"          \
>>>
>>> extlinux config files are placed into an extlinux directory
>>> you will need to use ${prefix}extlinux/extlinux.conf
>>
>> What places them there? The spec doesn't say anything about placement
>> of this file. Since this is a new feature, I don't think there's any
>> de-facto standard, is there? I'd prefer that the files be placed in
>> the same location as any other boot file, to avoid pointless extra
>> directory levels (i.e. / for a partition that's mounted as /boot, or
>> in /boot for a partition that's mounted as /).
> 
> 
> http://www.syslinux.org/wiki/index.php/EXTLINUX
> 
> anaconda and the image creation tools both use /boot/extlinux
> according to http://shallowsky.com/linux/extlinux.html debian also uses
> it

OK. I wasn't aware that people were using these config files for
anything yet; I thought it was something new being rolled out to get
bootloader-agnostic boot config on ARM, and assumed that non-ARM was
still using e.g. grub etc.

Neither of those links specify that the extlinux.conf file has to be
named (/boot)/extlinux/extlinux.conf. The first link simply specifies
that it's possible to put the file in such a sub-directory, and the
second that Debian just happens to do so.

Still, in the interests of conforming to the de-facto standard, I'll
repost the Tegra and bcm2835 boot script patches to adjust to that.

> extlinux is not bootloaderspec.   bootloaderspec does say where to put
> them:
> 
> Inside the $BOOT/loader/entries/ directory each OS vendor may drop one
> ...

Ah right. I'd meant to say that bootloaderspec doesn't say anything
about an "extlinux/" directory, not to say that it didn't say anything
about where to put the files.

  reply	other threads:[~2014-02-14  0:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05 16:24 [U-Boot] [PATCH V4 1/3] ARM: tegra: convert tegra to use distro defaults Stephen Warren
2014-02-05 16:24 ` [U-Boot] [PATCH V4 2/3] ARM: tegra: rework boot scripts Stephen Warren
2014-02-13 11:13   ` Dennis Gilmore
2014-02-13 16:39     ` Stephen Warren
2014-02-13 17:16       ` Dennis Gilmore
2014-02-14  0:32         ` Stephen Warren [this message]
2014-02-05 16:24 ` [U-Boot] [PATCH V4 3/3] ARM: tegra: implement bootcmd_pxe Stephen Warren
2014-02-27 17:22 ` [U-Boot] [PATCH V4 1/3] ARM: tegra: convert tegra to use distro defaults Stephen Warren

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=52FD6434.9040505@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --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 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.