Hello Tim,
thanks for the help. Here is what happened: After trying the command tftpboot, U-boot answered: *** ERROR: 'serverip' not set So it looks like the u-boot manual is faulty, since there is nowhere mentioned that the parameter serverip has to be set. After setting this variable to the ip of my tftpserver, it is downloading the program and I was able to start it. Perhaps another question: is it normal that the http-server example does not really work? I can connect to the server, but besides the basic index page, all links just return 404. Mit freundlichen Grüßen Sincères Salutations Best regards pEMTec SNC Nikolas Becker Dipl.- Physiker Entwicklung 6 rue Jules Verne BP 60147 57603 Forbach Cedex Tel.: +33 (0) 387.13.09.22 E-Mail: [hidden email] www.pemtec.de www.pemtec.fr Geschäftsführer/Gérance: Dipl.-Ing. Hans Wacht SNC au capital de 10 000 000 euros RCS Sarreguemines B 450 696 752 Code APE 2841 Z -----Ursprüngliche Nachricht----- Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Tim Schendekehl Gesendet: Montag, 23. Juli 2018 17:22 An: [hidden email] Betreff: Re: [En-Nut-Discussion] Basic loading of nut/OS applications via TFTP Hello Nikolas, as an alternative you could try the following commands in U-Boot: dhcp tftpboot 0x20000000 172.16.1.105:httpserv.bin go 0x20000000 The first command initializes the network. The second command loads the image and the third runs it. Best regards, Tim Schendekehl Am 23.07.2018 um 16:52 schrieb Nikolas Becker: > Hello Tim, > > I'm sorry, while writing my mail, I totally forgot that ip-adress line. I tried it with it, it made no difference. I've added another log at the end of this mail, where I execute the correct commands. As you can see, it made no difference, unfortunately. > > Best regards > > Nikolas > > SAMBOOT 1.4 : Type=3 Loading 0x42000 to 0x27000000 done > OK > > > U-Boot 2011.12 (Mar 28 2012 - 10:09:42) > > CPU: AT91SAM9XE > Crystal frequency: 18.432 MHz > CPU clock : 180.634 MHz > Master clock : 90.317 MHz > I2C: ready > DRAM: 128 MiB > WARNING: Caches not enabled > Flash: 512 KiB > NAND: 1024 MiB > MMC: mci: 0 > DataFlash:AT45DB321 > Nb pages: 8192 > Page Size: 528 > Size= 4325376 bytes > Logical address: 0xC0000000 > Area 0: C0021000 to C0041FFF (RO) setup > Area 1: C0042000 to C00C5FFF (RO) uboot > Area 2: C00C6000 to C0359FFF (RO) kernel > Area 3: C035A000 to C03DDFFF (RO) nutos > Area 4: C03DE000 to C03FEFFF env > SF: Detected AT45DB321D with page size 528 Bytes, total 16.5 MiB > In: serial > Out: serial > Err: serial > Net: macb0: PHY present at 0 > macb0: Starting autonegotiation... > macb0: Autonegotiation complete > macb0: link up, 100Mbps full-duplex (lpa: 0xcde1) > macb0 > Hit any key to stop autoboot: 3 0 > U-Boot> run setfactory > Loading... > ## Executing script at 20000000 > ## Resetting to default environment > Enter MAC address and then execute 'saveenv' to store the new environment. > Please enter 'ethaddr': > U-Boot> setenv ethaddr 00:06:98:50:00:CA > U-Boot> > U-Boot> setenv tftpserverip 172.16.1.105 > U-Boot> > U-Boot> setenv nut_image_name httpserv.bin > U-Boot> > U-Boot> saveenv > Saving Environment to SPI Flash... > SF: Detected AT45DB321D with page size 528 Bytes, total 16.5 MiB > Erasing SPI flash...Writing to SPI flash...done > U-Boot> > U-Boot> run tftpbootnut > macb0: PHY present at 0 > macb0: link up, 100Mbps full-duplex (lpa: 0xcde1) > BOOTP broadcast 1 > DHCP client bound to address 172.16.1.87 > U-Boot> > _______________________________________________ > http://lists.egnite.de/mailman/listinfo/en-nut-discussion -- egnite GmbH Erinstrasse 18 44575 Castrop-Rauxel Germany Fon: +49 (0) 23 05 / 44 12 56 Fax: +49 (0) 23 05 / 44 14 87 Email: [hidden email] Internet: www.egnite.de www.ethernut.de Amtsgericht Dortmund HRB 19783 Geschäftsführung: Harald Kipp USt-IdNr.: DE 189520047 _______________________________________________ http://lists.egnite.de/mailman/listinfo/en-nut-discussion _______________________________________________ http://lists.egnite.de/mailman/listinfo/en-nut-discussion |
Hi Nikolas,
Am 24.07.2018 um 09:51 schrieb Nikolas Becker: > Perhaps another question: is it normal that the http-server example does not really work? I can connect to the server, but besides the basic index page, all links just return 404. It should work, probably except the old flash animation. Anyway, the code in httpd is older than this list. We have newer code examples in uhttp... http://www.ethernut.de/en/documents/uhttplib.html It is much more flexible, but also a bit more complicated. Regards, Harald _______________________________________________ http://lists.egnite.de/mailman/listinfo/en-nut-discussion |
Free forum by Nabble | Edit this page |