• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    I2C bus stopped working on Axon after apt upgrade

    Scheduled Pinned Locked Moved Axon series
    3 Posts 2 Posters 1.8k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • roberts_landoR
      roberts_lando
      last edited by roberts_lando

      After running apt-get update && apt-get upgrade axon kernel modules have been updated but i2c seems not working because /sys/bus/w1 is not present. How can I enable i2c? How can I fix this?

      Additional info:

      Seems i2c-dev module is not present

      unipi@S105-sn244:/etc/modules-load.d$ sudo modinfo i2c-dev
      modinfo: ERROR: Module i2c-dev not found.
      

      Manually loading the module also isn't working:

      unipi@S105-sn244:/etc/modules-load.d$ sudo modprobe i2c-dev
      unipi@S105-sn244:/etc/modules-load.d$ lsmod
      Module                  Size  Used by
      tun                    36864  2
      unipi                 102400  0
      industrialio           53248  1 unipi
      rtc_unipi              16384  0
      rtc_ds1307             24576  0
      at24                   20480  0
      

      Other tries:

      unipi@S105-sn244:~$ sudo fdtget /boot/sun50i-h5-unipi-axon.dtb /soc/i2c@01c2ac00 status
      okay
      unipi@S105-sn244:/sys/devices$ head /sys/firmware/devicetree/base/soc/i2c*/status
      ==> /sys/firmware/devicetree/base/soc/i2c@01c2ac00/status <==
      okay
      ==> /sys/firmware/devicetree/base/soc/i2c@01c2b000/status <==
      disabled
      ==> /sys/firmware/devicetree/base/soc/i2c@01c2b400/status <==
      okay
      ==> /sys/firmware/devicetree/base/soc/i2c@01f02400/status <==
      disabled
      unipi@S105-sn244:~$ ls /dev/i2c*                                               
      /dev/i2c-0  /dev/i2c-2
      unipi@S105-sn244:~$ i2cdetect -y 0
      -bash: i2cdetect: command not found
      unipi@S105-sn244:~$ sudo i2cdetect -y 0
           0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
      00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
      10: -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- -- 
      20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
      30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
      40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
      50: -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- -- 
      60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- UU 
      70: -- -- -- -- -- -- -- --                         
      unipi@S105-sn244:~$ ls /sys/devices/w1
      ls: cannot access '/sys/devices/w1': No such file or directory
      unipi@S105-sn244:~$ cd /sys/devices/
      unipi@S105-sn244:/sys/devices$ ls
      breakpoint  platform  software  system  virtual
      

      I2C seems working but something is wrong...

      1 Reply Last reply
      Reply Quote 0
      • roberts_landoR
        roberts_lando
        last edited by

        @administrators any news?

        1 Reply Last reply
        Reply Quote 0
        • T
          tomas_hora administrators
          last edited by

          The I2C is working as you can see in the output of the i2cdetect. However the ds2482 module is not loaded. You can load it on hand using

          modprobe ds2482
          

          and see if the address 0x18 in the i2cdetect will be marked with UU and you should see the list of connected 1wire devices in the /sys/bus/w1/devices/

          1 Reply Last reply
          Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post