From: Eric Nelson <eric.nelson@boundarydevices.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 29/32] nitrogen6x: config: configure usb_ether
Date: Mon, 06 Oct 2014 09:41:06 -0700 [thread overview]
Message-ID: <5432C622.5010901@boundarydevices.com> (raw)
In-Reply-To: <5432BB22.9070809@denx.de>
Hi Stefano,
On 10/06/2014 08:54 AM, Stefano Babic wrote:
> 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 <eric.nelson@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" \
>
> 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.
>
Can you clarify which parts (mac/IP address/both) are a problem?
The 'usb_ether' is kind of an odd beast, in that it's a link-local
protocol, which is why the the IP addresses aren't read from or written
to a persistent environment.
Our goal was to only require configuration of one side of the link
(the USB Host). It seems that without implementing a DHCP **server**,
this is the most convenient.
The mac addresses above are ours, and we can confirm that they are
not in use on any other hardware, so they're guaranteed to be unique
unless you happen to hook up multiple of our boards to a Host at the
same time.
Since the configuration of network adapters on most hosts is based
on mac addresses, hard-coding these prevents the need to re-configure
each time a new board is connected to a host.
Please advise,
Eric
next prev parent reply other threads:[~2014-10-06 16:41 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-02 19:16 [U-Boot] [PATCH 00/32] ARM: i.MX: nitrogen6x clean up Eric Nelson
2014-10-02 19:16 ` [U-Boot] [PATCH 01/32] nitrogen6x: implement board_cfb_skip() to disable text output Eric Nelson
2014-10-06 15:58 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 02/32] nitrogen6x: simplify board_mmc_getcd Eric Nelson
2014-10-06 15:58 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 03/32] nitrogen6x: configure SD2 pads for SDIO on USDHC2 Eric Nelson
2014-10-06 16:01 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 04/32] nitrogen6x: power-down miscellanous peripherals Eric Nelson
2014-10-06 16:01 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 05/32] nitrogen6x: configure SGTL5000, CSI camera clock outputs Eric Nelson
2014-10-06 16:01 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 06/32] nitrogen6x: staticize board file Eric Nelson
2014-10-06 16:02 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 07/32] nitrogen6x: Allow U-Boot to be silent on UART2 Eric Nelson
2014-10-06 15:42 ` Stefano Babic
2014-10-06 15:51 ` Eric Nelson
2014-10-02 19:16 ` [U-Boot] [PATCH 08/32] nitrogen6x: phy: add 100 us delay after phy reset Eric Nelson
2014-10-06 16:02 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 09/32] nitrogen6x: prevent warnings about board_ehci* callbacks Eric Nelson
2014-10-06 16:03 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 10/32] nitrogen6x: display: add support lvds jeida screen Eric Nelson
2014-10-06 16:04 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 11/32] nitrogen6x: display: add qvga panel Eric Nelson
2014-10-06 16:04 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 12/32] nitrogen6x: display: add support for LG-9.7 LVDS display Eric Nelson
2014-10-06 16:05 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 13/32] nitrogen6x: display: add LDB-WXGA-S for SPWG 1280x800 displays Eric Nelson
2014-10-06 16:05 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 14/32] nitrogen6x: display: add support for fusion 7 display Eric Nelson
2014-10-06 16:05 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 15/32] nitrogen6x: display: add svga display (800x600) Eric Nelson
2014-10-06 16:06 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 16/32] nitrogen6x: display: add Ampire 1024x600 panel Eric Nelson
2014-10-06 16:06 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 17/32] nitrogen6x: display: add wvga-lvds panel Eric Nelson
2014-10-06 16:06 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 18/32] nitrogen6x: display use I2C detect for HDMI Eric Nelson
2014-10-06 16:07 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 19/32] nitrogen6x: config: add USB Mass Storage (ums) support Eric Nelson
2014-10-06 16:07 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 20/32] nitrogen6x: config: allow boot to USB stick Eric Nelson
2014-10-06 16:07 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 21/32] nitrogen6x: config: use FS_GENERIC load command Eric Nelson
2014-10-06 16:07 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 22/32] nitrogen6x: config: add initrd_high Eric Nelson
2014-10-06 16:08 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 23/32] nitrogen6x: config: expose SATA, then MMC over USB Eric Nelson
2014-10-06 16:08 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 24/32] nitrogen6x: config: enable USB keyboard support Eric Nelson
2014-10-06 16:08 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 25/32] nitrogen6x: config: add CONFIG_CMD_MEMTEST Eric Nelson
2014-10-06 16:08 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 26/32] nitrogen6x: config: enable "i2c edid" Eric Nelson
2014-10-06 16:08 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 27/32] nitrogen6x: config: allow more bootargs parameters Eric Nelson
2014-10-06 16:09 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 28/32] nitrogen6x: config: disable logo Eric Nelson
2014-10-06 15:51 ` Stefano Babic
2014-10-06 16:09 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 29/32] nitrogen6x: config: configure usb_ether Eric Nelson
2014-10-06 15:54 ` Stefano Babic
2014-10-06 16:41 ` Eric Nelson [this message]
2014-10-07 14:36 ` Stefano Babic
2014-10-07 15:08 ` Eric Nelson
2014-10-02 19:16 ` [U-Boot] [PATCH 30/32] nitrogen6x: config: add gpio command Eric Nelson
2014-10-06 16:09 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 31/32] nitrogen6x: config: enable Android fastboot Eric Nelson
2014-10-06 16:09 ` Stefano Babic
2014-10-02 19:16 ` [U-Boot] [PATCH 32/32] nitrogen6x: config: enable EXT4 filesystem Eric Nelson
2014-10-06 16:10 ` Stefano Babic
2014-10-06 15:35 ` [U-Boot] [PATCH 00/32] ARM: i.MX: nitrogen6x clean up Stefano Babic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5432C622.5010901@boundarydevices.com \
--to=eric.nelson@boundarydevices.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox