Netdemo examples Working on i386
Bill Butler
billb at tnex.com
Wed Apr 24 22:26:19 UTC 2002
Joel,
I just went through a rough time with a couple older network cards.
Getting them setup (internal setting of IRQ and BASE ADDR) is the key. I
have found a setup.exe program for the CNET200plus card (UM9003a). Rtems
ne2000 driver doesn't seem to complain if this is setup incorrectly (ie
the base Address is wrong)?!
If you have some of these cards give me a shout and I'll ship you the
setup program.
Bill Butler
AIPCom Inc
972-644-2328 x16
bbill at tnex.com
> -----Original Message-----
> From: Bill Butler [mailto:billb at tnex.com]
> Sent: Wednesday, April 24, 2002 10:18 AM
> To: 'Joel Sherrill'
> Subject: RE: Netdemo examples Working on i386
>
> Joel,
>
> It is working with Grub floppy! I am using a UMB generic ISA card that
I
> found lying around. But I initially got it up and working with a
> NE2000plus card under 4.5.0. I did not verify if the interrupts were
> working on the NE2000plus card. Only thing I did with it was verify
that
> RTEMS ne2000 driver could recognize it and BOOTP would work. If you
would
> like I will borrow it back from Bill Knight and try to get it to work.
>
> Do you remember what is failing on your attempt?
>
> Bill Butler
> AIPCom Inc
> 972-644-2328 x16
> bbill at tnex.com
>
>
> > -----Original Message-----
> > From: Joel Sherrill [mailto:joel.sherrill at OARcorp.com]
> > Sent: Wednesday, April 24, 2002 8:49 AM
> > To: Bill Butler
> > Cc: rtems-users at oarcorp.com
> > Subject: Re: Netdemo examples Working on i386
> >
> > Bill,
> >
> > Do you have a working netboot/etherboot floppy for this NIC?
> >
> > We have an NE2000Plus which works under Windows fine but
> > we can't seem to get the boot floppy to work.
> >
> > And does a NE2KPlus work with the Ne2000 driver in RTEMS?
> >
> > Bill Butler wrote:
> > >
> > > All,
> > >
> > > I thought I would update everyone that I have the netdemo working
with
> > > the i386/pc486 bsp.
> > >
> > > I moved to the latest snapshot (20020301) and updated my tools.
Now
> the
> > > demo complained about a NE2000 timeout. After some more searching
I
> > > discovered this was because I had the wrong IRQ on the NIC card.
> > >
> > > I could not really find any utilities I thought I was stuck.
Luckily,
> > > Win95 was installed on this 486 machine I was using and when I
tried
> to
> > > install the nic card It showed me the setting (irq3,0x300).
Changing
> > > this got me up and running.
> > >
> > > So in summary, if you want to used a ne2000 nic card with netdemo
you
> > > need to
> > >
> > > 1) Set to your card type in bsp.h. All supported cards are listed
now
> > >
> > > #define BSP_NE2000_NETWORK_DRIVER_NAME
> > > #define BSP_NE2000_NETWORK_DRIVER_ATTACH
> > >
> > > 2) Add number of File handle to something more reasonable in
init.c
> > >
> > > #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS (30)
> > >
> > > 3) Set your IRQ on your nic card to 5 or modify the
netdriver_config
> > > structure in netconfigure.h for the demo code the following to the
> > >
> > > static struct rtems_bsdnet_ifconfig netdriver_config = {
> > > RTEMS_BSP_NETWORK_DRIVER_NAME, /* name */
> > > RTEMS_BSP_NETWORK_DRIVER_ATTACH, /* attach function */
> > >
> > > #ifdef RTEMS_USE_LOOPBACK
> > > &loopback_config, /* link to next interface */
> > > #else
> > > NULL, /* No more interfaces */
> > > #endif
> > >
> > > #if (defined (RTEMS_USE_BOOTP))
> > > NULL, /* BOOTP supplies IP address */
> > > NULL, /* BOOTP supplies IP net mask */
> > > #else
> > > "192.168.1.26", /* IP address */
> > > "255.255.255.0", /* IP net mask */
> > > #endif /* !RTEMS_USE_BOOTP */
> > >
> > > #if (defined (RTEMS_SET_ETHERNET_ADDRESS))
> > > ethernet_address, /* Ethernet hardware address */
> > > #else
> > > NULL, /* Driver supplies hardware
address
> > > */
> > > #endif
> > > /* configure the IRQ in this section 0 = default*/
> > > 0, /* ignore_broadcast */
> > > 0, /* mtu */
> > > 0, /* rbuf_count */
> > > 0, /* xbuf_count*/
> > >
> > > 0, /* port use default of 0x300 */
> > > 3, /* irno */
> > > 0, /* bpar*/
> > >
> > > };
> > >
> > > Hope that helps
> > >
> > > PS. I believe that the 4.5.0 version would have worked fine if I
had
> the
> > > IRQ set correctly. It's just that the newer version of the driver
gave
> > > an error message that Interrupts weren't working!
> > >
> > > Bill Butler
> > > AIPCom Inc
> > > 972-644-2328 x16
> > > bbill at tnex.com
> > >
> > >
> > > > -----Original Message-----
> > > > From: Bill Butler [mailto:billb at tnex.com]
> > > > Sent: Monday, April 22, 2002 10:05 AM
> > > > To: 'Eric Norum'
> > > > Cc: 'rtems-users at oarcorp.com'
> > > > Subject: RE: Netdemo examples.
> > > >
> > > >
> > > >
> > > >
> > > > > From: Eric Norum [mailto:eric.norum at usask.ca]
> > > >
> > > >
> > > > > On Monday, April 22, 2002, at 08:06 AM, Bill Butler wrote:
> > > > >
> > > > > > I bet this has been answered before but I still can not get
the
> > > rtems
> > > > > > search to work and have searched back to last april with now
> > > luck..
> > > > > >
> > > > > > I have the Netdemo4-5.0/netdemo up and working for the most
part
> > > on a
> > > > > > i386/PC486 BSP. I using the 4.5.0 release (no snapshots). I
can
> > > get
> > > > the
> > > > > > demo to come up and request and receive an IP using BOOTP
when
> in
> > > > BootP
> > > > > > mode. It displays no errors and is able to create, bind,
listen,
> > > > accept
> > > > > > sockets.
> > > > > > The "u" test seems to work but "t" or tcp/ip test times out
--
> > > Giving
> > > > > > "Can't connect socket: Connection timed out".
> > > > > >
> > > > > > I have also tried to hardcode its IP with the same results.
> > > > >
> > > > > Is the TCP`discard' socket active on the machine you're trying
to
> > > > > connect to from the RTEMS machine?
> > > >
> > > > Unsure.. I need to look into this since I'm not really familiar
with
> > > > Discard socket. I have tried both uncommenting the 127.0.0.0 and
> > > setting
> > > > it to the machine I'm trying to use telnet on. (ie 192.168.1.11-
my
> > > linux
> > > > box)
> > > >
> > > >
> > > >
> > > > >
> > > > > >
> > > > > > Trying to ping the pc running Rtems/netdemo times out and
trying
> > > to
> > > > > > connect using telnet 192.168.1.16 24742 does not work as
> > > advertised.
> > > > > >
> > > > > > To me this sounds like a TCP/IP problem more than the demo
> problem
> > > and
> > > > I
> > > > > > am hesitant to move on with development until I get this
demo
> > > working.
> > > > >
> > > > > Is the RTEMS machine configured to accept broadcast packets?
> > > > > Can you run a packet sniffer and see exactly what's happening
on
> > > your
> > > > > network?
> > > >
> > > >
> > > > I have not changed anything on the demo except to enable BootP
and
> add
> > > > more files handles. When I use the sniffer It does not look to
me
> that
> > > the
> > > > Rtems box tries to except the telnet session. But I need to look
> into
> > > this
> > > > more but I really thought the netDemo should work pretty much as
is.
> > > >
> > > > Thanks
> > > >
> > > > Bill
> >
> > --
> > Joel Sherrill, Ph.D. Director of Research & Development
> > joel at OARcorp.com On-Line Applications Research
> > Ask me about RTEMS: a free RTOS Huntsville AL 35805
> > Support Available (256) 722-9985
More information about the users
mailing list