> -----Mensaje original-----
> De: Wolfgang Grandegger [mailto:[email protected]]
> Enviado el: Monday, February 28, 2011 1:10 PM
> Para: Jorge Fernandez Monteagudo
> CC: [email protected]
> Asunto: Re: [Socketcan-users] sja1000 can controller in a kernel 2.6.25
>
> On 02/28/2011 11:33 AM, Jorge Fernandez Monteagudo wrote:
> >> -----Mensaje original-----
> >> De: Wolfgang Grandegger [mailto:[email protected]]
> >> Enviado el: Friday, February 25, 2011 8:24 PM
> >> Para: Jorge Fernandez Monteagudo
> >> CC: [email protected]
> >> Asunto: Re: [Socketcan-users] sja1000 can controller in a kernel
> 2.6.25
> >>
> >> Hi,
> >>
> >> On 02/25/2011 03:00 PM, Jorge Fernandez Monteagudo wrote:
> >>> Hi all,
> >>>
> >>> I would like to know if there is some way to backport the sja1000
> >> driver to an old
> >>> kernel, the 2.6.25. I've found some basic can network architecture
> >> inside (the
> >>> drivers/net/can directory, only with vcan.c, the net/can directory)
> >> I've read
> >>> the initial sja1000 support was 2.6.31. Then, I'll need to add an
> >> interface
> >>> file in order to get access to the sja1000 because in my hardware
> is
> >> inside
> >>> a FPGA.
> >>
> >> The Socket-CAN-Version of the SVN-Repository at BerliOS [1,2]
> >> supports 2.6.25. I can easily be built out-of-tree.
> >>
> >> Wolfgang.
> >>
> >> [1] http://developer.berlios.de/projects/socketcan/
> >> [2] http://svn.berlios.de/wsvn/socketcan/trunk/README
> >
> >
> > Oops, it's seems there is some problems...
> >
> > # make KERNELDIR=/usr/src/linux-2.6.25
> > make -C /usr/src/linux-2.6.25 M=/opt/socketcan/kernel/2.6 modules
> TOPDIR=/opt/socketcan/kernel/2.6
> > make[1]: Entering directory `/usr/src/linux-2.6.25'
> >
> >   WARNING: Symbol version dump /usr/src/linux-2.6.25/Module.symvers
> >            is missing; modules will have no dependencies and
> modversions.
> >
> >   CC [M]  /opt/socketcan/kernel/2.6/drivers/net/can/vcan.o
> >   CC [M]  /opt/socketcan/kernel/2.6/drivers/net/can/slcan.o
> >   CC [M]  /opt/socketcan/kernel/2.6/drivers/net/can/dev.o
> >   LD [M]  /opt/socketcan/kernel/2.6/drivers/net/can/can-dev.o
> >   CC [M]  /opt/socketcan/kernel/2.6/drivers/net/can/esd_pci331.o
> >   CC [M]  /opt/socketcan/kernel/2.6/drivers/net/can/mcp251x.o
> >   CC [M]  /opt/socketcan/kernel/2.6/drivers/net/can/cc770/cc770.o
> >   CC [M]  /opt/socketcan/kernel/2.6/drivers/net/can/cc770/cc770_isa.o
> >   CC [M]  /opt/socketcan/kernel/2.6/drivers/net/can/sja1000/sja1000.o
> >   CC [M]
> /opt/socketcan/kernel/2.6/drivers/net/can/sja1000/sja1000_platform.o
> >
> /opt/socketcan/kernel/2.6/drivers/net/can/sja1000/sja1000_platform.c:38
> :2: error: #error This driver does not support Kernel versions < 2.6.27
> > /opt/socketcan/kernel/2.6/drivers/net/can/sja1000/sja1000_platform.c:
> In function ‘sp_probe’:
> >
> /opt/socketcan/kernel/2.6/drivers/net/can/sja1000/sja1000_platform.c:78
> : error: implicit declaration of function ‘resource_size’
> > make[4]: ***
> [/opt/socketcan/kernel/2.6/drivers/net/can/sja1000/sja1000_platform.o]
> Error 1
> > make[3]: *** [/opt/socketcan/kernel/2.6/drivers/net/can/sja1000]
> Error 2
> > make[2]: *** [/opt/socketcan/kernel/2.6/drivers/net/can] Error 2
> > make[1]: *** [_module_/opt/socketcan/kernel/2.6] Error 2
> > make[1]: Leaving directory `/usr/src/linux-2.6.25'
> > make: *** [modules] Error 2
>
> Not all drivers are supported for 2.6.25. Do you need the
> sja1000_platform driver. Just try building with "make -k" or adapt the
> default config in the Makefile.
>
> Wolfgang.

Yes, I've just commented out the export CONFIG_SJA1000_PLATFORM=m from
Makefile. Now, it just compile.

Jorge

Este mensaje se dirige exclusivamente a su destinatario y puede contener 
información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario indicado, 
queda notificado de que la utilización, divulgación y/o copia sin autorización 
está prohibida en virtud de la legislación vigente. Si ha recibido este mensaje 
por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y 
proceda a su destrucción.

This message is intended exclusively for its addressee and may contain 
information that is CONFIDENTIAL and protected by professional privilege.
If you are not the intended recipient you are hereby notified that any 
dissemination, copy or disclosure of this communication is strictly prohibited 
by law. If this message has been received in error, please immediately notify 
us via e-mail and delete it.
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to