mpc8641 image size cleanup
e600 does not have a bootpg restriction. Move the version string to beginning of image at fff00000. Resetvec.S is not needed. Update flash copy instructions. Add tftpflash env variable Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com> Signed-off-by: Jon Loeliger <jdl@freescale.com>
This commit is contained in:
parent
b84289b595
commit
32922cdc47
3
Makefile
3
Makefile
|
@ -173,9 +173,6 @@ endif
|
||||||
ifeq ($(CPU),mpc85xx)
|
ifeq ($(CPU),mpc85xx)
|
||||||
OBJS += cpu/$(CPU)/resetvec.o
|
OBJS += cpu/$(CPU)/resetvec.o
|
||||||
endif
|
endif
|
||||||
ifeq ($(CPU),mpc86xx)
|
|
||||||
OBJS += cpu/$(CPU)/resetvec.o
|
|
||||||
endif
|
|
||||||
ifeq ($(CPU),bf533)
|
ifeq ($(CPU),bf533)
|
||||||
OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
|
OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
|
||||||
OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
|
OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
# default CCSRBAR is at 0xff700000
|
# default CCSRBAR is at 0xff700000
|
||||||
# assume U-Boot is less than 0.5MB
|
# assume U-Boot is less than 0.5MB
|
||||||
#
|
#
|
||||||
TEXT_BASE = 0xfff01000
|
TEXT_BASE = 0xfff00000
|
||||||
|
|
||||||
PLATFORM_CPPFLAGS += -DCONFIG_MPC86xx=1
|
PLATFORM_CPPFLAGS += -DCONFIG_MPC86xx=1
|
||||||
PLATFORM_CPPFLAGS += -DCONFIG_MPC8641=1 -maltivec -mabi=altivec -msoft-float
|
PLATFORM_CPPFLAGS += -DCONFIG_MPC8641=1 -maltivec -mabi=altivec -msoft-float
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* (C) Copyright 2004, Freescale, Inc.
|
* Copyright 2006, 2007 Freescale Semiconductor, Inc.
|
||||||
* (C) Copyright 2002,2003, Motorola,Inc.
|
|
||||||
* Jeff Brown
|
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
* project.
|
* project.
|
||||||
|
@ -23,24 +21,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
OUTPUT_ARCH(powerpc)
|
OUTPUT_ARCH(powerpc)
|
||||||
SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
|
|
||||||
/* Do we need any of these for elf?
|
|
||||||
__DYNAMIC = 0; */
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.resetvec 0xFFF00100 :
|
|
||||||
{
|
|
||||||
*(.resetvec)
|
|
||||||
} = 0xffff
|
|
||||||
|
|
||||||
.bootpg 0xFFF70000 :
|
|
||||||
{
|
|
||||||
cpu/mpc86xx/start.o (.bootpg)
|
|
||||||
board/mpc8641hpcn/init.o (.bootpg)
|
|
||||||
} = 0xffff
|
|
||||||
|
|
||||||
/* Read-only sections, merged into text segment: */
|
/* Read-only sections, merged into text segment: */
|
||||||
. = + 1024;
|
|
||||||
.interp : { *(.interp) }
|
.interp : { *(.interp) }
|
||||||
.hash : { *(.hash) }
|
.hash : { *(.hash) }
|
||||||
.dynsym : { *(.dynsym) }
|
.dynsym : { *(.dynsym) }
|
||||||
|
@ -66,7 +51,7 @@ SECTIONS
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
cpu/mpc86xx/start.o (.text)
|
cpu/mpc86xx/start.o (.text)
|
||||||
board/mpc8641hpcn/init.o (.text)
|
board/mpc8641hpcn/init.o (.bootpg)
|
||||||
cpu/mpc86xx/traps.o (.text)
|
cpu/mpc86xx/traps.o (.text)
|
||||||
cpu/mpc86xx/interrupts.o (.text)
|
cpu/mpc86xx/interrupts.o (.text)
|
||||||
cpu/mpc86xx/cpu_init.o (.text)
|
cpu/mpc86xx/cpu_init.o (.text)
|
||||||
|
@ -88,6 +73,7 @@ SECTIONS
|
||||||
*(.rodata)
|
*(.rodata)
|
||||||
*(.rodata1)
|
*(.rodata1)
|
||||||
*(.rodata.str1.4)
|
*(.rodata.str1.4)
|
||||||
|
*(.eh_frame)
|
||||||
}
|
}
|
||||||
.fini : { *(.fini) } =0
|
.fini : { *(.fini) } =0
|
||||||
.ctors : { *(.ctors) }
|
.ctors : { *(.ctors) }
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
.section .resetvec,"ax"
|
|
||||||
b _start
|
|
|
@ -96,14 +96,17 @@ To Flash U-Boot into the booting bank (0xFFC00000 - 0xFFFFFFFF):
|
||||||
|
|
||||||
tftp 1000000 u-boot.bin
|
tftp 1000000 u-boot.bin
|
||||||
protect off all
|
protect off all
|
||||||
erase fff00000 ffffffff
|
erase fff00000 +$filesize
|
||||||
cp.b 1000000 fff00100 80000
|
cp.b 1000000 fff00000 $filesize
|
||||||
|
|
||||||
|
or use tftpflash command:
|
||||||
|
run tftpflash
|
||||||
|
|
||||||
To Flash U-boot into the alternative bank (0xFF800000 - 0xFFBFFFFF):
|
To Flash U-boot into the alternative bank (0xFF800000 - 0xFFBFFFFF):
|
||||||
|
|
||||||
tftp 1000000 u-boot.bin
|
tftp 1000000 u-boot.bin
|
||||||
erase ffb00000 ffbfffff
|
erase ffb00000 +$filesize
|
||||||
cp.b 1000000 ffb00100 80000
|
cp.b 1000000 ffb00000 $filesize
|
||||||
|
|
||||||
|
|
||||||
4. Memory Map
|
4. Memory Map
|
||||||
|
|
|
@ -577,6 +577,7 @@
|
||||||
#define CONFIG_HOSTNAME unknown
|
#define CONFIG_HOSTNAME unknown
|
||||||
#define CONFIG_ROOTPATH /opt/nfsroot
|
#define CONFIG_ROOTPATH /opt/nfsroot
|
||||||
#define CONFIG_BOOTFILE uImage
|
#define CONFIG_BOOTFILE uImage
|
||||||
|
#define CONFIG_UBOOTPATH u-boot.bin /* U-Boot image on TFTP server */
|
||||||
|
|
||||||
#define CONFIG_SERVERIP 192.168.1.1
|
#define CONFIG_SERVERIP 192.168.1.1
|
||||||
#define CONFIG_GATEWAYIP 192.168.1.1
|
#define CONFIG_GATEWAYIP 192.168.1.1
|
||||||
|
@ -592,10 +593,17 @@
|
||||||
|
|
||||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||||
"netdev=eth0\0" \
|
"netdev=eth0\0" \
|
||||||
|
"uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \
|
||||||
|
"tftpflash=tftpboot $loadaddr $uboot; " \
|
||||||
|
"protect off " MK_STR(TEXT_BASE) " +$filesize; " \
|
||||||
|
"erase " MK_STR(TEXT_BASE) " +$filesize; " \
|
||||||
|
"cp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize; " \
|
||||||
|
"protect on " MK_STR(TEXT_BASE) " +$filesize; " \
|
||||||
|
"cmp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize\0" \
|
||||||
"consoledev=ttyS0\0" \
|
"consoledev=ttyS0\0" \
|
||||||
"ramdiskaddr=2000000\0" \
|
"ramdiskaddr=2000000\0" \
|
||||||
"ramdiskfile=your.ramdisk.u-boot\0" \
|
"ramdiskfile=your.ramdisk.u-boot\0" \
|
||||||
"dtbaddr=400000\0" \
|
"dtbaddr=c00000\0" \
|
||||||
"dtbfile=mpc8641_hpcn.dtb\0" \
|
"dtbfile=mpc8641_hpcn.dtb\0" \
|
||||||
"en-wd=mw.b f8100010 0x08; echo -expect:- 08; md.b f8100010 1\0" \
|
"en-wd=mw.b f8100010 0x08; echo -expect:- 08; md.b f8100010 1\0" \
|
||||||
"dis-wd=mw.b f8100010 0x00; echo -expect:- 00; md.b f8100010 1\0" \
|
"dis-wd=mw.b f8100010 0x00; echo -expect:- 00; md.b f8100010 1\0" \
|
||||||
|
|
Loading…
Reference in New Issue