Skip to contentSkip to conversation

About Zebra Error

DISCUSSION Aubrey Lee 4 participants 4 messages Jan 13, 2005

lore
Share & tools
lore

Aubrey Lee

author
#0 lore raw

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

#1 lore raw
Quoted 11 lines · Aubrey Lee

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

#2 lore raw
In reply to Aubrey Lee
Quoted 12 lines · Aubrey Lee

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

Signature · 4 lines
Mark Powell, Senior Software Engineer
Curtiss-Wright Controls Embedded Computing
Tel: +44 (0) 1763 852222
Email: [email protected]
#3 lore raw
In reply to Aubrey Lee
Quoted 8 lines · Aubrey Lee

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.