• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Save console environment variable?  (Read 1736 times)
ianjb
Jr. Member
**

Karma: 0
Posts: 65


View Profile
« on: June 15, 2009, 01:52:56 PM »

I've tried changing the console environment variable and then using saveenv to save it but after I reboot it returns to it's original value.

Anyone else noticed this?
Logged

jdonth
Jr. Member
**

Karma: 0
Posts: 75

Azle, Texas


View Profile
« Reply #1 on: June 15, 2009, 01:56:45 PM »

What command are you using?

Does:
setenv blah yes
saveenv
reset

not work?


Logged

...I've always depended on the kindness of strangers

ianjb
Jr. Member
**

Karma: 0
Posts: 65


View Profile
« Reply #2 on: June 15, 2009, 08:08:37 PM »

oops, made a mistake. It does save ok.
Logged

code4fun
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #3 on: July 19, 2009, 09:51:51 PM »

I've tried changing the console environment variable and then using saveenv to save it but after I reboot it returns to it's original value.

Anyone else noticed this?

Hi. I'm seeing exactly the same problem. The weird thing is I am able to set the console environment variable if I'm using the original u-boot that came with the 1.0 SDK. If I try to use 1.2, I am not able to save the console environment. However, I could set other things such as ipaddr and serverip so it is able to write to flash. Very strange.

I tried doing a resetenv and doing a setenv followed by a saveenv, but the console value goes back to default settings after a reset.

Marvell>> printenv console
console=console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0(uboot)ro,0x0@0x100000(
uImage),0x1ff00000@0x100000(rootfs)rw
Marvell>> setenv console
Marvell>> printenv console
## Error: "console" not defined
Marvell>> setenv console 'console=ttyS0,115200'
Marvell>> printenv console
console=console=ttyS0,115200
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> reset

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Apr  9 2009 - 12:23:12) Marvell version: 3.4.16
...

Hit any key to stop autoboot:  0
Marvell>> 
wn command '' - try 'help'
Marvell>> printenv console
console=console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0(uboot)ro,0x0@0x100000(uImage),0x1ff00000@0x100000(rootfs)rw

« Last Edit: July 19, 2009, 10:02:41 PM by code4fun » Logged

Pages: [1]
Print
Jump to: