On 01/22/2011 08:34 PM, vislavie wrote: > Hi All! > > My first time that I work with CAN. The corresponding modules are > enabled in the kernel. > CAN0 device is not created. I find no indication in the log. > > Does anyone have an idea. > > Thanks in advance > Jochen > > > system arm kirkwood ubuntu 9.04 > kernel 2.6.35.7 > > # modprobe can > # modprobe can_dev > # modprobe can_raw > # modprobe mcp251x > # lsmod > Module Size Used by > mcp251x 8936 0 > can_raw 5631 0 > can_dev 7512 1 mcp251x > can 21670 1 can_raw > ipv6 269969 16 > lm75 3494 0 > hwmon 1547 1 lm75 > sg 17106 0 > hmac 2559 0 > sha1_generic 1861 0 > mv_cesa 9494 0 > > #dmesg | fgrep -i spi > [ 0.243226] bus: 'spi': registered > [ 0.243236] device class 'spi_master': registering > [ 0.245452] Registering platform device 'orion_spi.0'. Parent at platform > [ 0.245464] device: 'orion_spi.0': device_add > [ 0.245482] bus: 'platform': add device orion_spi.0 > [ 0.641819] bus: 'platform': add driver spi_gpio > [ 0.641949] bus: 'platform': remove driver spi_gpio > [ 0.642059] driver: 'spi_gpio': driver_release > [ 0.642143] bus: 'platform': add driver orion_spi > [ 0.642171] bus: 'platform': driver_probe_device: matched device > orion_spi.0 with driver orion_spi > [ 0.642186] bus: 'platform': really_probe: probing driver orion_spi > with device orion_spi.0 > [ 0.642216] device: 'spi0': device_add > [ 0.642353] orion_spi orion_spi.0: registered master spi0 > [ 0.642369] orion_spi orion_spi.0: cs7 >= max 1 > [ 0.646922] driver: 'orion_spi.0': driver_bound: bound to device > 'orion_spi' > [ 0.646934] bus: 'platform': really_probe: bound device orion_spi.0 > to driver orion_spi > [ 0.647063] device class 'spidev': registering > [ 0.647185] bus: 'spi': add driver spidev > [ 60.261929] bus: 'spi': add driver mcp251x > > #dmesg | fgrep -i can > [ 44.168787] can: controller area network core (rev 20090105 abi 8) > [ 46.963810] CAN device driver interface > [ 51.985386] can: raw protocol (rev 20090105)
Maybe the platform code for the MCP251x for your board is missing. Here is an example for the cpuimx51sd board: http://lxr.linux.no/#linux+v2.6.37/arch/arm/mach-mx5/board-cpuimx51sd.c#L234 Wolfgang. _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
