linux-3ds / firm_linux_loader

FIRM Linux Loader for the Nintendo 3DS
GNU General Public License v2.0
69 stars 8 forks source link

Add basic initrd support #27

Closed samueldr closed 3 years ago

samueldr commented 3 years ago

This adds support for loading the initrd at a specific offset in memory, from a hardcoded file path.

If the path is not present, nothing is done.


Adding support for amending the FDT structure in-memory to affect /chosen/bootargs and /chosen/linux,initrd* would be the correct way to add proper support for initrd. But a quick grep at Linux shows that some platforms do exactly the same, and hardcode the values in the dts files.

As such, this relies on https://github.com/linux-3ds/linux/pull/61