From: Bartlomiej Sieka <tur@semihalf.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 1/3] ppc: Report back the location we put the device tree if we dont boot
Date: Wed, 06 Aug 2008 10:21:35 +0200 [thread overview]
Message-ID: <48995F0F.8070807@semihalf.com> (raw)
In-Reply-To: <20080806070841.480A624847@gemini.denx.de>
Wolfgang Denk wrote:
> In message <1218004332-20311-1-git-send-email-galak@kernel.crashing.org> you wrote:
>> Its useful to know where the device tree is if we have set 'autostart'
>> to 'no. We come back to the prompt after a boot command and we can
>> than post process the device tree but we need to know where it was put
>> report this back via the env variable 'bootm_fdtaddr'.
>
> NAK.
>
> The whole code sequence in bootm.c seems broken to me:
>
> 272 debug ("## Transferring control to Linux (at address %08lx) ...\n",
> 273 (ulong)kernel);
> 274
> 275 show_boot_progress (15);
> 276
> 277 #if defined(CFG_INIT_RAM_LOCK) && !defined(CONFIG_E500)
> 278 unlock_ram_in_cache();
> 279 #endif
> 280 if (!images->autostart)
> 281 return ;
> 282
> 283 #if defined(CONFIG_OF_LIBFDT)
>
>
> The debug() [272f] should come immediately before booting the kernel
> (i. e. move below line 282) because it is supposed to show when we
> branch to Linux. No other code should be inbetween.
>
> And the (!images->autostart) test makes absolutely no sense here.
> Documentation says:
>
> autostart: if set to "yes", an image loaded using the rarpb,
> bootp, dhcp, tftp, disk, or docb commands will be
> automatically started (by internally calling the bootm
> command).
>
Hi Wolfgang,
The test you're referring to was introduced by commit
75fa002c47171b73fb4c1f2c2fe4d6391c136276 "[new uImage] Respect autostart
setting in linux bootm" by Kumar -- he should be better able to explain
the details.
> The "autostart" field introduced with the new image stuff behaves very
> different, and actually makes no sense to me at all.
>
> Bartek, could you please comment what the intended behaviour was, and
> how it relates to the documentated behaviour?
It looks like that the "autostart" field has been added to the
bootm_headers structure so that the arch-specific code can make
decisions about booting without the need to call getenv("autostart").
Instead, the "autostart" field is set based on the env. variable once,
and passed to boot-related functions via a parameter (e.g., "images" in
do_bootm_linux()).
Again, this field has beed introduced by Kumar
(f5614e7926863bf0225ec860d9b319741a9c4004, "[new uImage] Add autostart
flag to bootm_headers structure"), who should be able to comment more.
Regards,
Bartlomiej
next prev parent reply other threads:[~2008-08-06 8:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-06 6:32 [U-Boot-Users] [PATCH 1/3] ppc: Report back the location we put the device tree if we dont boot Kumar Gala
2008-08-06 6:32 ` [U-Boot-Users] [PATCH 2/3] Add ePAPR boot command Kumar Gala
2008-08-06 6:32 ` [U-Boot-Users] [PATCH 3/3] add ability to disable ft_board_setup as part of bootm Kumar Gala
2008-08-11 21:56 ` Wolfgang Denk
2008-08-06 8:21 ` [U-Boot-Users] [PATCH 2/3] Add ePAPR boot command Wolfgang Denk
2008-08-06 13:03 ` Kumar Gala
2008-08-06 14:40 ` Wolfgang Denk
2008-08-06 7:08 ` [U-Boot-Users] [PATCH 1/3] ppc: Report back the location we put the device tree if we dont boot Wolfgang Denk
2008-08-06 8:21 ` Bartlomiej Sieka [this message]
2008-08-06 8:33 ` Wolfgang Denk
2008-08-06 13:16 ` Kumar Gala
2008-08-06 14:46 ` Wolfgang Denk
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=48995F0F.8070807@semihalf.com \
--to=tur@semihalf.com \
--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