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 V3 2/3] ARM: tegra: rework boot scripts
Date: Wed, 05 Feb 2014 09:13:57 -0700	[thread overview]
Message-ID: <52F26345.5000709@wwwdotorg.org> (raw)
In-Reply-To: <52F20155.4040808@suse.de>

On 02/05/2014 02:16 AM, Andreas F?rber wrote:
> Am 04.02.2014 23:59, schrieb Stephen Warren:
>> From: Stephen Warren <swarren@nvidia.com>
>>
>> Update the common Tegra boot scripts in the default environment to
>>
>> a) Make use of the new "exists" shell command to avoid some error
>>    messges.
>>
>> 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

>>  	"script_boot="                                                    \
>> -		"if load ${devtype} ${devnum}:${rootpart} "               \
>> -				"${scriptaddr} ${prefix}${script}; then " \
>> -			"echo ${script} found! Executing ...;"            \
>> -			"source ${scriptaddr};"                           \
>> -		"fi;\0"                                                   \
>> +		"for script in ${boot_scripts}; do "                      \
>> +			"if test -e ${devtype} ${devnum}:${rootpart} "    \
>> +					"${prefix}${script}; then "       \
>> +				"echo Found U-Boot script "               \
>> +					"${prefix}${script}; "            \
>> +				"run do_script_boot;"                     \
>> +				"echo SCRIPT FAILED; continuing...; "     \
> 
> This is not going to work, "continuing..." would be treated as command.

But I tested it:-)

It seems that U-Boot just ignores the unknown command (well, it prints
an error that I didn't notice) and continues on. So, it kinda works but
certainly doesn't do what's intended;-)

Thanks for pointing out the issues. I'll also have to revise the
Raspberry Pi patches that have the same issue.

  reply	other threads:[~2014-02-05 16:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-04 22:59 [U-Boot] [PATCH V3 1/3] ARM: tegra: convert tegra to use distro defaults Stephen Warren
2014-02-04 22:59 ` [U-Boot] [PATCH V3 2/3] ARM: tegra: rework boot scripts Stephen Warren
2014-02-05  9:16   ` Andreas Färber
2014-02-05 16:13     ` Stephen Warren [this message]
2014-02-04 22:59 ` [U-Boot] [PATCH V3 3/3] ARM: tegra: implement bootcmd_pxe 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=52F26345.5000709@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.