u-boot 2011.06: add tftpboot support for pandaboard
[glsdk/meta-ti-glsdk.git] / recipes-bsp / u-boot / u-boot / 2011.06 / 0034-omap4_panda-adding-support-for-smsc-and-tftp-boot.patch
1 From 1005120d214c98fde62dba9365e24519de001f50 Mon Sep 17 00:00:00 2001
2 From: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
3 Date: Thu, 19 May 2011 10:17:15 -0300
4 Subject: [PATCH 34/35] omap4_panda: adding support for smsc and tftp boot
6 Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
7 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
8 ---
9  include/configs/omap4_panda.h |   20 +++++++++++++++++++-
10  1 files changed, 19 insertions(+), 1 deletions(-)
12 diff --git a/include/configs/omap4_panda.h b/include/configs/omap4_panda.h
13 index b4e7f41..0fcdf46 100644
14 --- a/include/configs/omap4_panda.h
15 +++ b/include/configs/omap4_panda.h
16 @@ -120,6 +120,19 @@
17  #define CONFIG_USB_DEVICE              1
18  #define CONFIG_USB_TTY                 1
19  #define CONFIG_SYS_CONSOLE_IS_IN_ENV   1
20 +#define CONFIG_CMD_USB                 1
21 +#define CONFIG_USB_STORAGE             1
22 +#define CONFIG_USB_HOST_ETHER          1
23 +#define CONFIG_USB_EHCI                        1
24 +#define CONFIG_USB_EHCI_OMAP4          1
25 +#define CONFIG_USB_HOST                        1
26 +#define CONFIG_USB_ETHER_SMSC95XX      1
27 +
28 +/* Ethernet */
29 +#define CONFIG_NET_MULTI               1
30 +#define CONFIG_CMD_PING                        1
31 +#define CONFIG_CMD_DHCP                        1
32 +#define CONFIG_BOOTFILE                        "uImage"
33  
34  /* Flash */
35  #define CONFIG_SYS_NO_FLASH    1
36 @@ -134,7 +147,6 @@
37  #define CONFIG_CMD_MMC         /* MMC support                  */
38  
39  /* Disabled commands */
40 -#undef CONFIG_CMD_NET
41  #undef CONFIG_CMD_NFS
42  #undef CONFIG_CMD_FPGA         /* FPGA configuration Support   */
43  #undef CONFIG_CMD_IMLS         /* List all found images        */
44 @@ -152,6 +164,8 @@
45         "console=ttyS2,115200n8\0" \
46         "usbtty=cdc_acm\0" \
47         "vram=16M\0" \
48 +       "usbethaddr=00:02:03:04:05:06\0" \
49 +       "hostname=panda\0" \
50         "mmcdev=0\0" \
51         "mmcroot=/dev/mmcblk0p2 rw\0" \
52         "mmcrootfstype=ext3 rootwait\0" \
53 @@ -176,6 +190,10 @@
54                                 "run mmcboot; " \
55                         "fi; " \
56                 "fi; " \
57 +       "fi; " \
58 +       "if usb start; then " \
59 +               "bootp; "\
60 +               "source ${loadaddr};" \
61         "fi"
62  
63  #define CONFIG_AUTO_COMPLETE           1
64 -- 
65 1.6.6.1