Dstrm

i2c chmod

Feb 21st, 2019
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.22 KB | None | 0 0
  1. $ sudo chmod 777 /dev/i2c-0
  2. [sudo] password:
  3. $ i2cdetect 0
  4. WARNING! This program can confuse your I2C bus, cause data loss and worse!
  5. I will probe file /dev/i2c-0.
  6. I will probe address range 0x03-0x77.
  7. Continue? [Y/n] y
  8.      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
  9. 00:          -- -- -- -- -- 08 -- -- -- -- -- -- --
  10. 10: -- -- -- -- -- -- -- -- 18 -- 1a -- -- -- -- --
  11. 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
  12. 30: 30 31 -- -- 34 35 36 -- -- -- -- -- -- -- -- --
  13. 40: -- -- -- -- 44 -- -- -- -- -- -- -- -- -- -- --
  14. 50: 50 -- 52 -- -- -- -- -- 58 -- 5a -- -- -- -- --
  15. 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
  16. 70: -- -- -- -- -- -- -- --                        
  17. $ ls -la /dev/i2c-0
  18. crwxrwxrwx. 1 root root 89, 0 Feb 21 20:27 /dev/i2c-0
  19. $ i2cdetect -l
  20. i2c-3   unknown     NVIDIA i2c adapter 4 at 1:00.0      N/A
  21. i2c-1   unknown     NVIDIA i2c adapter 1 at 1:00.0      N/A
  22. i2c-6   unknown     NVIDIA i2c adapter 8 at 1:00.0      N/A
  23. i2c-4   unknown     NVIDIA i2c adapter 6 at 1:00.0      N/A
  24. i2c-2   unknown     NVIDIA i2c adapter 2 at 1:00.0      N/A
  25. i2c-0   smbus       SMBus I801 adapter at efa0          SMBus adapter
  26. i2c-7   unknown     NVIDIA i2c adapter 9 at 1:00.0      N/A
  27. i2c-5   unknown     NVIDIA i2c adapter 7 at 1:00.0      N/A
Advertisement
Add Comment
Please, Sign In to add comment