事象の水平線

個人的ブックマーク代わりなメモ書きブログ。 地球は丸いよ。↓このへん。

上記の広告は1ヶ月以上更新のないブログに表示されています。
新しい記事を書く事で広告が消せます。

PageTop
そこそこ手順が多いので、たんたんと行くです。

環境
CPU : Atom N2800 (Dual Core); 1.86 GHz オンチップ
M/B : intel DN2800MT \8,549 (送料込み)
RAM : ThinkPadのメモリ交換で余ったPC3-10700 2GB Samsung \priceless
HDD : ThinkPadのSSD換装で余った2.5inch500GB Hitachi HTS727550A9E364 \priceless
HDD : Western Digital WD30EZRX \10,480 楽天ポイント500 (送料込み)
電源 : HPノートPC用(あやしい)ACアダプター90W \1,500 (送料込み)
PT3 : FPGA更新済み \11,680 (送料込み)
ICカードリーダー : Gemalto GemPC Twin USB \1,180 (送料込み)
その他 : ケース、ケーブル、分波器、and so on ・・・手持ちを流用

OS : CentOS6.3 - 64bit \free
  ※LiveCDからインストール、アップデートせず、bootchart-0.9(java,ant)、sambaのみインストール済み
  英語環境でログインしてるのでログが英語です。(深い意味はないです)

---------------------------------------------------------------
NAS + PT3 サーバー                       新たな出費 \33,389-

<<追記>>
2週間弱24時間運用で消費電力を測ってみました。
録画は週に20時間位かな?http配信は日に4時間位?
ワットチェッカーで 7.17kw 308h  →  7.17kw/308h = 約23.3w
見ているとアイドル時はだいたい22w 録画等PT3が動いていると26w位まで上がるときもある


1:スマートカード関連の導入
参照 (詳細な説明はそちらで・・・)
『CentOSでホームサーバを作ろう』さんの『PT2を使って録画する(準備編)
『KENMARI-PC』さんの『CentOS6.1にアースソフトPT2をセットアップ

[root@localhost ~]# cd /usr/local/src ←ソースコードはここへ置くらしい
[root@localhost src]# yum install ccid pcsc-lite pcsc-lite-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
Setting up Install Process
Package pcsc-lite-1.5.2-7.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package ccid.x86_64 0:1.3.9-3.el6 will be installed
---> Package pcsc-lite-devel.x86_64 0:1.5.2-7.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
ccid x86_64 1.3.9-3.el6 base 120 k
pcsc-lite-devel x86_64 1.5.2-7.el6 base 19 k

Transaction Summary
================================================================================
Install 2 Package(s)

Total download size: 139 k
Installed size: 428 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): ccid-1.3.9-3.el6.x86_64.rpm | 120 kB 00:00
(2/2): pcsc-lite-devel-1.5.2-7.el6.x86_64.rpm | 19 kB 00:00
--------------------------------------------------------------------------------
Total 204 kB/s | 139 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : pcsc-lite-devel-1.5.2-7.el6.x86_64 1/2
Installing : ccid-1.3.9-3.el6.x86_64 2/2
Verifying : ccid-1.3.9-3.el6.x86_64 1/2
Verifying : pcsc-lite-devel-1.5.2-7.el6.x86_64 2/2

Installed:
ccid.x86_64 0:1.3.9-3.el6 pcsc-lite-devel.x86_64 0:1.5.2-7.el6

Complete!
[root@localhost src]# yum -y install pcsc-lite-libs
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 6011.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 35 M RSS (339 MB VSZ)
Started: Mon Sep 17 13:43:16 2012 - 00:03 ago
State : Sleeping, pid: 6011
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 35 M RSS (339 MB VSZ)
Started: Mon Sep 17 13:43:16 2012 - 00:05 ago
State : Sleeping, pid: 6011
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 35 M RSS (339 MB VSZ)
Started: Mon Sep 17 13:43:16 2012 - 00:07 ago
State : Sleeping, pid: 6011
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
Setting up Install Process
Package pcsc-lite-libs-1.5.2-7.el6.x86_64 already installed and latest version
Nothing to do
[root@localhost src]# yum -y install yum-priorities
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package yum-plugin-priorities.noarch 0:1.1.30-14.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
yum-plugin-priorities noarch 1.1.30-14.el6 base 22 k

Transaction Summary
================================================================================
Install 1 Package(s)

Total download size: 22 k
Installed size: 28 k
Downloading Packages:
yum-plugin-priorities-1.1.30-14.el6.noarch.rpm | 22 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : yum-plugin-priorities-1.1.30-14.el6.noarch 1/1
Verifying : yum-plugin-priorities-1.1.30-14.el6.noarch 1/1

Installed:
yum-plugin-priorities.noarch 0:1.1.30-14.el6

Complete!
[root@localhost src]# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
[root@localhost src]# wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
--2012-09-17 13:44:04-- http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Resolving dag.wieers.com... 188.40.111.73
Connecting to dag.wieers.com|188.40.111.73|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm [following]
--2012-09-17 13:44:05-- http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Resolving packages.sw.be... 78.46.17.228
Connecting to packages.sw.be|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm [following]
--2012-09-17 13:44:06-- http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Resolving pkgs.repoforge.org... 78.46.17.228
Connecting to pkgs.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://rpmforge.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm [following]
--2012-09-17 13:44:07-- http://rpmforge.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Resolving rpmforge.sw.be... 78.46.17.228
Connecting to rpmforge.sw.be|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://tree.repoforge.org/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm [following]
--2012-09-17 13:44:08-- http://tree.repoforge.org/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Resolving tree.repoforge.org... 78.46.17.228
Connecting to tree.repoforge.org|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm [following]
--2012-09-17 13:44:09-- http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Resolving apt.sw.be... 193.1.193.67
Connecting to apt.sw.be|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16697 (16K) [application/x-redhat-package-manager]
Saving to: “rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm”

100%[======================================>] 16,697 27.3K/s in 0.6s

2012-09-17 13:44:10 (27.3 KB/s) - “rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm” saved [16697/16697]

[root@localhost src]# rpm -ivh rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Preparing... ########################################### [100%]
1:rpmforge-release ########################################### [100%]
[root@localhost src]# sed -ie 's/enabled = [01]/enabled = 0/' /etc/yum.repos.d/rpmforge.repo
[root@localhost src]# yum install --enablerepo=rpmforge -y perl-Gtk2
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* rpmforge: mirror.fairway.ne.jp
* updates: ftp.nara.wide.ad.jp
rpmforge | 1.9 kB 00:00
rpmforge/primary_db | 6.9 MB 00:33
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-Gtk2.x86_64 0:1.221-1.el5.rf will be installed
--> Processing Dependency: perl(Glib) for package: perl-Gtk2-1.221-1.el5.rf.x86_64
--> Processing Dependency: perl(Test::More) for package: perl-Gtk2-1.221-1.el5.rf.x86_64
--> Processing Dependency: perl(Pango) for package: perl-Gtk2-1.221-1.el5.rf.x86_64
--> Running transaction check
---> Package perl-Glib.x86_64 0:1.222-1.el5.rf will be installed
--> Processing Dependency: perl(ExtUtils::MakeMaker) for package: perl-Glib-1.222-1.el5.rf.x86_64
---> Package perl-Pango.x86_64 0:1.221-1.el5.rf will be installed
---> Package perl-Test-Simple.noarch 0:0.98-1.el5.rf will be installed
--> Processing Dependency: perl(Test::Harness) >= 2.03 for package: perl-Test-Simple-0.98-1.el5.rf.noarch
--> Running transaction check
---> Package perl-ExtUtils-MakeMaker.x86_64 0:6.55-127.el6 will be installed
--> Processing Dependency: perl-devel for package: perl-ExtUtils-MakeMaker-6.55-127.el6.x86_64
---> Package perl-Test-Harness.noarch 0:3.22-1.el5.rf will be installed
--> Running transaction check
---> Package perl-devel.x86_64 4:5.10.1-127.el6 will be installed
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.10.1-127.el6.x86_64
--> Running transaction check
---> Package perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-127.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
perl-Gtk2 x86_64 1.221-1.el5.rf rpmforge 3.7 M
Installing for dependencies:
perl-ExtUtils-MakeMaker x86_64 6.55-127.el6 base 291 k
perl-ExtUtils-ParseXS x86_64 1:2.2003.0-127.el6 base 43 k
perl-Glib x86_64 1.222-1.el5.rf rpmforge 652 k
perl-Pango x86_64 1.221-1.el5.rf rpmforge 364 k
perl-Test-Harness noarch 3.22-1.el5.rf rpmforge 308 k
perl-Test-Simple noarch 0.98-1.el5.rf rpmforge 122 k
perl-devel x86_64 4:5.10.1-127.el6 base 421 k

Transaction Summary
================================================================================
Install 8 Package(s)

Total download size: 5.8 M
Installed size: 18 M
Downloading Packages:
(1/8): perl-ExtUtils-MakeMaker-6.55-127.el6.x86_64.rpm | 291 kB 00:00
(2/8): perl-ExtUtils-ParseXS-2.2003.0-127.el6.x86_64.rpm | 43 kB 00:00
(3/8): perl-Glib-1.222-1.el5.rf.x86_64.rpm | 652 kB 00:04
(4/8): perl-Gtk2-1.221-1.el5.rf.x86_64.rpm | 3.7 MB 00:25
(5/8): perl-Pango-1.221-1.el5.rf.x86_64.rpm | 364 kB 00:03
(6/8): perl-Test-Harness-3.22-1.el5.rf.noarch.rpm | 308 kB 00:02
(7/8): perl-Test-Simple-0.98-1.el5.rf.noarch.rpm | 122 kB 00:01
(8/8): perl-devel-5.10.1-127.el6.x86_64.rpm | 421 kB 00:00
--------------------------------------------------------------------------------
Total 151 kB/s | 5.8 MB 00:39
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : perl-Test-Harness-3.22-1.el5.rf.noarch 1/8
Installing : 1:perl-ExtUtils-ParseXS-2.2003.0-127.el6.x86_64 2/8
Installing : perl-ExtUtils-MakeMaker-6.55-127.el6.x86_64 3/8
Installing : 4:perl-devel-5.10.1-127.el6.x86_64 4/8
Installing : perl-Glib-1.222-1.el5.rf.x86_64 5/8
Installing : perl-Pango-1.221-1.el5.rf.x86_64 6/8
Installing : perl-Test-Simple-0.98-1.el5.rf.noarch 7/8
Installing : perl-Gtk2-1.221-1.el5.rf.x86_64 8/8
Verifying : 4:perl-devel-5.10.1-127.el6.x86_64 1/8
Verifying : perl-Glib-1.222-1.el5.rf.x86_64 2/8
Verifying : perl-Pango-1.221-1.el5.rf.x86_64 3/8
Verifying : perl-Test-Harness-3.22-1.el5.rf.noarch 4/8
Verifying : perl-Gtk2-1.221-1.el5.rf.x86_64 5/8
Verifying : 1:perl-ExtUtils-ParseXS-2.2003.0-127.el6.x86_64 6/8
Verifying : perl-Test-Simple-0.98-1.el5.rf.noarch 7/8
Verifying : perl-ExtUtils-MakeMaker-6.55-127.el6.x86_64 8/8

Installed:
perl-Gtk2.x86_64 0:1.221-1.el5.rf

Dependency Installed:
perl-ExtUtils-MakeMaker.x86_64 0:6.55-127.el6
perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-127.el6
perl-Glib.x86_64 0:1.222-1.el5.rf
perl-Pango.x86_64 0:1.221-1.el5.rf
perl-Test-Harness.noarch 0:3.22-1.el5.rf
perl-Test-Simple.noarch 0:0.98-1.el5.rf
perl-devel.x86_64 4:5.10.1-127.el6

Complete!
[root@localhost src]# wget ftp://ftp.kddlabs.co.jp/033/Linux/packages/fedora.archive/releases/13/Everything/x86_64/os/Packages/pcsc-perl-1.4.8-2.fc13.x86_64.rpm
--2012-09-17 13:47:12-- ftp://ftp.kddlabs.co.jp/033/Linux/packages/fedora.archive/releases/13/Everything/x86_64/os/Packages/pcsc-perl-1.4.8-2.fc13.x86_64.rpm
=> “pcsc-perl-1.4.8-2.fc13.x86_64.rpm”
Resolving ftp.kddlabs.co.jp... 192.26.91.193
Connecting to ftp.kddlabs.co.jp|192.26.91.193|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /033/Linux/packages/fedora.archive/releases/13/Everything/x86_64/os/Packages ... done.
==> SIZE pcsc-perl-1.4.8-2.fc13.x86_64.rpm ... 58312
==> PASV ... done. ==> RETR pcsc-perl-1.4.8-2.fc13.x86_64.rpm ... done.
Length: 58312 (57K) (unauthoritative)

100%[======================================>] 58,312 321K/s in 0.2s

2012-09-17 13:47:13 (321 KB/s) - “pcsc-perl-1.4.8-2.fc13.x86_64.rpm” saved [58312]

[root@localhost src]# wget ftp://ftp.kddlabs.co.jp/033/Linux/packages/fedora.archive/releases/13/Everything/x86_64/os/Packages/pcsc-tools-1.4.16-1.fc13.x86_64.rpm
--2012-09-17 13:47:26-- ftp://ftp.kddlabs.co.jp/033/Linux/packages/fedora.archive/releases/13/Everything/x86_64/os/Packages/pcsc-tools-1.4.16-1.fc13.x86_64.rpm
=> “pcsc-tools-1.4.16-1.fc13.x86_64.rpm”
Resolving ftp.kddlabs.co.jp... 192.26.91.193
Connecting to ftp.kddlabs.co.jp|192.26.91.193|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /033/Linux/packages/fedora.archive/releases/13/Everything/x86_64/os/Packages ... done.
==> SIZE pcsc-tools-1.4.16-1.fc13.x86_64.rpm ... 79524
==> PASV ... done. ==> RETR pcsc-tools-1.4.16-1.fc13.x86_64.rpm ... done.
Length: 79524 (78K) (unauthoritative)

100%[======================================>] 79,524 263K/s in 0.3s

2012-09-17 13:47:27 (263 KB/s) - “pcsc-tools-1.4.16-1.fc13.x86_64.rpm” saved [79524]

[root@localhost src]# rpm -ivh pcsc-perl-1.4.8-2.fc13.x86_64.rpm
warning: pcsc-perl-1.4.8-2.fc13.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID e8e40fde: NOKEY
Preparing... ########################################### [100%]
1:pcsc-perl ########################################### [100%]
[root@localhost src]# rpm -ivh pcsc-tools-1.4.16-1.fc13.x86_64.rpm
warning: pcsc-tools-1.4.16-1.fc13.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID e8e40fde: NOKEY
Preparing... ########################################### [100%]
1:pcsc-tools ########################################### [100%]
[root@localhost src]# /etc/init.d/pcscd start
Starting PC/SC smart card daemon (pcscd):     ←本来[ OK ]となるのかな?つなぎ忘れてたです。
ICカードリーダーをつないで、カードを入れて

[root@localhost src]# pcsc_scan
PC/SC device scanner
V 1.4.16 (c) 2001-2009, Ludovic Rousseau
Compiled with PC/SC lite version: 1.5.5
Scanning present readers...
0: Generic CCID Reader 00 00
~~省略~~
Japanese Chijou Digital B-CAS Card (pay TV)   ←こんなの出れば認識してます
^C    ←Ctrl + C で抜けます
[root@localhost src]#


※再起動するとカードを認識しなくなりました。
で、問題はopenctとかいうスマートカード用のdaemonが原因だった模様
2chの『Linuxでテレビ』のキャッシュで発見
以下10行程度は必須ではないです。再起動してカードを認識しない場合試してください。

[root@NAS ~]#  ←HOSTが変わっているのは工程のもっと後(HOSTを変えた後)で再起動したときのログだから
                深い意味はないです

[root@NAS ~]# pcsc_scan
PC/SC device scanner
V 1.4.16 (c) 2001-2009, Ludovic Rousseau
Compiled with PC/SC lite version: 1.5.5
Scanning present readers...  ←こんなことになって認識してない
Waiting for the first reader...
^C  ←Ctrl + C で抜ける
[root@NAS ~]# chkconfig openct off  ←openceの自動起動をoff
[root@NAS ~]# chkconfig --list |grep openct  ←自動起動の設定を確認
openct 0:off 1:off 2:off 3:off 4:off 5:off 6:off   ←どのランレベルでもoffでOK
[root@NAS ~]#




2:arib25のインストール
参照 (詳細な説明はそちらで・・・)
『Linux 開発日誌』さんの『PT3、UbuntuLinux12.04、epgrecで録画サーバを作る。

[root@localhost ~]# cd /usr/local/src
[root@localhost src]# wget http://hg.honeyplanet.jp/pt1/archive/c44e16dbb0e2.zip
--2012-09-17 13:51:06-- http://hg.honeyplanet.jp/pt1/archive/c44e16dbb0e2.zip
Resolving hg.honeyplanet.jp... 59.106.19.35
Connecting to hg.honeyplanet.jp|59.106.19.35|:80... connected.
HTTP request sent, awaiting response... 200 Script output follows
Length: unspecified [application/zip]
Saving to: “c44e16dbb0e2.zip”

[ <=> ] 94,776 594K/s in 0.2s

2012-09-17 13:51:07 (594 KB/s) - “c44e16dbb0e2.zip” saved [94776]

[root@localhost src]# unzip c44e16dbb0e2.zip
Archive: c44e16dbb0e2.zip
inflating: pt1-c44e16dbb0e2/.hg_archival.txt
inflating: pt1-c44e16dbb0e2/arib25/Makefile
inflating: pt1-c44e16dbb0e2/arib25/arib_std_b25.sln
inflating: pt1-c44e16dbb0e2/arib25/arib_std_b25.vcproj
inflating: pt1-c44e16dbb0e2/arib25/readme.txt
inflating: pt1-c44e16dbb0e2/arib25/src/Makefile
inflating: pt1-c44e16dbb0e2/arib25/src/arib_std_b25.c
inflating: pt1-c44e16dbb0e2/arib25/src/arib_std_b25.h
inflating: pt1-c44e16dbb0e2/arib25/src/arib_std_b25_error_code.h
inflating: pt1-c44e16dbb0e2/arib25/src/b_cas_card.c
inflating: pt1-c44e16dbb0e2/arib25/src/b_cas_card.h
inflating: pt1-c44e16dbb0e2/arib25/src/b_cas_card_error_code.h
inflating: pt1-c44e16dbb0e2/arib25/src/makefile.win
inflating: pt1-c44e16dbb0e2/arib25/src/multi2.c
inflating: pt1-c44e16dbb0e2/arib25/src/multi2.h
inflating: pt1-c44e16dbb0e2/arib25/src/multi2_error_code.h
inflating: pt1-c44e16dbb0e2/arib25/src/portable.h
inflating: pt1-c44e16dbb0e2/arib25/src/td.c
inflating: pt1-c44e16dbb0e2/arib25/src/ts_common_types.h
inflating: pt1-c44e16dbb0e2/arib25/src/ts_section_parser.c
inflating: pt1-c44e16dbb0e2/arib25/src/ts_section_parser.h
inflating: pt1-c44e16dbb0e2/arib25/src/ts_section_parser_error_code.h
inflating: pt1-c44e16dbb0e2/b25_docs/libccid_Info.plist
inflating: pt1-c44e16dbb0e2/b25_docs/readme.txt
inflating: pt1-c44e16dbb0e2/b25_docs/smartcard_list.txt
inflating: pt1-c44e16dbb0e2/driver/Makefile
inflating: pt1-c44e16dbb0e2/driver/etc/99-pt1.rules
inflating: pt1-c44e16dbb0e2/driver/pt1_com.h
inflating: pt1-c44e16dbb0e2/driver/pt1_i2c.c
inflating: pt1-c44e16dbb0e2/driver/pt1_i2c.h
inflating: pt1-c44e16dbb0e2/driver/pt1_ioctl.h
inflating: pt1-c44e16dbb0e2/driver/pt1_pci.c
inflating: pt1-c44e16dbb0e2/driver/pt1_pci.h
inflating: pt1-c44e16dbb0e2/driver/pt1_tuner.c
inflating: pt1-c44e16dbb0e2/driver/pt1_tuner.h
inflating: pt1-c44e16dbb0e2/driver/pt1_tuner_data.c
inflating: pt1-c44e16dbb0e2/driver/pt1_tuner_data.h
inflating: pt1-c44e16dbb0e2/recpt1/Makefile
inflating: pt1-c44e16dbb0e2/recpt1/channels/sample.recpt1-channels-chiba
inflating: pt1-c44e16dbb0e2/recpt1/channels/sample.recpt1-channels-kanazawa
inflating: pt1-c44e16dbb0e2/recpt1/channels/sample.recpt1-channels-nagoya
inflating: pt1-c44e16dbb0e2/recpt1/channels/sample.recpt1-channels-tokyo
inflating: pt1-c44e16dbb0e2/recpt1/decoder.c
inflating: pt1-c44e16dbb0e2/recpt1/decoder.h
inflating: pt1-c44e16dbb0e2/recpt1/mkpath.c
inflating: pt1-c44e16dbb0e2/recpt1/mkpath.h
inflating: pt1-c44e16dbb0e2/recpt1/recpt1.c
inflating: pt1-c44e16dbb0e2/recpt1/recpt1.h
[root@localhost src]# cd pt1-c44e16dbb0e2/arib25
[root@localhost arib25]# make
bash: make: command not found   ←おこられました。
[root@localhost arib25]# yum install -y make  ←適当に入れるです
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package make.x86_64 1:3.81-20.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
make x86_64 1:3.81-20.el6 base 389 k

Transaction Summary
================================================================================
Install 1 Package(s)

Total download size: 389 k
Installed size: 1.0 M
Downloading Packages:
make-3.81-20.el6.x86_64.rpm | 389 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : 1:make-3.81-20.el6.x86_64 1/1
Verifying : 1:make-3.81-20.el6.x86_64 1/1

Installed:
make.x86_64 1:3.81-20.el6

Complete!
[root@localhost arib25]# make
cd src; make all
make[1]: Entering directory `/usr/local/src/pt1-c44e16dbb0e2/arib25/src'
gcc -MM arib_std_b25.c b_cas_card.c multi2.c ts_section_parser.c -Wall `pkg-config libpcsclite --cflags` -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > Makefile.dep
/bin/sh: gcc: command not found
gcc -O2 -g -fPIC -Wall `pkg-config libpcsclite --cflags` -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o arib_std_b25.o arib_std_b25.c
/bin/sh: gcc: command not found     ←また怒られました
make[1]: *** [arib_std_b25.o] Error 127
make[1]: Leaving directory `/usr/local/src/pt1-c44e16dbb0e2/arib25/src'
make: *** [all] Error 2
[root@localhost arib25]# yum install -y gcc ←またおうむ返しで入れるです
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.6-4.el6 will be installed
--> Processing Dependency: cpp = 4.4.6-4.el6 for package: gcc-4.4.6-4.el6.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.6-4.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.6-4.el6.x86_64
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.6-4.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.6-4.el6.x86_64
---> Package glibc-devel.x86_64 0:2.12-1.80.el6_3.5 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.80.el6_3.5 for package: glibc-devel-2.12-1.80.el6_3.5.x86_64
--> Processing Dependency: glibc = 2.12-1.80.el6_3.5 for package: glibc-devel-2.12-1.80.el6_3.5.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.80.el6_3.5.x86_64
--> Running transaction check
---> Package glibc.x86_64 0:2.12-1.80.el6 will be updated
--> Processing Dependency: glibc = 2.12-1.80.el6 for package: glibc-common-2.12-1.80.el6.x86_64
---> Package glibc.x86_64 0:2.12-1.80.el6_3.5 will be an update
---> Package glibc-headers.x86_64 0:2.12-1.80.el6_3.5 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.80.el6_3.5.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.80.el6_3.5.x86_64
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Running transaction check
---> Package glibc-common.x86_64 0:2.12-1.80.el6 will be updated
---> Package glibc-common.x86_64 0:2.12-1.80.el6_3.5 will be an update
---> Package kernel-headers.x86_64 0:2.6.32-279.5.2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gcc x86_64 4.4.6-4.el6 base 10 M
Installing for dependencies:
cloog-ppl x86_64 0.15.7-1.2.el6 base 93 k
cpp x86_64 4.4.6-4.el6 base 3.7 M
glibc-devel x86_64 2.12-1.80.el6_3.5 updates 970 k
glibc-headers x86_64 2.12-1.80.el6_3.5 updates 601 k
kernel-headers x86_64 2.6.32-279.5.2.el6 updates 1.9 M
mpfr x86_64 2.4.1-6.el6 base 157 k
ppl x86_64 0.10.2-11.el6 base 1.3 M
Updating for dependencies:
glibc x86_64 2.12-1.80.el6_3.5 updates 3.8 M
glibc-common x86_64 2.12-1.80.el6_3.5 updates 14 M

Transaction Summary
================================================================================
Install 8 Package(s)
Upgrade 2 Package(s)

Total download size: 37 M
Downloading Packages:
(1/10): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm | 93 kB 00:00
(2/10): cpp-4.4.6-4.el6.x86_64.rpm | 3.7 MB 00:05
(3/10): gcc-4.4.6-4.el6.x86_64.rpm | 10 MB 00:13
(4/10): glibc-2.12-1.80.el6_3.5.x86_64.rpm | 3.8 MB 00:04
(5/10): glibc-common-2.12-1.80.el6_3.5.x86_64.rpm | 14 MB 00:18
(6/10): glibc-devel-2.12-1.80.el6_3.5.x86_64.rpm | 970 kB 00:01
(7/10): glibc-headers-2.12-1.80.el6_3.5.x86_64.rpm | 601 kB 00:00
(8/10): kernel-headers-2.6.32-279.5.2.el6.x86_64.rpm | 1.9 MB 00:02
(9/10): mpfr-2.4.1-6.el6.x86_64.rpm | 157 kB 00:00
(10/10): ppl-0.10.2-11.el6.x86_64.rpm | 1.3 MB 00:01
--------------------------------------------------------------------------------
Total 760 kB/s | 37 MB 00:49
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : glibc-common-2.12-1.80.el6_3.5.x86_64 1/12
Updating : glibc-2.12-1.80.el6_3.5.x86_64 2/12
Installing : mpfr-2.4.1-6.el6.x86_64 3/12
Installing : cpp-4.4.6-4.el6.x86_64 4/12
Installing : ppl-0.10.2-11.el6.x86_64 5/12
Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 6/12
Installing : kernel-headers-2.6.32-279.5.2.el6.x86_64 7/12
Installing : glibc-headers-2.12-1.80.el6_3.5.x86_64 8/12
Installing : glibc-devel-2.12-1.80.el6_3.5.x86_64 9/12
Installing : gcc-4.4.6-4.el6.x86_64 10/12
Cleanup : glibc-common-2.12-1.80.el6.x86_64 11/12
Cleanup : glibc-2.12-1.80.el6.x86_64 12/12
Verifying : glibc-devel-2.12-1.80.el6_3.5.x86_64 1/12
Verifying : glibc-headers-2.12-1.80.el6_3.5.x86_64 2/12
Verifying : gcc-4.4.6-4.el6.x86_64 3/12
Verifying : mpfr-2.4.1-6.el6.x86_64 4/12
Verifying : glibc-2.12-1.80.el6_3.5.x86_64 5/12
Verifying : glibc-common-2.12-1.80.el6_3.5.x86_64 6/12
Verifying : kernel-headers-2.6.32-279.5.2.el6.x86_64 7/12
Verifying : cpp-4.4.6-4.el6.x86_64 8/12
Verifying : ppl-0.10.2-11.el6.x86_64 9/12
Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 10/12
Verifying : glibc-2.12-1.80.el6.x86_64 11/12
Verifying : glibc-common-2.12-1.80.el6.x86_64 12/12

Installed:
gcc.x86_64 0:4.4.6-4.el6

Dependency Installed:
cloog-ppl.x86_64 0:0.15.7-1.2.el6
cpp.x86_64 0:4.4.6-4.el6
glibc-devel.x86_64 0:2.12-1.80.el6_3.5
glibc-headers.x86_64 0:2.12-1.80.el6_3.5
kernel-headers.x86_64 0:2.6.32-279.5.2.el6
mpfr.x86_64 0:2.4.1-6.el6
ppl.x86_64 0:0.10.2-11.el6

Dependency Updated:
glibc.x86_64 0:2.12-1.80.el6_3.5 glibc-common.x86_64 0:2.12-1.80.el6_3.5

Complete!
[root@localhost arib25]# make
cd src; make all
make[1]: Entering directory `/usr/local/src/pt1-c44e16dbb0e2/arib25/src'
gcc -O2 -g -fPIC -Wall `pkg-config libpcsclite --cflags` -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o arib_std_b25.o arib_std_b25.c
gcc -O2 -g -fPIC -Wall `pkg-config libpcsclite --cflags` -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o b_cas_card.o b_cas_card.c
gcc -O2 -g -fPIC -Wall `pkg-config libpcsclite --cflags` -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o multi2.o multi2.c
gcc -O2 -g -fPIC -Wall `pkg-config libpcsclite --cflags` -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o ts_section_parser.o ts_section_parser.c
gcc -O2 -g -fPIC -Wall `pkg-config libpcsclite --cflags` -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o td.o td.c
gcc -o b25 arib_std_b25.o b_cas_card.o multi2.o ts_section_parser.o td.o `pkg-config libpcsclite --libs` -lm
gcc -shared -o libarib25.so arib_std_b25.o b_cas_card.o multi2.o ts_section_parser.o `pkg-config libpcsclite --libs` -lm -Wl,-soname,libarib25.so.0
make[1]: Leaving directory `/usr/local/src/pt1-c44e16dbb0e2/arib25/src'
[root@localhost arib25]# make install
cd src; make install
make[1]: Entering directory `/usr/local/src/pt1-c44e16dbb0e2/arib25/src'
mkdir -p /usr/local/include/arib25
install -m644 arib_std_b25.h b_cas_card.h portable.h /usr/local/include/arib25
install -m755 b25 /usr/local/bin
install -m755 libarib25.so /usr/local/lib/libarib25.so.0.2.4
ln -sf /usr/local/lib/libarib25.so.0.2.4 /usr/local/lib/libarib25.so.0
ln -sf /usr/local/lib/libarib25.so.0 /usr/local/lib/libarib25.so
ldconfig
make[1]: Leaving directory `/usr/local/src/pt1-c44e16dbb0e2/arib25/src'
[root@localhost arib25]#



3:recpt1のインストール
参照 (詳細な説明はそちらで・・・)
『Linux 開発日誌』さんの『PT3、UbuntuLinux12.04、epgrecで録画サーバを作る。
『side=2のメモ帳』(wiki?)さんの『UbuntuでPT2を使う

ターミナルのスクロールバック制限をはずすのを忘れて最初のほうのログが欠けてます。

まず、wgetで取れないので(理解してないだけかも)『pt1-drv_20111001.tar.gz』は適当に検索してsourceforgeから落としてきて/usr/local/srcに入れといてください。(ぉぃ


[root@localhost arib25]# cd /usr/local/src
[root@localhost src]# tar -zxvf pt1-drv_20111001.tar.gz

[root@localhost src]# cd pt1-7662d0ecd74b/recpt1



/usr/local/src/pt1-7662d0ecd74b/recpt1/pt1_dev.h を geditで文字化けないようにエンコードを指定して(ECU-JPだったかな・・)で開いて、『pt1』を『pt3』に変えます。
/* -*- tab-width: 4; indent-tabs-mode: nil -*- */
#ifndef _PT1_DEV_H_
#define _PT1_DEV_H_

char *bsdev[NUM_BSDEV] = {
"/dev/pt3video1",
"/dev/pt3video0",
"/dev/pt3video5",
"/dev/pt3video4",
"/dev/pt3video9",
"/dev/pt3video8",
"/dev/pt3video13",
"/dev/pt3video12"
};
char *isdb_t_dev[NUM_ISDB_T_DEV] = {
"/dev/pt3video2",
"/dev/pt3video3",
"/dev/pt3video6",
"/dev/pt3video7",
"/dev/pt3video10",
"/dev/pt3video11",
"/dev/pt3video14",
"/dev/pt3video15"
};

~~以下略~~ ※文字化けてる場合この下が化けます。

変更したら、UTF-8で保存します。
※viで開いたら文字化けてたので、この方法でやりました。化けたままだとどうなるのかやってないので知らんす。
でも、化けてるのはコメントアウトの部分のみっぽいから化けても関係なさそうね;;



[root@localhost recpt1]# ./autogen.sh

You must have autoconf installed to compile recpt1.   ←怒られました
Get ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.62.tar.gz
(or a newer version if it is available)

You must have automake installed to compile recpt1.   ←怒られるのにも慣れっこです
Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.10.1.tar.gz
(or a newer version if it is available)
[root@localhost recpt1]# yum install -y autoconf   ←言われたので入れます
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
autoconf noarch 2.63-5.1.el6 base 781 k

Transaction Summary
================================================================================
Install 1 Package(s)

Total download size: 781 k
Installed size: 2.5 M
Downloading Packages:
autoconf-2.63-5.1.el6.noarch.rpm | 781 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : autoconf-2.63-5.1.el6.noarch 1/1
Verifying : autoconf-2.63-5.1.el6.noarch 1/1

Installed:
autoconf.noarch 0:2.63-5.1.el6

Complete!
[root@localhost recpt1]# yum install -y automake  ←律儀に一個ずつ入れてみました
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package automake.noarch 0:1.11.1-1.2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
automake noarch 1.11.1-1.2.el6 base 550 k

Transaction Summary
================================================================================
Install 1 Package(s)

Total download size: 550 k
Installed size: 1.5 M
Downloading Packages:
automake-1.11.1-1.2.el6.noarch.rpm | 550 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : automake-1.11.1-1.2.el6.noarch 1/1
Verifying : automake-1.11.1-1.2.el6.noarch 1/1

Installed:
automake.noarch 0:1.11.1-1.2.el6

Complete!
[root@localhost recpt1]# ./autogen.sh
Generating configure script and Makefiles for recpt1.
Running aclocal ...
Running autoheader ...
Running autoconf ...
[root@localhost recpt1]# ./configure -enable-b25
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for create_arib_std_b25 in -larib25... yes
checking for log10 in -lm... yes
checking for pthread_kill in -lpthread... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
[root@localhost recpt1]# make clean
rm -f recpt1.o decoder.o mkpath.o tssplitter_lite.o recpt1ctl.o checksignal.o recpt1 recpt1ctl checksignal .deps version.h
[root@localhost recpt1]# make
revh=`hg parents --template 'const char *version = "r{rev}:{node|short} ({date|shortdate})";\n' 2>/dev/null`; \
if [ -n "$revh" ] ; then \
echo "$revh" > version.h; \
else \
echo "const char *version = \""1.1.0"\";" > version.h; \
fi
gcc -MM recpt1.c decoder.c mkpath.c tssplitter_lite.c recpt1ctl.c -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > .deps
gcc -O2 -g -pthread -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o recpt1.o recpt1.c
gcc -O2 -g -pthread -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o decoder.o decoder.c
gcc -O2 -g -pthread -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o mkpath.o mkpath.c
gcc -O2 -g -pthread -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o tssplitter_lite.o tssplitter_lite.c
gcc -o recpt1 recpt1.o decoder.o mkpath.o tssplitter_lite.o -lpthread -lm -larib25
gcc -O2 -g -pthread -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o recpt1ctl.o recpt1ctl.c
gcc -o recpt1ctl recpt1ctl.o
gcc -O2 -g -pthread -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o checksignal.o checksignal.c
gcc -o checksignal checksignal.o -lpthread -lm
[root@localhost recpt1]# make install
install -m 755 recpt1 recpt1ctl checksignal /usr/local/bin
[root@localhost recpt1]#



4:PT3のドライバのインストール
参照 (詳細な説明はそちらで・・・)
『Linux 開発日誌』さんの『PT3、UbuntuLinux12.04、epgrecで録画サーバを作る。
『素人SEのめもめも』さんの『CentOS6にPT2を導入


[root@localhost ~]# echo "blacklist earth-pt1" >> /etc/modprobe.d/blacklist.conf
[root@localhost ~]# cd /usr/local/src
[root@localhost src]# git clone https://github.com/m-tsudo/pt3.git
bash: git: command not found      ←また忘れ物ですかぁ?
[root@localhost src]# yum install -y git  ←・・・・・
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.7.1-2.el6_0.1 will be installed
--> Processing Dependency: perl-Git = 1.7.1-2.el6_0.1 for package: git-1.7.1-2.el6_0.1.x86_64
--> Processing Dependency: perl(Git) for package: git-1.7.1-2.el6_0.1.x86_64
--> Processing Dependency: perl(Error) for package: git-1.7.1-2.el6_0.1.x86_64
--> Running transaction check
---> Package perl-Error.noarch 1:0.17015-4.el6 will be installed
---> Package perl-Git.noarch 0:1.7.1-2.el6_0.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
git x86_64 1.7.1-2.el6_0.1 base 4.6 M
Installing for dependencies:
perl-Error noarch 1:0.17015-4.el6 base 29 k
perl-Git noarch 1.7.1-2.el6_0.1 base 28 k

Transaction Summary
================================================================================
Install 3 Package(s)

Total download size: 4.7 M
Installed size: 15 M
Downloading Packages:
(1/3): git-1.7.1-2.el6_0.1.x86_64.rpm | 4.6 MB 00:06
(2/3): perl-Error-0.17015-4.el6.noarch.rpm | 29 kB 00:00
(3/3): perl-Git-1.7.1-2.el6_0.1.noarch.rpm | 28 kB 00:00
--------------------------------------------------------------------------------
Total 723 kB/s | 4.7 MB 00:06
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:perl-Error-0.17015-4.el6.noarch 1/3
Installing : git-1.7.1-2.el6_0.1.x86_64 2/3
Installing : perl-Git-1.7.1-2.el6_0.1.noarch 3/3
Verifying : perl-Git-1.7.1-2.el6_0.1.noarch 1/3
Verifying : git-1.7.1-2.el6_0.1.x86_64 2/3
Verifying : 1:perl-Error-0.17015-4.el6.noarch 3/3

Installed:
git.x86_64 0:1.7.1-2.el6_0.1

Dependency Installed:
perl-Error.noarch 1:0.17015-4.el6 perl-Git.noarch 0:1.7.1-2.el6_0.1

Complete!
[root@localhost src]# git clone https://github.com/m-tsudo/pt3.git
Initialized empty Git repository in /usr/local/src/pt3/.git/
remote: Counting objects: 530, done.
remote: Compressing objects: 100% (203/203), done.
remote: Total 530 (delta 386), reused 464 (delta 320)
Receiving objects: 100% (530/530), 132.68 KiB | 98 KiB/s, done.
Resolving deltas: 100% (386/386), done.
[root@localhost src]# cd pt3/
[root@localhost pt3]# make clean
make -C /lib/modules/`uname -r`/build M=`pwd` V=0 clean
make: *** /lib/modules/2.6.32-279.el6.x86_64/build: No such file or directory. Stop.
make: *** [clean] Error 2      ←よく怒られる子です
[root@localhost pt3]# yum install -y kernel-devel-`uname -r`
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kernel-devel.x86_64 0:2.6.32-279.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
kernel-devel x86_64 2.6.32-279.el6 base 7.6 M

Transaction Summary
================================================================================
Install 1 Package(s)

Total download size: 7.6 M
Installed size: 23 M
Downloading Packages:
kernel-devel-2.6.32-279.el6.x86_64.rpm | 7.6 MB 00:09
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : kernel-devel-2.6.32-279.el6.x86_64 1/1
Verifying : kernel-devel-2.6.32-279.el6.x86_64 1/1

Installed:
kernel-devel.x86_64 0:2.6.32-279.el6

Complete!
[root@localhost pt3]# make clean
make -C /lib/modules/`uname -r`/build M=`pwd` V=0 clean
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.el6.x86_64'
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.el6.x86_64'
[root@localhost pt3]# make
revh="#define DRV_VERSION \"rev.`git rev-list HEAD | wc -l 2> /dev/null`\"\n#define DRV_RELDATE \"`git show --date=short --format=%ad | sed -n '1p' 2> /dev/null`\""; \
if [ -n "$revh" ] ; then \
/bin/echo -e "$revh" > version.h; \
else \
printf "#define DRV_VERSION \""0.0.1"\"\n#define DRV_RELDATE \""2012-07-07"\"\n" > version.h; \
fi
make -C /lib/modules/`uname -r`/build M=`pwd` V=0 modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.el6.x86_64'
CC [M] /usr/local/src/pt3/pt3_pci.o
/usr/local/src/pt3/pt3_pci.c:846: warning: ‘pt3_compat_ioctl’ defined but not used
CC [M] /usr/local/src/pt3/pt3_bus.o
CC [M] /usr/local/src/pt3/pt3_i2c.o
CC [M] /usr/local/src/pt3/pt3_tc.o
CC [M] /usr/local/src/pt3/pt3_qm.o
CC [M] /usr/local/src/pt3/pt3_mx.o
CC [M] /usr/local/src/pt3/pt3_dma.o
/usr/local/src/pt3/pt3_dma.c:48:1: warning: "BLOCK_SIZE" redefined
In file included from include/trace/events/kmem.h:8,
from include/linux/kmemtrace.h:12,
from include/linux/slab_def.h:17,
from include/linux/slab.h:166,
from include/linux/percpu.h:5,
from /usr/src/kernels/2.6.32-279.el6.x86_64/arch/x86/include/asm/local.h:4,
from include/linux/module.h:20,
from /usr/local/src/pt3/pt3_dma.c:20:
include/linux/fs.h:30:1: warning: this is the location of the previous definition
LD [M] /usr/local/src/pt3/pt3_drv.o
Building modules, stage 2.
MODPOST 1 modules
CC /usr/local/src/pt3/pt3_drv.mod.o
LD [M] /usr/local/src/pt3/pt3_drv.ko.unsigned
NO SIGN [M] /usr/local/src/pt3/pt3_drv.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.el6.x86_64'
[root@localhost pt3]# make install
install -m 644 pt3_drv.ko /lib/modules/`uname -r`/kernel/drivers/video
if [ -d /etc/udev/rules.d -a ! -f /etc/udev/rules.d/99-pt3.rules ] ; then \
install -m 644 etc/99-pt3.rules /etc/udev/rules.d ; \
fi
depmod -a
[root@localhost pt3]#



※ここでHOSTとSambaを設定。でいったん再起動。
 次にテストのtsファイルを作るので、それをSambaのディレクトリを通してLan経由のPCから確認するため。
 先ほどのICカードリーダーの件も実際はここの再起動後にやった。



5:recpt1のテスト
参照 (詳細な説明はそちらで・・・)
『Linux 開発日誌』さんの『PT3、UbuntuLinux12.04、epgrecで録画サーバを作る。
『side=2のメモ帳』(wiki?)さんの『UbuntuでPT2を使う
『がんばります』さんの『PT2(1)ハード導入~録画テストまで


[root@NAS ~]# recpt1 --b25 --strip 27 10 /home/share/test.ts
recpt1: error while loading shared libraries: libarib25.so.0: cannot open shared object file: No such file or directory    ← orz
[root@NAS ~]# yum install -y ld-linux.so.2
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package glibc.i686 0:2.12-1.80.el6_3.5 will be installed
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.80.el6_3.5.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.80.el6_3.5.i686
--> Running transaction check
---> Package nss-softokn-freebl.i686 0:3.12.9-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
glibc i686 2.12-1.80.el6_3.5 updates 4.3 M
Installing for dependencies:
nss-softokn-freebl i686 3.12.9-11.el6 base 116 k

Transaction Summary
================================================================================
Install 2 Package(s)

Total download size: 4.4 M
Installed size: 13 M
Downloading Packages:
(1/2): glibc-2.12-1.80.el6_3.5.i686.rpm | 4.3 MB 00:08
(2/2): nss-softokn-freebl-3.12.9-11.el6.i686.rpm | 116 kB 00:00
--------------------------------------------------------------------------------
Total 507 kB/s | 4.4 MB 00:08
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : nss-softokn-freebl-3.12.9-11.el6.i686 1/2
Installing : glibc-2.12-1.80.el6_3.5.i686 2/2
Verifying : glibc-2.12-1.80.el6_3.5.i686 1/2
Verifying : nss-softokn-freebl-3.12.9-11.el6.i686 2/2

Installed:
glibc.i686 0:2.12-1.80.el6_3.5

Dependency Installed:
nss-softokn-freebl.i686 0:3.12.9-11.el6

Complete!
[root@NAS ~]# recpt1 --b25 --strip 27 10 /home/share/test.ts
recpt1: error while loading shared libraries: libarib25.so.0: cannot open shared object file: No such file or directory   ← o..rz
[root@NAS ~]# ldd /usr/local/bin/recpt1
linux-vdso.so.1 => (0x00007fffb4fff000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f829dbe4000)
libm.so.6 => /lib64/libm.so.6 (0x00007f829d960000)
libarib25.so.0 => not found  ←(´・ω・`)
libc.so.6 => /lib64/libc.so.6 (0x00007f829d5cc000)
/lib64/ld-linux-x86-64.so.2 (0x00007f829de0f000)
[root@NAS ~]# find /usr/ | grep libarib25.so.0
/usr/local/lib/libarib25.so.0
/usr/local/lib/libarib25.so.0.2.4
[root@NAS ~]# echo "/usr/local/lib" >> /etc/ld.so.conf
[root@NAS ~]# ldconfig
[root@NAS ~]# ldd /usr/local/bin/recpt1
linux-vdso.so.1 => (0x00007fff47fff000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f3630414000)
libm.so.6 => /lib64/libm.so.6 (0x00007f3630190000)
libarib25.so.0 => /usr/local/lib/libarib25.so.0 (0x00007f362ff87000) ←やったね
libc.so.6 => /lib64/libc.so.6 (0x00007f362fbf4000)
/lib64/ld-linux-x86-64.so.2 (0x00007f363063f000)
libpcsclite.so.1 => /usr/lib64/libpcsclite.so.1 (0x00007f362f9e8000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f362f7e3000)
[root@NAS ~]# recpt1 --b25 --strip 27 10 /home/share/test.ts
using B25...
enable B25 strip
pid = 2481
Cannot tune to the specified channel     ←あ、ど田舎は27は放送してないらしい
[root@NAS ~]# recpt1 --b25 --strip 13 10 /home/share/test.ts
using B25...
enable B25 strip
pid = 2485
C/N = 33.911813dB
Recording...        ←ヽ(=^・^=)ノ (^・^=ノ) ヽ(  )ノ (ヽ=^・^) 
Recorded 12sec

[root@NAS ~]#


以上で基本的な設定はおしまい。
まぁ、しばらくLinux触ってなかったし、まんまCentOS+PT3の人も見つからなく、どこまでPT3用にモデファイしていいのか分からず、かなり試行錯誤したんですけどね・・・・
しかし、先人がいなければまったく無理だったので、その方々に感謝
と、いうことで次は録画予約のアプリを入れるです。  つづく。。
スポンサーサイト

PageTop

コメント

 ※
 ※
管理者にだけ表示を許可する
  ※ 必須項目です

はじめましてlinuxド初心者のチョコと言います。早速ですが、"まず、wgetで取れないので(理解してないだけかも)『pt1-drv_20111001.tar.gz』は適当に検索してsourceforgeから落としてきて/usr/local/srcに入れといてください"のsrcへの入れ方がわからないので教えてもらえませんか?

チョコ | URL | 2013年03月02日(Sat)00:58 [EDIT]


Re: タイトルなし

> はじめましてlinuxド初心者のチョコと言います。早速ですが、"まず、wgetで取れないので(理解してないだけかも)『pt1-drv_20111001.tar.gz』は適当に検索してsourceforgeから落としてきて/usr/local/srcに入れといてください"のsrcへの入れ方がわからないので教えてもらえませんか?

どうも、チョコさん。
えーと、お使いのLinuxがCentOSなのかUbuntuなのかその他なのか分かりませんが、
>linuxド初心者
と言うことですので、おそらくライブCDからインストールしてGUI(分かりますよね?コマンドじゃなくマウスで動かす画面です)上でターミナル(端末)を立ち上げてコマンドを入れてると思いますが、そこの文章の意味は、(wgetのオプションを駆使して)コマンドでダウンロードする方法を(無知な私は)知らないから、GUIでFireFoxとかのブラウザから『pt1-drv_20111001.tar.gz』を検索して(記事上には一応検索へのリンク張ってますが)ダウンロードして、それをマウスで/usr/local/srcにドラッグドロップして入れてください。みたいな意味でした。
ちなみに、Linux上のFirefoxでダウンロードしたらFirefoxのツール>ダウンロードでダウンロードマネージャを開いて、ダウンロードしたファイルを右クリック>保存フォルダを開く で、ダウンロードしたフォルダが分かるので、それをマウスで移動するか、コマンドなら
$mv /download/file /usr/local/src
かな。
で、/usr/local/srcの場所(分かりますよね?GUIだとCentOSならコンピューターを開いてFileSystemを開いてusrを開いてlocalを開いてsrcを開いた場所)に入れてください。
それ以降はまたコマンドで進めるかな?
linuxは(オープンソースなので)自分で作っちゃう人が多くて、ツールにしてもバージョンや派生が色々あって、どれが自分に使えるのかワケワカメだったりで環境が違うと苦労することも多いですが、PT3で、特にOSも同じならば、おそらく書いてある通りでそこそこうまくいくと思いますよ。

stray_nora | URL | 2013年03月02日(Sat)22:52 [EDIT]


上記広告は1ヶ月以上更新のないブログに表示されています。新しい記事を書くことで広告を消せます。