Re: [U-Boot] [ARM] Environment variables not available during console initialisation?

2009-02-03 Thread Guennadi Liakhovetski
Morning Wolfgang On Tue, 3 Feb 2009, Wolfgang Denk wrote: Why not? The only thing env_nand.c needs to know is the address of the environment in memory - it does not care if it's embedded or elsewhere. I think we should not artifically split this into two cases when it's really one. There

Re: [U-Boot] [ARM] Environment variables not available during console initialisation?

2009-02-03 Thread Wolfgang Denk
Dear Guennadi Liakhovetski, In message pine.lnx.4.64.0902030842390.4...@axis700.grange you wrote: I think we should not artifically split this into two cases when it's really one. There is two things that need to be done: (1) nand_spl must locate a valid copy of the environment and load

Re: [U-Boot] [ARM] Environment variables not available during console initialisation?

2009-02-03 Thread Scott Wood
Guennadi Liakhovetski wrote: On Tue, 3 Feb 2009, Wolfgang Denk wrote: I don't see what nand(_spl) maintainers should comment here - their code is so far completley unaffected. We just agreed on needing another call to the load routine. We still have the other possibility - properly

Re: [U-Boot] [ARM] Environment variables not available during console initialisation?

2009-02-02 Thread Guennadi Liakhovetski
Hi, below is a patch / rfc that allows me to read the envorinment from NAND early enough to be used in the console initialisation. It turns out this is not only an ARM problem, rather it is common to all platforms storing environment in NAND. Similarly, probably, env in SPI flash would have

Re: [U-Boot] [ARM] Environment variables not available during, console initialisation?

2009-02-02 Thread Derek Ou
Is this a catch 22? If console is initialized after loading environment variables, this means NAND (or other memories) driver are loaded before console being available and there is no console output to debug NAND driver initialization. If console is initialized before loading NAND driver,

Re: [U-Boot] [ARM] Environment variables not available during console initialisation?

2009-02-02 Thread Wolfgang Denk
Dear Guennadi Liakhovetski, In message pine.lnx.4.64.0902021725100.4...@axis700.grange you wrote: -#ifdef ENV_IS_EMBEDDED +#if defined(ENV_IS_EMBEDDED) extern uchar environment[]; env_t *env_ptr = (env_t *)(environment[0]); +#elif defined(CFG_ENV_IS_APPENDED) What makes you think an

Re: [U-Boot] [ARM] Environment variables not available during console initialisation?

2009-02-02 Thread Guennadi Liakhovetski
On Mon, 2 Feb 2009, Wolfgang Denk wrote: Dear Guennadi Liakhovetski, In message pine.lnx.4.64.0902021725100.4...@axis700.grange you wrote: -#ifdef ENV_IS_EMBEDDED +#if defined(ENV_IS_EMBEDDED) extern uchar environment[]; env_t *env_ptr = (env_t *)(environment[0]); +#elif

Re: [U-Boot] [ARM] Environment variables not available during console initialisation?

2009-02-02 Thread Wolfgang Denk
Dear Guennadi Liakhovetski, In message pine.lnx.4.64.0902022141190.8...@axis700.grange you wrote: -#ifdef ENV_IS_EMBEDDED +#if defined(ENV_IS_EMBEDDED) extern uchar environment[]; env_t *env_ptr = (env_t *)(environment[0]); +#elif defined(CFG_ENV_IS_APPENDED) What makes

Re: [U-Boot] [ARM] Environment variables not available during console initialisation?

2009-02-02 Thread Guennadi Liakhovetski
On Mon, 2 Feb 2009, Wolfgang Denk wrote: Dear Guennadi Liakhovetski, In message pine.lnx.4.64.0902022141190.8...@axis700.grange you wrote: -#ifdef ENV_IS_EMBEDDED +#if defined(ENV_IS_EMBEDDED) extern uchar environment[]; env_t *env_ptr = (env_t *)(environment[0]);

Re: [U-Boot] [ARM] Environment variables not available during console initialisation?

2009-01-15 Thread Ulf Samuelsson
tor 2009-01-15 klockan 08:33 +0100 skrev Guennadi Liakhovetski: Hi, a user is reporting, that setting silent and baudrate environment variables on ARM have no effect on the console bahaviour. I didn't test this but looking at the code it looks logical - the console is initialised before

[U-Boot] [ARM] Environment variables not available during console initialisation?

2009-01-14 Thread Guennadi Liakhovetski
Hi, a user is reporting, that setting silent and baudrate environment variables on ARM have no effect on the console bahaviour. I didn't test this but looking at the code it looks logical - the console is initialised before environment variables are read. Question - is this a bug that has to