Welcome, Guest. Please login or register.

Author Topic: uIP/lwIP for Amiga OS  (Read 21991 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline hardlink

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 586
    • Show all replies
Re: uIP 0.1.0 for Amiga OS 3.x
« on: November 13, 2007, 05:50:03 PM »
Unfortunately, I did not have much luck. Here is the cli capture, on a A4000T/060/OS3.9, for both an Ariadne II and an ethernet module on a ioblix card:


4.Ram Disk:New> uip Devs:Networks/ioblixether.device 0
uIP 0.1.0
uIP log message: Initializing...
uIP log message: failed to bring device online
4.Ram Disk:New> version Devs:Networks/ioblixether.device
ioblixether.device 37.14

4.Ram Disk:New> uip Devs:Networks/ariadne_ii.device 0
uIP 0.1.0
uIP log message: Initializing...
uIP log message: failed to configure device
4.Ram Disk:New> version Devs:Networks/ariadne_ii.device
ariadne_ii.device 43.12

 

Offline hardlink

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 586
    • Show all replies
Re: uIP 0.1.0 for Amiga OS 3.x
« Reply #1 on: November 13, 2007, 10:21:38 PM »
Quote

Trev wrote:

Eek. I don't have either of those devices...


Yes, I thought it might be helpful:) to try it with some more obscure hw (ioblix).

I cannot get the exact capture till tomarrow, but this build returned a SANA 0004(?) error for both.

I'll send you my email tomarrow using the message facility to avoid rather dull postings  :-)

 

Offline hardlink

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 586
    • Show all replies
Re: uIP 0.1.0 for Amiga OS 3.x
« Reply #2 on: November 14, 2007, 07:02:40 PM »
Quote

Trev wrote:
Posting here lets everyone be involved. :-)

Error 4 is S2ERR_BAD_STATE ...

...On my way to Saratoga to see Suzanne Vega. . . .
Trev


Cool; good luck, and tell Suzanne I found her other sock.


About uip, immediately after a power cycle cold boot:
 
4.Work:uip> uip Devs:Networks/ioblixether.device 0
uIP: initializing...
uIP: failed to bring SANA-II device online: error 00000004
4.Work:uip>

4.Work:uip> uip Devs:Networks/ariadne_ii.device 0
uIP: initializing...
uIP: failed to bring SANA-II device online: error 00000004
4.Work:uip>


then after using OS3.9 included Genesis stack to bring ioblix on-line:

4.Work:uip> uip Devs:Networks/ioblixether.device 0
uIP: initializing...
uIP: failed to bring SANA-II device online: error 00000004
4.Work:uip>

After running uip, the message in the Genisys status window:
"blitz has been put offline"



Now trying ariadne, after quitting then re-starting Genesis, then bringing ariadne on-line:

uip Devs:Networks/ariadne_ii.device 0
uIP: initializing...
uIP: failed to bring SANA-II device online: error 00000004
 
After running uip, the message in the Genisis status window:
"ariadne has been put offline"


Looks like I have to dig up my SANA docs, or go visit Dale Larson with some 'friends' from New York ...





 

Offline hardlink

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 586
    • Show all replies
Re: uIP 0.1.0 for Amiga OS 3.x
« Reply #3 on: November 15, 2007, 06:45:30 PM »
Quote

Trev wrote:
Pooh. Could be anything at this point. Can I blame the startup code and the compiler?
Trev


I'm trying to compile it with SAS C 6.58, and having the usual fun. The makefile would not work with the 2 use-gcc-makefiles-with-sasc tools on Aminet, so I got mkmk from there. It generated an unusable smakefile with dashes in macro names, hand edited those. SAS C has no __attribute__ magic, had to add a macro to ignore those. Looks like there are some calls with register attributes on the parameters SAS C doesn't like. And there is some current state structure that SAS doesn't think is defined.

I need coffee.
 

Offline hardlink

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 586
    • Show all replies
Re: uIP 0.1.0 for Amiga OS 3.x
« Reply #4 on: November 19, 2007, 10:24:52 PM »
Quote

Trev wrote:
compiled with Cygwin-hosted vbcc
Trev


What did your Makefile for vbcc look like?
 

Offline hardlink

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 586
    • Show all replies
Re: uIP 0.1.0 for Amiga OS 3.x
« Reply #5 on: November 20, 2007, 04:37:15 PM »
Quote

Trev wrote:

Here's a Makefile that works for vbcc:

Trev


Thanks!

I gave it a try, but...
Using vbcc makefile:

7.Work:uip/uip-1.0.vbcc/m68k-amigaos> make uip
make: *** No rule to make target `/main.o', needed by `uip'.  Stop.
7.Work:uip/uip-1.0.vbcc/m68k-amigaos>

Okay, I'll give ya a rule, how about this added to Makefile:

main.o: main.c
      $(CC) $(CFLAGS) main.c


7.Work:uip/uip-1.0.vbcc/m68k-amigaos> make main.o
vc -I../uip -I. -lamiga main.c
vbcc V0.8j (c) in 1995-2006 by Volker Barthelmann
vbcc code-generator for m68k/ColdFire V1.6a (c) in 1995-2005 by Volker Barth
elmann
>#include "webserver.h"
error 248 in line 156 of "uip-conf.h": file 'webserver.h' not found
1 error found!
vbccm68k failed returncode 20
vbccm68k  "main.c" -o= "T:t_8_0.asm" -I../uip -I.  -O=1 -Ivincludeos3: faile
d
vc failed returncode 20
make: *** [main.o] Error 20
7.Work:uip/uip-1.0.vbcc/m68k-amigaos>


Okay, who needs a webserver?
-comment out #include "webserver.h" in uip-conf.h;


7.Work:uip/uip-1.0.vbcc/m68k-amigaos> make main.o
vc -I../uip -I. -lamiga main.c
>extern u8_t uip_buf[UIP_BUFSIZE+2+15] __attribute__
warning 54 in line 423 of "uip.h": ; expected
>extern u8_t uip_buf[UIP_BUFSIZE+2+15] __attribute__ ((
error 20 in line 423 of "uip.h": no declarator and no identifier in prototyp
e


Okay, added "#define __attribute__(x)  /*NOTHING*/" in uip.h;


7.Work:uip/uip-1.0.vbcc/m68k-amigaos> make main.o
vc -I../uip -I. -lamiga main.c
>  uip_tcp_appstate_t
warning 56 in line 1185 of "uip.h": } expected
>  uip_tcp_appstate_t appstate;
warning 54 in line 1185 of "uip.h": ; expected
>  uip_tcp_appstate_t appstate;
warning 125 in line 1185 of "uip.h": no declaration-specifier, used int
>}


Okay, 'uip_tcp_appstate_t' only defined in 'hello-world.h' !?!
-referred to in comments in 'uipopt.h'

Any ideas?

 

Offline hardlink

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 586
    • Show all replies
Re: uIP 0.1.0 for Amiga OS 3.x
« Reply #6 on: November 20, 2007, 07:45:02 PM »
Quote

Trev wrote:
It sounds like your version of make doesn't support the -include option.
Trev


I tried to find the latest version of GNU make on Aminet, and used that; it is version 3.76.1; I'll keep looking.

I also contacted a friend who uses Cubic IDE to ask for assistance, so that may work; I believe Cubic uses the latest GNU tools:

http://developers.xoomwebs.com/