FPGARelated.com
Forums

FPGA / Virtex II Pro / LWIP

Started by Unknown June 6, 2007
Hi,

I'd like to get some help from experienced people because I'm really
running low on ideas here.. I'm a beginner in FPGA/LwIP and I can't
seem to make it work using Xilinx EDK 8.2i.

I've been creating a project using BSB including onewire, uart, emac
and the external memory and using PPC.
Once I am in the project manager, I did all of the required
modifications to boot up on the bram and execute the code from the
external memory, set up the -llwip4, checked the lwip 2.00a and set up
the MAC address.
Once i compile, it works fine, initializing a server code I took as an
example and printfs display everything is fine but it is impossible to
connect to the card or even ping it.

Could someone give me a hint about what I m doing wrong?

Thank you,

Antoine.

antoine.vernay@gmail.com wrote:
> Hi, > > I'd like to get some help from experienced people because I'm really > running low on ideas here.. I'm a beginner in FPGA/LwIP and I can't > seem to make it work using Xilinx EDK 8.2i. > > I've been creating a project using BSB including onewire, uart, emac > and the external memory and using PPC. > Once I am in the project manager, I did all of the required > modifications to boot up on the bram and execute the code from the > external memory, set up the -llwip4, checked the lwip 2.00a and set up > the MAC address. > Once i compile, it works fine, initializing a server code I took as an > example and printfs display everything is fine but it is impossible to > connect to the card or even ping it. > > Could someone give me a hint about what I m doing wrong?
Just a few "silly" questions: Did you go through the section of lwip documentation talking about configuring xilkernel? Did you also include -lxilkernel? I assume you're appropriately setting IP address and mask? Did you try building the example design in the lwip page on the xilinx website (there are several, pick the one closest to your hardware)? Did you try turning on the verbose debugging switched in the lwip and xilkernel driver configs? I'm sure none of those are news, but sometimes I find I missed something basic... ken
On Jun 6, 9:36 pm, Ken Ryan <newsr...@leesburg-geeks.org> wrote:
> antoine.ver...@gmail.com wrote: > > Hi, > > > I'd like to get some help from experienced people because I'm really > > running low on ideas here.. I'm a beginner in FPGA/LwIP and I can't > > seem to make it work using Xilinx EDK 8.2i. > > > I've been creating a project using BSB including onewire, uart, emac > > and the external memory and using PPC. > > Once I am in the project manager, I did all of the required > > modifications to boot up on the bram and execute the code from the > > external memory, set up the -llwip4, checked the lwip 2.00a and set up > > the MAC address. > > Once i compile, it works fine, initializing a server code I took as an > > example and printfs display everything is fine but it is impossible to > > connect to the card or even ping it. > > > Could someone give me a hint about what I m doing wrong? > > Just a few "silly" questions: > > Did you go through the section of lwip documentation talking about > configuring xilkernel? > > Did you also include -lxilkernel? > > I assume you're appropriately setting IP address and mask? > > Did you try building the example design in the lwip page on the xilinx > website (there are several, pick the one closest to your hardware)? > > Did you try turning on the verbose debugging switched in the lwip and > xilkernel driver configs? > > I'm sure none of those are news, but sometimes I find I missed something > basic... > > ken
well, I didn t bother about the xilkernel since i want to use the raw api or should i set something anyway? I tried building several code including the 663 example from xilinx, everything runs fine, no errors but no connection detected.
antoine.vernay@gmail.com wrote:
> well, I didn t bother about the xilkernel since i want to use the raw > api or should i set something anyway? > I tried building several code including the 663 example from xilinx, > everything runs fine, no errors but no connection detected.
Well, I believe xilkernel is theoretically needed even with raw api. In any case, I've never tried raw mode myself, but I thought I saw posts in this NG that said raw mode doesn't actually work yet. You might try pulling out the driver layer from some of the demo code (there is a Temac_Test application somewhere, in the lwip demo maybe?) and see if you can build up something from there? ken
On 7 juin, 21:39, Ken Ryan <newsr...@leesburg-geeks.org> wrote:
> Well, I believe xilkernel is theoretically needed even with raw api. > In any case, I've never tried raw mode myself, but I thought I saw posts > in this NG that said raw mode doesn't actually work yet.
lwIP in raw API mode (for the hard temac only, no problem for other mac) won't be supported before EDK v9.2, due at the end of the summer. With raw mode you don't need xilkernel. If you want early temac support for raw mode, you might want to give the driver Paul Tobias did a try: http://www.paultobias.com/Xilinx/ Search his post in this NG for more info. Patrick