Update PCS440EP port to fit into one flash device (incl. environment)

Patch by Stefan Roese, 06 Jun 2006
This commit is contained in:
Stefan Roese 2006-06-06 10:59:12 +02:00
parent 2fd9eb509d
commit 4526c87eec
5 changed files with 11 additions and 24 deletions

View File

@ -2,6 +2,9 @@
Changes since U-Boot 1.1.4: Changes since U-Boot 1.1.4:
====================================================================== ======================================================================
* Update PCS440EP port to fit into one flash device (incl. environment)
Patch by Stefan Roese, 06 Jun 2006
* Add support for PCS440EP board * Add support for PCS440EP board
Patch by Stefan Roese, 02 Jun 2006 Patch by Stefan Roese, 02 Jun 2006

View File

@ -30,7 +30,7 @@
ifeq ($(ramsym),1) ifeq ($(ramsym),1)
TEXT_BASE = 0xFBD00000 TEXT_BASE = 0xFBD00000
else else
TEXT_BASE = 0xFFF80000 TEXT_BASE = 0xFFFA0000
endif endif
PLATFORM_CPPFLAGS += -DCONFIG_440=1 PLATFORM_CPPFLAGS += -DCONFIG_440=1

View File

@ -137,7 +137,7 @@ int misc_init_r (void)
(void)flash_protect(FLAG_PROTECT_SET, (void)flash_protect(FLAG_PROTECT_SET,
CFG_ENV_ADDR_REDUND, CFG_ENV_ADDR_REDUND,
CFG_ENV_ADDR_REDUND + 2*CFG_ENV_SECT_SIZE - 1, CFG_ENV_ADDR_REDUND + 2*CFG_ENV_SECT_SIZE - 1,
&flash_info[0]); &flash_info[1]);
return 0; return 0;
} }

View File

@ -63,24 +63,8 @@ SECTIONS
.plt : { *(.plt) } .plt : { *(.plt) }
.text : .text :
{ {
/* WARNING - the following is hand-optimized to fit within */
/* the sector layout of our flash chips! XXX FIXME XXX */
cpu/ppc4xx/start.o (.text) cpu/ppc4xx/start.o (.text)
board/pcs440ep/init.o (.text) board/pcs440ep/init.o (.text)
cpu/ppc4xx/kgdb.o (.text)
cpu/ppc4xx/traps.o (.text)
cpu/ppc4xx/interrupts.o (.text)
cpu/ppc4xx/serial.o (.text)
cpu/ppc4xx/cpu_init.o (.text)
cpu/ppc4xx/speed.o (.text)
common/dlmalloc.o (.text)
lib_generic/crc32.o (.text)
lib_ppc/extable.o (.text)
lib_generic/zlib.o (.text)
/* . = env_offset;*/
/* common/environment.o(.text)*/
*(.text) *(.text)
*(.fixup) *(.fixup)
@ -111,8 +95,8 @@ SECTIONS
_FIXUP_TABLE_ = .; _FIXUP_TABLE_ = .;
*(.fixup) *(.fixup)
} }
__got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2; __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
__fixup_entries = (. - _FIXUP_TABLE_)>>2; __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
.data : .data :
{ {
@ -131,7 +115,6 @@ SECTIONS
.u_boot_cmd : { *(.u_boot_cmd) } .u_boot_cmd : { *(.u_boot_cmd) }
__u_boot_cmd_end = .; __u_boot_cmd_end = .;
. = .; . = .;
__start___ex_table = .; __start___ex_table = .;
__ex_table : { *(__ex_table) } __ex_table : { *(__ex_table) }
@ -152,6 +135,7 @@ SECTIONS
*(.bss) *(.bss)
*(COMMON) *(COMMON)
} }
_end = . ; _end = . ;
PROVIDE (end = .); PROVIDE (end = .);
} }

View File

@ -42,7 +42,7 @@
* Base addresses -- Note these are effective addresses where the * Base addresses -- Note these are effective addresses where the
* actual resources get mapped (not physical addresses) * actual resources get mapped (not physical addresses)
*----------------------------------------------------------------------*/ *----------------------------------------------------------------------*/
#define CFG_MONITOR_LEN (512 * 1024) /* Reserve 512 kB for Monitor */ #define CFG_MONITOR_LEN 0x60000 /* Reserve 384 kB for Monitor */
#define CFG_MALLOC_LEN (256 * 1024) /* Reserve 256 kB for malloc() */ #define CFG_MALLOC_LEN (256 * 1024) /* Reserve 256 kB for malloc() */
#define CFG_MONITOR_BASE (-CFG_MONITOR_LEN) #define CFG_MONITOR_BASE (-CFG_MONITOR_LEN)
#define CFG_SDRAM_BASE 0x00000000 /* _must_ be 0 */ #define CFG_SDRAM_BASE 0x00000000 /* _must_ be 0 */
@ -160,8 +160,8 @@
"kernel_addr=fff00000\0" \ "kernel_addr=fff00000\0" \
"ramdisk_addr=fff00000\0" \ "ramdisk_addr=fff00000\0" \
"load=tftp 100000 /tftpboot/pcs440ep/u-boot.bin\0" \ "load=tftp 100000 /tftpboot/pcs440ep/u-boot.bin\0" \
"update=protect off fff80000 ffffffff;era fff80000 ffffffff;" \ "update=protect off fffa0000 ffffffff;era fffa0000 ffffffff;" \
"cp.b 100000 fff80000 80000;" \ "cp.b 100000 fffa0000 60000;" \
"setenv filesize;saveenv\0" \ "setenv filesize;saveenv\0" \
"upd=run load;run update\0" \ "upd=run load;run update\0" \
"" ""