[U-Boot] [PATCH 29/32] nitrogen6x: config: configure usb_ether
Eric Nelson
eric.nelson at boundarydevices.com
Thu Oct 2 21:16:50 CEST 2014
Provide fixed USB networking mac addresses for host and client to enable
static configuration of host network stacks.
Include a command 'usbrecover' both to illustrate the use of the USB
ethernet gadget and also to allow quick booting of a kernel (uImage)
and ram disk (uramdisk).
Details and commentary are available here:
http://boundarydevices.com/u-boot-2014-01/#usbrecover
Signed-off-by: Eric Nelson <eric.nelson at boundarydevices.com>
---
include/configs/nitrogen6x.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/include/configs/nitrogen6x.h b/include/configs/nitrogen6x.h
index 60c942f..8afbded 100644
--- a/include/configs/nitrogen6x.h
+++ b/include/configs/nitrogen6x.h
@@ -314,6 +314,16 @@
"&& source 10008000 ; " \
"done ; " \
"done\0" \
+ "usbnet_devaddr=00:19:b8:00:00:02\0" \
+ "usbnet_hostaddr=00:19:b8:00:00:01\0" \
+ "usbrecover=setenv ethact usb_ether; " \
+ "setenv ipaddr 10.0.0.2; " \
+ "setenv netmask 255.255.255.0; " \
+ "setenv serverip 10.0.0.1; " \
+ "setenv bootargs console=ttymxc1,115200; " \
+ "tftpboot 10800000 10.0.0.1:uImage-${board}-recovery && " \
+ "tftpboot 12800000 10.0.0.1:uramdisk-${board}-recovery.img " \
+ "&& bootm 10800000 12800000\0" \
#endif
/* Miscellaneous configurable options */
--
1.9.1
More information about the U-Boot
mailing list