Skip to content

Commit 79876cc

Browse files
YunQiang Sutsbogend
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 31b2f3d commit 79876cc

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

arch/mips/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,6 +2115,16 @@ config MIPS_VA_BITS_48
21152115

21162116
If unsure, say N.
21172117

2118+
config ZBOOT_LOAD_ADDRESS
2119+
hex "Compressed kernel load address"
2120+
default 0xffffffff80400000 if BCM47XX
2121+
default 0x0
2122+
depends on SYS_SUPPORTS_ZBOOT
2123+
help
2124+
The address to load compressed kernel, aka vmlinuz.
2125+
2126+
This is only used if non-zero.
2127+
21182128
choice
21192129
prompt "Kernel page size"
21202130
default PAGE_SIZE_4KB

arch/mips/bcm47xx/Platform

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
cflags-$(CONFIG_BCM47XX) += \
55
-I$(srctree)/arch/mips/include/asm/mach-bcm47xx
66
load-$(CONFIG_BCM47XX) := 0xffffffff80001000
7-
zload-$(CONFIG_BCM47XX) += 0xffffffff80400000

arch/mips/boot/compressed/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ HOSTCFLAGS_calc_vmlinuz_load_addr.o += $(LINUXINCLUDE)
8989
# Calculate the load address of the compressed kernel image
9090
hostprogs := calc_vmlinuz_load_addr
9191

92+
ifneq (0x0,$(CONFIG_ZBOOT_LOAD_ADDRESS))
93+
zload-y = $(CONFIG_ZBOOT_LOAD_ADDRESS)
94+
endif
95+
9296
ifneq ($(zload-y),)
9397
VMLINUZ_LOAD_ADDRESS := $(zload-y)
9498
else

arch/mips/generic/Platform

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ cflags-$(CONFIG_MACH_INGENIC_SOC) += -I$(srctree)/arch/mips/include/asm/mach-ing
1313
cflags-$(CONFIG_MIPS_GENERIC) += -I$(srctree)/arch/mips/include/asm/mach-generic
1414

1515
load-$(CONFIG_MIPS_GENERIC) += 0xffffffff80100000
16-
zload-$(CONFIG_MIPS_GENERIC) += 0xffffffff81000000
1716
all-$(CONFIG_MIPS_GENERIC) += vmlinux.gz.itb
1817

1918
its-y := vmlinux.its.S

0 commit comments

Comments
 (0)