-
Notifications
You must be signed in to change notification settings - Fork 17
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
Question: i2c, spi & ethernet? #1
Comments
I updated to kernel 4.17.4 recently and will check if that is working. For the current Image, ethernet should be working. i2c and spi must be activated. Decompile the DTB and change status = "disabled"; to status = "okay"; |
Got it! Would sharing the new file be helpful? |
@peterberbec I have updated github but due to size constraint I pushed an SD CARD 8GB Image to mega, please use 7zip to unzip and flash it to SD CARD using etcher or win32diskimager. Link: https://mega.nz/#!obIAVQiA!G0CCABkLunCcG8hEqMf7NfjTBK1jgMytt2f0VdtOl08 |
I think I got it working by recompiling the dtb file. I currently have an i2c display working. I just have to figure spi out. I just don't have an spi-only device. |
OK. default: bpi-m2-zero.dtb -> bpi-m2-zero-v1.dtb_4.17.4-m2z In the final, they work very similarly and is hard to tell which one is best, unless you push the CPU to its limits. |
Whatever was current when I posted the issue, |
Is the DTB where I enable gpio support? |
I think for gpio you should use GPIO SYSFS userspace: |
You can resort to http://linux-sunxi.org/GPIO |
Again, thanks for the great build. I'm trying to get a https://github.com/PiSupply/PaPiRus working. It needs i2c and spi. I've recompiled the dtb file to enable both. I have an spi display to test. I've gotten an i2c display to work. Neither both the PaPiRus nor the spi display (simple ssd1306 - same as the i2c board) work. Is there something I should look at for testing SPI functionality? GPIO functionality should be easy - connect a volt meter and see if things light up when i set one as output and one as input. |
I had ssd1306 working with i2c-0 on the v2 build. Things you should check:
For the SPI LCD it is a way more complex, you need to make sure the pins you will be using are not shared or in use by another device, for example uart. You need to change the settings on the DTB. To check if you have wired the SPI LCD correctly i would suggest reading: And use https://github.com/bitbank2/SPI_LCD to check if it is working, it rescued me on the above case. |
Thanks for the help! I'll keep playing with SPI, but I2C works fine for me. My dream is getting that PaPiRus Zero to work, but that'll take crazy rewrites of the fuse library. |
Just wondering if this image supports i2c, spi and ethernet?
Thanks for all the work.
The text was updated successfully, but these errors were encountered: