AsahiLinux / m1n1

A bootloader and experimentation playground for Apple Silicon
MIT License
3.61k stars 210 forks source link

Add ADT and m1n1 stage 2 log as MTD phram reserved memory nodes #399

Closed jannau closed 1 month ago

jannau commented 3 months ago

Requires for easy access CONFIG_MTD_PHRAM but I guess can be still accesses through /dev/mem on systems missing this.

The additional IODEV for the log console is a little bit ugly since it can't be added before IODEV_USB0 to keep backwards compatibility with python m1n1 but it shouldn't be handled like the USB IODEVs.

jannau commented 3 months ago

hexdump -C /dev/mtd/by-name/adt and cat /dev/mtd/by-name/m1n1_stage2.log produce the expected results

marcan commented 1 month ago

Nice!