On 05/13/2011 02:40 AM, Jesse Dosher wrote: > Hi. I think I'm close to getting CAN up and running, but I'm having one > issue that I'm not sure how to correct: when I try to bring up the CAN > interface I get the error: cannot find device "can0". > > Here's a brief description of my system: > Versalogic Acelot Single Board Computer with an Intel Atom > Debian Linux with 2.6.38.4 kernel, CAN support enabled > Latest SocketCAN (as of May 12, 2011) > TS-CAN1 PC/104 CAN controller with SJA1000 (also have an MCP2515-based > board on SPI available) > > I'm able to load to all the following modules: can, can_dev, can_raw, > sja1000_platform, sja1000, tscan1 > > I've tried various things in /etc/network/interfaces but currently I have: > > auto can0 > iface can0 inet manual > up /usr/local/bin/ip link set can0 up txqueuelen 1000 type can bitrate > 1000000 > down /sbin/ifconfig $IFACE down > > When I run "ip link set can0 up type can bitrate 1000000" I get the > error about can0 not being found. > > ip -V returns: > ip utility, iproute2-ss100519 > > It seems that I'm missing some critical step or setup, or there's > something I'm not understanding. Any advice would be much appreciated!
When the tscan driver finds a device, it prints "TS-CAN1 at ...", which you should find in your kernel log (dmesg | grep "TS-CAN1 at"). If not, no CAN device has been registered. The TS-CAN1 has jumper to configure the I/O port which should be appropriate for your system (not in conflict with other devices in the ISA bus). Wolfgang. _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
