This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Can redboot be built for PC now? Was: packet dumping


Yes, you already posted this one, and it was answered as well!

Check this morning's post by Jonathan.

> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com 
> [mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of 
> Dmitry Ryzhkov
> Sent: October 22, 2001 3:59 PM
> To: ecos-discuss@sourceware.cygnus.com
> Subject: [ECOS] Can redboot be built for PC now? Was: [ECOS] 
> packet dumping
> 
> 
> Hi All,
> 
> It seems some modifications made in io/eth CDL are causing 
> the following:
> 
> ==
> 
> i386-elf-gcc -g -nostdlib -Wl,--gc-sections -Wl,-static 
> -L/home/rdim/eCos/build/redboot/install/lib -Ttarget.ld -o 
> /home/rdim/eCos/build/redboot/install/bin/redboot.elf 
> /home/rdim/eCos/build/redboot/install/lib/version.o
> /home/rdim/eCos/build/redboot/install/lib/libtarget.a(redboot_
> net_io.o): In 
> function `net_init':
> /home/rdim/eCos/CVS/ecos/packages/redboot/current/src/net/net_
> io.c:548: 
> undefined reference to `net_debug'
> /home/rdim/eCos/build/redboot/install/lib/libtarget.a(redboot_
> bootp.o): In 
> function `__bootp_find_local_ip':
> /home/rdim/eCos/CVS/ecos/packages/redboot/current/src/net/boot
> p.c:141: 
> undefined reference to `net_debug'
> collect2: ld returned 1 exit status
> 
> ==
> 
> It looks like net_debug becomes undefined in PC targeted 
> redboot. Or I've 
> done something wrong? 
> 
> Thanks!
> 
> 
> > Ok, good.  It's not like it's going to take more than a few minutes
> > anyhow! :)
> >
> > > -----Original Message-----
> > > From: jlarmour@cambridge.redhat.com
> > > [mailto:jlarmour@cambridge.redhat.com] On Behalf Of 
> Jonathan Larmour
> > > Sent: October 18, 2001 11:43 AM
> > > To: Trenton D. Adams
> > > Cc: 'eCos discussion'
> > > Subject: Re: [ECOS] packet dumping
> > >
> > > "Trenton D. Adams" wrote:
> > > > Not hard at all! :)
> > > >
> > > > extern int net_debug;
> > > >
> > > > net_debug = 1;
> > > >
> > > > With that as 1, diag_dump_buf() is called on each packet.
> > > >
> > > > Is that a good way of doing it?
> > >
> > > You're right!
> > >
> > > > Maybe we should add some #ifdefs along with a CDL MACRO
> > >
> > > instead of using
> > >
> > > > "if (net_debug) {do net debug code}"?  After all, the if
> > >
> > > (net_debug) is
> > >
> > > > always going to be compiled in right now, isn't it?
> > >
> > > Yes.
> > >
> > > > If you want, I'll make the changes and submit a patch.  I
> > >
> > > think the only
> > >
> > > > modification required are in around 2 places in eth_drv.c!?
> > > >
> > > > If you want me to, which package CDL should have the option?
> > >
> > > io/eth. I just wrote a bunch of stuff describing what to do,
> > > but I may as
> > > well just go ahead and do it, so I will.
> > >
> > > Jifl
> > > --
> > > Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44
> > > (1223) 271062
> > > Maybe this world is another planet's Hell -Aldous Huxley ||
> > > Opinions==mine
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]