2009年12月24日

[vine-users:079864] Atomプロセッサのサポートについて

井上です。

昨日、自宅サーバのマシンを交換しZOTACのION-ITX-Fをベースに組みました。
新しすぎるせいかVine 5.0のlm-sensorsやcpuspeedは対応していません。

coretempとi2c-nforce2のソースをkernel 2.6.32のソースと見比べてみた
ところあまり変わってなかったのでドライバを作成してロードしてみました。
CPUの温度(coretemp)のほうはとれたようですが他の温度等(i2c-nforce2)は

まだとれていません。
(sensors.confの設定かもしれませんがまだ調べていません。追試します)

cpuspeedのほうはp4-clockmodのドライバを修正して対応してみました。
いちよう動作しているようです。
Atomプロセッサを使用している方いらっしゃいましたらテストしてみて
いただければと思います。

問題なければkernelの次回更新時に適用していただけませんでしょうか?

--
Masahiro INOUE <miyabi.-.inoue@xxxxx | miyabi.inoue@xxxxx>
GnuPG Fingerprint = 8D90 B3FF 59ED 421C 4BDC E20F E8FE 3733 9D04 E7AF

Content-Disposition: attachment;
filename="coretemp.c.patch"
Content-Transfer-Encoding: base64

LS0tIGNvcmV0ZW1wLmMub3JnCTIwMDktMTItMjQgMTQ6MTg6NDkuMDAwMDAwMDAwICswOTAwCisr
KyBjb3JldGVtcC5jCTIwMDktMTItMDMgMTI6NTE6MjIuMDAwMDAwMDAwICswOTAwCkBAIC0xNTcs
MTcgKzE1NywyNiBAQAogCS8qIFRoZSAxMDBDIGlzIGRlZmF1bHQgZm9yIGJvdGggbW9iaWxlIGFu
ZCBub24gbW9iaWxlIENQVXMgKi8KIAogCWludCB0am1heCA9IDEwMDAwMDsKLQlpbnQgaXNtb2Jp
bGUgPSAxOworCWludCB0am1heF9lZSA9IDg1MDAwOworCWludCB1c2Vtc3JfZWUgPSAxOwogCWlu
dCBlcnI7CiAJdTMyIGVheCwgZWR4OwogCiAJLyogRWFybHkgY2hpcHMgaGF2ZSBubyBNU1IgZm9y
IFRqTWF4ICovCiAKIAlpZiAoKGMtPng4Nl9tb2RlbCA9PSAweGYpICYmIChjLT54ODZfbWFzayA8
IDQpKSB7Ci0JCWlzb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IFNDIDY1bm0pLAorCQkgIDB4MTcgKFBlbnJ5biA0NW5tKSwgMHgx
YSAoTmVoYWxlbSksIDB4MWMgKEF0b20pLAorCQkgIDB4MWUgKEx5bm5maWVsZCkgKi8KIAkJaWYg
KChjLT5jcHVpZF9sZXZlbCA8IDApIHx8IChjLT54ODYgIT0gMHg2KSB8fAogCQkgICAgISgoYy0+
eDg2X21vZGVsID09IDB4ZSkgfHwgKGMtPng4Nl9tb2RlbCA9PSAweGYpIHx8CiAJCQkoYy0+eDg2
X21vZGVsID09IDB4MTYpIHx8IChjLT54ODZfbW9kZWwgPT0gMHgxNykgfHwKLQkJCShjLT54ODZf
bW9kZWwgPT0gMHgxQSkpKSB7CisJCQkoYy0+eDg2X21vZGVsID09IDB4MWEpIHx8IChjLT54ODZf
bW9kZWwgPT0gMHgxYykgfHwKKwkJCShjLT54ODZfbW9kZWwgPT0gMHgxZSkpKSB7CiAKIAkJCS8q
IHN1cHBvcnRlZCBDUFUgbm90IGZvdW5kLCBidXQgcmVwb3J0IHRoZSB1bmtub3duCiAJCQkgICBm
YW1pbHkgNiBDUFUgKi8K

Content-Disposition: attachment;
filename="p4-clockmod.c.patch"
Content-Transfer-Encoding: base64

LS0tIHA0LWNsb2NrbW9kLmMub3JnCTIwMDktMTItMjQgMTQ6MTM6MTIuMDAwMDAwMDAwICswOTAw
CisrKyBwNC1jbG9ja21vZC5jCTIwMDktMTItMjQgMTM6MzQ6MTMuMDAwMDAwMDAwICswOTAwCkBA
IC0xNjAsNiArMTYwLDggQEAKIAkJc3dpdGNoIChjLT54ODZfbW9kZWwpIHsKIAkJY2FzZSAweDBF
OiAvKiBDb3JlICovCiAJCWNhc2UgMHgwRjogLyogQ29yZSBEdW8gKi8KKwkJY2FzZSAweDE2OiAv
KiBDZWxlcm9uIENvcmUgKi8KKwkJY2FzZSAweDFDOiAvKiBBdG9tICovCiAJCQlwNGNsb2NrbW9k
X2RyaXZlci5mbGFncyB8PSBDUFVGUkVRX0NPTlNUX0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W
SURJQV9ORk9SQ0VfTUNQNjVfU01CVVMpIH0sCisJeyBQQ0lfREVWSUNFKFBDSV9WRU5ET1JfSURf
TlZJRElBLCBQQ0lfREVWSUNFX0lEX05WSURJQV9ORk9SQ0VfTUNQNjdfU01CVVMpIH0sCisJeyBQ
Q0lfREVWSUNFKFBDSV9WRU5ET1JfSURfTlZJRElBLCBQQ0lfREVWSUNFX0lEX05WSURJQV9ORk9S
Q0VfTUNQNzNfU01CVVMpIH0sCisJeyBQQ0lfREVWSUNFKFBDSV9WRU5ET1JfSURfTlZJRElBLCBQ
Q0lfREVWSUNFX0lEX05WSURJQV9ORk9SQ0VfTUNQNzhTX1NNQlVTKSB9LAorCXsgUENJX0RFVklD
RShQQ0lfVkVORE9SX0lEX05WSURJQSwgUENJX0RFVklDRV9JRF9OVklESUFfTkZPUkNFX01DUDc5
X1NNQlVTKSB9LAogCXsgMCB9CiB9OwogCkBAIC0zNTUsNyArMzY3LDYgQEAKIAkJcmV0dXJuIC1F
QlVTWTsKIAl9CiAJc21idXMtPmFkYXB0ZXIub3duZXIgPSBUSElTX01PRFVMRTsKLQlzbWJ1cy0+
YWRhcHRlci5pZCA9IEkyQ19IV19TTUJVU19ORk9SQ0UyOwogCXNtYnVzLT5hZGFwdGVyLmNsYXNz
ID0gSTJDX0NMQVNTX0hXTU9OIHwgSTJDX0NMQVNTX1NQRDsKIAlzbWJ1cy0+YWRhcHRlci5hbGdv
ID0gJnNtYnVzX2FsZ29yaXRobTsKIAlzbWJ1cy0+YWRhcHRlci5hbGdvX2RhdGEgPSBzbWJ1czsK

投稿者 xml-rpc : 2009年12月24日 14:35
役に立ちました?:
過去のフィードバック 平均:(0) 総合:(0) 投票回数:(0)
本記事へのTrackback: http://hoop.euqset.org/blog/mt-tb2006.cgi/91725
トラックバック
コメント
コメントする




画像の中に見える文字を入力してください。