LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-09-2011, 07:09 AM   #1
shankar.489
Member
 
Registered: Jan 2011
Posts: 53

Rep: Reputation: 0
Angry Help acessing nvram variables


HI folks,

iam need to acess(read/write) the NVRAM variable data

i know the methods of reading nvram variable using envp variable which is 3rd argument to main

but we cant read/modify its data from this variable right?

i think we can print these variable but i need to modify these variable in order to change bios bootorder, etc..

can we have any methods to modify this data programaticaly if so please help me in these.

especially i need your help in changing BOOTORDER of the BIOS by change NVRAM variable for these i need the APIS to acess/modify them.

please send me your suggestions/info to me reg. this

thanks in adv

~shankar

Last edited by shankar.489; 03-09-2011 at 07:14 AM.
 
Old 03-09-2011, 07:23 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,295

Rep: Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358
You have the wrong idea about envp; that's the program's shell env variables. Nothing to do with the BIOS.
I'm not sure that you can read/write to the BIOS from a program.
 
Old 03-11-2011, 12:50 AM   #3
shankar.489
Member
 
Registered: Jan 2011
Posts: 53

Original Poster
Rep: Reputation: 0
oh ok, thanks for your time on this

~shankar
 
Old 03-17-2011, 03:37 AM   #4
shankar.489
Member
 
Registered: Jan 2011
Posts: 53

Original Poster
Rep: Reputation: 0
hai chris,

thank you for your reply

if i change shell env variables from my program does and if i want run script file which uses above env. variables which system call is preferable?

system()
or
popen()

i one shot changed env variables should(should be as parent only) apply for my "sript.sh" file also.

i cant use exec() family please suggest me a solution

as you said i have a very bad idea on this please help me..:-(

i searching for methods of changing env variables from program

~shankar

Last edited by shankar.489; 03-17-2011 at 03:58 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
command to copy RAM to NVRAM pradeepgokulr007 Red Hat 1 03-31-2009 12:14 PM
command to copy RAM to NVRAM pradeepgokulr007 Linux - Networking 1 03-31-2009 11:08 AM
nvram digger Linux - Software 1 09-21-2008 02:36 AM
NVram replacement knobby67 Programming 2 04-16-2007 01:39 AM
Can't load the nvram module LiquidSlumber Linux - Software 2 07-08-2006 12:46 AM


All times are GMT -5. The time now is 07:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration