Skip to contentSkip to conversation

PPC NvRam Support???

DISCUSSION Tom Guilliams 3 participants 3 messages Feb 25, 2003

lore
Share & tools
lore
#0 lore raw

I'm looking for NVRAM support (/dev/nvram) for the M48T37V 32K x 8 Timekeeper SRAM chip. Not only that, but drivers/char/nvram.c in the 2.4 development tree doesn't seem to support PPC at all. I must be missing something or going about this the wrong way. There appears to be RTC support for that chipset but no NVRAM. Can anyone shed some light on PPC NVRAM support? Thanks in advance for any help.

- Tom

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 7 lines · Tom Guilliams

I'm looking for NVRAM support (/dev/nvram) for the M48T37V 32K x 8 Timekeeper SRAM chip. Not only that, but drivers/char/nvram.c in the 2.4 development tree doesn't seem to support PPC at all. I must be missing something or going about this the wrong way. There appears to be RTC support for that chipset but no NVRAM. Can anyone shed some light on PPC NVRAM support? Thanks in advance for any help.

Try looking in arch/ppc/kernel - that's where the RTC/NVRAM support is (in the 2.4 kernels at least)

--
------------------------------------------------------------

Gary Thomas                 |
MLB Associates              |  Consulting for the
+1 (970) 229-1963           |    Embedded world
http://www.mlbassoc.com/    |
email: <[email protected]>  |

gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to Tom Guilliams
Quoted 6 lines · Tom Guilliams

I'm looking for NVRAM support (/dev/nvram) for the M48T37V 32K x 8 Timekeeper SRAM chip. Not only that, but drivers/char/nvram.c in the 2.4 development tree doesn't seem to support PPC at all. I must be missing something or going about this the wrong way. There appears to be RTC support for that chipset but no NVRAM. Can anyone shed some light on PPC NVRAM support? Thanks in advance for any help.

Well, what are you trying to do exactly? The drivers/char/nvram.c driver should be able be made to work on a 'pc' style nvram with a little work. NVRAM support is currently funky because powermacs cannot use the drivers/char/nvram.c driver, but did use CONFIG_NVRAM. You could try just removing the PPC check in drivers/char/Makefile and see what happens.

--
Tom Rini
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/