Commit f4787eab135d31a097a0ec6fbf0b4876d548bf60

Authored by Mugunthan V N
Committed by Tom Rini
1 parent aee119bd70

am43xx_evm: add eth boot support

add cpsw ethernet boot mode support to download spl and
u-boot.img via tftp protocol. Also adding a seperate config
for ethernet boot mode as the default build falcon mode and
environment on MMC is defined for ethernet boot mode
environment should be set to nowhere.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>

Showing 2 changed files with 14 additions and 2 deletions Side-by-side Diff

configs/am43xx_evm_ethboot_defconfig
  1 +CONFIG_ARM=y
  2 +CONFIG_TARGET_AM43XX_EVM=y
  3 +CONFIG_SPL=y
  4 +CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,NAND,SPL_ETH_SUPPORT"
  5 +CONFIG_CMD_NET=y
include/configs/am43xx_evm.h
... ... @@ -317,11 +317,11 @@
317 317  
318 318 #endif
319 319  
  320 +#ifndef CONFIG_SPL_BUILD
320 321 /* CPSW Ethernet */
321 322 #define CONFIG_CMD_DHCP
322 323 #define CONFIG_CMD_PING
323 324 #define CONFIG_CMD_MII
324   -#define CONFIG_DRIVER_TI_CPSW
325 325 #define CONFIG_MII
326 326 #define CONFIG_BOOTP_DEFAULT
327 327 #define CONFIG_BOOTP_DNS
328 328  
329 329  
... ... @@ -331,13 +331,20 @@
331 331 #define CONFIG_BOOTP_SUBNETMASK
332 332 #define CONFIG_NET_RETRY_COUNT 10
333 333 #define CONFIG_PHY_GIGE
  334 +#endif
  335 +
  336 +#define CONFIG_DRIVER_TI_CPSW
334 337 #define CONFIG_PHYLIB
335 338  
336 339 #define CONFIG_SPL_ENV_SUPPORT
337 340 #define CONFIG_SPL_NET_VCI_STRING "AM43xx U-Boot SPL"
338 341  
339   -#define CONFIG_SPL_ETH_SUPPORT
  342 +#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_ETH_SUPPORT)
  343 +#undef CONFIG_ENV_IS_IN_FAT
  344 +#define CONFIG_ENV_IS_NOWHERE
340 345 #define CONFIG_SPL_NET_SUPPORT
  346 +#endif
  347 +
341 348 #define CONFIG_SYS_RX_ETH_BUFFER 64
342 349  
343 350 /* NAND support */