Re: Socketcan-users Digest, Vol 74, Issue 1

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Socketcan-users Digest, Vol 74, Issue 1

kedar
Hi,

 Thanks for u r help,

I downloaded the can-utils and i try to use make command in each directory of that can utils i am getting a lots of errors.I read some readme.txt  in some folder it is showing that the iproute2 is under petalinux source tree you need to install petalinux .Is that petalinux source tree is necessary for this.If necessary how to install it.

Please reply to this mail

Thanks
Kedar


On Sat, Apr 27, 2013 at 3:30 PM, <[hidden email]> wrote:
Send Socketcan-users mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.berlios.de/mailman/listinfo/socketcan-users
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Socketcan-users digest..."


Today's Topics:

   1. socketcan (kedari appana)
   2. Re: socketcan (Marc Kleine-Budde)


----------------------------------------------------------------------

Message: 1
Date: Fri, 26 Apr 2013 18:33:20 +0530
From: kedari appana <[hidden email]>
To: [hidden email]
Subject: [Socketcan-users] socketcan
Message-ID:
        <[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,
             I am new to socketcan and i write a socketcan driver based on
the standard can drivers now i want to compile that driver how to compile
it and please help me how to write user space applications and how to test
my hardware so that  my driver code is correct .please help me regarding
this issue

Thanks in advance,

Regards
Kedar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.berlios.de/pipermail/socketcan-users/attachments/20130426/cbb55f45/attachment-0001.html>

------------------------------

Message: 2
Date: Fri, 26 Apr 2013 16:20:06 +0200
From: Marc Kleine-Budde <[hidden email]>
To: kedari appana <[hidden email]>
Cc: [hidden email]
Subject: Re: [Socketcan-users] socketcan
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="iso-8859-15"

On 04/26/2013 03:03 PM, kedari appana wrote:
> I am new to socketcan and i write a socketcan driver based on the
> standard can drivers now i want to compile that driver how to compile

Add your driver to your linux kernel under:

    drivers/net/can/

and add an option to

    drivers/net/can/Kconfig
    drivers/net/can/Makefile

follow an existing driver like e.g. flexcan [1][2].

> it and please help me how to write user space applications and how to
> test my hardware so that  my driver code is correct .please help me
> regarding this issue

There are existing userspace applications, e.g. the can-utils, which can
be downlaoded at gitorious.org [3]. Use cansend and candump to send and
receive can messages. Use "ip" of the iproute2 package to configure the
bitrate of your can interface[4]. See that document for more information
about CAN under Linux.

hth,
Marc

[1] http://lxr.free-electrons.com/source/drivers/net/can/Kconfig#L99
[2] http://lxr.free-electrons.com/source/drivers/net/can/Makefile#L23
[3] https://gitorious.org/linux-can/can-utils
[4]
http://lxr.free-electrons.com/source/Documentation/networking/can.txt#L854
--
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <https://lists.berlios.de/pipermail/socketcan-users/attachments/20130426/6b014f74/attachment-0001.pgp>

------------------------------

_______________________________________________
Socketcan-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/socketcan-users

End of Socketcan-users Digest, Vol 74, Issue 1
**********************************************


_______________________________________________
Socketcan-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/socketcan-users
Reply | Threaded
Open this post in threaded view
|

Fwd: Socketcan-users Digest, Vol 74, Issue 1

kedar


---------- Forwarded message ----------
From: kedari appana <[hidden email]>
Date: Mon, May 6, 2013 at 3:20 PM
Subject: Re: [Socketcan-users] Socketcan-users Digest, Vol 74, Issue 1
To: Marc Kleine-Budde <[hidden email]>
Cc: "[hidden email]" <[hidden email]>


HI,

Thanks for ur suggestion it's working fine for iproute2 package .After that i installed libsocketcan version 0.09 after that i try to install canutils when i type ./configure --host=arm-xilinx-linux-gnueabi --prefix=$PREFIX --enable-debug this command i am getting the error configure: error: *** libsocketcan version above 0.0.8 not found on your system .But i installed 0.09 verion please help me .
The below attahment contains the error logs please go through it.

Regards,
Kedar


On Mon, May 6, 2013 at 1:24 PM, Marc Kleine-Budde <[hidden email]> wrote:
Hello kedari appana,

please don't send HTML mails, as they are not accepted on the linux-can
mailing-list.

On 05/06/2013 06:50 AM, kedari appana wrote:
>> Hi,
>>
>>                  I am new to socket can  i downloaded the socketcan
> utilities
>> and when i try to run it i am getting the errors.
>> I compiled  iproute2-2.6.39.
>>
>> I made the following modifications
>>
>> In make file commented the below lines
>>
>> DESTDIR
>> DBM_INCLUDE
>> CC
>>
>> and the modifications  made are

It's good practice to illustrate your modifications with a diff.
I'm not sure if setenv works as you expected in Makefile....

>> setenv GNUEABI arm-xilinx-linux-gnueabi
>> setenv CC GNUEABI-gcc

You set CC to GNUEABI-gcc...

>> setenv LD GNUEABI-ld
>> setenv NM GNUEABI-nm
>> setenv AR GNUEABI-ar
>> setenv RANLIB GNUEABI-ranlib
>> setenv CXX GNUEABI-c++
>> setenv PREFIX /proj/epdsw/kedar/linux-xlnx/linux-xlnx/usr/
>> setenv CROSS_COMPILE_PREFIX PREFIX
>> setenv PATH /proj/epdsw/sadanand/arm-2010.09/bin:$PATH
>> setenv DBM_INCLUDE /usr/include
>> setenv INCLUDES /usr/include
>> setenv DESTDIR PREFIX


>>
>>
>> and after that i am using
>>  ./configure --host=arm-xilinx-linux-gnueabi  --prefix=$PREFIX
> --enable-debug
>> the above command
>> and it's output is
>> TC schedulers
>>  ATM    no
>>  IPT    using xtables
>> iptables modules directory: /lib/xtables
>>
>> when i try to use make command i am getting below error
>>
>> make[1]: Entering directory
> `/proj/epdsw/kedar/linux-xlnx/user/iproute2-2.6.39/lib'
>> GNUEABI-gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes
>>  -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC
> -c -o ll_map.o ll_map.c
>> make[1]: GNUEABI-gcc: Command not found

...and make uses GNUEABI-gcc to compile your code. You probable have to
use '$()' or '${}'. In a Makefile '$()' would be correct:

    setenv CC $(GNUEABI)-gcc

Marc

--
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |




_______________________________________________
Socketcan-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/socketcan-users

canutils.txt (7K) Download Attachment