Please press Enter to activate this console.
[root@EmbedSky /]# i2c_rw
Writing 0x00-0xff into AT24C02
0000| ff fe fd fc fb fa f9 f8 f7 f6 f5 f4 f3 f2 f1 f0
0010| ef ee ed ec eb ea e9 e8 e7 e6 e5 e4 e3 e2 e1 e0
0020| df de dd dc db da d9 d8 d7 d6 d5 d4 d3 d2 d1 d0
0030| cf ce cd cc cb ca c9 c8 c7 c6 c5 c4 c3 c2 c1 c0
0040| bf be bd bc bb ba b9 s3c2440-i2c s3c2440-i2c: cannot get bus (error -110
)
s3c2440-i2c s3c2440-i2c: cannot get bus (error -110)
iic write erroriic write error !b8 s3c2440-i2c s3c2440-i2c: cannot get bus (erro
r -110)
s3c2440-i2c s3c2440-i2c: cannot get bus (error -110)
iic write erroriic write error ! b7 s3c2440-i2c s3c2440-i2c: cannot get bus (er
ror -110)
s3c2440-i2c s3c2440-i2c: cannot get bus (error -110)
iic write erroriic write error !b6 s3c2440-i2c s3c2440-i2c: cannot get bus (erro
r -110)
s3c2440-i2c s3c2440-i2c: cannot get bus (error -110)
iic write erroriic write error !b5 ^C
s3c2440-i2c s3c2440-i2c: cannot get bus (error -110)
s3c2440-i2c s3c2440-i2c: cannot get bus (error -110)
[root@EmbedSky /sbin]# i2c_rw
Writing 0x00-0xff into AT24C02
0000| ff fe fd fc fb fa f9 f8 f7 f6 f5 f4 f3 f2 f1 f0
0010| ef ee ed ec eb ea e9 e8 e7 e6 e5 e4 e3 e2 e1 e0
0020| df de dd dc iic write erroriic write error !db da d9 d8 d7 d6 d5 d4 d3
d2 d1 d0
0030| cf ce cd cc cb ca c9 c8 c7 c6 c5 c4 c3 c2 c1 c0
0040| bf be bd bc bb ba b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0050| af ae ad ac ab aa a9 iic write erroriic write error !a8 a7 a6 a5 a4 a3
a2 a1 a0
0060| 9f 9e 9d 9c 9b iic write erroriic write error !9a 99 98 97 96 95 94 93
92 91 90
0070| 8f 8e 8d 8c 8b 8a 89 88 87 86 85 84 83 82 81 80
0080| 7f 7e 7d 7c 7b 7a 79 78 77 76 75 74 73 72 71 70
0090| 6f 6e 6d 6c 6b 6a 69 68 67 66 65 64 63 62 61 60
00a0| 5f 5e 5d 5c 5b 5a 59 58 57 56 55 54 53 52 51 50
00b0| 4f 4e 4d 4c 4b 4a 49 48 47 46 45 44 43 42 41 40
00c0| 3f 3e 3d 3c 3b 3a 39 38 37 36 35 34 33 32 31 30
00d0| 2f 2e 2d 2c 2b 2a iic write erroriic write error !29 28 27 26 25 24 23
22 21 iic write erroriic write error !20
00e0| 1f 1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10
00f0| 0f 0e 0d 0c 0b 0a 09 08 07 06 05 04 03 02 01 00
Reading 256 bytes from 0x0
0000| ff 7f s3c2440-i2c s3c2440-i2c: cannot get bus (error -110)
s3c2440-i2c s3c2440-i2c: cannot get bus (error -110)
iic read error !ffffffff s3c2440-i2c s3c2440-i2c: cannot get bus (error -110)
s3c2440-i2c s3c2440-i2c: cannot get bus (error -110)
iic read error !ffffffff s3c2440-i2c s3c2440-i2c: cannot get bus (error -110)
^C
s3c2440-i2c s3c2440-i2c: cannot get bus (error -110)
Hi Admin, may i know is I2C driver only available from 2.6.30.4 and above?
Because i cannot issue command "i2c_rw" for 2.6.30.4 and lower.
Please advise
Has contained IIC drivers in Linux kernel. Uses i2c_rw is may carry on IIC reading and writes. Different versions' kernel IIC API is not too same, needs to revise i2c_rw according to the actual situation the sound code to adapt different versions kernel.