Skip to contentSkip to conversation

Where is CONFIG_BOOT_LOAD ?

DISCUSSION Guillaume Dargaud 4 participants 6 messages Apr 8, 2011 – Apr 14, 2011

lore
Share & tools
lore
#0 lore raw

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

Signature · 2 lines
Guillaume Dargaud
http://www.gdargaud.net/Antarctica/
#1 lore raw
Quoted 10 lines · Guillaume Dargaud

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

#2 lore raw
Quoted 1 line

Isn't that blackfin specific?

So how do you change the loading address of the PowerPC kernel from its default 0x400000 address ?

Signature · 2 lines
Guillaume Dargaud
http://www.gdargaud.net/
#3 lore raw
Quoted 3 lines · Guillaume Dargaud
Quoted 1 line

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

#4 lore raw
Quoted 12 lines · Joachim Förster

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 ;-) ...

Quoted 2 lines

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.

#5 lore raw
In reply to Joachim Förster
Quoted 2 lines · 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.

Quoted 5 lines

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.

Quoted 1 line

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/