* About zebra Error
@ 2005-01-13 10:00 Aubrey Lee
0 siblings, 0 replies; 5+ messages in thread
From: Aubrey Lee @ 2005-01-13 10:00 UTC (permalink / raw)
To: linuxppc-embedded
Hi, now I know what the problem is.
For my case, the ppc-linux kernel should be configured as the following:
The Item [Unix domain Socket] should be selected [Y]
Just so so.
^ permalink raw reply [flat|nested] 5+ messages in thread* About Zebra Error
@ 2005-01-13 8:50 Aubrey Lee
2005-01-13 9:12 ` Eugene Surovegin
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Aubrey Lee @ 2005-01-13 8:50 UTC (permalink / raw)
To: linuxppc-embedded
hi, In the PC(i686) system, I build and run zebra successfully. And now
I'm porting it to the powerpc system. Cross-compiling finished without error.
But when I run the zebra from my target board, it gives me a big headache:
--------------------------------------------------------------------------
bash-2.05b# /opt/zebra/sbin/zebra
sock: Address family not supported by protocol
----------------------------------------------------------------------------
And Up to now I cann't find the message in the souce
code files.
The two ethx and their driver of my board is OK.
What shall I do?
Any comment and suggestion will be welcome!
Thank you very much!
Best regards!
Aubrey.Lee
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: About Zebra Error
2005-01-13 8:50 About Zebra Error Aubrey Lee
@ 2005-01-13 9:12 ` Eugene Surovegin
2005-01-13 9:18 ` Mark Powell
2005-01-13 17:07 ` Tolunay Orkun
2 siblings, 0 replies; 5+ messages in thread
From: Eugene Surovegin @ 2005-01-13 9:12 UTC (permalink / raw)
To: Aubrey Lee; +Cc: linuxppc-embedded
On Thu, Jan 13, 2005 at 04:50:27PM +0800, Aubrey Lee wrote:
> hi, In the PC(i686) system, I build and run zebra successfully. And now
> I'm porting it to the powerpc system. Cross-compiling finished without error.
> But when I run the zebra from my target board, it gives me a big headache:
> --------------------------------------------------------------------------
> bash-2.05b# /opt/zebra/sbin/zebra
> sock: Address family not supported by protocol
> ----------------------------------------------------------------------------
> And Up to now I cann't find the message in the souce
> code files.
> The two ethx and their driver of my board is OK.
> What shall I do?
Most probably zebra needs some some socket family (e.g. PF_PACKET)
which wasn't enabled in your PPC kernel.
Compare .config files for x86 and PPC kernels, especially networking
configuration parts.
The reason you cannot find "Address family not supported by protocol"
message in the zebra sources is because this message comes from libc,
e.g. by using perror(3) or sys_errlist directly.
--
Eugene
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: About Zebra Error
2005-01-13 8:50 About Zebra Error Aubrey Lee
2005-01-13 9:12 ` Eugene Surovegin
@ 2005-01-13 9:18 ` Mark Powell
2005-01-13 17:07 ` Tolunay Orkun
2 siblings, 0 replies; 5+ messages in thread
From: Mark Powell @ 2005-01-13 9:18 UTC (permalink / raw)
To: Aubrey Lee; +Cc: linuxppc-embedded
Aubrey Lee wrote:
> hi, In the PC(i686) system, I build and run zebra successfully. And now
>I'm porting it to the powerpc system. Cross-compiling finished without error.
>But when I run the zebra from my target board, it gives me a big headache:
>--------------------------------------------------------------------------
>bash-2.05b# /opt/zebra/sbin/zebra
> sock: Address family not supported by protocol
>----------------------------------------------------------------------------
>And Up to now I cann't find the message in the souce
>code files.
> The two ethx and their driver of my board is OK.
> What shall I do?
>
>
I had a similar message when running udhcpd. The problem was that some
network drivers were built as modules. Adding the following to
modules.conf cured my problem:
# PF_PACKET support needed by udhcpc
alias net-pf-17 af_packet
--
Mark Powell, Senior Software Engineer
Curtiss-Wright Controls Embedded Computing
Tel: +44 (0) 1763 852222
Email: medp@primagraphics.com
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: About Zebra Error
2005-01-13 8:50 About Zebra Error Aubrey Lee
2005-01-13 9:12 ` Eugene Surovegin
2005-01-13 9:18 ` Mark Powell
@ 2005-01-13 17:07 ` Tolunay Orkun
2 siblings, 0 replies; 5+ messages in thread
From: Tolunay Orkun @ 2005-01-13 17:07 UTC (permalink / raw)
To: Aubrey Lee; +Cc: linuxppc-embedded
Aubrey Lee wrote:
> hi, In the PC(i686) system, I build and run zebra successfully. And now
> I'm porting it to the powerpc system. Cross-compiling finished without error.
> But when I run the zebra from my target board, it gives me a big headache:
> --------------------------------------------------------------------------
> bash-2.05b# /opt/zebra/sbin/zebra
> sock: Address family not supported by protocol
> ----------------------------------------------------------------------------
> And Up to now I cann't find the message in the souce
> code files.
You are probably missing the particular socket type Zebra is trying to
use. I had a similar experience while trying to use DHCP in busybox on
by PPC405 embedded system. Go over your kernel configuration and ask a
Zebra mailing list regarding the socket support it needs.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-01-13 23:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-13 10:00 About zebra Error Aubrey Lee
-- strict thread matches above, loose matches on Subject: below --
2005-01-13 8:50 About Zebra Error Aubrey Lee
2005-01-13 9:12 ` Eugene Surovegin
2005-01-13 9:18 ` Mark Powell
2005-01-13 17:07 ` Tolunay Orkun
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 NNTP newsgroup(s).