| 1 |
This part of the lwip-contrib section is the ecos glue |
| 2 |
|
| 3 |
Check out latest ecos from CVS (>= 19 Jan 2004) so it has the latest io/eth glue for lwip. |
| 4 |
|
| 5 |
You must have the current lwip sources checked out and the scripts here will hopefully generate |
| 6 |
a correct EPK suitable for use with ecos. |
| 7 |
|
| 8 |
|
| 9 |
To make an ecos package: |
| 10 |
|
| 11 |
Run the mkepk script something like this |
| 12 |
|
| 13 |
# EPK=/dir/of/epk LWIP_CVS=/dir/of/checked/out/lwip ./mkepk |
| 14 |
|
| 15 |
This will put the generated EPK in the dir you specify |
| 16 |
|
| 17 |
|
| 18 |
then add that EPK to your package repository and use it |
| 19 |
|
| 20 |
Build example: |
| 21 |
#ecosconfig new edb7xxx kernel |
| 22 |
#ecosconfig add lwip |
| 23 |
this will default to SLIP connection.If you also |
| 24 |
#ecosconfig add net_drivers |
| 25 |
you'll be able to configure for ethernet |
| 26 |
|
| 27 |
In both cases set LWIP_MY_ADDR and LWIP_SERV_ADDR (means host/gateway for eth or host/peer for slip) |
| 28 |
#ecosconfig tree |
| 29 |
#make tests |
| 30 |
and you can try any of the five tests included |
| 31 |
|
| 32 |
Tests: |
| 33 |
udpecho - echo service port 7 on UDP |
| 34 |
tcpecho - ditto on TCP |
| 35 |
sockets - as tcpecho but written with the socket API not the lwip specific API |
| 36 |
https - http server on port 80 written with the raw API |
| 37 |
nc_test_slave - a port of the test with the same name in net/common to lwip. Used to compare |
| 38 |
lwIP throughput to that of the FreeBSD stack.In this matchup lwIP gets a well deserved |
| 39 |
silver medal.Not bad for a newcomer ;) |
| 40 |
|
| 41 |
|
| 42 |
Bugreports (or even better patches) at [email protected] not the lwip or ecos mailing lists!! |
| 43 |
Only if you peek into the lwip sources and think you found a bug post to lwip-users. |