* Question for canutils @ 2011-04-27 8:36 Tomoya MORINAGA [not found] ` <02D6556ECE7A41859777EB7300D12394-c0cKtqp5df7I9507bXv2FdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Tomoya MORINAGA @ 2011-04-27 8:36 UTC (permalink / raw) To: 'Wolfgang Grandegger' Cc: socketcan-core, netdev, linux-kernel, toshiharu-linux Hi I have 2 questions for canutils. 1) Build issue I downloaded the latest canutils and libsocketcan. - canutils-4.0.6 - libsocketcan-0.0.8 Firstly, I installed libsocketcan-0.0.8 Secondly, I tried to install canutils-4.0.6. But it failed like below. [root@localhost canutils-4.0.6]# ./configure ...snip... checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for socket... yes checking for strchr... yes checking for strtoul... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for libsocketcan... no configure: error: *** libsocketcan version above 0.0.8 not found on your system [root@localhost canutils-4.0.6]# Do you have any information about the fail? BTW, Using canutils-3.0.2, I could confirm build becomes success. ---------------------------------------------------------------------------------------------------------------------- 2) How to use Executing candump like following, I see the following message.(Of course, pch_can have already installed) [root@localhost morinaga]# candump can0 interface = can0, family = 29, type = 3, proto = 1 read: Network is down [root@localhost morinaga]# Would you tell me how to active can0 interface. ---------------------------------------------------------------------------------------------------------------------- With Best Regards, (I will be away from today- 5-May.) ----------------------------------------- Tomoya MORINAGA OKI SEMICONDUCTOR CO., LTD. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <02D6556ECE7A41859777EB7300D12394-c0cKtqp5df7I9507bXv2FdBPR1lH4CV8@public.gmane.org>]
* Re: Question for canutils [not found] ` <02D6556ECE7A41859777EB7300D12394-c0cKtqp5df7I9507bXv2FdBPR1lH4CV8@public.gmane.org> @ 2011-04-27 13:50 ` Marc Kleine-Budde 2011-05-06 0:37 ` Tomoya MORINAGA 0 siblings, 1 reply; 4+ messages in thread From: Marc Kleine-Budde @ 2011-04-27 13:50 UTC (permalink / raw) To: Tomoya MORINAGA Cc: socketcan-core-0fE9KPoRgkgATYTw5x5z8w, netdev-u79uwXL29TY76Z2rM5mHXA, toshiharu-linux-ECg8zkTtlr0C6LszWs/t0g, linux-kernel-u79uwXL29TY76Z2rM5mHXA, 'Wolfgang Grandegger' [-- Attachment #1.1: Type: text/plain, Size: 1937 bytes --] On 04/27/2011 10:36 AM, Tomoya MORINAGA wrote: > I have 2 questions for canutils. > > 1) Build issue > I downloaded the latest canutils and libsocketcan. > - canutils-4.0.6 > - libsocketcan-0.0.8 > > Firstly, I installed libsocketcan-0.0.8 Into which location? Please send me the output of: ls -l /usr/local/lib ls -l /usr/local/lib/pkgconfig > Secondly, I tried to install canutils-4.0.6. > But it failed like below. > > [root@localhost canutils-4.0.6]# ./configure > ...snip... > checking whether lstat correctly handles trailing slash... yes > checking whether stat accepts an empty string... no > checking for socket... yes > checking for strchr... yes > checking for strtoul... yes > checking for pkg-config... /usr/bin/pkg-config > checking pkg-config is at least version 0.9.0... yes > checking for libsocketcan... no > configure: error: *** libsocketcan version above 0.0.8 not found on your system > [root@localhost canutils-4.0.6]# > > Do you have any information about the fail? > BTW, Using canutils-3.0.2, I could confirm build becomes success. 3.x doesn't work with the mainline configuration interface. > 2) How to use > Executing candump like following, I see the following message.(Of course, pch_can have already installed) > [root@localhost morinaga]# candump can0 > interface = can0, family = 29, type = 3, proto = 1 > read: Network is down > [root@localhost morinaga]# > > Would you tell me how to active can0 interface. First build the canutils, then configure the bitrate, e.g. 250 kbit/s: $ canconfig can0 bitrate 250000 $ ifconfig can0 up regards, 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 | [-- Attachment #1.2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 262 bytes --] [-- Attachment #2: Type: text/plain, Size: 188 bytes --] _______________________________________________ Socketcan-core mailing list Socketcan-core-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org https://lists.berlios.de/mailman/listinfo/socketcan-core ^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Question for canutils 2011-04-27 13:50 ` Marc Kleine-Budde @ 2011-05-06 0:37 ` Tomoya MORINAGA [not found] ` <A42D429EA0C74B64BB1BFE96BBFA9815-c0cKtqp5df7I9507bXv2FdBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Tomoya MORINAGA @ 2011-05-06 0:37 UTC (permalink / raw) To: 'Marc Kleine-Budde' Cc: 'Wolfgang Grandegger', socketcan-core, netdev, linux-kernel, toshiharu-linux Hi Marc, On Wednesday, April 27, 2011 10:51 PM, Marc Kleine-Budde wrote: > Into which location? > > Please send me the output of: > > ls -l /usr/local/lib > ls -l /usr/local/lib/pkgconfig [morinaga@localhost ~]$ [morinaga@localhost ~]$ ls -l /usr/local/lib 合計 1412 -rw-r--r--. 1 root root 103226 2011-01-13 16:56 libhistory.a lrwxrwxrwx. 1 root root 15 2011-01-13 16:56 libhistory.so -> libhistory.so.6 lrwxrwxrwx. 1 root root 17 2011-01-13 16:56 libhistory.so.6 -> libhistory.so.6.0 -r-xr-xr-x. 1 root root 80204 2011-01-13 16:56 libhistory.so.6.0 -rw-r--r--. 1 root root 686760 2011-01-13 16:56 libreadline.a lrwxrwxrwx. 1 root root 16 2011-01-13 16:56 libreadline.so -> libreadline.so.6 lrwxrwxrwx. 1 root root 18 2011-01-13 16:56 libreadline.so.6 -> libreadline.so.6.0 -r-xr-xr-x. 1 root root 498839 2011-01-13 16:56 libreadline.so.6.0 -rw-r--r--. 1 root root 28718 2011-04-27 15:40 libsocketcan.a -rwxr-xr-x. 1 root root 843 2011-04-27 15:40 libsocketcan.la lrwxrwxrwx. 1 root root 21 2011-04-27 15:40 libsocketcan.so -> libsocketcan.so.2.2.0 lrwxrwxrwx. 1 root root 21 2011-04-27 15:40 libsocketcan.so.2 -> libsocketcan.so.2.2.0 -rwxr-xr-x. 1 root root 27835 2011-04-27 15:40 libsocketcan.so.2.2.0 drwxr-xr-x. 2 root root 4096 2011-04-27 15:53 pkgconfig [morinaga@localhost ~]$ ls -l /usr/local/lib/pkgconfig/ 合計 8 -rw-r--r--. 1 root root 198 2011-04-27 15:53 canutils.pc -rw-r--r--. 1 root root 300 2011-04-27 15:40 libsocketcan.pc [morinaga@localhost ~]$ > First build the canutils, then configure the bitrate, e.g. 250 kbit/s: > $ canconfig can0 bitrate 250000 > $ ifconfig can0 up The above commands failed. [root@localhost can]# [root@localhost can]# canconfig can0 bitrate 250000 opening CAN interface 'can0' in sysfs failed, maybe not a CAN interface No such file or directory [root@localhost ~]# ifconfig can0 up SIOCSIFFLAGS: Invalid argument [root@localhost ~]# Thanks, ----------------------------------------- Tomoya MORINAGA OKI SEMICONDUCTOR CO., LTD. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <A42D429EA0C74B64BB1BFE96BBFA9815-c0cKtqp5df7I9507bXv2FdBPR1lH4CV8@public.gmane.org>]
* Re: Question for canutils [not found] ` <A42D429EA0C74B64BB1BFE96BBFA9815-c0cKtqp5df7I9507bXv2FdBPR1lH4CV8@public.gmane.org> @ 2011-05-06 23:58 ` Marc Kleine-Budde 0 siblings, 0 replies; 4+ messages in thread From: Marc Kleine-Budde @ 2011-05-06 23:58 UTC (permalink / raw) To: Tomoya MORINAGA Cc: socketcan-core-0fE9KPoRgkgATYTw5x5z8w, netdev-u79uwXL29TY76Z2rM5mHXA, toshiharu-linux-ECg8zkTtlr0C6LszWs/t0g, linux-kernel-u79uwXL29TY76Z2rM5mHXA, 'Wolfgang Grandegger' [-- Attachment #1.1: Type: text/plain, Size: 2393 bytes --] On 05/06/2011 02:37 AM, Tomoya MORINAGA wrote: > Hi Marc, > > On Wednesday, April 27, 2011 10:51 PM, Marc Kleine-Budde wrote: >> Into which location? >> >> Please send me the output of: >> >> ls -l /usr/local/lib >> ls -l /usr/local/lib/pkgconfig > > [morinaga@localhost ~]$ > [morinaga@localhost ~]$ ls -l /usr/local/lib > 合計 1412 > -rw-r--r--. 1 root root 103226 2011-01-13 16:56 libhistory.a > lrwxrwxrwx. 1 root root 15 2011-01-13 16:56 libhistory.so -> libhistory.so.6 > lrwxrwxrwx. 1 root root 17 2011-01-13 16:56 libhistory.so.6 -> libhistory.so.6.0 > -r-xr-xr-x. 1 root root 80204 2011-01-13 16:56 libhistory.so.6.0 > -rw-r--r--. 1 root root 686760 2011-01-13 16:56 libreadline.a > lrwxrwxrwx. 1 root root 16 2011-01-13 16:56 libreadline.so -> libreadline.so.6 > lrwxrwxrwx. 1 root root 18 2011-01-13 16:56 libreadline.so.6 -> libreadline.so.6.0 > -r-xr-xr-x. 1 root root 498839 2011-01-13 16:56 libreadline.so.6.0 > -rw-r--r--. 1 root root 28718 2011-04-27 15:40 libsocketcan.a > -rwxr-xr-x. 1 root root 843 2011-04-27 15:40 libsocketcan.la > lrwxrwxrwx. 1 root root 21 2011-04-27 15:40 libsocketcan.so -> libsocketcan.so.2.2.0 > lrwxrwxrwx. 1 root root 21 2011-04-27 15:40 libsocketcan.so.2 -> libsocketcan.so.2.2.0 > -rwxr-xr-x. 1 root root 27835 2011-04-27 15:40 libsocketcan.so.2.2.0 > drwxr-xr-x. 2 root root 4096 2011-04-27 15:53 pkgconfig > [morinaga@localhost ~]$ ls -l /usr/local/lib/pkgconfig/ > 合計 8 > -rw-r--r--. 1 root root 198 2011-04-27 15:53 canutils.pc > -rw-r--r--. 1 root root 300 2011-04-27 15:40 libsocketcan.pc > [morinaga@localhost ~]$ > > >> First build the canutils, then configure the bitrate, e.g. 250 kbit/s: >> $ canconfig can0 bitrate 250000 >> $ ifconfig can0 up > The above commands failed. > > [root@localhost can]# > [root@localhost can]# canconfig can0 bitrate 250000 > opening CAN interface 'can0' in sysfs failed, maybe not a CAN interface > No such file or directory you have to use canutils 4.x, not 3.x. (or ip from iprout2) to setup the bitrate. cheers, 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 | [-- Attachment #1.2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 262 bytes --] [-- Attachment #2: Type: text/plain, Size: 188 bytes --] _______________________________________________ Socketcan-core mailing list Socketcan-core-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org https://lists.berlios.de/mailman/listinfo/socketcan-core ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-05-06 23:58 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-04-27 8:36 Question for canutils Tomoya MORINAGA [not found] ` <02D6556ECE7A41859777EB7300D12394-c0cKtqp5df7I9507bXv2FdBPR1lH4CV8@public.gmane.org> 2011-04-27 13:50 ` Marc Kleine-Budde 2011-05-06 0:37 ` Tomoya MORINAGA [not found] ` <A42D429EA0C74B64BB1BFE96BBFA9815-c0cKtqp5df7I9507bXv2FdBPR1lH4CV8@public.gmane.org> 2011-05-06 23:58 ` Marc Kleine-Budde
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).