
21 Jun
2006
21 Jun
'06
10:47 p.m.
In message 44998029.9020708@inaccessnetworks.com you wrote:
Ooops, sorry I forgot to mention that with the above line changed to:
static env_t *flash_addr = (env_t *)(CFG_ENV_ADDR + sizeof(unsigned long));
This cannot be correct.
I should mention it. It would be more desirable to infer the address of the environment directly, but I am not sure how this can be done for the PXA architecture (or in a unified way for all architectures for that matter).
See the existing code examples / linker scripts.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
CONSUMER NOTICE: Because of the "Uncertainty Principle," It Is
Impossible for the Consumer to Find Out at the Same Time Both
Precisely Where This Product Is and How Fast It Is Moving.