public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/3] Net Boot Controller
Date: Wed, 17 Nov 2010 14:36:41 +0100	[thread overview]
Message-ID: <4CE3DA69.10102@denx.de> (raw)
In-Reply-To: <AANLkTi=01bccmnBEnot6OjcstvFAZPxX+AZPqkxK3SLt@mail.gmail.com>

On 11/17/2010 02:17 PM, tristan wrote:
>     Is NBC a standard ? Could you provide a link describing this protocol ?
> 
> 
> NBC is not a standard, this is just a simple protocol I designed for
> this purpose

IMHO we should not add such as protocol to u-boot, considering that
u-boot already implements standard ways (DHCP, BOOTP) to achieve what
you want.
Your solution works only locally and you have to synchronize yourself to
send the broadcast message when you reset the board. DHCP works in anyway.

Michael sent an example how to switch the console to NetConsole. Is it
not suitable for you ? You could add the dhcp command to the preboot
variable if you need to obtain an IP address after a reset.

> I did think about using DHCP for this, but finally decided to use a new
> packet format since the use is very specific and using DHCP 

Not really, Your protocol is a way to set the IP address, after that you
switch the console. Providing network addresses is exactly the DHCP's job.

> All the packets are sent to the broadcast adress, so if two boards are
> waiting at the same time there will be a conflict. 

This is not good...

> The way to use it in my mind is to start broadcasting with sendnbc, and
> then start the board.
> As the sendnbc tool will stop broadcasting right after one target
> answered to the packet by sending back the u-booy prompt, the only case
> that can lead to this problem is if both targets are started exactly at
> the same time.

It not so uncommon to have a lot of boards connected to the same
network. If all of them support your protocol, we get in big trouble.

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-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2010-11-17 13:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-16 18:04 [U-Boot] [PATCH 0/3] Net Boot Controller tristan.lelong at blunderer.org
2010-11-16 18:04 ` [U-Boot] [PATCH 1/3] Add support for Net Boot Controller (NBC) packet tristan.lelong at blunderer.org
2010-11-17 10:54   ` Mike Frysinger
2010-11-17 13:28   ` Wolfgang Denk
2010-11-16 18:04 ` [U-Boot] [PATCH 2/3] Add sendnbc tool to broadcast NBC magic packet tristan.lelong at blunderer.org
2010-11-17 10:56   ` Mike Frysinger
2010-11-17 13:33     ` tristan
2010-11-16 18:04 ` [U-Boot] [PATCH 3/3] Add the NBC + netconsole corresponding documentation tristan.lelong at blunderer.org
2010-11-17 10:50   ` Mike Frysinger
2010-11-17 10:25 ` [U-Boot] [PATCH 0/3] Net Boot Controller Stefano Babic
2010-11-17 13:17   ` tristan
2010-11-17 13:36     ` Stefano Babic [this message]
2010-11-17 13:52     ` Wolfgang Denk
2010-11-17 14:07       ` tristan
2010-11-17 11:34 ` Michael Zaidman
2010-11-17 13:27   ` tristan

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=4CE3DA69.10102@denx.de \
    --to=sbabic@denx.de \
    --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