[Bug 258994] iic(4): Panics on Nanopi Neo when using 16-bit device addressing width: panic: Assertion strlen(description) < MAX_W_NAME failed at ... sys/kern/subr_witness.c:1914
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 19 Oct 2021 07:39:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258994
alydiomc@yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #228624|0 |1
is obsolete| |
CC| |alydiomc@yahoo.com
--- Comment #8 from alydiomc@yahoo.com ---
Created attachment 228827
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=228827&action=edit
Added some improvements.
root@nanopi-neo:~/i2c # i2c -s /dev/iic0
Scanning I2C devices on /dev/iic0: 40 57 68
[8bit single write]
root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d w -o 0 -w 8 -c 1 -m tr <
00.hex
root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d r -o 0 -w 8 -c 1 -m tr
00
[8bit single write]
root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d w -o 0 -w 8 -c 1 -m tr <
20.hex
root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d r -o 0 -w 8 -c 1 -m tr
20
[8bit multiple write] Clear Registers from offset 5 to 1f [27 bytes]
root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d w -o 5 -w 8 -c 27 -m tr <
null.txt
[8bit multiple Read] Read Registers from offset 0 [48 bytes]
root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d r -o 0 -w 8 -c 48 -m tr
20 13 44 4c 46 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ff 10 00 00 00 10 00 00 00 10 00 00 00 10 00 00
[8bit multiple write] Fill Register from offset 5 to 1f [27 bytes]
root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d w -o 5 -w 8 -c 27 -m tr <
random.txt
root@nanopi-neo:~/i2c # i2c -a 40 -f /dev/iic0 -d r -o 0 -w 8 -c 48 -m tr
20 13 44 4c 46 7e 77 14 67 01 58 1c 2b 06 0e 17
69 10 1e 1f 2e 00 c6 16 0c 04 a2 04 3c 06 1e 11
ff 10 00 00 00 10 00 00 00 10 00 00 00 10 00 00
[16bit write] Clear eeprom data from offset 0 to 1F [32 bytes]
root@nanopi-neo:~/i2c # i2c -a 57 -f /dev/iic0 -d w -o 0 -w 16 -c 32 -m tr <
null.txt
[16bit Read] Read eeprom data from offset 0 [48 bytes]
root@nanopi-neo:~/i2c # i2c -a 57 -f /dev/iic0 -d r -o 0 -w 16 -c 48 -m tr
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f8 0c 00 00 02 04 00 05 34 00 20 00 08 00 28 00
[16bit write] Fill eeprom from offset 0, 32bytes
root@nanopi-neo:~/i2c # i2c -a 57 -f /dev/iic0 -d w -o 0 -w 16 -c 32 -m tr <
random.txt
root@nanopi-neo:~/i2c # i2c -a 57 -f /dev/iic0 -d r -o 0 -w 16 -c 48 -m tr
7e 77 b4 67 e1 58 1c 2b a6 0e d7 69 50 1e 9f 2e
a0 c6 76 0c 84 a2 a4 3c 66 1e 51 b4 10 f1 d8 60
f8 0c 00 00 02 04 00 05 34 00 20 00 08 00 28 00
--
You are receiving this mail because:
You are the assignee for the bug.