Wolfgang Grandegger wrote:
> 
> Hi Michael,
> 
> On 11/15/2011 09:31 AM, Michael A. Purwoadi wrote:
>> 
>> Hi guys,
>> 
>> I would like to use the kernel module sja1000_isa for my PC/104 board 
>> Canpro/104 from ConnectTech. I use linux-2.6.20.18-rt8 on PXA 270. 
>> when insmod the module, there was an error below :
>> sja1000_isa: Unknown symbol alloc_sja1000dev
>> sja1000_isa: Unknown symbol register_sja1000dev                              
>>                                        
>> sja1000_isa: Unknown symbol free_sja1000dev                                  
>>                                        
>> sja1000_isa: Unknown symbol unregister_sja1000dev          
>> 
>> What file contains those routines ? I'd just made 
>> the module from sja1000_isa.c file. 
> 
> Hm, you are using a very old version of Linux and most likely it does
> not have CAN support, at least the mainline kernel doesn't. Then you
> need to build and load other kernel modules from our out-of-tree
> Socket-CAN repo, apart from sja1000.ko.
> 
> Anyway, I'm puzzled how you build *just* the sja1000_isa.ko module
> without all the others.
> 
> Wolfgang.
> 
> 

Hi Wolfgang,

Unfortunately, at this time, that old version I have on PXA270 board. 
Would you inform where can  I find the repository of Socket-CAN ?

I use a simple makefile below and put all necessary header files in its
respected place :
(Oh yes, sorry, I used also all header files /include/linux/can/dev.h -
error.h - netlink.h and
 /include/linux/can/platform/sja1000.h)

obj-m         :=sja1000_isa.o
KERNEL_SRC    :=/opt/src/linux-source-2.6.20.18-rt8
PWD           :=$(shell pwd)


default:
        $(MAKE) ARCH=arm CROSS_COMPILE=arm-linux- -C $(KERNEL_SRC) M=$(PWD) 
modules

It produces the sja1000_isa.ko with warnings mentionned in my first email.

Regards,
Michael

-- 
View this message in context: 
http://old.nabble.com/Info-request-about-sja1000_isa.c-tp32846177p32846456.html
Sent from the Socket-CAN Users mailing list archive at Nabble.com.

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

Reply via email to