All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kerl, John <John.Kerl@Avnet.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Statically assigned IP addresses
Date: Wed, 14 Jan 2004 09:35:14 -0700	[thread overview]
Message-ID: <C7FFFEA58B43D311920D0004ACE5333F10E4F50A@amer25.avnet.com> (raw)

> > understanding of U-boot:  In our firmware, Ethernet is enabled
> > at start-up, and we always answer pings.  (And you do not need
> > interrupts to do that -- our firmware runs polled and handles
> > pings just fine.)  I am in the habit of thinking that if a node
> 
> That means you have to implement some kind of multitasking.  or  how
> do you poll the network interface while another command is running?

Actually our firmware is strictly polled, and uses no interrupts,
tasks, etc.  That keeps the code simple and reduces the porting time,
since almost nothing needs to be written in assembler.

It simply polls each device round-robin.  If the UART has a character
ready, it's appended to a buffer and the UART poll routine returns.
If that character is the carriage return, another periodically called
function sees that and calls the handle-input-line routine, which
takes as long as needed, then returns.  If the Ethernet poll routine
sees a frame ready, it calls the appropriate function ARP/IP handler.
Etc.

In particular, we don't handle incoming packets while running a
memory test, while committing an image to flash, etc. -- which is OK
because the board is busy and is meant to be interacted with by a
user.


> > *	There appears to be no way to use TFTP to copy data
> > 	from the board to the PC.
> 
> Please feel free to add a TFTP upload command.

I think that would be a good idea.  I find that this proves a handy
way to copy a configured image (or a whole range of images, or the
entire flash, etc.) to the PC for analysis and/or re-use.  Something
like tftpput flashimage.bin ffc00000,200000 to put 2 MB starting at
0xffc00000 to a file on the PC.

I'm not yet familiar with the U-boot source, but I do know from my
own code that the put and get are quite symmetrical, so it should be
rather easy for me to make this change.

             reply	other threads:[~2004-01-14 16:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-14 16:35 Kerl, John [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-01-13 20:58 [U-Boot-Users] Statically assigned IP addresses Kerl, John
2004-01-14  8:06 ` Wolfgang Denk
2004-01-13 19:06 Demke, Torsten
2004-01-13 18:50 Richard Klingler
2004-01-13 20:05 ` Wolfgang Denk
2004-01-13 18:27 Kerl, John
2004-01-13 20:02 ` Wolfgang Denk

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=C7FFFEA58B43D311920D0004ACE5333F10E4F50A@amer25.avnet.com \
    --to=john.kerl@avnet.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.