public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Raja Mallik <raja.mallik@moschip.com>
To: Gary Thomas <gary@mlbassoc.com>
Cc: eCos Discussion <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] ethernet driver ioctl() call not getting initiated!
Date: Wed, 18 May 2005 10:23:00 -0000	[thread overview]
Message-ID: <1116395260.1685.73.camel@mazda> (raw)
In-Reply-To: <1116338476.22383.50.camel@hermes>

Hi again, 

Thanks for the correction. It has started the ioctl() and able to assign
IP to a specific mac..

Now I want to do a ping test and refer to the examples, I am not able to
start calls like 
{
cyg_thread_create(10,                // Priority - just a number
                      net_test,          // entry
                      0,                 // entry parameter
                      "Network test",    // Name
                      &stack[0],         // Stack
                      STACK_SIZE,        // Size
                      &thread_handle,    // Handle
                      &thread_data       // Thread data structure
            );
    cyg_thread_resume(thread_handle);  // Start it
    cyg_scheduler_start();

} 

mostly in my main routine. I tried to call this inside 

void cyg_user_start(void) { ................. }

Is that o.k? 

What are the importance of call like cyg_scheduler_start()? 

Can I ignore this while using cyg_user_start()?


Regards
Raja



On Tue, 2005-05-17 at 19:31, Gary Thomas wrote:
> On Tue, 2005-05-17 at 19:13 +0530, Raja Mallik wrote:
> > Hi all! 
> >  
> > I have found that some how that application ethernet driver is not able
> > to initiate ioctl() call..which is must for setting MAC, the IP, the
> > Netmask, the broadcast address, etc..
> > 
> > I am getting these errors!
> > 
> > I am just unable to find why this is happening..is that I have have any
> > trouble of using freeBSD network stacks..
> > 
> 
> You don't have an 'eth0' device (it seems to be called 'SCP_eth').  
> Unless you change some other configury, the default setup won't find
> any ethernet device to use.
> 
> > 
> > Regards
> > Raja
> > 
> > 
> > 
> > Cosole print out
> > 
> > 
> > ## Starting application at 0x00030000 ...
> > Init device '/dev/ttydiag'
> > Init tty channel: 68bcc
> > Init device '/dev/tty0'
> > Init tty channel: 68be8
> > Init device '/dev/haldiag'
> > HAL/diag SERIAL init
> > [cyg_net_init] Init: mbinit(0x00000000)
> > [cyg_net_init] Init: cyg_net_init_devs(0x00000000)
> > Init device 'SCP_eth'
> > Starting to initialise mcs1000 driver
> > Name of interface is SCP_eth
> > Device Instance name is eth0_scp
> > Using port: EthA
> > RX Buf shift state: 0x01
> >                                                                                                                              
> > Link: 10MB/s Full Duplex
> > mcs1000 driver initialised eth_drv_init() and started
> > [cyg_net_init] Init: loopattach(0x00000000)
> > [cyg_net_init] Init: ifinit(0x00000000)
> > IFP: 0x000680dc, next: 0x000afd60
> > IFP: 0x000afd60, next: 0x00000000
> > [cyg_net_init] Init: domaininit(0x00000000)
> > [cyg_net_init] Init: cyg_net_add_domain(0x0006896c)
> > New domain internet at 0x00000000
> > [cyg_net_init] Init: cyg_net_add_domain(0x00068474)
> > New domain route at 0x00000000
> > [cyg_net_init] Init: cyg_route_init(0x00000000)
> > [cyg_net_init] Done
> > dn
> > .
> > .
> > .
> > up
> > .
> > .
> > .
> > init...
> > -list vectors vector=24, handle=30b24, int=0 ,h0,iaf8a0
> > -mac irq attached to vector 24
> > -list vectors vector=4, handle=30b24, int=4 ,h0,iaf8a4
> > -mac irq attached to vector 4
> > -list vectors vector=6, handle=30b24, int=8 ,h0,iaf8a8
> > -mac irq attached to vector 6
> > -list vectors vector=19, handle=30b24, int=c ,h0,iaf8ac
> > -mac irq attached to vector 19
> > -list vectors vector=5, handle=30b24, int=10 ,h0,iaf8b0
> > -mac irq attached to vector 5
> > -list vectors vector=7, handle=30b24, int=14 ,h0,iaf8b4
> > -mac irq attached to vector 7
> > -list vectors vector=20, handle=30b24, int=18 ,h0,iaf8b8
> > -mac irq attached to vector 20
> > Link status for if0
> >  100M
> >                                                                                                                              
> >  30 30 3a 66 66 3a
> > IN MAC REG 663A30303A66
> > 
> > Start PING test
> > Error: SIOCGIFHWADDR 2: Device not configured
> > Mac addr 03:00:f8:84:03:00
> > started Socket PF_NET, SOCK_DGRAM
> > will do memset
> > finished doing memset
> > finished doing stringcopy
> > Cannot obtain MAC adress :Device not configuredCant set IP of 'eth0' to
> > '192.168.1.143' Error :'Device not configured'
> > Net Mask Error : Device not configured
> > BroadCastError:Device not configured
> > Error: SIOCGIFHWADDR 2: Device not configured
> > Mac addr 08:40:9c:56:06:00
> > Cant set IP of 'eth0' to '192.168.1.144' Error :'Device not configured'
> > Net Mask Error : Device not configured
> > BroadCastError:Device not configured...
> > 
> > 
> > 
> 
> -- 
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------
> 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

      reply	other threads:[~2005-05-18  5:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-17 18:16 Raja Mallik
2005-05-18  4:57 ` Gary Thomas
2005-05-18 10:23   ` Raja Mallik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1116395260.1685.73.camel@mazda \
    --to=raja.mallik@moschip.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=gary@mlbassoc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).