[U-Boot-Users] Stack Size for MPC8xx???
steven.scholz at imc-berlin.de
Sat Oct 18 15:24:32 CEST 2003
does someone know how big the stack is for an MPC8xx based boards?
I had this problem:
I started porting U-Boot to my new AT91RM9200 based board. After doing the flash
code I tried "saveenv". Simple reading, writing and erasing was working. But the
board crashed when doing "saveenv".
I found these lines in common/env_flash.c:
#if defined(CFG_ENV_SECT_SIZE) && (CFG_ENV_SECT_SIZE > CFG_ENV_SIZE)
/* copy old contents to temporary buffer */
memcpy (env_buffer, (void *)flash_sect_addr, CFG_ENV_SECT_SIZE);
I have CFG_ENV_SECT_SIZE = 64K and CFG_ENV_SIZE=4K and realized that my stack
was far to small to save an 64KB flash sector.
The funny thing is that I never worried about that issue. And it never seems to
be a problem on our MPC8xx based boards...
imc Measurement & Control imc Meßsysteme GmbH
Voltastr. 5 Voltastr. 5
13355 Berlin 13355 Berlin
fon: +49 30 467090-0 Tel: 030 / 467090-0
fax: +49 30 4631576 fax: 030 / 4631576
More information about the U-Boot