1 |
Hello. |
2 |
|
3 |
Installing sys-apps/i2c-tools with `python` USE flag will install smbus |
4 |
Python module so-called `python-smbus` in Debian. |
5 |
|
6 |
2014-11-02 16:54 GMT+09:00 <meino.cramer@×××.de>: |
7 |
|
8 |
> Dale <rdalek1967@×××××.com> [14-11-02 08:44]: |
9 |
> > meino.cramer@×××.de wrote: |
10 |
> > > Hi, |
11 |
> > > |
12 |
> > > Debain everywhere... |
13 |
> > > Ubuntu everywhere... |
14 |
> > > |
15 |
> > > "To use this library just do a apt-get build-essential, apt-get this |
16 |
> > > and apt-get that...your done". |
17 |
> > > |
18 |
> > > Hrrrmpppfff.... |
19 |
> > > |
20 |
> > > What the heck is "build-essential?" What's hidden behind it? |
21 |
> > > |
22 |
> > > I am currently facing a similiar problem: I am trying to get |
23 |
> > > a TFT display running. For using this library to access this TFT |
24 |
> > > one "only" needs to do a ...guess... "apt-get python smbus". |
25 |
> > > |
26 |
> > > Neither "smbus' nor "I2C" produces any match in the output of |
27 |
> > > eix... |
28 |
> > > |
29 |
> > > What's that package? Is it in Gentoo? |
30 |
> > > |
31 |
> > > Any help is very appreciated :) |
32 |
> > > |
33 |
> > > Best regards, |
34 |
> > > mcc |
35 |
> > > |
36 |
> > |
37 |
> > I2c is in the kernel. I use it to access my temps and such here. Just |
38 |
> > a small snippet: |
39 |
> > |
40 |
> > root@fireball / # zcat /proc/config.gz | grep -i i2c |
41 |
> > # CONFIG_BMP085_I2C is not set |
42 |
> > # CONFIG_SENSORS_LIS3_I2C is not set |
43 |
> > CONFIG_MOUSE_SYNAPTICS_I2C=y |
44 |
> > CONFIG_I2C=y |
45 |
> > CONFIG_I2C_BOARDINFO=y |
46 |
> > CONFIG_I2C_COMPAT=y |
47 |
> > CONFIG_I2C_CHARDEV=y |
48 |
> > # CONFIG_I2C_MUX is not set |
49 |
> > CONFIG_I2C_HELPER_AUTO=y |
50 |
> > CONFIG_I2C_ALGOBIT=y |
51 |
> > |
52 |
> > |
53 |
> > SMBUS I think is in the same category. From a search for smbus from |
54 |
> > within menuconfig: |
55 |
> > |
56 |
> > Symbol: I2C_SMBUS |
57 |
> > [=n] |
58 |
> > │ |
59 |
> > │ Type : |
60 |
> > tristate |
61 |
> > │ |
62 |
> > │ Prompt: SMBus-specific |
63 |
> > protocols |
64 |
> > │ |
65 |
> > │ |
66 |
> > Location: |
67 |
> > │ |
68 |
> > │ -> Device |
69 |
> > Drivers |
70 |
> > │ |
71 |
> > │ -> I2C support (I2C |
72 |
> > [=y]) |
73 |
> > │ |
74 |
> > │ (1) -> Autoselect pertinent helper modules (I2C_HELPER_AUTO |
75 |
> > [=y]) |
76 |
> > │ |
77 |
> > │ Defined at |
78 |
> > drivers/i2c/Kconfig:76 |
79 |
> > │ |
80 |
> > │ Depends on: I2C |
81 |
> > [=y] |
82 |
> > │ |
83 |
> > │ Selected by: I2C_PARPORT [=n] && I2C [=y] && HAS_IOMEM [=y] && |
84 |
> > PARPORT [=y] || I2C_PARPORT_LIGHT [=n] && I2C [=y] && HAS_IOMEM |
85 |
> > [=y] │ |
86 |
> > │ |
87 |
> > |
88 |
> > If I recall correctly, SMBUS and I2C work together on getting temps and |
89 |
> > fan speeds and such. |
90 |
> > |
91 |
> > Also, some folks use lm-sensors. I think it does the same but in user |
92 |
> > space instead of kernel space. That's my understanding anyway. |
93 |
> > |
94 |
> > Hope that helps. |
95 |
> > |
96 |
> > Dale |
97 |
> > |
98 |
> > :-) :-) |
99 |
> > |
100 |
> > |
101 |
> |
102 |
> Hi Dale, |
103 |
> |
104 |
> thanks for your informations... :) |
105 |
> |
106 |
> I did a typo...instead of |
107 |
> |
108 |
> "apt-get python smbus". |
109 |
> |
110 |
> it must be |
111 |
> |
112 |
> "apt-get python-smbus". |
113 |
> |
114 |
> |
115 |
> I am searching "python-smbus" for Gentoo. |
116 |
> The kernel configuration is already setup and ok. |
117 |
> |
118 |
> Do you the know the translation |
119 |
> |
120 |
> of "python-smbus" (Debian-speak) |
121 |
> |
122 |
> to ??? for Gentoo? |
123 |
> |
124 |
> Thank you very much in advance! |
125 |
> Best regards, |
126 |
> Meino |
127 |
> |
128 |
> |
129 |
> |
130 |
> |
131 |
|
132 |
|
133 |
-- |
134 |
Masanori Ogino <masanori.ogino@×××××.com> |
135 |
http://twitter.com/omasanori |
136 |
http://gplus.to/omasanori |