Joshua-Riek / ubuntu-rockchip

Ubuntu for Rockchip RK35XX Devices
https://joshua-riek.github.io/ubuntu-rockchip-download/
GNU General Public License v3.0
2.22k stars 238 forks source link

Radxa Zero 3W - Enable i2c #891

Open PhilShaw852 opened 3 months ago

PhilShaw852 commented 3 months ago

Hi,

I am using the Radxa 3W 22.04 server image from here: https://joshua-riek.github.io/ubuntu-rockchip-download/boards/radxa-zero3.html

I can see the port with i2cdetect -y 3 but my device is not detected.

I have seen posts for editing the ubuntuEnv.txt file but cannot find it on this image. There is no file in /boot, nor is there a /firmware folder.

Any help would be much appreciated.

Manu7788 commented 3 months ago

https://github.com/Joshua-Riek/ubuntu-rockchip/wiki/Ubuntu-22.04-LTS

Joshua-Riek commented 3 months ago

Device tree overlays for RK3566 / RK3568 need to be added to the kernel.

chengguizi commented 2 months ago

To add on this, when I use debugger to get UART console log, I get:

[ 33.025641] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[ 33.158947] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[ 33.262334] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[ 33.405597] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[ 33.509006] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[ 33.642295] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[ 33.748912] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[ 33.892273] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[ 33.995635] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[ 34.128939] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1

May I know which overlays to apply to the kernel to fix this?

mikecarr commented 1 week ago

To add on this, when I use debugger to get UART console log, I get:

[ 33.025641] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1 [ 33.158947] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1 [ 33.262334] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1 [ 33.405597] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1 [ 33.509006] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1 [ 33.642295] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1 [ 33.748912] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1 [ 33.892273] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1 [ 33.995635] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1 [ 34.128939] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1

May I know which overlays to apply to the kernel to fix this?

Did you ever figure out what this is?

chengguizi commented 1 week ago

Not yet..