Hi, Usually, having the author of the driver you're interested in is a good idea.
On Sun, Dec 27, 2015 at 06:40:44AM -0800, [email protected] wrote: > Dears, > > this might be quiet an beginners/obvious issue, but I am struggeling > with this for over a week now. I tried adding support for the > sun4i-can on my 4.4.0-rc2 kernel on arch. It is an > A20-Olinuxino-Lime2 board. > > I build sun4i-can as a module, added the corresponding entries to > the dts(i) and am able to load the driver without any errors. > > [ 12.156533] No MAC Management Counters available > [ 604.004471] CAN device driver interface > [ 609.864871] can: controller area network core (rev 20120528 abi 9) > [ 609.871327] NET: Registered protocol family 29 > [ 616.216629] can: raw protocol (rev 20120528) > > But when I try using the device I get: > > [root@Idefix ~]# ls /sys/class/net/ > eth0 lo usb0 > > [root@Idefix ~]# ip link > 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode > DEFAULT group default > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > 2: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP > mode DEFAULT group default qlen 1000 > link/ether 66:41:e4:77:de:35 brd ff:ff:ff:ff:ff:ff > 3: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state > DOWN mode DEFAULT group default qlen 1000 > link/ether 02:58:07:40:ff:c5 brd ff:ff:ff:ff:ff:ff > > [root@Idefix ~]# ip link set can0 type can bitrate 125000 > Cannot find device "can0" > > I guess I am missing something essential here. Maybe you can advice > me on the right direction. Is there a way to get a bit more > information when loading the sun4i-can module? > > sun7i-a20.dtsi: http://pastebin.com/8MvV5afi > sun7i-a20-olinuxino-lime2: http://pastebin.com/zYfWKdvN It looks like there's a space between "allwinner," and "sun4i-a10-can" in sun7i-a20.dtsi, line 1376. Remove it, and let us know how it goes. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Digital signature
