All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] fastboot boot base address behaviour
@ 2015-04-22 13:04 Maxime Ripard
  2015-04-22 15:56 ` Marek Vasut
  2015-04-28 22:24 ` Rob Herring
  0 siblings, 2 replies; 13+ messages in thread
From: Maxime Ripard @ 2015-04-22 13:04 UTC (permalink / raw)
  To: u-boot

Hi,

I've been trying to use fastboot (and especially the boot command) on
sunxi recently, and got it to work pretty fine (apart from PSCI, but
that's another story).

The only thing that worries me a bit is that by default, both the
fastboot tool and mkbootimg will generate an image with the kernel
address set to 0x10008000.

While it might work on some targets, it obviously doesn't on the
Allwinner SoCs that most of the time have the RAM mapped to 0x4000000,
which result in the kernel being relocated to some address that is not
in RAM, failing badly.

I would expect U-Boot to relocate the kernel to some reasonable
address, and not try to do something dumb by actually trusting
completely the boot image.

I guess one way to solve this would be to really treat 0x10008000 as
the default, and relocate the kernel to whatever value make sense on
the current platform (even though that needs to be defined).

That way, "fastboot boot zImage" would actually work out of the box,
without requiring to set the optional "-b" option to set the kernel
base address to some decent value.

The others implementation I could find seem to just ignore this field
in the image header, and always load it to the same address, which
might not really be what we're after here.

What do you think?

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150422/7af29e79/attachment.sig>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-05-01 20:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-22 13:04 [U-Boot] fastboot boot base address behaviour Maxime Ripard
2015-04-22 15:56 ` Marek Vasut
2015-04-23  7:41   ` Maxime Ripard
2015-04-23 12:00     ` Marek Vasut
2015-04-25  6:22       ` Maxime Ripard
2015-04-25 15:53         ` Marek Vasut
2015-04-28 22:24 ` Rob Herring
2015-04-29  8:12   ` Maxime Ripard
2015-04-29 14:11     ` Rob Herring
2015-04-29 14:25       ` Tom Rini
2015-04-29 14:30         ` Rob Herring
2015-04-29 15:46           ` Tom Rini
2015-05-01 20:30       ` Maxime Ripard

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.