Jump to content

Recommended Posts

Posted

Hi martinayotte 

I have question ! can you reply for me?

I can't use i2c in orangepi zero plus H5

My OS is Ubuntu

I heard you made your own style kernel so you can detect i2c pin

Can you share your method ? 

 

 

Posted

By default, I2C buses are not enabled in the main DT, except for the s_i2c .

To enable other i2C buses, you need to add overlays in the /boot/armbianEnv.txt

overlays=i2c0 i2c1 i2c2

Then, reboot. After you will have 4 buses in /dev/i2c-*.

You can then scan the buses with "i2cdetect -y n", where "n" is the bus number.

 

Posted

before i installed libi2c-dev, i2c-tools, python-smbus

anyway i tried add overlays but it's not work and the message is Could not open file '/dev/i2c-0' or '/dev/i2c/0': NO such file or directory 
i can't see i2cbuses

what should i do? 

Posted

BSD is not using DeviceTree DT, it is using FEX/BIN.

So, you will need to use bin2fex to decompile script.bin (after having done a backup first), edit the the resulting script.fex to enable I2C buses, and recompile using the fex2bin into script.bin.

 

But be aware that people on Armbian forum isn't inclined to give much support of builds that are not from Armbian, we consider BSD as crappy builds !

 

Posted
17 minutes ago, martinayotte said:

BSD is not using DeviceTree DT, it is using FEX/BIN.

 

3.10.x BSP kernel (A64 and H5) uses DT too, so editing the DT is required assuming I2C drivers and DT I2C nodes are correctly set up.

Posted

I must admit that I didn't verify which kernel was present in the above mentioned BSD image, file title doesn't mentioned kernel number, and I don't want to waste download just to figure out ... :P

Maybe @moonki123 could tell us by typing "uname -a" ...

 

Posted
15 hours ago, moonki123 said:

now i'm using Ubuntu16.04 OS download in Orangepi Site

 

The OS images you can download there are based on Allwinner's 3.10.65 BSP kernel (not BSD, that's something different). I wouldn't expect that anything exceeding basic functionality works there (on OPi PC 2 for example still no voltage regulation functioning with this BSP kernel since the guy doing all the work seems not to be able to figure out how).

 

In case you want to explore this stuff, take released schematics, get familiar with dtc (device-tree-compiler) and kernel configs and check what had to be done to get Pine64 BSD kernel ready for such stuff one year ago (it's the same kernel) eg. Martin's pull requests here: https://github.com/longsleep/linux-pine64/pull/17

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines