Re: nvram

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Jun 07, 2007 at 08:01:21AM +0100, Hemanth Kumar wrote:
> Hi All,
>              I need small info in accessing the nvram,I have 32K
>             nvram on new i386 SBC , I have compiled the nvram as
>             builtin module in kernel(2.6.20),then i ported the new
>             image into the flash(16MB) and booted it is working fine
>             ,
> 
> My question's
> 1 . I need to copy the binary to nvram(/dev/nvram)
>        (this how i tried to access first i created a dd if=/dev/nvram of=nvram.dd
>          then i tried mount -o,loop rw nvram.dd /home/dummy 
>           but it says unable to mount the device
>         )

If your nvram is 32k (which is unusually large, most of the time it's
only 114 bytes) there is no way you can fit a filesystem on it so there
is also no way you can mount it.

Also note that you can't copy random binaries to /dev/nvram. The nvram
holds information like BIOS settings and the real time clock.

> 2 . Is there any better way to acccess nvram

dd is one way, you could also write your own application.

> 3 . doen I need compile the driver as loadable kernel module

That's up to you. The nvram driver won't have any extra functionality
when you compile it as a module. You will however have a little extra
memory free when you don't load the nvram module.


Erik

- -- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGZ7go/PlVHJtIto0RAh0jAJ44Rf1y549l5BQ8bLQWwyEXH4yOTQCeNLPL
agKJA9/NHoKzI233A4T+Xuw=
=HlKx
-----END PGP SIGNATURE-----

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux