mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 15:29:16 +00:00
MIPS: new Kconfig option ZBOOT_LOAD_ADDRESS
If this option is not 0x0, it will be used for zboot load address. Otherwise, the result of calc_vmlinuz_load_addr will be used. The zload-y value for generic are also removed then, as the current value breaks booting on qemu -M boston. The result of calc_vmlinuz_load_addr works well for most of cases. The default value of bcm47xx keeps as it currently. Signed-off-by: YunQiang Su <yunqiang.su@cipunited.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
31b2f3dc85
commit
79876cc1d7
@ -2115,6 +2115,16 @@ config MIPS_VA_BITS_48
|
|||||||
|
|
||||||
If unsure, say N.
|
If unsure, say N.
|
||||||
|
|
||||||
|
config ZBOOT_LOAD_ADDRESS
|
||||||
|
hex "Compressed kernel load address"
|
||||||
|
default 0xffffffff80400000 if BCM47XX
|
||||||
|
default 0x0
|
||||||
|
depends on SYS_SUPPORTS_ZBOOT
|
||||||
|
help
|
||||||
|
The address to load compressed kernel, aka vmlinuz.
|
||||||
|
|
||||||
|
This is only used if non-zero.
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Kernel page size"
|
prompt "Kernel page size"
|
||||||
default PAGE_SIZE_4KB
|
default PAGE_SIZE_4KB
|
||||||
|
@ -4,4 +4,3 @@
|
|||||||
cflags-$(CONFIG_BCM47XX) += \
|
cflags-$(CONFIG_BCM47XX) += \
|
||||||
-I$(srctree)/arch/mips/include/asm/mach-bcm47xx
|
-I$(srctree)/arch/mips/include/asm/mach-bcm47xx
|
||||||
load-$(CONFIG_BCM47XX) := 0xffffffff80001000
|
load-$(CONFIG_BCM47XX) := 0xffffffff80001000
|
||||||
zload-$(CONFIG_BCM47XX) += 0xffffffff80400000
|
|
||||||
|
@ -89,6 +89,10 @@ HOSTCFLAGS_calc_vmlinuz_load_addr.o += $(LINUXINCLUDE)
|
|||||||
# Calculate the load address of the compressed kernel image
|
# Calculate the load address of the compressed kernel image
|
||||||
hostprogs := calc_vmlinuz_load_addr
|
hostprogs := calc_vmlinuz_load_addr
|
||||||
|
|
||||||
|
ifneq (0x0,$(CONFIG_ZBOOT_LOAD_ADDRESS))
|
||||||
|
zload-y = $(CONFIG_ZBOOT_LOAD_ADDRESS)
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(zload-y),)
|
ifneq ($(zload-y),)
|
||||||
VMLINUZ_LOAD_ADDRESS := $(zload-y)
|
VMLINUZ_LOAD_ADDRESS := $(zload-y)
|
||||||
else
|
else
|
||||||
|
@ -13,7 +13,6 @@ cflags-$(CONFIG_MACH_INGENIC_SOC) += -I$(srctree)/arch/mips/include/asm/mach-ing
|
|||||||
cflags-$(CONFIG_MIPS_GENERIC) += -I$(srctree)/arch/mips/include/asm/mach-generic
|
cflags-$(CONFIG_MIPS_GENERIC) += -I$(srctree)/arch/mips/include/asm/mach-generic
|
||||||
|
|
||||||
load-$(CONFIG_MIPS_GENERIC) += 0xffffffff80100000
|
load-$(CONFIG_MIPS_GENERIC) += 0xffffffff80100000
|
||||||
zload-$(CONFIG_MIPS_GENERIC) += 0xffffffff81000000
|
|
||||||
all-$(CONFIG_MIPS_GENERIC) += vmlinux.gz.itb
|
all-$(CONFIG_MIPS_GENERIC) += vmlinux.gz.itb
|
||||||
|
|
||||||
its-y := vmlinux.its.S
|
its-y := vmlinux.its.S
|
||||||
|
Loading…
x
Reference in New Issue
Block a user