Hi,
Greetings everyone, since I'm new here.
I recently tried to make a CAN bus cape work with my Beaglebone, and I did, sort of, but ran in to a few strange things that I need to ask about.
I'm running the latest SDK (as far as I know) for Beaglebone downloaded from this website, version v05.05.01
The MLO, u-boot, kernel (uImage) and root-fs are built with buildroot.
Anyway my problem is that I have to explicitly in the code (attached file) force the CAN bus interface to be initialized. If I don't, no "can0" device will be seen when doing "ifconfig -a"
So I discovered that I get a timeout when the EEPROM on the CAN bus cape is about to be read (-110 is -ETIMEDOUT, from extra debug "hejdu5, ret:"):
[ 0.840362] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.905303] No daughter card found
[ 0.908874] hejdu5, ret: -110
[ 0.911895] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.927368] Board name: A335BONE
[ 0.930786] Board version: 00A3
So I looked at this code a bit more (in board-am335xevm.c) and to me it seems, even if the "product infomration" of the cape was succesfully read, it would not be used to trigger an intialization of the CAN bus interface, it will just be discarded (see the code snippet below):
if (!strncmp("A335BONE", config.name, 8))
{ daughter_brd_detected = false;
Further, it is evidently possible to read the "product information" from the base board, "A335BONE" and revision, is seen above, so the i2c communication seem to work, and my guess is that it is the same i2c bus going to the daughter board.
Now, I don't think I'm the first one in the world to put a CAN bus cape, or any other cape for that matter, on the Beaglebone, so what am I missing here ?
So my questions are:
- Is reading of "product information" from EEPROM's on cape's supposed to work ?
- Is the purpose to use this "product information" to initialize what ever things needs to be initialized if a cape is detected, like the call to am33xx_d_can_init() that has to be done for a CAN bus cape ?
Another person had a very similar problem in this post (Jun 27):
https://groups.google.com/forum/?fromgroups#!topic/beagleboard/ZP8IxIUqEUI
br Håkan