[En-Nut-Discussion] TFTP Download to Ethernut 5

Vegard Aaker vegardaa at stud.ntnu.no
Sun Apr 22 15:54:49 CEST 2012


I got it working, but not with the specific ethernut scripts.

What I ended up doing (which is not a very nice or general method) was to
use the commands
setenv serverip
setenv ipaddr
tftpboot 0x20000000
go 0x20000000

I am using a ethernet crossover cable (twisted network cable) directly
between the Ethernut board and the computer (with a static ip).

I tried using many other combinations of ethernut specific scripts to get
it working, for example
- using a hub with DHCP. The computer managed to get a ip address from the
hub so the DHCP should be working
- using the commands
   setenv nut_image_name appname.bin
   run tftpbootnut
   both with static ip and with a hub between. (static ip was set with both
tftpserverip and serverip in u-boot).

If there is a possibility to use static ip with the tftpbootnut script,
please let me know.

On Fri, Apr 20, 2012 at 5:57 PM, Harald Kipp <harald.kipp at egnite.de> wrote:

> Hi Vegard,
> On 20.04.2012 14:28, Vegard Aaker wrote:
> > Thank you, but I still do not manage it.
> A general manual about U-Boot is available at
> http://www.denx.de/wiki/DULG/Manual
> For Ethernut 5 specific settings, this page may be helpful:
> http://www.ethernut.de/en/hardware/enut5/ubootenv.html
> More documents are available at
> http://www.ethernut.de/en/hardware/enut5/
> Note, that several options are available to run Nut/OS on Ethernut 5. The
> main ways are:
> 1. You may directly load the binary via TFTP into RAM via 'run
> tftpbootnut'. This is the same way you know from Ethernut 3.
> 2. You may install the Nut/OS binary in the DataFlash via 'run
> tftpinstallnut' and start it via 'run flashbootnut'.
> 3. You may directly program the Nut/OS binary into the CPU internal flash
> via JTAG, replacing the samboot bootloader. For this you need to change the
> linker script.
> 4. You may directly upload and run the Nut/OS binary into the SDRAM via
> JTAG. This is typically used with Eclipse.
> You may also replace any 'run tftpXXX' command by its sibling 'run
> nfsXXX', using an NFS drive instead of TFTP.
> Also note, that you can set the bootcmd variable to execute any of the
> commands above automatically.
> Please continue asking, if you cannot get it running. Gregor is currently
> working on a related document and your questions will probably help to
> improve it. Let us know the U-Boot command you tried and its related error
> output.
> Regards,
> Harald
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion


- Vegard

More information about the En-Nut-Discussion mailing list