Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/patch/9legacy/libauthsrv-readnvram-arm.diff

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


This patch adds support for reading nvram on the Raspberry Pi. Either
a dedicated nvram partiton or a file in the dos partition on the SD
card may be used.

--- /n/sources/plan9/sys/src/libauthsrv/readnvram.c	Fri Jul 22 13:25:47 2011
+++ /sys/src/libauthsrv/readnvram.c	Fri Dec  9 09:17:36 2022
@@ -52,6 +52,8 @@
 	"power", "/nvram", 0, sizeof(Nvrsafe),	/* OK for Ucu */
 	"arm", "#F/flash/flash0", 0x100000, sizeof(Nvrsafe),
 	"arm", "#F/flash/flash", 0x100000, sizeof(Nvrsafe),
+	"arm", "#S/sdM0/nvram", 0, sizeof(Nvrsafe),
+	"arm", "#S/sdM0/dos", -1, sizeof(Nvrsafe),	/* OK for Raspberry Pi */
 	"debug", "/tmp/nvram", 0, sizeof(Nvrsafe),
 };
 

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].