Hi,
To go on with fixing your issue, I would have liked to get your entire config of your kernel first.
Since you made a few mistakes in the commands you typed, it's really important that you do exactly what I request. Moreover, use text files instead of screenshots please and upload them through the below "Upload attachment" tab ...
1 - Please give us the text file "config.txt" created with:
Code: Select all
$ zcat /proc/config.gz > config.txt
If what you wrote is correct, the pcanusb0 dev node is automatically created by a running udev system, which ISNOT the case in the TFT201 environment described in the document that explains how to cross-compile for Android. Once again, I only imagine this, and having your Kernel config could confirm it.
Anyway, because udev seems running on your system, the "mknod" commands obviously fail (the pcansub0 /dev node already exists). The only difference is the access rights used to create that node: your udev default rights sets rw for root only. So you MUST be root (be sure to run "su" before) to read/write on that node.
Finally, according to
http://i.imgur.com/pwcDP8J.png, especially the below commands sequence:
Code: Select all
$ rm /dev/pcanusb0
$ echo "i 0x1c 0x03" > /dev/pcanusb0
- deletes the existing (and correct) device node created by udev
- creates a text file named "pcanusb0" under "/dev", which contains "i 0x1c 0x03", which obviously removes any further acces to the kernel device created by pcan.
To summarize, redo what I wrote in my previous e-mail, FROM the begining TO the end. Your last line shows a correct device node. So at this point, if you're root, you should be able to write commands to the device node. To be sure of that, when you have reached that last point, please do the followings next:
1 - be sure to be root:
(you should get soemthing like "uid=0(root) gid=0(root)")
2 - display the current pcan config to check if default bitrate (btr column) shows "0x001c" as default BTR value:
3 - to verify if your device node is ok, start changing the bitrate of the CAN interface, with the following command:
Code: Select all
$ echo "i 0x14 0x00" > /dev/pcanusb0
4 - check if the command worked by reading the pcan config again:
(the btr column should have changed with the 0x0014 value now)
Regards,
Stéphane