From: Eric Nelson Date: Thu, 2 Oct 2014 12:16:50 -0700 Subject: [U-Boot] [PATCH 29/32] nitrogen6x: config: configure usb_ether In-Reply-To: <1412277413-30271-1-git-send-email-eric.nelson@boundarydevices.com> References: <1412277413-30271-1-git-send-email-eric.nelson@boundarydevices.com> Message-ID: <1412277413-30271-30-git-send-email-eric.nelson@boundarydevices.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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