Hi Oliver, On Fri, 2009-02-27 at 08:25 +0100, Oliver Hartkopp wrote: > 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 :-) >
Thank you. I have been able to run these tests successfully now. Based on that i have prepared the following Patches for your review, which will integrate these tests to LTP infrastructure: [PATCH 01/04] Add CAN Filter Tests Code [PATCH 02/04] Add LTP Command File for CAN Filter Tests [PATCH 03/04] Add Info For Running CAN tests in runalltests.sh [PATCH 04/04] Add Kernel Config Options for CAN tests Regards-- Subrata > 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
