Subrata Modak wrote:
> vcan0     Link encap:UNSPEC  HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
>           UP RUNNING NOARP  MTU:16  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0 
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>
> Now when i run:
> ./run_ltp-can_tests.sh
>
> script (created inside the tarball), it gives me the following error:
>
> socket: Protocol not supported
> socket: Protocol not supported
>
> Since the latest kernel is installed with the headers, the build works
> fine. Is there any other dependent config option(s) needs to be set to
> make this work ??
>   

Hello Subrata,

obviously everything is correct but the protocol modules are not loaded 
in your environment.

You need to put a file containing this:

# protocol family PF_CAN
alias net-pf-29 can
# protocols in PF_CAN
alias can-proto-1 can-raw
alias can-proto-2 can-bcm
alias can-proto-3 can-tp16
alias can-proto-4 can-tp20
alias can-proto-5 can-mcnet
alias can-proto-6 can-isotp

In your /etc/modprobe.d directory

I usually take this file and put it there:
http://svn.berlios.de/svnroot/repos/socketcan/trunk/etc/llcf

You can also add

modprobe -f can
modprobe -f can_raw

to your script ... which you've already been done for the vcan :-)

Thanks,
Oliver

ps. Does anyone know what's the correct way to get this "alias net-pf-29 
can" stuff into /etc/modprobe.d in usual Linux distributions?


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to