• Stafford Horne's avatar
    openrisc: Add support for external initrd images · ff6c923d
    Stafford Horne authored
    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>
    ff6c923d
setup.c 10.6 KB