Hi Team,
My customer met some issue when installing the Linux driver for this device. Would you be able to find any clue in the snapshot below?
Thanks!
Roy
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Roy,
This typically happens due to the wrong order of loading the .ko files, and thus the dependencies for the files listed have not been loaded. You can inspect the kernel log using dmesg, inspect the loaded modules and it should tell you which symbols are unknown. From there, you can load the files in the correct order and it should work.
Regards,
Eric Hackett
Thanks, Eric. However, my customer is not sure about what the correct order is. Do you have a list of the .ko files required and the order my customer should follow? That would help my customer a lot!
Roy
Hi Roy,
Due to MLK weekend, please expect delayed responses until Tuesday, 1/17.
Regards,
Tyler
Hi Tyler,
Have you been able to look at this issue? Would it be convenient for you to have a conference call with my customer because I might not be doing a good job bridging you and the customer? This is the first DIN of the TCAN4550 at my customer so I'd like to make sure this issue can be solved timely.
Thanks!
Roy
Roy,
Unfortunately this driver was developed by a third party and direct support is difficult. Using the dmesg function and process of elimination should give the customer the order of files based on the error log showing which ones were missing. Does this make sense?
Regards,
Eric Hackett
Mattias,
Thanks for the help here.
Roy,
Please keep us updated on the customer's progress.
Regards,
Eric Hackett
Hi Eric,
The customer had some progress but is still having issue. Here are some screenshots. (I'm sorry but I don't really know what's going in these screenshots)
I will ask the customer to post their questions here directly from now on so that you can better understand their questions. Thanks for the support!
Roy
Roy,
Thank you for the information. As I said before, we don't have Linux experts in our group, so it will be difficult to support these configuration questions from our end. It looks like these are general setup issues though, so I will try my best to do some research and help out the customer. Thank you for your patience.
Regards,
Eric Hackett
Thanks, Eric. I have invited the customer to provide more detail by responding directly to the thread. Please try your best to help them out!
Thank you.
Roy
Hi Eric, I have some probelm
1. Does the tcan4x5x driver in linux kernel version 5.4.70 supports multiple tcan4550 device in multiple spi bus ?
2. Is there a lot difference of the optional GPIO setting between the tcan4x5x driver of the linux kernel version 5.4.70 and the linux kernel version 5.15.52 ?
Tony,
1. No, I don't believe the linux driver supports controlling multiple TCAN4550-Q1 devices.
2. Can you be more specific? What do you mean by differences between GPIO settings? All configurations for GPIO should be available in all versions of the driver.
Regards,
Eric Hackett
Hi Eric,
we're now facing an issue about linux tcan4x5x driver probed error in the linux kernel version 5.4.70.
In the device tree, we set up 2 tcan4x5x device, using same gpio as can_rst pin.
lpspi0 {
tcan4x5x@0 { # first device
...
reset-gpios = <A>;
};
};
lpspi1 {
tcan4x5x@0 { # second device
...
// reset-gpios =<A>;
};
};
I have changed wake gpio into optional, by comment the return -EINVAL
After this change, the first device can successfully be initialized, but the second device
1. add same reset gpio, driver probed failed with duplicate pin definition error.
2. comment the reset gpio, driver probed failed with null pointer error
But tcan4x5x driver in linux kernel version 5.15.52, using the same device tree setting(comment the reset gpio of device 2), without set up any device wake gpio, device state gpio and reset gpio, it works fine.
BR,
Tony