Skip to content
Commit ff6c923d authored by Stafford Horne's avatar Stafford Horne
Browse files

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: default avatarMateusz Holenko <mholenko@antmicro.com>
Signed-off-by: default avatarStafford Horne <shorne@gmail.com>
parent d0b7213f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment