On Thu, 2005-01-20 at 16:16 +0100, Stefan Rosinger wrote:
Hi!
As described in the subject the DHCP service doesn't work with my eCos
application.
I use the FreeBSD stack on a PowerPC 405 platform with a Davicom DM9000
ethernet controller.
With redboot it works fine...(for sure polled mode)
Ping tests with my application are ok. So my interrupt eth driver should
work correctly.
I sniffed the packages with ethereal.
Here they are:
No. Time Source Destination Protocol
Info
2 1.839188 0.0.0.0 255.255.255.255 DHCP
DHCP Discover - Transaction ID 0x270107
3 1.851694 192.168.0.1 Broadcast ARP
Who has 192.168.0.17? Tell 192.168.0.1
4 1.971873 192.168.0.1 255.255.255.255 DHCP
DHCP Offer - Transaction ID 0x270107
5 2.201723 0.0.0.0 255.255.255.255 DHCP
DHCP Discover - Transaction ID 0x270107
6 2.210369 192.168.0.1 Broadcast ARP
Who has 192.168.0.17? Tell 192.168.0.1
7 2.371141 192.168.0.1 255.255.255.255 DHCP
DHCP Offer - Transaction ID 0x270107
Any ideas?
Have you tried putting some debug messages in the driver? Can you
see that it gets to the interrupt handler?
My guess (as was Andrew's) is that you are not getting any interrupts.
RedBoot polls the device and thus works, but eCos relies on them.