Skip to contentSkip to conversation

setting the environment address

U-Boot John Stile 2 participants 2 messages Jan 8, 2013

lore
Share & tools
lore

John Stile

author
#0 lore raw

How does uboot decide where in NAND the configuration will be found? I'm getting the classic errors:
*** Warning - bad CRC or NAND, using default environment

I am writing my environment to nand, with crc, but how do I know that uboot is looking for it in the right place?

Is that a compile time only setting?
Ultimately I'd like to have 2 copies of the environment.

#1 lore raw

Hi John,

Quoted 9 lines · John Stile

How does uboot decide where in NAND the configuration will be found? I'm getting the classic errors:
*** Warning - bad CRC or NAND, using default environment

I am writing my environment to nand, with crc, but how do I know that uboot is looking for it in the right place?

Is that a compile time only setting?
Ultimately I'd like to have 2 copies of the environment.

This is defined in the board's config header file. See README and CONFIG_ENV_OFFSET.

Amicalement,

Signature · 1 line
Albert.