ARM: imx7s-warp: enable USB gadget ethernet
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 ARM: imx7s-warp: enable USB gadget ethernet
Quoted 6 lines · Kevin Hilman
Enable USB gadget ethernet by default to have networking capabilities.
Tested using DHCP and TFTP to transfer kernel, DT, ramdisk.
Cc Fabio Estevam <[email protected]>Signed-off-by Kevin Hilman <[email protected]>
Thanks for the patch:
Reviewed-by Fabio Estevam <[email protected]>
PATCH 1/1 ARM: imx7s-warp: enable USB gadget ethernet
In reply to a message not in the archiveQuoted 73 lines · Kevin Hilman
Enable USB gadget ethernet by default to have networking capabilities.
Tested using DHCP and TFTP to transfer kernel, DT, ramdisk.
Cc Fabio Estevam <[email protected]>Signed-off-by Kevin Hilman <[email protected]>---
Applies to v2016.11board/warp7/warp7.c | 14 ++++++++++++++ configs/warp7_defconfig | 5 +++++ include/configs/warp7.h | 7 +++++++ 3 files changed, 26 insertions(+)board/warp7/warp7.c +14
-0@@ -19,6 +19,7 @@#include <mmc.h> #include <asm/arch/crm_regs.h> #include <usb.h> +#include <netdev.h> #include <power/pmic.h> #include <power/pfuze3000_pmic.h> #include "../freescale/common/pfuze.h" @@ -138,6 +139,19 @@ int power_init_board(void) }#endif +int board_eth_init (bd_t *bis) +{ +int ret =0 ; + +#ifdef CONFIG_USB_ETHER + ret =usb_eth_initialize (bis); +if (ret <0 ) +printf ("Error %d registering USB ether.\n" , ret); +#endif + +return ret; +} +int board_init (void ) {/* address of boot parameters */ configs/warp7_defconfig +5
-0@@ -35,3 +35,8 @@ CONFIG_G_DNL_MANUFACTURER="FSL" CONFIG_G_DNL_VENDOR_NUM=0x0525 CONFIG_G_DNL_PRODUCT_NUM=0xa4a5 CONFIG_OF_LIBFDT=y + +CONFIG_CMD_NET=y +CONFIG_NET_RANDOM_ETHADDR=y +CONFIG_CMD_DHCP=y +include/configs/warp7.h +1
-0@@ -38,6 +38,7 @@"script=boot.scr\0" \"image=zImage\0" \"console=ttymxc0\0" \ +"ethact=usb_ether\0" \"fdt_high=0xffffffff\0" \"initrd_high=0xffffffff\0" \"fdt_file=imx7s-warp.dtb\0" \
include/configs/warp7.h line 155
Quoted 10 lines
include/configs/warp7.h +6
-0@@ -145,4 +146,10 @@#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_16M#define DFU_DEFAULT_POLL_TIMEOUT 300 +#define CONFIG_USB_ETHER +#define CONFIG_USB_ETH_CDC +#define CONFIG_USB_ETH_RNDIS +#define CONFIG_USBNET_HOST_ADDR "de:ad:be:af:00:00" +#define CONFIG_USBNET_DEV_ADDR "de:ad:be:af:00:01" +#endif
Applied to u-boot-imx, -master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================