diff options
author | Anup Patel <anup@brainfault.org> | 2018-11-12 08:55:15 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2018-11-20 16:19:09 +0300 |
commit | c0fbcd9918607e85c9598bfa3dd0a84ed77ea210 (patch) | |
tree | 5e88da40c8c0781e1dd6417123ead07ba47ceabd /arch/riscv/kernel/vmlinux.lds.S | |
parent | 21f70d4abf9e17c2e3d7e64b7bfa3424e017f176 (diff) | |
download | linux-c0fbcd9918607e85c9598bfa3dd0a84ed77ea210.tar.xz |
RISC-V: Build flat and compressed kernel images
This patch extends Linux RISC-V build system to build and install:
Image - Flat uncompressed kernel image
Image.gz - Flat and GZip compressed kernel image
Quiet a few bootloaders (such as Uboot, UEFI, etc) are capable of
booting flat and compressed kernel images. In case of Uboot, booting
Image or Image.gz is achieved using bootm command.
The flat and uncompressed kernel image (i.e. Image) is very useful
in pre-silicon developent and testing because we can create back-door
HEX files for RAM on FPGAs from Image.
Signed-off-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/riscv/kernel/vmlinux.lds.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/vmlinux.lds.S b/arch/riscv/kernel/vmlinux.lds.S index ece84991609c..65df1dfdc303 100644 --- a/arch/riscv/kernel/vmlinux.lds.S +++ b/arch/riscv/kernel/vmlinux.lds.S @@ -74,7 +74,7 @@ SECTIONS *(.sbss*) } - BSS_SECTION(0, 0, 0) + BSS_SECTION(PAGE_SIZE, PAGE_SIZE, 0) EXCEPTION_TABLE(0x10) NOTES |