-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get BusPirate to show up as i2c bus #1
Comments
Hmm, everything looks ok. You shouldn't need to recompile the kernel. Did you try running |
I'm actually running all commands as root so that wouldnt be the issue. |
I figured out one part of my puzzle : the module "i2c_dev" wasnt loaded. [21340.101273] buspirate: module loaded Any ideas ? |
Is there a way to see the output of dev_dbg( ) ? |
You could try setting |
Hi Tony,
If built your module as per your instructions except for 2 small variations ;
Everything compiles normally and I am able to load the module without any issues.
I can confirm that the buspirate is connected properly and working. I can manually set it to i2c mode via picocom and run a scan for addresses successfully.
If I run "ldattach BUSPIRATE /dev/ttyUSB0" everything seems to work correctly.
Howevever, if i then run "i2cdetect -l" , I get no output.
If I run "ldattach -d BUSPIRATE /dev/ttyUSB0" I get the following :
which seems correct.
But I still get no output out of "i2cdetect -l"
I was wondering : do I have to recompile my kernel with the changes to include/linux/tty.h (I dont think so... but I just want to make sure).
If that isnt the case, would you have any pointers as to what I might be doing wrong ? Is there anything I can do to troubleshoot this further ?
Thanks in advance
MadBeggar
The text was updated successfully, but these errors were encountered: