summaryrefslogtreecommitdiffstats
path: root/arch/openrisc/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2020-07-05 05:53:49 +0900
committerStafford Horne <shorne@gmail.com>2020-08-04 10:59:45 +0900
commitff6c923dbec332dd6c6f649b754f4edd8f0a3c50 (patch)
treeb415803785617bb8d754e05227a8f1452539b63c /arch/openrisc/kernel/vmlinux.lds.S
parentd0b7213f895cd0e209ff5ba89998aeb09267bdc7 (diff)
downloadlinux-ff6c923dbec332dd6c6f649b754f4edd8f0a3c50.tar.bz2
openrisc: Add support for external initrd images
In OpenRISC we set the initrd_start and initrd_end based on the symbols we setup in vmlinux.lds.S. However, this is not needed if we use the generic linker description in INIT_DATA_SECTION. Removing our own initrd setup reduces code, but also the generic code supports loading external initrd images. A bootloader can load a rootfs image into memory and we can configure devicetree to load it with: chosen { bootargs = "earlycon"; stdout-path = "uart0:115200"; linux,initrd-start = < 0x08000100 >; linux,initrd-end = < 0x08200000 >; }; Reported-by: Mateusz Holenko <mholenko@antmicro.com> Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc/kernel/vmlinux.lds.S')
-rw-r--r--arch/openrisc/kernel/vmlinux.lds.S12
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/openrisc/kernel/vmlinux.lds.S b/arch/openrisc/kernel/vmlinux.lds.S
index 60449fd7f16f..22fbc5fb24b3 100644
--- a/arch/openrisc/kernel/vmlinux.lds.S
+++ b/arch/openrisc/kernel/vmlinux.lds.S
@@ -96,18 +96,6 @@ SECTIONS
__init_end = .;
- . = ALIGN(PAGE_SIZE);
- .initrd : AT(ADDR(.initrd) - LOAD_OFFSET)
- {
- __initrd_start = .;
- *(.initrd)
- __initrd_end = .;
- FILL (0);
- . = ALIGN (PAGE_SIZE);
- }
-
- __vmlinux_end = .; /* last address of the physical file */
-
BSS_SECTION(0, 0, 0x20)
_end = .;