-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ADT and m1n1 stage 2 log as MTD phram reserved memory nodes #399
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Janne Grunau <[email protected]>
Requires CONFIG_MTD_PHRAM in Linux. Signed-off-by: Janne Grunau <[email protected]>
This registers a log buffer IODEV similar to the frame buffer IODEV. It is using a console IODEV to allow writing to the buffer until m1n1 jumps to the next stage. This allows also to increase the buffer size without increasing m1n1's size. The current CONSOLE_BUFFER_SIZE of 8k is not large enough to hold the entire log of executing m1n1 under the hypervisor on the M1 Ultra Mac Studio. Signed-off-by: Janne Grunau <[email protected]>
|
Nice! |
jannau
added a commit
to jannau/asahi-nvram
that referenced
this pull request
Sep 28, 2024
"nvram" will not be the sole MTD device on AsahiLinux devices with m1n1-1.4.16 (AsahiLinux/m1n1#399) and CONFIG_MTD_PHRAM. Use "/dev/mtd/by-name/nvram" instead of "/dev/mtd0". Signed-off-by: Janne Grunau <[email protected]>
jannau
added a commit
to jannau/asahi-nvram
that referenced
this pull request
Sep 28, 2024
"nvram" will not be the sole MTD device on AsahiLinux devices with m1n1-1.4.16 (AsahiLinux/m1n1#399) and CONFIG_MTD_PHRAM. Use "/dev/mtd/by-name/nvram" instead of "/dev/mtd0". Signed-off-by: Janne Grunau <[email protected]>
jannau
added a commit
to jannau/asahi-nvram
that referenced
this pull request
Sep 28, 2024
"nvram" will not be the sole MTD device on AsahiLinux devices with m1n1-1.4.16 (AsahiLinux/m1n1#399) and CONFIG_MTD_PHRAM. Use "/dev/mtd/by-name/nvram" instead of "/dev/mtd0". Signed-off-by: Janne Grunau <[email protected]>
jannau
added a commit
to jannau/asahi-nvram
that referenced
this pull request
Sep 28, 2024
"nvram" will not be the sole MTD device on AsahiLinux devices with m1n1-1.4.16 (AsahiLinux/m1n1#399) and CONFIG_MTD_PHRAM. Use "/dev/mtd/by-name/nvram" instead of "/dev/mtd0". Signed-off-by: Janne Grunau <[email protected]>
WhatAmISupposedToPutHere
pushed a commit
to WhatAmISupposedToPutHere/asahi-nvram
that referenced
this pull request
Sep 28, 2024
"nvram" will not be the sole MTD device on AsahiLinux devices with m1n1-1.4.16 (AsahiLinux/m1n1#399) and CONFIG_MTD_PHRAM. Use "/dev/mtd/by-name/nvram" instead of "/dev/mtd0". Signed-off-by: Janne Grunau <[email protected]>
WhatAmISupposedToPutHere
pushed a commit
to WhatAmISupposedToPutHere/asahi-nvram
that referenced
this pull request
Sep 28, 2024
"nvram" will not be the sole MTD device on AsahiLinux devices with m1n1-1.4.16 (AsahiLinux/m1n1#399) and CONFIG_MTD_PHRAM. Use "/dev/mtd/by-name/nvram" instead of "/dev/mtd0". Signed-off-by: Janne Grunau <[email protected]>
WhatAmISupposedToPutHere
pushed a commit
to WhatAmISupposedToPutHere/asahi-nvram
that referenced
this pull request
Sep 28, 2024
"nvram" will not be the sole MTD device on AsahiLinux devices with m1n1-1.4.16 (AsahiLinux/m1n1#399) and CONFIG_MTD_PHRAM. Use "/dev/mtd/by-name/nvram" instead of "/dev/mtd0". Signed-off-by: Janne Grunau <[email protected]>
WhatAmISupposedToPutHere
pushed a commit
to WhatAmISupposedToPutHere/asahi-nvram
that referenced
this pull request
Sep 28, 2024
"nvram" will not be the sole MTD device on AsahiLinux devices with m1n1-1.4.16 (AsahiLinux/m1n1#399) and CONFIG_MTD_PHRAM. Use "/dev/mtd/by-name/nvram" instead of "/dev/mtd0". Signed-off-by: Janne Grunau <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.