linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Where is CONFIG_BOOT_LOAD ?
@ 2011-04-08  9:28 Guillaume Dargaud
  2011-04-08  9:42 ` Florian Vögel
  0 siblings, 1 reply; 6+ messages in thread
From: Guillaume Dargaud @ 2011-04-08  9:28 UTC (permalink / raw)
  To: linuxppc-dev

Hello all,
I don't see this option in the .config and in the menuconfig / Advanced Setup I don't see a [Set the boot link/load 
address]:

[*] Prompt for advanced kernel configuration options
[ ]   Set maximum low memory
[ ]   Set custom page offset address
[ ]   Set custom kernel base address
[ ] Set custom user task size
[ ] Set custom consistent memory pool size
 
-- 
Guillaume Dargaud
http://www.gdargaud.net/Antarctica/

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

* Re: Where is CONFIG_BOOT_LOAD ?
  2011-04-08  9:28 Where is CONFIG_BOOT_LOAD ? Guillaume Dargaud
@ 2011-04-08  9:42 ` Florian Vögel
  2011-04-08 12:58   ` Guillaume Dargaud
  0 siblings, 1 reply; 6+ messages in thread
From: Florian Vögel @ 2011-04-08  9:42 UTC (permalink / raw)
  To: Guillaume Dargaud; +Cc: linuxppc-dev


On Fri, 2011-04-08 at 11:28 +0200, Guillaume Dargaud wrote:
> Hello all,
> I don't see this option in the .config and in the menuconfig / Advanced Setup I don't see a [Set the boot link/load 
> address]:
> 
> [*] Prompt for advanced kernel configuration options
> [ ]   Set maximum low memory
> [ ]   Set custom page offset address
> [ ]   Set custom kernel base address
> [ ] Set custom user task size
> [ ] Set custom consistent memory pool size

Isn't that blackfin specific?

linux-next # find -name Kconfig -exec grep -H "BOOT_LOAD" \{\} \;
./arch/blackfin/Kconfig:config BOOT_LOAD

linux-next # find -exec grep -H "CONFIG_BOOT_LOAD" \{\} \;
./arch/blackfin/boot/Makefile:UIMAGE_OPTS-$(CONFIG_RAMKERNEL) += -a
$(CONFIG_BOOT_LOAD)
./arch/blackfin/kernel/vmlinux.lds.S:   . = CONFIG_BOOT_LOAD;
./arch/blackfin/kernel/vmlinux.lds.S:   . = CONFIG_BOOT_LOAD;
./arch/blackfin/kernel/trace.c: } else if (address < CONFIG_BOOT_LOAD) {
./arch/blackfin/kernel/setup.c: _rambase = CONFIG_BOOT_LOAD;
./arch/blackfin/configs/SRV1_defconfig:CONFIG_BOOT_LOAD=0x400000
./arch/blackfin/configs/BF527-TLL6527M_defconfig:CONFIG_BOOT_LOAD=0x400000
./arch/blackfin/mach-common/arch_checks.c:#if CONFIG_BOOT_LOAD <
FIXED_CODE_END
./arch/blackfin/mach-common/arch_checks.c:#if (CONFIG_BOOT_LOAD & 0x3)
./arch/blackfin/mach-common/arch_checks.c:#if ((0xffffffff -
L1_CODE_START + 1) + CONFIG_BOOT_LOAD) > 0x1000000

-Florian

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

* Re: Where is CONFIG_BOOT_LOAD ?
  2011-04-08  9:42 ` Florian Vögel
@ 2011-04-08 12:58   ` Guillaume Dargaud
  2011-04-12 17:03     ` Joachim Förster
  0 siblings, 1 reply; 6+ messages in thread
From: Guillaume Dargaud @ 2011-04-08 12:58 UTC (permalink / raw)
  To: Florian Vögel; +Cc: linuxppc-dev

> Isn't that blackfin specific?

So how do you change the loading address of the PowerPC kernel from its default 0x400000 address ?
-- 
Guillaume Dargaud
http://www.gdargaud.net/

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

* Re: Where is CONFIG_BOOT_LOAD ?
  2011-04-08 12:58   ` Guillaume Dargaud
@ 2011-04-12 17:03     ` Joachim Förster
  2011-04-14  2:52       ` Benjamin Herrenschmidt
  2011-04-14  9:18       ` Guillaume Dargaud
  0 siblings, 2 replies; 6+ messages in thread
From: Joachim Förster @ 2011-04-12 17:03 UTC (permalink / raw)
  To: Guillaume Dargaud; +Cc: linuxppc-dev, Florian Vögel

On 04/08/2011 02:58 PM, Guillaume Dargaud wrote:
>> Isn't that blackfin specific?
>
> So how do you change the loading address of the PowerPC kernel from its default 0x400000 address ?

Note that the default 0x400... is the link address of the zImage wrapper 
rather than the one of THE kernel.

Currently the link address seems to be hard-coded into
arch/powerpc/boot/wrapper
(a shell script). Since long ago I'm wondering why the maintainers did 
that. But I guess there is a reason, because it wasn't that way in the 
old arch/ppc days ;-) ...

Is configuring the zImage-piggy-back-loader through menuconfig & co evil?

   Joachim

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

* Re: Where is CONFIG_BOOT_LOAD ?
  2011-04-12 17:03     ` Joachim Förster
@ 2011-04-14  2:52       ` Benjamin Herrenschmidt
  2011-04-14  9:18       ` Guillaume Dargaud
  1 sibling, 0 replies; 6+ messages in thread
From: Benjamin Herrenschmidt @ 2011-04-14  2:52 UTC (permalink / raw)
  To: Joachim Förster; +Cc: linuxppc-dev, Florian Vögel, Guillaume Dargaud

On Tue, 2011-04-12 at 19:03 +0200, Joachim Förster wrote:
> Note that the default 0x400... is the link address of the zImage
> wrapper 
> rather than the one of THE kernel.
> 
> Currently the link address seems to be hard-coded into
> arch/powerpc/boot/wrapper
> (a shell script). Since long ago I'm wondering why the maintainers
> did 
> that. But I guess there is a reason, because it wasn't that way in
> the 
> old arch/ppc days ;-) ...
> 
> Is configuring the zImage-piggy-back-loader through menuconfig & co
> evil?

Well, not really evil but if you need a special setting for your board,
you add a case for that board in the wrapper script. The idea is that
the boot wrapper can be build outside of the kernel build tree itself.

IE. A distro could (and sometimes do) ship with the standalone boot
directory, possibly the .o's already built, and will "wrap" the zImage
at install time.

Cheers,
Ben.

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

* Re: Where is CONFIG_BOOT_LOAD ?
  2011-04-12 17:03     ` Joachim Förster
  2011-04-14  2:52       ` Benjamin Herrenschmidt
@ 2011-04-14  9:18       ` Guillaume Dargaud
  1 sibling, 0 replies; 6+ messages in thread
From: Guillaume Dargaud @ 2011-04-14  9:18 UTC (permalink / raw)
  To: linuxppc-dev

On Tuesday 12 April 2011 19:03:09 Joachim F=F6rster wrote:
> Note that the default 0x400... is the link address of the zImage wrapper
> rather than the one of THE kernel.

Yes, and I need more space for the uncompression to take place when using a=
 ramdisk.

> Currently the link address seems to be hard-coded into
> arch/powerpc/boot/wrapper
> (a shell script). Since long ago I'm wondering why the maintainers did
> that. But I guess there is a reason, because it wasn't that way in the
> old arch/ppc days ;-) ...

Thanks for that. I'd been using "objcopy --change-addresses" to relocate th=
e elf file with success.

> Is configuring the zImage-piggy-back-loader through menuconfig & co evil?

That seems like a good idea. Maybe add some way to figure out if the uncomp=
ressed kernel overlaps the zImage wrapper ?
=2D-=20
Guillaume Dargaud
http://www.gdargaud.net/Antarctica/

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

end of thread, other threads:[~2011-04-14  9:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-08  9:28 Where is CONFIG_BOOT_LOAD ? Guillaume Dargaud
2011-04-08  9:42 ` Florian Vögel
2011-04-08 12:58   ` Guillaume Dargaud
2011-04-12 17:03     ` Joachim Förster
2011-04-14  2:52       ` Benjamin Herrenschmidt
2011-04-14  9:18       ` Guillaume Dargaud

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).