All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Tomoya MORINAGA <morinaga526@dsn.okisemi.com>
Cc: "'Wolfgang Grandegger'" <wg@grandegger.com>,
	socketcan-core@lists.berlios.de, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, toshiharu-linux@dsn.okisemi.com
Subject: Re: Question for canutils
Date: Wed, 27 Apr 2011 15:50:38 +0200	[thread overview]
Message-ID: <4DB81F2E.4050802@pengutronix.de> (raw)
In-Reply-To: <02D6556ECE7A41859777EB7300D12394@hacdom.okisemi.com>

[-- Attachment #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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Marc Kleine-Budde <mkl-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
To: Tomoya MORINAGA <morinaga526-ECg8zkTtlr0C6LszWs/t0g@public.gmane.org>
Cc: socketcan-core-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org,
	netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	toshiharu-linux-ECg8zkTtlr0C6LszWs/t0g@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	'Wolfgang Grandegger'
	<wg-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
Subject: Re: Question for canutils
Date: Wed, 27 Apr 2011 15:50:38 +0200	[thread overview]
Message-ID: <4DB81F2E.4050802@pengutronix.de> (raw)
In-Reply-To: <02D6556ECE7A41859777EB7300D12394-c0cKtqp5df7I9507bXv2FdBPR1lH4CV8@public.gmane.org>


[-- 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

  reply	other threads:[~2011-04-27 13:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-27  8:36 Question for canutils Tomoya MORINAGA
2011-04-27 13:50 ` Marc Kleine-Budde [this message]
2011-04-27 13:50   ` Marc Kleine-Budde
2011-05-06  0:37   ` Tomoya MORINAGA
2011-05-06 23:58     ` Marc Kleine-Budde
2011-05-06 23:58       ` Marc Kleine-Budde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DB81F2E.4050802@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=morinaga526@dsn.okisemi.com \
    --cc=netdev@vger.kernel.org \
    --cc=socketcan-core@lists.berlios.de \
    --cc=toshiharu-linux@dsn.okisemi.com \
    --cc=wg@grandegger.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.