Skip to contentSkip to conversation

Deleting read-only environment variable on Sibyte board.

DISCUSSION Ralf Baechle 2 participants 5 messages Nov 5, 2007 – Nov 7, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

I've got a read-only environment variable on my Sibyte/Broadcom Bigsur system. Annoyingly it's the network address. Any help on how to delete such an undeletable environment variable would be welcome.

Thanks,

Ralf

#1 lore raw

Hi Ralf,

Can you try 'Unsetenv [NAME]'?

Quoted 18 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ralf Baechle
Sent: Monday, November 05, 2007 5:03 AM
To: [email protected]
Subject: Deleting read-only environment variable on Sibyte board.

I've got a read-only environment variable on my Sibyte/Broadcom Bigsur system. Annoyingly it's the network address. Any help on how to delete such an undeletable environment variable would be welcome.

Thanks,

Ralf

#2 lore raw
Quoted 3 lines · Manoj Ekbote

Hi Ralf,

Can you try 'Unsetenv [NAME]'?

I'm getting an error message, something about the variable being read-only.

Thanks anyway,

Ralf

#3 lore raw

It looks like the variable was set with 'setenv -ro' command. This will need a manual delete.
Bad news - This would probably require a new firmware build. There is no current command to remove -ro variables (non-existing feature).

Quoted 21 lines

-----Original Message-----
From: Ralf Baechle [mailto:[email protected]]
Sent: Tuesday, November 06, 2007 2:29 PM
To: Manoj Ekbote
Cc: [email protected]
Subject: Re: Deleting read-only environment variable on Sibyte board.

Quoted 3 lines · Manoj Ekbote

Hi Ralf,

Can you try 'Unsetenv [NAME]'?

I'm getting an error message, something about the variable being read-only.

Thanks anyway,

Ralf

#4 lore raw
Quoted 4 lines · Manoj Ekbote

It looks like the variable was set with 'setenv -ro' command. This will need a manual delete.
Bad news - This would probably require a new firmware build. There is no current command to remove -ro variables (non-existing feature).

I ran over a bit of documentation regarding how variables are stored by CFE. Looks easy enough to write a little app to convert those variables to writeable.

Ralf