From mboxrd@z Thu Jan 1 00:00:00 1970 References: <171658328.6961247.1439915212899.JavaMail.yahoo@mail.yahoo.com> From: Philippe Gerum Message-ID: <55D36A9E.6030809@xenomai.org> Date: Tue, 18 Aug 2015 19:25:50 +0200 MIME-Version: 1.0 In-Reply-To: <171658328.6961247.1439915212899.JavaMail.yahoo@mail.yahoo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] xeno 3-rc7 : rtcanconfig fails to set baudrate List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Frederik Bayart , "xenomai@xenomai.org" On 08/18/2015 06:26 PM, Frederik Bayart wrote: > I have build xeno-3.0.rc7 with kernel 3.18.12. > I have a PEAK-PCIe CAN card in my system. > Drivers are loaded and rtcan0 en rtcan1 are created in /proc/rtcan. > > However, I'm not able to set the baudrate when I'm execute 'rtcanconfig rtcan0 -v -b 1000000 start' > > By adding debug statements in rtcanconfig, I found that ioctl(can_fd, SIOCSCANBAUDRATE, &u.ifr); fails, > > errno gives : SIOCSCANBAUDRATE(errno=19): No such device > > Below the output of rtcan0/info and xeno-config --info > > Any suggestions ? This error is documented, I would check ->ifr_name in the request block: http://www.xenomai.org/documentation/xenomai-3/html/xeno3prm/group__rtdm__can.html#ga7c070037c218b40de849ebf4d299f977 -- Philippe.