View previous topic :: View next topic |
Author |
Message |
vtaoe n00b
Joined: 16 Aug 2002 Posts: 25 Location: Pensacola, FL, US
|
Posted: Tue Nov 25, 2003 1:11 am Post subject: /proc/openprom |
|
|
I've got a recent install of Gentoo on my Ultra 5 (OBP 3.31.0), and I have noticed that my /proc/openprom is empty.
The openpromfs support was compiled as a module and appears to be loaded by default:
Code: | # lsmod
Module Size Used by Not tainted
openpromfs 12528 0 (unused)
ide-cd 32976 0 (autoclean)
cdrom 28688 0 (autoclean) [ide-cd]
af_packet 13048 1 (autoclean)
rtc 1944 0 (autoclean)
unix 17952 100 (autoclean) |
Does it need to be compiled directly into the kernel, or is there something else I have to do to intereact with the NVRAM from inside Linux? I have seen another post here referring to creating a node in /dev/openprom, but without further explanation.
Issuing:
Code: | # modprobe -c | grep openprom
alias char-major-10-139 openprom |
seems to indicate that it's expecting a character device node with major number 10 and minor number 139, so, poking around, I tried:
Code: | # mknod /dev/openprom c 10 139 |
but that didn't seem to change anything. Then, I tried:
Code: | # rmmod openpromfs && insmod openpromfs |
but no change. However, during all this, I accidentally typed insmod openprom and realized that there was a module by that name also. Curiously, enough, its insertion created a symlink /dev/openprom -> misc/openprom, and sure enough, /dev/misc/openprom is a character node with major number 10 and minor number 139. However, there's still no joy on getting anything from ls /proc/openprom.
Any suggestions? Thanks. |
|
Back to top |
|
|
vtaoe n00b
Joined: 16 Aug 2002 Posts: 25 Location: Pensacola, FL, US
|
Posted: Tue Nov 25, 2003 1:22 am Post subject: |
|
|
Hey, look at that... Found my own answer again, this time in the help from the kernel option General Setup ---> Openprom tree appears in /proc/openprom:
Code: | CONFIG_SUN_OPENPROMFS:
If you say Y, the OpenPROM device tree will be available as a virtual file system, which you can mount to /proc/openprom by "mount -t openpromfs none /proc/openprom". |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|