sysprog21 / semu

A minimalist RISC-V system emulator capable of running Linux kernel
MIT License
253 stars 47 forks source link

Increase INITRD_SIZE size #62

Closed testriscv closed 1 month ago

testriscv commented 2 months ago

when increasing INITRD_SIZE (8 1024 1024) to (16 1024 1024) or more 128 and changing linux,initrd-start
i.e. linux,initrd-start = <0x1F000000>;
into minimal.dts

always kernel panic with make check

shengwen-tw commented 2 months ago

Try (511 - 16) * 1024 * 1024 = 0x1ef00000

That is:

chosen {
...
    linux,initrd-start = <0x1ef00000>; /* @495 MiB ((511 - 16) * 1024 * 1024) */
    linux,initrd-end = <0x1fefffff>;   /* @511 MiB (511 * 1024 * 1024 - 1) */
};
jserv commented 1 month ago

@testriscv, Can you confirm if the suggestion of @shengwen-tw worked?

testriscv commented 1 month ago

thank you very much