Fix CONFIG_ETH*ADDR for Ocotea board.
Sort Makefile. Update docs.
This commit is contained in:
parent
e4cc71aa44
commit
6945979126
36
Makefile
36
Makefile
|
@ -1147,6 +1147,24 @@ incaip_config: unconfig
|
||||||
tb0229_config: unconfig
|
tb0229_config: unconfig
|
||||||
@./mkconfig $(@:_config=) mips mips tb0229
|
@./mkconfig $(@:_config=) mips mips tb0229
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
## MIPS32 AU1X00
|
||||||
|
#########################################################################
|
||||||
|
dbau1000_config : unconfig
|
||||||
|
@ >include/config.h
|
||||||
|
@echo "#define CONFIG_DBAU1000 1" >>include/config.h
|
||||||
|
@./mkconfig -a dbau1x00 mips mips dbau1x00
|
||||||
|
|
||||||
|
dbau1100_config : unconfig
|
||||||
|
@ >include/config.h
|
||||||
|
@echo "#define CONFIG_DBAU1100 1" >>include/config.h
|
||||||
|
@./mkconfig -a dbau1x00 mips mips dbau1x00
|
||||||
|
|
||||||
|
dbau1500_config : unconfig
|
||||||
|
@ >include/config.h
|
||||||
|
@echo "#define CONFIG_DBAU1500 1" >>include/config.h
|
||||||
|
@./mkconfig -a dbau1x00 mips mips dbau1x00
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
## MIPS64 5Kc
|
## MIPS64 5Kc
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
@ -1232,24 +1250,6 @@ suzaku_config: unconfig
|
||||||
@echo "#define CONFIG_SUZAKU 1" >> include/config.h
|
@echo "#define CONFIG_SUZAKU 1" >> include/config.h
|
||||||
@./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
|
@./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
## MIPS32 AU1X00
|
|
||||||
#########################################################################
|
|
||||||
dbau1000_config : unconfig
|
|
||||||
@ >include/config.h
|
|
||||||
@echo "#define CONFIG_DBAU1000 1" >>include/config.h
|
|
||||||
@./mkconfig -a dbau1x00 mips mips dbau1x00
|
|
||||||
|
|
||||||
dbau1100_config : unconfig
|
|
||||||
@ >include/config.h
|
|
||||||
@echo "#define CONFIG_DBAU1100 1" >>include/config.h
|
|
||||||
@./mkconfig -a dbau1x00 mips mips dbau1x00
|
|
||||||
|
|
||||||
dbau1500_config : unconfig
|
|
||||||
@ >include/config.h
|
|
||||||
@echo "#define CONFIG_DBAU1500 1" >>include/config.h
|
|
||||||
@./mkconfig -a dbau1x00 mips mips dbau1x00
|
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
|
|
5
README
5
README
|
@ -2554,8 +2554,9 @@ from a "data file" which is used as image payload:
|
||||||
-n ==> set image name to 'name'
|
-n ==> set image name to 'name'
|
||||||
-d ==> use image data from 'datafile'
|
-d ==> use image data from 'datafile'
|
||||||
|
|
||||||
Right now, all Linux kernels use the same load address (0x00000000),
|
Right now, all Linux kernels for PowerPC systems use the same load
|
||||||
but the entry point address depends on the kernel version:
|
address (0x00000000), but the entry point address depends on the
|
||||||
|
kernel version:
|
||||||
|
|
||||||
- 2.2.x kernels have the entry point at 0x0000000C,
|
- 2.2.x kernels have the entry point at 0x0000000C,
|
||||||
- 2.3.x and later kernels have the entry point at 0x00000000.
|
- 2.3.x and later kernels have the entry point at 0x00000000.
|
||||||
|
|
|
@ -94,6 +94,9 @@ uchar default_environment[] = {
|
||||||
#ifdef CONFIG_ETH2ADDR
|
#ifdef CONFIG_ETH2ADDR
|
||||||
"eth2addr=" MK_STR(CONFIG_ETH2ADDR) "\0"
|
"eth2addr=" MK_STR(CONFIG_ETH2ADDR) "\0"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_ETH3ADDR
|
||||||
|
"eth3addr=" MK_STR(CONFIG_ETH3ADDR) "\0"
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_IPADDR
|
#ifdef CONFIG_IPADDR
|
||||||
"ipaddr=" MK_STR(CONFIG_IPADDR) "\0"
|
"ipaddr=" MK_STR(CONFIG_IPADDR) "\0"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -154,9 +154,9 @@
|
||||||
#define CONFIG_NETMASK 255.255.255.0
|
#define CONFIG_NETMASK 255.255.255.0
|
||||||
#define CONFIG_IPADDR 10.1.2.3
|
#define CONFIG_IPADDR 10.1.2.3
|
||||||
#define CONFIG_ETHADDR 00:04:AC:E3:28:8A
|
#define CONFIG_ETHADDR 00:04:AC:E3:28:8A
|
||||||
#define CONFIG_ETHADDR1 00:04:AC:E3:28:8B
|
#define CONFIG_ETH1ADDR 00:04:AC:E3:28:8B
|
||||||
#define CONFIG_ETHADDR2 00:04:AC:E3:28:8C
|
#define CONFIG_ETH2ADDR 00:04:AC:E3:28:8C
|
||||||
#define CONFIG_ETHADDR3 00:04:AC:E3:28:8D
|
#define CONFIG_ETH3ADDR 00:04:AC:E3:28:8D
|
||||||
#define CFG_RX_ETH_BUFFER 32 /* Number of ethernet rx buffers & descriptors */
|
#define CFG_RX_ETH_BUFFER 32 /* Number of ethernet rx buffers & descriptors */
|
||||||
#define CONFIG_SERVERIP 10.1.2.2
|
#define CONFIG_SERVERIP 10.1.2.2
|
||||||
|
|
||||||
|
|
|
@ -190,8 +190,8 @@ void board_init_f(ulong bootflag)
|
||||||
void copy_code (ulong);
|
void copy_code (ulong);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Pointer is writable since we allocated a register for it.
|
/* Pointer is writable since we allocated a register for it.
|
||||||
*/
|
*/
|
||||||
gd = &gd_data;
|
gd = &gd_data;
|
||||||
memset ((void *)gd, 0, sizeof (gd_t));
|
memset ((void *)gd, 0, sizeof (gd_t));
|
||||||
|
|
||||||
|
@ -207,33 +207,27 @@ void board_init_f(ulong bootflag)
|
||||||
*/
|
*/
|
||||||
addr = CFG_SDRAM_BASE + gd->ram_size;
|
addr = CFG_SDRAM_BASE + gd->ram_size;
|
||||||
|
|
||||||
/* We can reserve some RAM "on top" here.
|
/* We can reserve some RAM "on top" here.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* round down to next 4 kB limit.
|
/* round down to next 4 kB limit.
|
||||||
*/
|
*/
|
||||||
addr &= ~(4096 - 1);
|
addr &= ~(4096 - 1);
|
||||||
#ifdef DEBUG
|
debug ("Top of RAM usable for U-Boot at: %08lx\n", addr);
|
||||||
printf ("Top of RAM usable for U-Boot at: %08lx\n", addr);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Reserve memory for U-Boot code, data & bss
|
/* Reserve memory for U-Boot code, data & bss
|
||||||
* round down to next 16 kB limit
|
* round down to next 16 kB limit
|
||||||
*/
|
*/
|
||||||
addr -= len;
|
addr -= len;
|
||||||
addr &= ~(16 * 1024 - 1);
|
addr &= ~(16 * 1024 - 1);
|
||||||
|
|
||||||
#ifdef DEBUG
|
debug ("Reserving %ldk for U-Boot at: %08lx\n", len >> 10, addr);
|
||||||
printf ("Reserving %ldk for U-Boot at: %08lx\n", len >> 10, addr);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Reserve memory for malloc() arena.
|
/* Reserve memory for malloc() arena.
|
||||||
*/
|
*/
|
||||||
addr_sp = addr - TOTAL_MALLOC_LEN;
|
addr_sp = addr - TOTAL_MALLOC_LEN;
|
||||||
#ifdef DEBUG
|
debug ("Reserving %dk for malloc() at: %08lx\n",
|
||||||
printf ("Reserving %dk for malloc() at: %08lx\n",
|
|
||||||
TOTAL_MALLOC_LEN >> 10, addr_sp);
|
TOTAL_MALLOC_LEN >> 10, addr_sp);
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (permanently) allocate a Board Info struct
|
* (permanently) allocate a Board Info struct
|
||||||
|
@ -242,25 +236,20 @@ void board_init_f(ulong bootflag)
|
||||||
addr_sp -= sizeof(bd_t);
|
addr_sp -= sizeof(bd_t);
|
||||||
bd = (bd_t *)addr_sp;
|
bd = (bd_t *)addr_sp;
|
||||||
gd->bd = bd;
|
gd->bd = bd;
|
||||||
#ifdef DEBUG
|
debug ("Reserving %d Bytes for Board Info at: %08lx\n",
|
||||||
printf ("Reserving %d Bytes for Board Info at: %08lx\n",
|
|
||||||
sizeof(bd_t), addr_sp);
|
sizeof(bd_t), addr_sp);
|
||||||
#endif
|
|
||||||
addr_sp -= sizeof(gd_t);
|
addr_sp -= sizeof(gd_t);
|
||||||
id = (gd_t *)addr_sp;
|
id = (gd_t *)addr_sp;
|
||||||
#ifdef DEBUG
|
debug ("Reserving %d Bytes for Global Data at: %08lx\n",
|
||||||
printf ("Reserving %d Bytes for Global Data at: %08lx\n",
|
|
||||||
sizeof (gd_t), addr_sp);
|
sizeof (gd_t), addr_sp);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Reserve memory for boot params.
|
/* Reserve memory for boot params.
|
||||||
*/
|
*/
|
||||||
addr_sp -= CFG_BOOTPARAMS_LEN;
|
addr_sp -= CFG_BOOTPARAMS_LEN;
|
||||||
bd->bi_boot_params = addr_sp;
|
bd->bi_boot_params = addr_sp;
|
||||||
#ifdef DEBUG
|
debug ("Reserving %dk for boot params() at: %08lx\n",
|
||||||
printf ("Reserving %dk for malloc() at: %08lx\n",
|
|
||||||
CFG_BOOTPARAMS_LEN >> 10, addr_sp);
|
CFG_BOOTPARAMS_LEN >> 10, addr_sp);
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Finally, we set up a new (bigger) stack.
|
* Finally, we set up a new (bigger) stack.
|
||||||
|
@ -272,9 +261,8 @@ void board_init_f(ulong bootflag)
|
||||||
addr_sp &= ~0xF;
|
addr_sp &= ~0xF;
|
||||||
*((ulong *) addr_sp)-- = 0;
|
*((ulong *) addr_sp)-- = 0;
|
||||||
*((ulong *) addr_sp)-- = 0;
|
*((ulong *) addr_sp)-- = 0;
|
||||||
#ifdef DEBUG
|
debug ("Stack Pointer at: %08lx\n", addr_sp);
|
||||||
printf ("Stack Pointer at: %08lx\n", addr_sp);
|
|
||||||
#endif
|
|
||||||
/*
|
/*
|
||||||
* Save local variables to board info struct
|
* Save local variables to board info struct
|
||||||
*/
|
*/
|
||||||
|
@ -321,9 +309,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
|
||||||
gd = id;
|
gd = id;
|
||||||
gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */
|
gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */
|
||||||
|
|
||||||
#ifdef DEBUG
|
debug ("Now running in RAM - U-Boot at: %08lx\n", dest_addr);
|
||||||
printf ("Now running in RAM - U-Boot at: %08lx\n", dest_addr);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
gd->reloc_off = dest_addr - CFG_MONITOR_BASE;
|
gd->reloc_off = dest_addr - CFG_MONITOR_BASE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user