From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 4/6] mx53loco: Add support to dynamically choose between fdt use or not
Date: Wed, 09 Jan 2013 19:21:10 +0100 [thread overview]
Message-ID: <50EDB516.9020807@denx.de> (raw)
In-Reply-To: <1357732680-30245-5-git-send-email-otavio@ossystems.com.br>
On 09/01/2013 12:57, Otavio Salvador wrote:
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
Hi Otavio,
> Changes in v5:
> - Change subject
> - Reword the warning
>
> Changes in v4:
> - Use a warning, instead of error when failing to fetch fdt
> - Drop exit use
> - Fix netboot
> - Use fdt instead of ftd
>
> Changes in v3:
> - Add loadfdt
> - Use loadfdt
> - Call exit to abort script
>
> Changes in v2:
> - Allow use of dynamic/static ip
> - Allow force use, or not, of fdt
> - Change 'auto' to 'try'
>
I get some problems:
- loadbootscript is not correctly set. In fact:
env default -f -a
## Resetting to default environment
MX53LOCO U-Boot > pri mmcargs
mmcargs=setenv bootargs console=ttymxc0,${baudrate} root=${mmcroot}
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
There is still a '0' missing for mmcargs, and loadbootscript is not set.
Then there is a problem with netboot. It is set correctly, but "pri
netboot" crashes:
pri netboot
netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes;
then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd}
${uimage}; if test ${boot_fdt} = yes; then if ${get_cmd} ${fdt_addr}
${fdt_file}; then bootm ${loadaddr} - ${fdt_addr}; else if test
${boot_fdt} = try; then bootm; else echo ERROR: Cannot load the DT;
exit; fi; fi; else bootm; fi;
prefetch abort
pc : [<203b6d78>] lr : [<203b6d74>]
sp : af565e00 ip : 00000000 fp : 00000000
r10: 00000002 r9 : 00000000 r8 : af565f58
r7 : af568c7c r6 : 00000001 r5 : 00000000 r4 : 6f6f6220
r3 : 00000083 r2 : 00000060 r1 : af565cc0 r0 : 00000173
Flags: nZCv IRQs off FIQs off Mode SVC_32
Resetting CPU ...
Then I do not understand the boot_fdt when set to try. I have imagined
that it tries to start a DT kernel, and if no fdt find is found, it
tries with a legacy kernel without fdt. But it does not try to load the
FDT file, because this is done only when boot_fdt = yes. When boot_fdt =
try, it starts always a legacy kernel.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
next prev parent reply other threads:[~2013-01-09 18:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-09 11:57 [U-Boot] [PATCH v5 0/6] Improve default environment for easy use Otavio Salvador
2013-01-09 11:57 ` [U-Boot] [PATCH v5 1/6] mx6qsabrelite: Use tabs to environment setting Otavio Salvador
2013-01-09 12:10 ` Liu Hui-R64343
2013-01-09 11:57 ` [U-Boot] [PATCH v5 2/6] mx28evk: We shouldn't hardcode a rootfs filesystem type Otavio Salvador
2013-01-09 11:57 ` [U-Boot] [PATCH v5 3/6] mx28evk: Add support to dynamically choose between fdt use or not Otavio Salvador
2013-01-09 11:57 ` [U-Boot] [PATCH v5 4/6] mx53loco: " Otavio Salvador
2013-01-09 12:12 ` Liu Hui-R64343
2013-01-09 18:21 ` Stefano Babic [this message]
2013-01-09 11:57 ` [U-Boot] [PATCH v5 5/6] mx6qsabrelite: " Otavio Salvador
2013-01-09 12:11 ` Liu Hui-R64343
2013-01-09 11:58 ` [U-Boot] [PATCH v5 6/6] mx6qsabre{auto, sd}: " Otavio Salvador
2013-01-09 12:12 ` Liu Hui-R64343
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=50EDB516.9020807@denx.de \
--to=sbabic@denx.de \
--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