Telnet does work, too, see end of message: On 02/13/2014 09:21 PM, Erich Waelde wrote: > Folks, > > progress: > > On 02/12/2014 05:45 PM, Erich Waelde wrote: >> Hello, > >> I got my *old* etherrape-board from the trenches [1]. It is >> functional with the original etherrape and ethersex firmware, >> so the board itself is working correctly. > > > >> On 02/08/2014 07:52 PM, Matthias Trute wrote: >>> Hi, >>> >>> Jens wrote a TCP/IP stack for amforth (probably the first FOSS >>> stack written in forth). The code is now in the >>> trunk/appl/eval-pollin directory. >>> >>> The code opens a telnet port with an interpreter just like the >>> serial one. >>> >>> It's still in its early stages but nevertheless does work. Some >>> (hard) limits apply: The ENC28J60 and an Atmega644 is *required*, >>> an Ardiuno shield won't work. >>> >>> Patches and test feedback is highly welcome. >>> > >> The pin connections between the controller and the enc28j60 are >> the same as on the pollin avr-netio board. I didn't check the >> interrupt line, though, see below. > >> Controller: mine is a atmega644 (not atmega644P), ok? > >> Fuses: >> HFUSE=0x99 >> LFUSE=0xe7 >> EFUSE=0xff > Working. > > >> I can build AmForth-5.2 for it and it runs. I do get >> 2 warnings though: >> /home/ew/Forth/amforth/releases/5.2/core\drivers/usart_common.asm(28): >> warning: Use of undefined or forward referenced symbol 'XT_NOOP' in .equ/.set >> /home/ew/Forth/amforth/releases/5.2/core\words/2drop.asm(6): warning: >> .cseg .db misalignment - padding zero byte >> Assembly complete, 0 errors, 2 warnings > >> Is version 5.2 good enough? Or is trunk needed? > Working. > >> f_crystal = 20 MHz >> baud = 9600 > >> I get the ok prompt. I can load things like >> bitnames.frt and marker.frt. >> I can upload the tcp/ip stack starting with >> blocks/ip-stack/4th_mod1.frt >> And yes, I did set a sensible IP address in enc28j60.frt. >> I assume the netmask to be /24, correct? > I did not yet find the place in the code where this is set, but it works. > >> serial console: >> +telnet >> hangs the controller, unfortunately. More precisely >> +encint >> hangs or reset-loop-s the controller. So I need to go >> back to check the connection. see above ... > > There was no connection between enc28j60 pin 4 INT and > atmega644 pin 3 INT2. I added a thin wire to connect the two. > Without any further changes to code: > > serial: > |> +telnet > | ok > |> Send Ping Reply ! > |Send Ping Reply ! > |Send Ping Reply ! > |Send Ping Reply ! > > shell: > |$ ping 192.168.10.80 > |PING 192.168.10.80 (192.168.10.80) 56(84) bytes of data. > |64 bytes from 192.168.10.80: icmp_seq=1 ttl=64 time=1037 ms > |64 bytes from 192.168.10.80: icmp_seq=2 ttl=64 time=75.1 ms > |64 bytes from 192.168.10.80: icmp_seq=3 ttl=64 time=19.0 ms > |64 bytes from 192.168.10.80: icmp_seq=4 ttl=64 time=19.0 ms > |64 bytes from 192.168.10.80: icmp_seq=5 ttl=64 time=19.0 ms > > :-))) > > Telnet did not work yet. Jens kindly pointed out the missing bit, "+tnredir" :
serial: |> | ok |> +telnet | ok |> +tnredir shell: $ telnet 192.168.10.80 |Trying 192.168.10.80... |Connected to 192.168.10.80. |Escape character is '^]'. |Start Telnet Server: | ok |> 1 2 + . |1 2 + . |3 ok |> | ok |> : hi ." Howdy, mate!" cr ; |: hi ." Howdy, mate!" cr ; | ok |> | ok |> hi |hi |Howdy, mate! | ok |> | ok |> -tnredir |-tnredir serial: |Beende Telnet Server ! ok |> hi |Howdy, mate! | ok |> > >> [1] http://www.lochraster.org/etherrape/ Happy hacking! Erich ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel