OpenQNX :: The QNX Community Portal

Oct 06, 2008 - 07:00 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 47 unlogged users and 2 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jacus
Post subject: The devn-crys8900.so driver  PostPosted: Jun 29, 2007 - 07:09 AM
Senior Member


Joined: Apr 22, 2003
Posts: 238

Hello,

Is the latest release of devn-crys8900 able
to read MAC address from the system page ?

Regards,
Jacek
 
 View user's profile Send private message  
Reply with quote Back to top
Robert Craig
Post subject: Re: The devn-crys8900.so driver  PostPosted: Jun 29, 2007 - 05:04 PM
Guest





Support for reading the MAC address from the system page (and thereby
overriding the EEPROM MAC address) is indeed built into the code. It
looks like this was added before the release of 6.3.0, so it should be
in the shipping version of the driver.

R.


Jacek Rudnicki wrote:
Quote:
Hello,

Is the latest release of devn-crys8900 able
to read MAC address from the system page ?

Regards,
Jacek

 
   
Reply with quote Back to top
jacus
Post subject: Re: The devn-crys8900.so driver  PostPosted: Jul 02, 2007 - 08:10 AM
Senior Member


Joined: Apr 22, 2003
Posts: 238

One more question.
Is it possible to write MAC address to the system page
while procnto is running ?

Unfortunately, this time we can't do that in startup code.

Jacek

Uzytkownik "Robert Craig" <rcraig_at_qnx@nowhere.com> napisal w wiadomosci
news:f63df1$l1e$1@inn.qnx.com...
Quote:
Support for reading the MAC address from the system page (and thereby
overriding the EEPROM MAC address) is indeed built into the code. It
looks like this was added before the release of 6.3.0, so it should be in
the shipping version of the driver.

R.


Jacek Rudnicki wrote:
Hello,

Is the latest release of devn-crys8900 able
to read MAC address from the system page ?

Regards,
Jacek
 
 View user's profile Send private message  
Reply with quote Back to top
Robert Craig
Post subject: Re: The devn-crys8900.so driver  PostPosted: Jul 03, 2007 - 04:28 PM
Guest





Hi:

As far as I know, writing to the system page after the kernel is up
and running isn't supported (it might be possible, but it isn't
supported). If you don't know the MAC address at boot time, then my
recommendation would be to start the driver (or mount it) using the
"mac=" option on the command line (or by using the "system" function
from a program if the MAC address can't be easily read via a shell script).

Robert

Jacek Rudnicki wrote:
Quote:
One more question.
Is it possible to write MAC address to the system page
while procnto is running ?

Unfortunately, this time we can't do that in startup code.

Jacek

Uzytkownik "Robert Craig" <rcraig_at_qnx@nowhere.com> napisal w wiadomosci
news:f63df1$l1e$1@inn.qnx.com...
Support for reading the MAC address from the system page (and thereby
overriding the EEPROM MAC address) is indeed built into the code. It
looks like this was added before the release of 6.3.0, so it should be in
the shipping version of the driver.

R.


Jacek Rudnicki wrote:
Hello,

Is the latest release of devn-crys8900 able
to read MAC address from the system page ?

Regards,
Jacek

 
   
Reply with quote Back to top
jacus
Post subject: Re: The devn-crys8900.so driver  PostPosted: Jul 04, 2007 - 07:41 AM
Senior Member


Joined: Apr 22, 2003
Posts: 238

Hi Robert,

At present I'm using "mac=" option for the driver and it works fine.

Probably the last question:
Can you tell me if it is possible to create/set "global" environment
variable from C code ?

Jacek

Uzytkownik "Robert Craig" <rcraig_at_qnx@nowhere.com> napisal w wiadomosci
news:f6dsrm$peg$1@inn.qnx.com...
Quote:
Hi:

As far as I know, writing to the system page after the kernel is up and
running isn't supported (it might be possible, but it isn't supported).
If you don't know the MAC address at boot time, then my recommendation
would be to start the driver (or mount it) using the "mac=" option on the
command line (or by using the "system" function from a program if the MAC
address can't be easily read via a shell script).

Robert

Jacek Rudnicki wrote:
One more question.
Is it possible to write MAC address to the system page
while procnto is running ?

Unfortunately, this time we can't do that in startup code.

Jacek

Uzytkownik "Robert Craig" <rcraig_at_qnx@nowhere.com> napisal w
wiadomosci news:f63df1$l1e$1@inn.qnx.com...
Support for reading the MAC address from the system page (and thereby
overriding the EEPROM MAC address) is indeed built into the code. It
looks like this was added before the release of 6.3.0, so it should be
in the shipping version of the driver.

R.


Jacek Rudnicki wrote:
Hello,

Is the latest release of devn-crys8900 able
to read MAC address from the system page ?

Regards,
Jacek
 
 View user's profile Send private message  
Reply with quote Back to top
Ryan J. Allen
Post subject: Re: The devn-crys8900.so driver  PostPosted: Jul 04, 2007 - 01:14 PM
Guest





A process can only manipulate the environment for itself and its children.

If you're doing this in startup you could write a program to get the MAC
and print it to stdout and do something like this in an sh startup script:

HWADDR=`getmac`
io-net -dcrys9800 mac=$HWADDR

--
Ryan J. Allen
QNX Software Systems


On 04/07/2007 3:41 AM, Jacek Rudnicki wrote:
Quote:
Hi Robert,

At present I'm using "mac=" option for the driver and it works fine.

Probably the last question:
Can you tell me if it is possible to create/set "global" environment
variable from C code ?

Jacek

Uzytkownik "Robert Craig" <rcraig_at_qnx@nowhere.com> napisal w wiadomosci
news:f6dsrm$peg$1@inn.qnx.com...
Hi:

As far as I know, writing to the system page after the kernel is up and
running isn't supported (it might be possible, but it isn't supported).
If you don't know the MAC address at boot time, then my recommendation
would be to start the driver (or mount it) using the "mac=" option on the
command line (or by using the "system" function from a program if the MAC
address can't be easily read via a shell script).

Robert

Jacek Rudnicki wrote:
One more question.
Is it possible to write MAC address to the system page
while procnto is running ?

Unfortunately, this time we can't do that in startup code.

Jacek

Uzytkownik "Robert Craig" <rcraig_at_qnx@nowhere.com> napisal w
wiadomosci news:f63df1$l1e$1@inn.qnx.com...
Support for reading the MAC address from the system page (and thereby
overriding the EEPROM MAC address) is indeed built into the code. It
looks like this was added before the release of 6.3.0, so it should be
in the shipping version of the driver.

R.


Jacek Rudnicki wrote:
Hello,

Is the latest release of devn-crys8900 able
to read MAC address from the system page ?

Regards,
Jacek
 
   
Reply with quote Back to top
Q
Post subject: Re: The devn-crys8900.so driver  PostPosted: Aug 21, 2007 - 10:12 AM
Guest





Quote:
Can you tell me if it is possible to create/set "global" environment
variable from C code ?

#include <stdlib.h>

int putenv( const char *env_name ); //Add, change or delete an environment
variable

see also:
getenv(), unsetenv()
 
   
Reply with quote Back to top
David Gibbs
Post subject: Re: The devn-crys8900.so driver  PostPosted: Aug 21, 2007 - 05:12 PM
Guest





Q <no@spam.pl> wrote:
Quote:
Can you tell me if it is possible to create/set "global" environment
variable from C code ?

#include <stdlib.h

int putenv( const char *env_name ); //Add, change or delete an environment
variable

see also:
getenv(), unsetenv()

Yes...but those aren't "global". They change the environment for the
calling process, and (depending on the type of spawn/exec done) will be
inherited by children -- but are not in any way global -- that is, changes
won't be seen by other already running processes, or by processes that
are started by another process.

-David
--
David Gibbs
QNX Training Services
dagibbs@qnx.com
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.