From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] Regression in bootcmd handling in v2015.04-rc3?
Date: Wed, 11 Mar 2015 14:31:07 -0600 [thread overview]
Message-ID: <5500A60B.5010606@wwwdotorg.org> (raw)
In-Reply-To: <20150311202046.GA8890@excalibur.cnev.de>
On 03/11/2015 02:20 PM, Karsten Merker wrote:
> On Wed, Mar 04, 2015 at 08:53:37PM +0100, Karsten Merker wrote:
>> On Tue, Mar 03, 2015 at 06:31:37PM -0500, Tom Rini wrote:
>>
>>> I've pushed v2015.04-rc3 out to the repository and tarballs should exist
>>> soon.
>> [...]
>>> As always, if anything is broken please speak up.
>>
>> Hello,
>>
>> I have tested v2015.04-rc3 and have stumbled over a problem with the
>> distro_bootcmd framework when trying to boot from a specific device
>> at the u-boot command prompt by using "run <device>_boot".
>> Autobooting without user interruption of the boot process works fine:
...
>> Interrupting the boot sequence and then manually executing e.g. "run
>> usb_boot" results in a "** Bad device specification usb devplist **"
>> error message:
>>
>> sunxi# run usb_boot
>>
>> USB device 0: Vendor: Intenso Rev: Prod: Rainbow
>> Type: Removable Hard Disk
>> Capacity: 7620.0 MB = 7.4 GB (15605760 x 512)
>> ** Bad device specification usb devplist **
>> sunxi#
>>
>> The reason for this is that in this constellation ${devnum} is
>> undefined, which leads to a failure of the "part list ${devtype}
>> ${devnum} devplist" command in ${scan_dev_for_boot_part}. Older
>> versions of u-boot did not use the part list command, so this problem
>> did not occur there. Using "run bootcmd_usb0" instead of "run
>> usb_boot" works, but my understanding (which may of course be wrong)
>> was that the user is expected to use "run <device>_boot" for booting
>> from a specific device at the u-boot command prompt, and that has
>> worked without problems in previous u-boot versions.
>
> Hello,
>
> as my original email appears to have fallen through the cracks,
> I'd like to ask again whether using "run <device>_boot" is
> "officially" expected to work or not. If it is not, what is the
> officially supported way for a user to boot from a certain device
> at the u-boot prompt? Should people use "setenv boot_targets
> foo; run bootcmd" instead?
Sorry, I didn't see the original email.
For manual booting, I would expect to always run the device-specific
command (e.g. bootcmd_usb0 or bootcmd_mmc1) rather than the
device-type-specific command (e.g. usb_boot, mmc_boot).
I'm not sure how the type-generic commands ever worked without variables
such as ${devnum} set, since they all pass ${devnum} to a variety of
commands in addition to the new "part list". Perhaps those commands
default to devnum==0 if the parameter is missing, and you never wanted
to boot e.g. from mmc 1 instead of mmc 0?
next prev parent reply other threads:[~2015-03-11 20:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-03 23:31 [U-Boot] [ANN] U-Boot v2015.04-rc3 released Tom Rini
[not found] ` <20150304195337.GA4874@excalibur.cnev.de>
[not found] ` <20150311202046.GA8890@excalibur.cnev.de>
2015-03-11 20:31 ` Stephen Warren [this message]
[not found] ` <20150311212100.GA9680@excalibur.cnev.de>
2015-03-11 21:35 ` [U-Boot] Regression in bootcmd handling in v2015.04-rc3? Stephen Warren
[not found] ` <20150311214825.GB9680@excalibur.cnev.de>
2015-03-17 16:16 ` Tom Rini
2015-03-19 19:41 ` [U-Boot] config_distro_bootcmd and boot environment (was: Regression in bootcmd handling in v2015.04-rc3?) Karsten Merker
2015-03-19 19:41 ` [U-Boot] [PATCH] Document config_distro_bootcmd environment variables for interactive booting Karsten Merker
2015-03-19 19:53 ` Stephen Warren
[not found] ` <20150319205334.GB8313@excalibur.cnev.de>
2015-03-19 21:02 ` Stephen Warren
2015-03-21 13:15 ` [U-Boot] [PATCH V2] " Karsten Merker
2015-03-21 13:15 ` Karsten Merker
2015-03-23 19:34 ` Stephen Warren
2015-03-28 18:09 ` [U-Boot] [U-Boot, " Tom Rini
2015-03-11 20:31 ` [U-Boot] Regression in bootcmd handling in v2015.04-rc3? (was: [ANN] U-Boot v2015.04-rc3 released) Tom Rini
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=5500A60B.5010606@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.