-
Notifications
You must be signed in to change notification settings - Fork 42
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
OpenWrt master 运行出错 #10
Comments
已merge PR |
@NateLol https://github.com/NateLol/luci-app-oled/blob/master/src/I2C_Library/I2C.c#L271 |
ssh上去试试这个
看会不会出来 没有的话就有可能依赖没安全。 还可以去看是否有这个目录 |
没有 i2c-0,只找到了个 i2c-1
@NateLol 应该是我的依赖问题,我再看看 |
因为这个程序中是写死了的,一定要是 |
jayanta525 的 openwrt 的 kernel config 里一股脑把 i2c 驱动全选了,所以用着没问题。 我用的是 blocktrron 的 openwrt 编译时,需要手动添加 kmod-i2c-xxx |
Hi, I have same issue, and am using Raspberry Pi CM4 router board.
and I have already compile the kernel with selected
and what i need to add into the kernel ? Could you please help me out? |
For NanoPi R2S the following patch needs to be applied to activate i2c-0. Raspberry Pi CM4 may also require a similar patch. I don't know much about this issue either. I'm sorry that I can't be of more help to you. |
thanks for your tips, I have already change the test command to :
and it works.
and BTW, need to change the permission of the |
Good, thank you both @yoyojacky @fanck0605 for the effort and this great information. I am linking this in README for other Raspberry Pi CM4 users who might find it helpful. |
Thanks for your effort so that i can use your repo to build my custom router via Raspberry Pi CM4 module, it was so nice to have an oled 0.91 display on my router, thanks a lot ... |
For the Rpi4/CM4 using the bit-banged kmod-i2c-gpio driver I was seeing 1-2% CPU utilisation from the oled process. strace seemed to indicate this was during write to the driver - makes sense. I installed kmod-i2c-bcm2835 which is the pi hardware driver which also uses the same pins 2,3 and CPU dropped dramatically. To enable hardware I2C bus driver for the OLED display if using pins 2,3:
After reboot /dev/i2c-1 will be the hardware I2C bus not the bit banged GPIO driver. You should see a 1-2% CPU reduction. |
I have jdc ax6600 it has led TM1628A how to control it thank you |
自己用 OpenWrt master 的源码编译的,无法正常启动。
是不是依赖没装全,麻烦大佬看一下。
The text was updated successfully, but these errors were encountered: