From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Mon, 06 Oct 2014 17:54:10 +0200 Subject: [U-Boot] [PATCH 29/32] nitrogen6x: config: configure usb_ether In-Reply-To: <1412277413-30271-30-git-send-email-eric.nelson@boundarydevices.com> References: <1412277413-30271-1-git-send-email-eric.nelson@boundarydevices.com> <1412277413-30271-30-git-send-email-eric.nelson@boundarydevices.com> Message-ID: <5432BB22.9070809@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Eric, On 02/10/2014 21:16, Eric Nelson wrote: > 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" \ I understand the use case, but it does not always work (I mean, in all network configurations) and we regret generally having IP addresses hard coded in the default configuration. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel 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 =====================================================================