CM4000: fix broken flash base for OpenGear boards
PATCH 1/1 CM4000: fix broken flash base for OpenGear boards
Use _bss_start_ofs as the size of the boot loader code+data that we want to protect in the flash. This replaces use of the no longer defined _armboot_start.
Fixes:
flash.c: In function ?flash_init?:
flash.c:75: error: ?_bss_start? undeclared (first use in this function) flash.c:75: error: (Each undeclared identifier is reported only once flash.c:75: error: for each function it appears in.) flash.c:75: error: ?_armboot_start? undeclared (first use in this function)
--- board/cm4008/flash.c | 2 +- board/cm41xx/flash.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
board/cm4008/flash.c +1 -1
@@ -72,7 +72,7 @@ unsigned long flash_init (void)*/ flash_protect (FLAG_PROTECT_SET ,CONFIG_SYS_FLASH_BASE , -CONFIG_SYS_FLASH_BASE + _bss_start - _armboot_start, +CONFIG_SYS_FLASH_BASE + _bss_start_ofs, &flash_info[0 ]);return size;
board/cm41xx/flash.c +1 -1
@@ -72,7 +72,7 @@ unsigned long flash_init (void)*/ flash_protect (FLAG_PROTECT_SET ,CONFIG_SYS_FLASH_BASE , -CONFIG_SYS_FLASH_BASE + _bss_start - _armboot_start, +CONFIG_SYS_FLASH_BASE + _bss_start_ofs, &flash_info[0 ]);return size;
Signature · 1 line
1.7.4.1
Wolfgang Denk
AppliedPATCH 1/1 CM4000: fix broken flash base for OpenGear boards
Dear Greg Ungerer,
Quoted 12 lines · In message <[email protected]> you…
Use
_bss_start_ofsas the size of the boot loader code+data that we want to protect in the flash. This replaces use of the no longer defined_armboot_start.Fixes:
flash.c: In function `flash_init?:
flash.c:75: error:_bss_start? undeclared (first use in this function) flash.c:75: error: (Each undeclared identifier is reported only once flash.c:75: error: for each function it appears in.) flash.c:75: error:_armboot_start? undeclared (first use in this function)
Quoted 5 lines
Signed-off-by <[email protected]>--- board/cm4008/flash.c | 2 +- board/cm41xx/flash.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "355/113 -- Not the famous irrational number PI, but an incredible simulation!"