linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* can-isotp-modules
@ 2015-11-03 22:29 Michael Luxen
  2015-11-04  6:59 ` can-isotp-modules Oliver Pajonk
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Luxen @ 2015-11-03 22:29 UTC (permalink / raw)
  To: Oliver Hartkopp; +Cc: linux-can@vger.kernel.org

Hello Oliver,

today I've tried to install can-isotp-modules on my BeagleBone Black by

1. git clone https://github.com/hartkopp/can-isotp-modules/
2. cd can-isotp-modules
3. make

The make process on my Debian Jessie 8.2 (uname -r: 4.1.6-ti-r16) powered BBB ends up with:

root@beaglebone:~/can-isotp-modules# make
make -C /lib/modules/4.1.6-ti-r16/build M=/root/can-isotp-modules modules TOPDIR=/root/can-isotp-modules
make[1]: Entering directory '/usr/src/linux-headers-4.1.6-ti-r16'
  CC [M]  /root/can-isotp-modules/drivers/net/can/vcan.o
In file included from include/linux/module.h:17:0,
                 from /root/can-isotp-modules/drivers/net/can/vcan.c:44:
/root/can-isotp-modules/drivers/net/can/vcan.c: In function '__check_echo':
include/linux/moduleparam.h:377:61: warning: return from incompatible pointer type
  static inline type __always_unused *__check_##name(void) { return(p); }
                                                             ^
include/linux/moduleparam.h:428:35: note: in expansion of macro '__param_check'
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
include/linux/moduleparam.h:145:2: note: in expansion of macro 'param_check_bool'
  param_check_##type(name, &(value));       \
  ^
include/linux/moduleparam.h:125:2: note: in expansion of macro 'module_param_named'
  module_param_named(name, name, type, perm)
  ^
/root/can-isotp-modules/drivers/net/can/vcan.c:91:1: note: in expansion of macro 'module_param'
 module_param(echo, bool, S_IRUGO);
 ^
  CC [M]  /root/can-isotp-modules/drivers/net/can/slcan.o
/root/can-isotp-modules/drivers/net/can/slcan.c:46:24: fatal error: asm/system.h: No such file or directory
 #include <asm/system.h>
                        ^
compilation terminated.
scripts/Makefile.build:264: recipe for target '/root/can-isotp-modules/drivers/net/can/slcan.o' failed
make[3]: *** [/root/can-isotp-modules/drivers/net/can/slcan.o] Error 1
scripts/Makefile.build:403: recipe for target '/root/can-isotp-modules/drivers/net/can' failed
make[2]: *** [/root/can-isotp-modules/drivers/net/can] Error 2
Makefile:1384: recipe for target '_module_/root/can-isotp-modules' failed
make[1]: *** [_module_/root/can-isotp-modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.1.6-ti-r16'
Makefile:42: recipe for target 'modules' failed
make: *** [modules] Error 2


Any idea/hint how to fix this issue?

Regards
Michael

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can-isotp-modules
  2015-11-03 22:29 can-isotp-modules Michael Luxen
@ 2015-11-04  6:59 ` Oliver Pajonk
  2015-11-04 10:06   ` can-isotp-modules Oliver Hartkopp
  0 siblings, 1 reply; 8+ messages in thread
From: Oliver Pajonk @ 2015-11-04  6:59 UTC (permalink / raw)
  To: Michael Luxen; +Cc: linux-can, linux-can-owner


Hi Michael,

I was struggeling to compile ISO-TP as well (on my Raspi), but then I 
found this script (it was mentioned in some other mailing list post):

https://github.com/hartkopp/can-isotp-modules/blob/master/net/can/make_isotp.sh

That worked just fine. Maybe it helps?

Best regards,
Oliver

On 2015-11-03 23:29, Michael Luxen wrote:
> Hello Oliver,
> 
> today I've tried to install can-isotp-modules on my BeagleBone Black by
> 
> 1. git clone https://github.com/hartkopp/can-isotp-modules/
> 2. cd can-isotp-modules
> 3. make
> 
> The make process on my Debian Jessie 8.2 (uname -r: 4.1.6-ti-r16)
> powered BBB ends up with:
> 
> root@beaglebone:~/can-isotp-modules# make
> make -C /lib/modules/4.1.6-ti-r16/build M=/root/can-isotp-modules
> modules TOPDIR=/root/can-isotp-modules
> make[1]: Entering directory '/usr/src/linux-headers-4.1.6-ti-r16'
>   CC [M]  /root/can-isotp-modules/drivers/net/can/vcan.o
> In file included from include/linux/module.h:17:0,
>                  from 
> /root/can-isotp-modules/drivers/net/can/vcan.c:44:
> /root/can-isotp-modules/drivers/net/can/vcan.c: In function 
> '__check_echo':
> include/linux/moduleparam.h:377:61: warning: return from incompatible
> pointer type
>   static inline type __always_unused *__check_##name(void) { return(p); 
> }
>                                                              ^
> include/linux/moduleparam.h:428:35: note: in expansion of macro 
> '__param_check'
>  #define param_check_bool(name, p) __param_check(name, p, bool)
>                                    ^
> include/linux/moduleparam.h:145:2: note: in expansion of macro
> 'param_check_bool'
>   param_check_##type(name, &(value));       \
>   ^
> include/linux/moduleparam.h:125:2: note: in expansion of macro
> 'module_param_named'
>   module_param_named(name, name, type, perm)
>   ^
> /root/can-isotp-modules/drivers/net/can/vcan.c:91:1: note: in
> expansion of macro 'module_param'
>  module_param(echo, bool, S_IRUGO);
>  ^
>   CC [M]  /root/can-isotp-modules/drivers/net/can/slcan.o
> /root/can-isotp-modules/drivers/net/can/slcan.c:46:24: fatal error:
> asm/system.h: No such file or directory
>  #include <asm/system.h>
>                         ^
> compilation terminated.
> scripts/Makefile.build:264: recipe for target
> '/root/can-isotp-modules/drivers/net/can/slcan.o' failed
> make[3]: *** [/root/can-isotp-modules/drivers/net/can/slcan.o] Error 1
> scripts/Makefile.build:403: recipe for target
> '/root/can-isotp-modules/drivers/net/can' failed
> make[2]: *** [/root/can-isotp-modules/drivers/net/can] Error 2
> Makefile:1384: recipe for target '_module_/root/can-isotp-modules' 
> failed
> make[1]: *** [_module_/root/can-isotp-modules] Error 2
> make[1]: Leaving directory '/usr/src/linux-headers-4.1.6-ti-r16'
> Makefile:42: recipe for target 'modules' failed
> make: *** [modules] Error 2
> 
> 
> Any idea/hint how to fix this issue?
> 
> Regards
> Michael
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can-isotp-modules
  2015-11-04  6:59 ` can-isotp-modules Oliver Pajonk
@ 2015-11-04 10:06   ` Oliver Hartkopp
  0 siblings, 0 replies; 8+ messages in thread
From: Oliver Hartkopp @ 2015-11-04 10:06 UTC (permalink / raw)
  To: Oliver Pajonk, Michael Luxen; +Cc: linux-can, linux-can-owner

Hi all,

Oliver is right! :-)

Instead of

1. git clone https://github.com/hartkopp/can-isotp-modules/
2. cd can-isotp-modules
3. make

just do

1. git clone https://github.com/hartkopp/can-isotp-modules/
2. cd can-isotp-modules/net/can
3. ./make_isotp.sh

which should create a can-isotp.ko module there.

When the PF_CAN infrastructure is loaded (modprobe can) an

	insmod ./can-isotp.ko

should make it.

Currently MAX_MSG_LENGTH is set to 8200 to be able to play with the new jumbo 
PDU length in ISO 15765-2:2015. For previous ISO versions MAX_MSG_LENGTH was 
set to 4095. N.B. take care for the isotp can-utils buffer length too when 
using jumbo PDU length there.

Regards,
Oliver

On 04.11.2015 07:59, Oliver Pajonk wrote:
>
> Hi Michael,
>
> I was struggeling to compile ISO-TP as well (on my Raspi), but then I found
> this script (it was mentioned in some other mailing list post):
>
> https://github.com/hartkopp/can-isotp-modules/blob/master/net/can/make_isotp.sh
>
> That worked just fine. Maybe it helps?
>
> Best regards,
> Oliver
>
> On 2015-11-03 23:29, Michael Luxen wrote:
>> Hello Oliver,
>>
>> today I've tried to install can-isotp-modules on my BeagleBone Black by
>>
>> 1. git clone https://github.com/hartkopp/can-isotp-modules/
>> 2. cd can-isotp-modules
>> 3. make
>>
>> The make process on my Debian Jessie 8.2 (uname -r: 4.1.6-ti-r16)
>> powered BBB ends up with:
>>
>> root@beaglebone:~/can-isotp-modules# make
>> make -C /lib/modules/4.1.6-ti-r16/build M=/root/can-isotp-modules
>> modules TOPDIR=/root/can-isotp-modules
>> make[1]: Entering directory '/usr/src/linux-headers-4.1.6-ti-r16'
>>   CC [M]  /root/can-isotp-modules/drivers/net/can/vcan.o
>> In file included from include/linux/module.h:17:0,
>>                  from /root/can-isotp-modules/drivers/net/can/vcan.c:44:
>> /root/can-isotp-modules/drivers/net/can/vcan.c: In function '__check_echo':
>> include/linux/moduleparam.h:377:61: warning: return from incompatible
>> pointer type
>>   static inline type __always_unused *__check_##name(void) { return(p); }
>>                                                              ^
>> include/linux/moduleparam.h:428:35: note: in expansion of macro '__param_check'
>>  #define param_check_bool(name, p) __param_check(name, p, bool)
>>                                    ^
>> include/linux/moduleparam.h:145:2: note: in expansion of macro
>> 'param_check_bool'
>>   param_check_##type(name, &(value));       \
>>   ^
>> include/linux/moduleparam.h:125:2: note: in expansion of macro
>> 'module_param_named'
>>   module_param_named(name, name, type, perm)
>>   ^
>> /root/can-isotp-modules/drivers/net/can/vcan.c:91:1: note: in
>> expansion of macro 'module_param'
>>  module_param(echo, bool, S_IRUGO);
>>  ^
>>   CC [M]  /root/can-isotp-modules/drivers/net/can/slcan.o
>> /root/can-isotp-modules/drivers/net/can/slcan.c:46:24: fatal error:
>> asm/system.h: No such file or directory
>>  #include <asm/system.h>
>>                         ^
>> compilation terminated.
>> scripts/Makefile.build:264: recipe for target
>> '/root/can-isotp-modules/drivers/net/can/slcan.o' failed
>> make[3]: *** [/root/can-isotp-modules/drivers/net/can/slcan.o] Error 1
>> scripts/Makefile.build:403: recipe for target
>> '/root/can-isotp-modules/drivers/net/can' failed
>> make[2]: *** [/root/can-isotp-modules/drivers/net/can] Error 2
>> Makefile:1384: recipe for target '_module_/root/can-isotp-modules' failed
>> make[1]: *** [_module_/root/can-isotp-modules] Error 2
>> make[1]: Leaving directory '/usr/src/linux-headers-4.1.6-ti-r16'
>> Makefile:42: recipe for target 'modules' failed
>> make: *** [modules] Error 2
>>
>>
>> Any idea/hint how to fix this issue?
>>
>> Regards
>> Michael
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-can" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* AW: can-isotp-modules
@ 2015-11-06  5:59 Michael Luxen
  2016-03-28  9:43 ` can-isotp-modules Patrick Menschel
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Luxen @ 2015-11-06  5:59 UTC (permalink / raw)
  To: Oliver Hartkopp
  Cc: linux-can@vger.kernel.org, linux-can-owner@vger.kernel.org

Hello Oliver,

one additional remark.
Not all preconditions are mentioned in your updated installation process.
On a fresh BBB Debian console image I've to install...

sudo apt-get install linux-headers-$(uname -r)

...before.

Regards
Michael

-----Ursprüngliche Nachricht-----
Von:	Oliver Hartkopp <socketcan@hartkopp.net>
Gesendet:	Mi 04.11.2015 19:33
Betreff:	Re: AW: can-isotp-modules
An:	Michael Luxen <mluxen@gmx.net>; Oliver Pajonk <oliver@pjnk.de>; 
CC:	linux-can-owner@vger.kernel.org; linux-can@vger.kernel.org; 
> On 04.11.2015 13:02, Michael Luxen wrote:
> 
> > @Oliver H.:
> > One proposal from myside, can you please add a can-isotp-module installation 
> process (like it is below) on the GITHUB webside.
> > It would be easier for some people (like me) to get the source code running 
> without asking. :-)
> 
> Done.
> 
> Don't know why I did not had that idea before m)
> 
> Thanks,
> Oliver
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can-isotp-modules
  2015-11-06  5:59 AW: can-isotp-modules Michael Luxen
@ 2016-03-28  9:43 ` Patrick Menschel
  2016-03-30 12:20   ` can-isotp-modules Oliver Hartkopp
  0 siblings, 1 reply; 8+ messages in thread
From: Patrick Menschel @ 2016-03-28  9:43 UTC (permalink / raw)
  To: Michael Luxen; +Cc: linux-can@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 1692 bytes --]

Hello Michael,

I'd like to ask if there are other preconditions about compiling isotp
on the bbb.

I recently purchased a bbb and I'm currently trying to compile modules for

4.1.15-ti-rt-r43

which is their latest debian 8 image.

All I get out of the compilation process are warnings and errors about

macro expensions and so on.

It is my first experience with the bbb though.

Thanks and Best Regards,
Patrick


Am 06.11.2015 um 06:59 schrieb Michael Luxen:
> Hello Oliver,
> 
> one additional remark.
> Not all preconditions are mentioned in your updated installation process.
> On a fresh BBB Debian console image I've to install...
> 
> sudo apt-get install linux-headers-$(uname -r)
> 
> ...before.
> 
> Regards
> Michael
> 
> -----Ursprüngliche Nachricht-----
> Von:	Oliver Hartkopp <socketcan@hartkopp.net>
> Gesendet:	Mi 04.11.2015 19:33
> Betreff:	Re: AW: can-isotp-modules
> An:	Michael Luxen <mluxen@gmx.net>; Oliver Pajonk <oliver@pjnk.de>; 
> CC:	linux-can-owner@vger.kernel.org; linux-can@vger.kernel.org; 
>> On 04.11.2015 13:02, Michael Luxen wrote:
>>
>>> @Oliver H.:
>>> One proposal from myside, can you please add a can-isotp-module installation 
>> process (like it is below) on the GITHUB webside.
>>> It would be easier for some people (like me) to get the source code running 
>> without asking. :-)
>>
>> Done.
>>
>> Don't know why I did not had that idea before m)
>>
>> Thanks,
>> Oliver
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 



[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3709 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can-isotp-modules
  2016-03-28  9:43 ` can-isotp-modules Patrick Menschel
@ 2016-03-30 12:20   ` Oliver Hartkopp
  2016-03-30 13:24     ` can-isotp-modules Patrick Menschel
  0 siblings, 1 reply; 8+ messages in thread
From: Oliver Hartkopp @ 2016-03-30 12:20 UTC (permalink / raw)
  To: Patrick Menschel, Michael Luxen; +Cc: linux-can@vger.kernel.org



On 03/28/2016 11:43 AM, Patrick Menschel wrote:
> Hello Michael,
>
> I'd like to ask if there are other preconditions about compiling isotp
> on the bbb.
>
> I recently purchased a bbb and I'm currently trying to compile modules for
>
> 4.1.15-ti-rt-r43

'-rt-' looks like 'real time'

Can you send the output of the warnings and errors?

Regards,
Oliver


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can-isotp-modules
  2016-03-30 12:20   ` can-isotp-modules Oliver Hartkopp
@ 2016-03-30 13:24     ` Patrick Menschel
  2016-03-30 14:54       ` can-isotp-modules Oliver Hartkopp
  0 siblings, 1 reply; 8+ messages in thread
From: Patrick Menschel @ 2016-03-30 13:24 UTC (permalink / raw)
  To: Oliver Hartkopp, Michael Luxen; +Cc: linux-can@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 1977 bytes --]

Am 30.03.2016 um 14:20 schrieb Oliver Hartkopp:
> 
> 
> On 03/28/2016 11:43 AM, Patrick Menschel wrote:
>> Hello Michael,
>>
>> I'd like to ask if there are other preconditions about compiling isotp
>> on the bbb.
>>
>> I recently purchased a bbb and I'm currently trying to compile modules
>> for
>>
>> 4.1.15-ti-rt-r43
> 
> '-rt-' looks like 'real time'
> 
> Can you send the output of the warnings and errors?

About 25000 lines with multiple occurrences of macro and null character
errors of this kind.

include/linux/export.h:1:1: warning: null character(s) ignored

include/linux/byteorder/generic.h:96:21: note: in expansion of macro
‘__be16_to_cpu’
#define be16_to_cpu __be16_to_cpu

looks almost the same as what Michael posted on 03.11.2015 23:29
> root@beaglebone:~/can-isotp-modules# make
> make -C /lib/modules/4.1.6-ti-r16/build M=/root/can-isotp-modules modules TOPDIR=/root/can-isotp-modules
> make[1]: Entering directory '/usr/src/linux-headers-4.1.6-ti-r16'
>   CC [M]  /root/can-isotp-modules/drivers/net/can/vcan.o
> In file included from include/linux/module.h:17:0,
>                  from /root/can-isotp-modules/drivers/net/can/vcan.c:44:
> /root/can-isotp-modules/drivers/net/can/vcan.c: In function '__check_echo':
> include/linux/moduleparam.h:377:61: warning: return from incompatible pointer type
>   static inline type __always_unused *__check_##name(void) { return(p); }
>                                                              ^
> include/linux/moduleparam.h:428:35: note: in expansion of macro '__param_check'
>  #define param_check_bool(name, p) __param_check(name, p, bool)
>                                    ^
> include/linux/moduleparam.h:145:2: note: in expansion of macro 'param_check_bool'
>   param_check_##type(name, &(value));       \
>   ^
> include/linux/moduleparam.h:125:2: note: in expansion of macro 'module_param_named'
>   module_param_named(name, name, type, perm)


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3709 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can-isotp-modules
  2016-03-30 13:24     ` can-isotp-modules Patrick Menschel
@ 2016-03-30 14:54       ` Oliver Hartkopp
  0 siblings, 0 replies; 8+ messages in thread
From: Oliver Hartkopp @ 2016-03-30 14:54 UTC (permalink / raw)
  To: Patrick Menschel, Michael Luxen; +Cc: linux-can@vger.kernel.org

On 03/30/2016 03:24 PM, Patrick Menschel wrote:

> looks almost the same as what Michael posted on 03.11.2015 23:29
>> root@beaglebone:~/can-isotp-modules# make
>> make -C /lib/modules/4.1.6-ti-r16/build M=/root/can-isotp-modules modules TOPDIR=/root/can-isotp-modules
>> make[1]: Entering directory '/usr/src/linux-headers-4.1.6-ti-r16'
>>    CC [M]  /root/can-isotp-modules/drivers/net/can/vcan.o

ok - got the problem:

You need to step down into

	/root/can-isotp-modules/net/can

and invoke

	./make_isotp.sh

there.

See README.isotp file.

Regards,
Oliver

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-03-30 14:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-06  5:59 AW: can-isotp-modules Michael Luxen
2016-03-28  9:43 ` can-isotp-modules Patrick Menschel
2016-03-30 12:20   ` can-isotp-modules Oliver Hartkopp
2016-03-30 13:24     ` can-isotp-modules Patrick Menschel
2016-03-30 14:54       ` can-isotp-modules Oliver Hartkopp
  -- strict thread matches above, loose matches on Subject: below --
2015-11-03 22:29 can-isotp-modules Michael Luxen
2015-11-04  6:59 ` can-isotp-modules Oliver Pajonk
2015-11-04 10:06   ` can-isotp-modules Oliver Hartkopp

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).