Shachar Raindel wrote: > > On Sun, 23 Jan 2005 16:58:47 +0200, Eli Marmor <[EMAIL PROTECTED]> wrote: > > [Maybe off-topic?] > > > > Is there a space on the computer's CMOS and/or NVRAM (speaking about a > > standard x86 PC) that is accessible for writes by the OS? (Linux, of > > course). > > > > If the answer is yes, how is it possible to access this area from the > > user-land? inb()/outb()? Or a /proc virtual file? Or a system call? > > > > I'm aware that different BIOS'es may use different layouts of their > > CMOS... > > modprobe nvram > /dev/nvram *should* now be the contents of your CMOS. If I were you, I > wouldn't mess with it unless there is a very very good reason for that > (i.e. you need to recover the BIOS password). Have a look at the > comment in the start of the source file (available here: > http://lxr.linpro.no/source/drivers/char/nvram.c ) for details.
Yes, you're right, it looks scary (though I already reset a BIOS about 2 months ago... And the machine returned to life...). What I wanted was to store the IP address of a diskless machine (live- CD based) when no DHCP server is available. I get it as input from the user in the first boot, but I can't store it in the network, because I can't access the network without this IP. And I don't want to depend on an extra flash. Is there any alternative? (I heard that all of the NIC cards have CMOS too). Thanks, -- Eli Marmor [EMAIL PROTECTED] Netmask (El-Mar) Internet Technologies Ltd. __________________________________________________________ Tel.: +972-9-766-1020 8 Yad-Harutzim St. Fax.: +972-9-766-1314 P.O.B. 7004 Mobile: +972-50-5237338 Kfar-Saba 44641, Israel ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]