* [ECOS] ethernet driver ioctl() call not getting initiated!
@ 2005-05-17 18:16 Raja Mallik
2005-05-18 4:57 ` Gary Thomas
0 siblings, 1 reply; 3+ messages in thread
From: Raja Mallik @ 2005-05-17 18:16 UTC (permalink / raw)
To: ecos-discuss
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..
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...
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] ethernet driver ioctl() call not getting initiated!
2005-05-17 18:16 [ECOS] ethernet driver ioctl() call not getting initiated! Raja Mallik
@ 2005-05-18 4:57 ` Gary Thomas
2005-05-18 10:23 ` Raja Mallik
0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2005-05-18 4:57 UTC (permalink / raw)
To: Raja Mallik; +Cc: eCos Discussion
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] ethernet driver ioctl() call not getting initiated!
2005-05-18 4:57 ` Gary Thomas
@ 2005-05-18 10:23 ` Raja Mallik
0 siblings, 0 replies; 3+ messages in thread
From: Raja Mallik @ 2005-05-18 10:23 UTC (permalink / raw)
To: Gary Thomas; +Cc: eCos Discussion
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-18 5:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-17 18:16 [ECOS] ethernet driver ioctl() call not getting initiated! Raja Mallik
2005-05-18 4:57 ` Gary Thomas
2005-05-18 10:23 ` Raja Mallik
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).