Hatena::ブログ(Diary)

kinneko@転職先募集中の日記

検索エンジンから来た方へ: 申し訳ないですが、日記なので日々積み重なっています。
目的の情報にたどり着くには、右の検索窓から日記内を再検索してください。
北陸エリア内(もしくはエリア外でも)で転職先を探しています。
(マジです。ネタではありません。ホントですって...)
詳細履歴書をご希望の方はメールでご連絡下さいませ。(kinneko at gmail.com)
chromeで見ると、死ぬほど出るGoogleの広告がブロックできないので、
firefoxでABPを入れるとすっきり見られます。

2012-02-07

[][] “We're Going to be Building Awesome Things” – Ubuntu TV Interview with Canonical's Will Cooke

http://www.omgubuntu.co.uk/2012/02/were-going-to-be-building-awesome-things-ubuntu-tv-interview-with-canonicals-will-cooke/

なんじゃこりゃ。

いいことしか書いてないじゃまいか。

2012-01-31

[][] Linaro 12.01のUbuntu-TV化

マウスポインタの残像はアップグレード後も残っている。

一旦ログアウトして、Unity2Dに切り替える。

2Dにすると、マウスポインタの残像は出なくなる。

dviで認識したからか、解像度は1280x1024になっている。

起動パラメータで渡さないと、スクエアディスプレイを認識しないのは直ったのだろうか?


スリープの抑制対処。


普通のUnityでは、ダッシュボードの定規とペンのアイコンは、アプリケーションのようだ。

書類アイコンがFilesだが、これはTVにはないな。


OMAP関係で、この時点でインストール済みのもの。

linaro@linaro-ubuntu-desktop:~$ dpkg -l | grep omap
ii  libegl1-sgx-omap4                      1.7.10.0.1.8-1linaro1                   PowerVR SGX540 EGL libraries for OMAP4
ii  libgles1-sgx-omap4                     1.7.10.0.1.8-1linaro1                   PowerVR SGX540 OpenGL|ES 1.x libraries for OMAP4
ii  libgles2-sgx-omap4                     1.7.10.0.1.8-1linaro1                   PowerVR SGX540 OpenGL|ES 2.x libraries for OMAP4
ii  libopenvg1-sgx-omap4                   1.7.10.0.1.8-1linaro1                   PowerVR SGX540 OVG libraries for OMAP4
ii  linux-headers-3.1.1-8-linaro-lt-omap   3.1.1-8.8~lt~ci~20120118001257+025756   Linux kernel headers for version 3.1.1 on TI OMAP[34]-based systems
ii  linux-headers-linaro-lt-omap           3.1.1.8.6                               Linux kernel headers for the OMAP architecture.
ii  linux-image-3.1.1-8-linaro-lt-omap     3.1.1-8.8~lt~ci~20120118001257+025756   Linux kernel image for version 3.1.1 on TI OMAP[34]-based systems
ii  linux-image-linaro-lt-omap             3.1.1.8.6                               Linux kernel image for the OMAP architecture.
ii  powervr-omap4-dkms                     1.7.10.0.1.1-1linaro1                   PowerVR SGX540 kernel module source code - dkms version
ii  pvr-omap4                              1.7.10.0.1.8-1linaro1                   PowerVR SGX540 libraries for OMAP4, remaining libs and binaries
ii  pvr-omap4-data                         1.7.10.0.1.8-1linaro1                   PowerVR SGX540 libraries for OMAP4, data files
ii  pvr-omap4-dkms                         1:1.7.10.0.1.1-1linaro1                 transitional package
ii  pvr-omap4-utils                        1.7.10.0.1.8-1linaro1                   PowerVR SGX540 utilities for OMAP4
ii  tiomap4-syslink-ipc-ducati-firmware    2.6.1+git20111110+f289b98f-0ubuntu1     Texas Instruments Ducati IPC Samples Firmware
ii  tiomap4-syslink-ipc-tesla-firmware     2.6.1+git20111110+f289b98f-0ubuntu1     Texas Instruments Tesla IPC Samples Firmware
ii  tiomap4-syslink-mm-ducati-firmware-dce 1.50.21.1+dce2+3                        Texas Instruments DCE Ducati Multimedia Firmware
ii  ubuntu-omap4-extras-config             1.30                                    This is the TI OMAP4 configuration package
ii  ubuntu-omap4-extras-graphics           1.0                                     Metapackage for TI OMAP4 Graphics drivers

gstreamer関係で、この時点でインストール済みのもの。

linaro@linaro-ubuntu-desktop:~$ dpkg -l | grep gstreamer
ii  bluez-gstreamer                        4.96-0ubuntu4linaro2                    Bluetooth GStreamer support
ii  gir1.2-gstreamer-0.10                  0.10.35-1+ti1.5.1.1+1                   Description: GObject introspection data for the GStreamer library
ii  gstreamer0.10-alsa                     0.10.35-1+ti1.5.1.1+1linaro1            GStreamer plugin for ALSA
ii  gstreamer0.10-ffmpeg                   0.10.12-1ubuntu1+ti2                    FFmpeg plugin for GStreamer
ii  gstreamer0.10-gconf                    0.10.30-1ubuntu7+ti1.5.1.1+2            GStreamer plugin for getting the sink/source information from GConf
ii  gstreamer0.10-nice                     0.1.0-2ubuntu1                          ICE library (GStreamer plugin)
ii  gstreamer0.10-plugins-base             0.10.35-1+ti1.5.1.1+1linaro1            GStreamer plugins from the "base" set
ii  gstreamer0.10-plugins-base-apps        0.10.35-1+ti1.5.1.1+1linaro1            GStreamer helper programs from the "base" set
ii  gstreamer0.10-plugins-good             0.10.30-1ubuntu7+ti1.5.1.1+2            GStreamer plugins from the "good" set
ii  gstreamer0.10-pulseaudio               0.10.30-1ubuntu7+ti1.5.1.1+2            GStreamer plugin for PulseAudio
ii  gstreamer0.10-tools                    0.10.35-1+ti1.5.1.1+1                   Tools for use with GStreamer
ii  gstreamer0.10-x                        0.10.35-1+ti1.5.1.1+1linaro1            GStreamer plugins for X11 and Pango
ii  libgstreamer-plugins-base0.10-0        0.10.35-1+ti1.5.1.1+1linaro1            GStreamer libraries from the "base" set
ii  libgstreamer0.10-0                     0.10.35-1+ti1.5.1.1+1                   Core GStreamer libraries and elements

ubuntu-omap4-extras-multimediaを追加すると、インストールされるもの。

 libfam0 (2.7.0-17 Ubuntu:11.10/oneiric [armel])
 libgnomevfs2-common (1:2.24.4-1ubuntu2linaro1 Linaro Overlay PPA:11.10/oneiric [all])
 libgnomevfs2-0 (1:2.24.4-1ubuntu2linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
 libsoundtouch0 (1.6.0-2 Ubuntu:11.10/oneiric [armel])
 libfaac0 (1.28-0ubuntu1 Ubuntu:11.10/oneiric [armel])
 faac (1.28-0ubuntu1 Ubuntu:11.10/oneiric [armel])
 freepats (20060219-1 Ubuntu:11.10/oneiric [all])
 gir1.2-gst-plugins-base-0.10 (0.10.35-1+ti1.5.1.1+1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
 gst-auto-launch (0.3.21-2 Linaro Overlay PPA:11.10/oneiric [armel])
 gstreamer-tools (0.10.35-1+ti1.5.1.1+1 Linaro Overlay PPA:11.10/oneiric [armel])
 gstreamer0.10-gnomevfs (0.10.35-1+ti1.5.1.1+1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
 libenca0 (1.13-4 Ubuntu:11.10/oneiric [armel])
 libass4 (0.9.13-1 Ubuntu:11.10/oneiric [armel])
 libcdaudio1 (0.99.12p2-10 Ubuntu:11.10/oneiric [armel])
 libcelt0-0 (0.7.1-1 Ubuntu:11.10/oneiric [armel])
 libdc1394-22 (2.1.3-4 Ubuntu:11.10/oneiric [armel])
 libdca0 (0.0.5-4 Ubuntu:11.10/oneiric [armel])
 libdirac-encoder0 (1.0.2-4 Ubuntu:11.10/oneiric [armel])
 tsconf (1.0-9 Ubuntu:11.10/oneiric [all])
 libts-0.0-0 (1.0-9 Ubuntu:11.10/oneiric [armel])
 libdirectfb-1.2-9 (1.2.10.0-4ubuntu3 Ubuntu:11.10/oneiric [armel])
 libdvdread4 (4.1.3-10ubuntu4.1 Ubuntu:11.10/oneiric-updates [armel])
 libdvdnav4 (4.1.3-7 Ubuntu:11.10/oneiric [armel])
 libfaad2 (2.7-6ubuntu1 Ubuntu:11.10/oneiric [armel])
 libflite1 (1.4-release-2 Ubuntu:11.10/oneiric [armel])
 libgme0 (0.5.5-2 Ubuntu:11.10/oneiric [armel])
 libgsm1 (1.0.13-3 Ubuntu:11.10/oneiric [armel])
 libkate1 (0.3.8-1 Ubuntu:11.10/oneiric [armel])
 libmimic0 (1.0.4-2.1 Ubuntu:11.10/oneiric [armel])
 libmms0 (0.6.2-2 Ubuntu:11.10/oneiric [armel])
 libmodplug1 (1:0.8.8.2-3ubuntu1.1 Ubuntu:11.10/oneiric-security [armel])
 libmpcdec6 (2:0.1~r459-1ubuntu1 Ubuntu:11.10/oneiric [armel])
 libmusicbrainz4c2a (2.1.5-6 Ubuntu:11.10/oneiric [armel])
 libfftw3-3 (3.2.2-1ubuntu2 Ubuntu:11.10/oneiric [armel])
 libofa0 (0.9.3-3.1 Ubuntu:11.10/oneiric [armel])
 libschroedinger-1.0-0 (1.0.10-2.1 Ubuntu:11.10/oneiric [armel])
 libyajl1 (1.0.12-0ubuntu2 Ubuntu:11.10/oneiric [armel])
 libraptor2-0 (2.0.4-1 Ubuntu:11.10/oneiric [armel])
 libmhash2 (0.9.9.9-1 Ubuntu:11.10/oneiric [armel])
 librasqal3 (0.9.26-1 Ubuntu:11.10/oneiric [armel])
 librdf0 (1.0.13-3 Ubuntu:11.10/oneiric [armel])
 libslv2-9 (0.6.6-9 Ubuntu:11.10/oneiric [armel])
 libwildmidi1 (0.2.3.4-1 Ubuntu:11.10/oneiric [armel])
 libzbar0 (0.10+doc-7 Ubuntu:11.10/oneiric [armel])
 gstreamer0.10-plugins-bad (0.10.22-2ubuntu4+ti1.5.1.5+3 Linaro Overlay PPA:11.10/oneiric [armel])
 libdce0 (1.5.3.1-1 Linaro Overlay PPA:11.10/oneiric [armel])
 gstreamer0.10-plugin-ducati (1.5.3.13+git20120124+8152900-1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
 liba52-0.7.4 (0.7.4-16 Ubuntu:11.10/oneiric [armel])
 libid3tag0 (0.15.1b-10build2 Ubuntu:11.10/oneiric [armel])
 libmad0 (0.15.1b-5ubuntu1 Ubuntu:11.10/oneiric [armel])
 libmp3lame0 (3.98.4-0ubuntu1 Ubuntu:11.10/oneiric [armel])
 libmpeg2-4 (0.4.1-3 Ubuntu:11.10/oneiric [armel])
 libopencore-amrnb0 (0.1.2-1 Ubuntu:11.10/oneiric [armel])
 libopencore-amrwb0 (0.1.2-1 Ubuntu:11.10/oneiric [armel])
 libsidplay1 (1.36.59-5 Ubuntu:11.10/oneiric [armel])
 libtwolame0 (0.3.13-1 Ubuntu:11.10/oneiric [armel])
 libx264-116 (2:0.116.2042+git178455c-1ubuntu1 Ubuntu:11.10/oneiric [armel])
 gstreamer0.10-plugins-ugly (0.10.18-3ubuntu1 Ubuntu:11.10/oneiric [armel])
 libgnomevfs2-extra (1:2.24.4-1ubuntu2linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
 gstreamer0.10-faac (0.10.22-2ubuntu4+ti1.5.1.5+3 Linaro Overlay PPA:11.10/oneiric [armel])
 gstreamer0.10-sdl (0.10.22-2ubuntu4+ti1.5.1.5+3 Linaro Overlay PPA:11.10/oneiric [armel])
 ubuntu-omap4-extras-multimedia (1.1 Linaro Overlay PPA:11.10/oneiric [all])

前と違って、faacが普通に提供されている。

入れる。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get install ubuntu-omap4-extras-multimedia

unity-lens-videoパッケージを追加。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get install unity-lens-video
(snip)
Setting up unity-lens-video (0.5+51+201201160324~oneiric1) ...

これは変わってないみたい。


ビルド環境の用意。

依存関係でlibegl1-sgx-omap4とlibgles2-sgx-omap4が消されないように、libegl1-sgx-omap4-dev libgles2-sgx-omap4-devパッケージを追加して抑制。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get install libegl1-sgx-omap4-dev libgles2-sgx-omap4-dev

入ったもの。

libegl1-sgx-omap4-dev armel 1.7.10.0.1.8-1linaro1 [18.9 kB]
libpthread-stubs0 armel 0.3-2.1 [3292 B]
libpthread-stubs0-dev armel 0.3-2.1 [2426 B]
xorg-sgml-doctools armel 1:1.8-2 [10.9 kB]
libgles2-sgx-omap4-dev armel 1.7.10.0.1.8-1linaro1 [22.7 kB]
x11proto-core-dev armel 7.0.22-1 [299 kB]
libxau-dev armel 1:1.0.6-3 [9350 B]
libxdmcp-dev armel 1:1.1.0-3 [42.7 kB]
x11proto-input-dev armel 2.0.2-2ubuntu1 [69.0 kB]
x11proto-kb-dev armel 1.0.5-2 [27.6 kB]
xtrans-dev armel 1.2.6-2 [82.9 kB]
libxcb1-dev armel 1.7-3 [70.6 kB] 
libx11-dev armel 2:1.4.4-2ubuntu1 [3155 kB]

ビルドに必要なパッケージのインストール。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get build-dep unity-2d

その他、必要なファイルのインストール。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get install bzr dconf-tools ffmpeg gnome-common libdeclarative-multimedia

ソースコードのダウンロード。

linaro@linaro-ubuntu-desktop:~$ bzr branch lp:~s-team/ubuntutv/trunk ubuntu-tv
Branched 959 revision(s).                                                      

リビジョンに変化なし。


ビルド。

linaro@linaro-ubuntu-desktop:~$ cd ubuntu-tv
linaro@linaro-ubuntu-desktop:~/ubuntu-tv$ cmake 
linaro@linaro-ubuntu-desktop:~/ubuntu-tv$ make
cd ..
linaro@linaro-ubuntu-desktop:~/ubuntu-tv$ cd ..



起動テスト。

linaro@linaro-ubuntu-desktop:~$ vi start.sh
linaro@linaro-ubuntu-desktop:~$ chmod +x start.sh 

#!/bin/bash

GSETTINGS_SCHEMA_DIR=ubuntu-tv/data gsettings set com.canonical.Unity2d form-factor tv

killall unity-2d-{panel,places,launcher,spread}

sleep 1

killall unity-2d-{panel,places,launcher,spread}

sleep 1

killall unity-2d-{panel,places,launcher,spread}

metacity --replace &

cd ubuntu-tv

./shell/app/unity-2d-shell -opengl

起動。

linaro@linaro-ubuntu-desktop:~$ ./start.sh 

問題なく起動した。

[][] Linaro 12.01のUbuntu-TV化 続き

予想通り、12.01にしたからといって、特に変化はないようだ。

再起動したら、1024x768の設定が有効になった。なんなのだ?

Unity2Dにて、解像度を変更しようとしたら、マウスポインタが消えた(^^;。


再生用ディレクトリを作成。

linaro@linaro-ubuntu-desktop:~$ mkdir -p ~/Videos/unity/local/featured ~/Videos/unity/local/rented ~/Videos/unity/local/purchased ~/Videos/unity/local/recorded

適当な名前のディレクトリを追加しても、表示は追加されない。

featuredにサンプル動画を入れる。


サンプル動画の入手。

http://www.h264info.com/clips.html から。

linaro@linaro-ubuntu-desktop:~$ cd Videos/unity/local/featured/
linaro@linaro-ubuntu-desktop:~/Videos/unity/local/featured$ wget http://downloads.dvdloc8.com/trailers/divxdigest/the_hobbit_an_unexpected_journey-trailer.zip
linaro@linaro-ubuntu-desktop:~/Videos/unity/local/featured$ unzip the_hobbit_an_unexpected_journey-trailer.zip 
Archive:  the_hobbit_an_unexpected_journey-trailer.zip
  inflating: poster.jpg              
  inflating: readme.txt              
  inflating: The Hobbit - An Unexpected Journey - Trailer.mp4  

早送りに使うサムネイルを生成する。

linaro@linaro-ubuntu-desktop:~/Videos/unity/local/featured$ /usr/lib/unity-lens-video/create_tmb.sh "The Hobbit - An Unexpected Journey - Trailer.mp4" 
Creating thumbnails for The Hobbit - An Unexpected Journey - Trailer.mp4...

サムネイル生成スクリプトは、1ファイルにつき10個のサムネイル固定だそうだ。

映画なんかの中身検索用としては、あんまり役に立たないな。

それならそれで、gzに固めておくとかしたらいいのに、ベタ置きだし。


カバーアートデータは、拡張子を.tbnにして動画ファイルと同じ場所に置く。

フォーマットは何がいいんだろう。

落としたアーカイブに付属していたのはjpegだった。

linaro@linaro-ubuntu-desktop:~/Videos/unity/local/featured$ file poster.jpg 
poster.jpg: JPEG image data, JFIF standard 1.01, comment: "CREATOR: gd-jpeg v1.0 (using IJ"
linaro@linaro-ubuntu-desktop:~/Videos/unity/local/featured$ mv poster.jpg "The Hobbit - An Unexpected Journey - Trailer.tbn"

以下同様に。

http://downloads.dvdloc8.com/trailers/divxdigest/the_hobbit_an_unexpected_journey-trailer.zip

Title: The Hobbit: An Unexpected Journey - H.264 HD 1080p Theatrical Trailer

File Size: 137 MB

Video Format: H.264

Video Resolution: 1910x800

Audio Format: AAC

Audio Details: 48 kHz, VBR

http://download2.dvdloc8.com/trailers/divxdigest/prometheus-trailer.zip

Title: Prometheus - H.264 HD 1080p Theatrical Trailer

File Size: 58 MB

Video Format: H.264

Video Resolution: 1920x816

Audio Format: AAC

Audio Details: 48 kHz, VBR

http://download2.dvdloc8.com/trailers/divxdigest/the_avengers-trailer.zip

Title: The Avengers (2012) - H.264 HD 1080p Theatrical Trailer

File Size: 104 MB

Video Format: H.264

Video Resolution: 1920x1056

Audio Format: AAC

Audio Details: 48 kHz, VBR

http://downloads.dvdloc8.com/trailers/divxdigest/captain_america_first_avenger-trailer2.zip

Title: Captain America: The First Avenger - H.264 HD 1080p Theatrical Trailer #2

File Size: 121 MB

Video Format: H.264

Video Resolution: 1920x800

Audio Format: AAC

Audio Details: 48 kHz, VBR

ホビットの再生は、以前よりだいぶいい。明るく速いところでは、ポリゴンが出てしまう。

ソフトウエアだけでは、このスピードは出ないと思われるので、ハードウエアデコードはやっている模様。


動作したまま放置しても出てこない。

Search Movies & TVを押しても出てこない。

ビデオの管理プロセスを殺してみる。

linaro@linaro-ubuntu-desktop:~/Videos/unity/local/featured$ killall unity-video-daemon

フィルムアイコンを選択しても、自動で上がってこない。

HUPかなんかにしてとけばよかったか。

Search Movies & TVを選んでキーインすると、だいぶ遅延してから上がってきた。

プロセスを終わらなくても、同様の方法が使えるようだ。


動画サンブルは、BigBuckBunnyを使ったものが、linaroから提供されている。

これも入れてみる。

http://samplemedia.linaro.org/

H264,MP4/1080pはきついが、720pくらいだと結構いろんなフォーマットで行けそう。

MP4/720p,480pはノイズだらけでダメ。

MP2/420pはまともに表示できない。1080pは止まってしまう。

VP8, VC1はどのサイズも結構快適に見られる。


qtmobilityは入っている?

インストール済みパッケージリストには、そのものの名前のものは入ってない!

PPAでは提供されないのかもしれない。

QtとQtmobilityモジュールは対応のものが必要って言ってるな。

パッケージ検索だと、qtmobility-l10n (1.1.0-0ubuntu4)しか出てこない。

これは、linaro版ではない。

PPAにある、qtmobility 1.1.0-0ubuntu4linaro1はどこにあるのだろう?

あと、たぶん、これも。

qt4-x11 4:4.7.4-0ubuntu8.1linaro1

precise(12.04)にしないとダメ?

dscを見る。

http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu/pool/main/q/qtmobility/qtmobility_1.1.0-0ubuntu4linaro1.dsc

そのものの名前のパッケージはないのか?

バージョンで調べてみると、現在は、

  • libdeclarative-multimedia
  • libqtmultimediakit1

について、1.1.0-0ubuntu4linaro1版が入っている。

てーことは、再生でポリゴンが出るのは、このせいじゃないってことか...

2012-01-30

[][] 一応、動画は出るようになってます。番組表の日本語も出ます。

出るまでには、結構いろいろやらないと出ないのだけど。


動画の再生はまだイマイチ。

どうもハードウエアでやっているように思えない。


とりあえず、絵だけ貼っておきます。

https://lh5.googleusercontent.com/-MrhR562vPr4/TyXsd_lUEzI/AAAAAAAACBw/oLfgrxp1O34/s720/29%2520-%25201.jpg

https://lh5.googleusercontent.com/-OFDfQz4tPNA/TyXsdwGY8ZI/AAAAAAAACB4/NBZt_o04s90/s720/29%2520-%25202.jpg

[][] Linaro 12.01が出たので入れ替える

http://www.linaro.org/downloads/1201/

前に使ってたのは、11.12の20111219-0だから、そんなに違いはないと思うのだけどね。

http://releases.linaro.org/12.01/ubuntu/leb-panda/

kinneko@BuildSV:~/linaro-panda$ wget http://releases.linaro.org/12.01/ubuntu/leb-panda/hwpack_linaro-lt-panda-x11-base_20120123-1_armel_supported.tar.gz http://releases.linaro.org/12.01/ubuntu/leb-panda/linaro-o-ubuntu-desktop-tar-20120125-0.tar.gz 

hwpackは78M、linaroのほうは500M。


linaro-media-createは、aptではアップデートできないな。

やっぱ古い。

kinneko@BuildSV:~/linaro-panda$ sudo linaro-media-create --version
linaro-media-create 2011.12 : usage: qemu-arm [options] program [arguments...]

最新は、2012.01-0ubuntu1~linaro1ね。

  • linaro-image-tools_2012.01-0ubuntu1~linaro1_all.deb (29.7 KiB)
  • python-linaro-image-tools_2012.01-0ubuntu1~linaro1_all.deb (119.0 KiB)

の2つか。

アップグレードしちゃうとめんどくさいことになりそうだから、関連だけマニュアルで入れるか。

kinneko@BuildSV:~/linaro-panda$ wget https://launchpad.net/~linaro-maintainers/+archive/tools/+files/linaro-image-tools_2012.01-0ubuntu1~linaro1_all.deb
kinneko@BuildSV:~/linaro-panda$ wget https://launchpad.net/~linaro-maintainers/+archive/tools/+files/python-linaro-image-tools_2012.01-0ubuntu1~linaro1_all.deb
kinneko@BuildSV:~/linaro-panda$ sudo dpkg -i linaro-image-tools_2012.01-0ubuntu1~linaro1_all.deb python-linaro-image-tools_2012.01-0ubuntu1~linaro1_all.deb 
(Reading database ... 146385 files and directories currently installed.)
Preparing to replace linaro-image-tools 2011.12-0ubuntu1~linaro1 (using linaro-image-tools_2012.01-0ubuntu1~linaro1_all.deb) ...
Unpacking replacement linaro-image-tools ...
Preparing to replace python-linaro-image-tools 2011.12-0ubuntu1~linaro1 (using python-linaro-image-tools_2012.01-0ubuntu1~linaro1_all.deb) ...
Unpacking replacement python-linaro-image-tools ...
Setting up python-linaro-image-tools (2012.01-0ubuntu1~linaro1) ...
Setting up linaro-image-tools (2012.01-0ubuntu1~linaro1) ...
Processing triggers for python-support ...

確認。

kinneko@BuildSV:~/linaro-panda$ sudo linaro-media-create --versionlinaro-media-create 2012.01 : usage: qemu-arm [options] program [arguments...]

OK。


SDカードにインストールする。

kinneko@BuildSV:~/linaro-panda$ sudo linaro-media-create --mmc /dev/sdb --dev panda --hwpack hwpack_linaro-lt-panda-x11-base_20120123-1_armel_supported.tar.gz --binary linaro-o-ubuntu-desktop-tar-20120125-0.tar.gz 

I see...
Device           Mount point      Size
/dev/sda         none             953869MB
/dev/sda1        /                941589MB
/dev/sda2        none             12278MB
/dev/sda5        none             12278MB
/dev/sdb         none             1876MB
/dev/sdb1        none             66MB
/dev/sdb2        none             1026MB
/dev/sdb3        none             781MB
/dev/sr0         none             0MB
Are you 100% sure, on selecting [/dev/sdb] (y/n)? y
------------------------------------------------------------
Installing (linaro-hwpack-install) hwpack_linaro-lt-panda-x11-base_20120123-1_armel_supported.tar.gz in target rootfs.
Unpacking hardware pack ...Done
Updating apt package lists ...
Ign file: ./ InRelease
Ign file: ./ Release.gpg
Ign file: ./ Release
Ign file: ./ Translation-en
Ign http://ppa.launchpad.net oneiric InRelease
Ign http://ports.ubuntu.com oneiric InRelease
Ign http://ports.ubuntu.com oneiric-security InRelease
Ign http://ports.ubuntu.com oneiric-updates InRelease
Get:1 http://ppa.launchpad.net oneiric Release.gpg [316 B]
Ign http://ports.ubuntu.com oneiric-security InRelease
Ign http://ports.ubuntu.com oneiric InRelease
Ign http://ports.ubuntu.com oneiric-updates InRelease
Hit http://ports.ubuntu.com oneiric Release.gpg
Get:2 http://ports.ubuntu.com oneiric-security Release.gpg [198 B]
Get:3 http://ppa.launchpad.net oneiric Release [9759 B]
Get:4 http://ports.ubuntu.com oneiric-updates Release.gpg [198 B]
Get:5 http://ports.ubuntu.com oneiric-security Release.gpg [198 B]
Get:6 http://ports.ubuntu.com oneiric Release.gpg [198 B]
Get:7 http://ports.ubuntu.com oneiric-updates Release.gpg [198 B]
Hit http://ports.ubuntu.com oneiric Release
Get:8 http://ports.ubuntu.com oneiric-security Release [40.8 kB]
Get:9 http://ppa.launchpad.net oneiric/main armel Packages [119 kB]
Get:10 http://ports.ubuntu.com oneiric-updates Release [40.8 kB]
Get:11 http://ports.ubuntu.com oneiric-security Release [40.8 kB]
Get:12 http://ports.ubuntu.com oneiric Release [40.8 kB]
Get:13 http://ports.ubuntu.com oneiric-updates Release [40.8 kB]
Hit http://ports.ubuntu.com oneiric/main Sources
Hit http://ports.ubuntu.com oneiric/universe Sources
Hit http://ports.ubuntu.com oneiric/main armel Packages
Hit http://ports.ubuntu.com oneiric/universe armel Packages
Hit http://ports.ubuntu.com oneiric/main TranslationIndex
Hit http://ports.ubuntu.com oneiric/universe TranslationIndex
Get:14 http://ports.ubuntu.com oneiric-security/main Sources [26.0 kB]
Get:15 http://ports.ubuntu.com oneiric-security/universe Sources [8967 B]
Get:16 http://ports.ubuntu.com oneiric-security/main armel Packages [70.4 kB]
Ign http://ppa.launchpad.net oneiric/main TranslationIndex
Get:17 http://ports.ubuntu.com oneiric-security/universe armel Packages [23.4 kB]
Get:18 http://ports.ubuntu.com oneiric-security/main TranslationIndex [73 B]
Get:19 http://ports.ubuntu.com oneiric-security/universe TranslationIndex [73 B]
Get:20 http://ports.ubuntu.com oneiric-updates/main Sources [120 kB]
Get:21 http://ports.ubuntu.com oneiric-updates/universe Sources [40.0 kB]
Get:22 http://ports.ubuntu.com oneiric-updates/main armel Packages [270 kB]
Ign http://ppa.launchpad.net oneiric/main Translation-en
Get:23 http://ports.ubuntu.com oneiric-updates/universe armel Packages [89.1 kB]
Get:24 http://ports.ubuntu.com oneiric-updates/main TranslationIndex [74 B]
Get:25 http://ports.ubuntu.com oneiric-updates/universe TranslationIndex [73 B]
Get:26 http://ports.ubuntu.com oneiric-security/main armel Packages [70.4 kB]
Get:27 http://ports.ubuntu.com oneiric-security/universe armel Packages [23.4 kB]
Get:28 http://ports.ubuntu.com oneiric-security/main TranslationIndex [73 B]
Get:29 http://ports.ubuntu.com oneiric-security/universe TranslationIndex [73 B]
Get:30 http://ports.ubuntu.com oneiric/main armel Packages [1212 kB]
Get:31 http://ports.ubuntu.com oneiric/universe armel Packages [4350 kB]
Get:32 http://ports.ubuntu.com oneiric/multiverse armel Packages [105 kB]
Get:33 http://ports.ubuntu.com oneiric/main TranslationIndex [3289 B]
Get:34 http://ports.ubuntu.com oneiric/multiverse TranslationIndex [2265 B]
Get:35 http://ports.ubuntu.com oneiric/universe TranslationIndex [2640 B]
Hit http://ports.ubuntu.com oneiric/main Translation-en
Hit http://ports.ubuntu.com oneiric/universe Translation-en
Get:36 http://ports.ubuntu.com oneiric-updates/main armel Packages [270 kB]
Get:37 http://ports.ubuntu.com oneiric-updates/universe armel Packages [89.1 kB]
Get:38 http://ports.ubuntu.com oneiric-updates/main TranslationIndex [74 B]
Get:39 http://ports.ubuntu.com oneiric-updates/universe TranslationIndex [73 B]
Get:40 http://ports.ubuntu.com oneiric-security/main Translation-en [38.9 kB]
Get:41 http://ports.ubuntu.com oneiric-security/universe Translation-en [17.4 kB]
Get:42 http://ports.ubuntu.com oneiric-updates/main Translation-en [130 kB]
Get:43 http://ports.ubuntu.com oneiric-updates/universe Translation-en [54.9 kB]
Get:44 http://ports.ubuntu.com oneiric-security/main Translation-en [38.9 kB]
Get:45 http://ports.ubuntu.com oneiric-security/universe Translation-en [17.4 kB]
Get:46 http://ports.ubuntu.com oneiric/main Translation-en [701 kB]
Get:47 http://ports.ubuntu.com oneiric/multiverse Translation-en [92.6 kB]
Get:48 http://ports.ubuntu.com oneiric/universe Translation-en [3165 kB]
Get:49 http://ports.ubuntu.com oneiric-updates/main Translation-en [130 kB]
Get:50 http://ports.ubuntu.com oneiric-updates/universe Translation-en [54.9 kB]
Fetched 11.6 MB in 41s (281 kB/s)
Reading package lists...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Recommended packages:
  linux-headers-686-pae linux-headers-amd64 linux-headers-generic
  linux-headers linux-image
The following packages will be REMOVED:
  libegl1-mesa libegl1-mesa-drivers libgles2-mesa libopenvg1-mesa
The following NEW packages will be installed:
  devio dkms dos2unix flash-kernel hwpack-linaro-lt-panda-x11-base
  libegl1-sgx-omap4 libgles1-sgx-omap4 libgles2-sgx-omap4 libopenvg1-sgx-omap4
  libtimemmgr2 libtisyslink0 linux-firmware linux-headers-3.0.0-12
  linux-headers-3.1.1-8 linux-headers-3.1.1-8-linaro-lt-omap
  linux-headers-linaro-lt-omap linux-image-3.1.1-8-linaro-lt-omap
  linux-image-linaro-lt-omap powervr-omap4-dkms pvr-omap4 pvr-omap4-data
  pvr-omap4-dkms pvr-omap4-utils ti-uim tiomap4-syslink-ipc-ducati-firmware
  tiomap4-syslink-ipc-tesla-firmware tiomap4-syslink-mm-ducati-firmware-dce
  tisyslink-utils u-boot-tools uboot-mkimage ubuntu-omap4-extras-config
  ubuntu-omap4-extras-graphics wireless-crda
The following packages will be upgraded:
  binutils cpp cpp-4.6 fakeroot gcc gcc-4.6 grep libc-dev-bin libc6-dev
  libgomp1 libmpc2 libmpfr4 linux-libc-dev make manpages manpages-dev patch
17 upgraded, 33 newly installed, 4 to remove and 21 not upgraded.
Need to get 0 B/81.8 MB of archives.
After this operation, 47.2 MB disk space will be freed.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  libmpfr4 libmpc2 cpp-4.6 cpp libc-dev-bin linux-libc-dev libc6-dev binutils
  libgomp1 gcc-4.6 gcc make patch dkms grep dos2unix linux-headers-3.1.1-8
  linux-headers-3.1.1-8-linaro-lt-omap linux-headers-linaro-lt-omap
  powervr-omap4-dkms pvr-omap4-data pvr-omap4 libegl1-sgx-omap4
  libgles2-sgx-omap4 wireless-crda linux-image-3.1.1-8-linaro-lt-omap
  tiomap4-syslink-ipc-ducati-firmware tiomap4-syslink-ipc-tesla-firmware
  tiomap4-syslink-mm-ducati-firmware-dce devio fakeroot flash-kernel
  linux-firmware linux-image-linaro-lt-omap pvr-omap4-dkms libgles1-sgx-omap4
  libopenvg1-sgx-omap4 pvr-omap4-utils ubuntu-omap4-extras-graphics ti-uim
  libtimemmgr2 libtisyslink0 tisyslink-utils ubuntu-omap4-extras-config
  hwpack-linaro-lt-panda-x11-base linux-headers-3.0.0-12 manpages manpages-dev
  u-boot-tools uboot-mkimage
Install these packages without verification [y/N]? y

あああ、SD Cardが2GBじゃ足りなかった... orz

でかずぎですよ。

SDを32GBに変更して、続きのログから。

(snip)
Cleaning up ...W: Failed to fetch bzip2:/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_oneiric-updates_universe_binary-armel_Packages  Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.
proc umounted
Traceback (most recent call last):
  File "/usr/bin/linaro-media-create", line 163, in <module>
    verified_files, *hwpacks)
  File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/chroot_utils.py", line 79, in install_hwpacks
    install_hwpack(chroot_dir, hwpack_file, hwpack_force_yes or hwpack_verified)
  File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/chroot_utils.py", line 100, in install_hwpack
    cmd_runner.run(args, as_root=True, chroot=chroot_dir).wait()
  File "/usr/lib/pymodules/python2.7/linaro_image_tools/cmd_runner.py", line 100, in wait
    raise SubcommandNonZeroReturnValue(self._my_args, returncode)
linaro_image_tools.cmd_runner.SubcommandNonZeroReturnValue: Sub process "['chroot', '/tmp/tmpe0wW6T/binary/boot/filesystem.dir', 'linaro-hwpack-install', '/hwpack_linaro-lt-panda-x11-base_20120123-1_armel_supported.tar.gz']" returned a non-zero value: 100

ひどい...

もっかい。

Extracting templates from packages: 100%
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 94244 files and directories currently installed.)
Preparing to replace libmpfr4 3.0.1-5ubuntu1linaro1 (using .../libmpfr4_3.0.1-5ubuntu1linaro1_armel.deb) ...
Unpacking replacement libmpfr4 ...
Preparing to replace libmpc2 0.9-3 (using .../pkgs/libmpc2_0.9-3_armel.deb) ...
Unpacking replacement libmpc2 ...
Preparing to replace cpp-4.6 4.6.1-9ubuntu3 (using .../cpp-4.6_4.6.1-9ubuntu3_armel.deb) ...
Unpacking replacement cpp-4.6 ...
Preparing to replace cpp 4:4.6.1-2ubuntu5 (using .../cpp_4.6.1-2ubuntu5_armel.deb) ...
Unpacking replacement cpp ...
Preparing to replace libc-dev-bin 2.13-20ubuntu5 (using .../libc-dev-bin_2.13-20ubuntu5_armel.deb) ...
Unpacking replacement libc-dev-bin ...
Preparing to replace linux-libc-dev 3.0.0-15.26 (using .../linux-libc-dev_3.0.0-15.26_armel.deb) ...
Unpacking replacement linux-libc-dev ...
Preparing to replace libc6-dev 2.13-20ubuntu5 (using .../libc6-dev_2.13-20ubuntu5_armel.deb) ...
Unpacking replacement libc6-dev ...
Preparing to replace binutils 2.21.53.20110810-0ubuntu5.1 (using .../binutils_2.21.53.20110810-0ubuntu5.1_armel.deb) ...
Unpacking replacement binutils ...
Preparing to replace libgomp1 4.6.1-9ubuntu3 (using .../libgomp1_4.6.1-9ubuntu3_armel.deb) ...
Unpacking replacement libgomp1 ...
Preparing to replace gcc-4.6 4.6.1-9ubuntu3 (using .../gcc-4.6_4.6.1-9ubuntu3_armel.deb) ...
Unpacking replacement gcc-4.6 ...
Preparing to replace gcc 4:4.6.1-2ubuntu5 (using .../gcc_4.6.1-2ubuntu5_armel.deb) ...
Removing old gcc doc directory.
Unpacking replacement gcc ...
Preparing to replace make 3.81-8.1ubuntu1 (using .../make_3.81-8.1ubuntu1_armel.deb) ...
Unpacking replacement make ...
Preparing to replace patch 2.6.1-2 (using .../pkgs/patch_2.6.1-2_armel.deb) ...
Unpacking replacement patch ...
Selecting previously deselected package dkms.
Unpacking dkms (from .../dkms_2.2.0.2-1ubuntu4_all.deb) ...
Selecting previously deselected package dos2unix.
Unpacking dos2unix (from .../pkgs/dos2unix_5.3-1_armel.deb) ...
Selecting previously deselected package linux-headers-3.1.1-8.
Unpacking linux-headers-3.1.1-8 (from .../linux-headers-3.1.1-8_3.1.1-8.8~lt~ci~20120118001257+025756_armel.deb) ...
Selecting previously deselected package linux-headers-3.1.1-8-linaro-lt-omap.
Unpacking linux-headers-3.1.1-8-linaro-lt-omap (from .../linux-headers-3.1.1-8-linaro-lt-omap_3.1.1-8.8~lt~ci~20120118001257+025756_armel.deb) ...
Selecting previously deselected package linux-headers-linaro-lt-omap.
Unpacking linux-headers-linaro-lt-omap (from .../linux-headers-linaro-lt-omap_3.1.1.8.6_armel.deb) ...
Preparing to replace grep 2.9-1 (using .../pkgs/grep_2.9-1_armel.deb) ...
Unpacking replacement grep ...
Processing triggers for man-db ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up grep (2.9-1) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package powervr-omap4-dkms.
(Reading database ... 111538 files and directories currently installed.)
Unpacking powervr-omap4-dkms (from .../powervr-omap4-dkms_1.7.10.0.1.1-1linaro1_armel.deb) ...
Selecting previously deselected package pvr-omap4-data.
Unpacking pvr-omap4-data (from .../pvr-omap4-data_1.7.10.0.1.8-1linaro1_armel.deb) ...
Selecting previously deselected package pvr-omap4.
Unpacking pvr-omap4 (from .../pvr-omap4_1.7.10.0.1.8-1linaro1_armel.deb) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 111821 files and directories currently installed.)
Removing libegl1-mesa-drivers ...
dpkg: libegl1-mesa: dependency problems, but removing anyway as you requested:
 nux-tools depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
  Package libegl1-mesa is to be removed.
  Package libegl1-x11 is not installed.
  Package libegl1-mesa which provides libegl1-x11 is to be removed.
 libqt4-opengl depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
  Package libegl1-mesa is to be removed.
  Package libegl1-x11 is not installed.
  Package libegl1-mesa which provides libegl1-x11 is to be removed.
 libqtgui4 depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
  Package libegl1-mesa is to be removed.
  Package libegl1-x11 is not installed.
  Package libegl1-mesa which provides libegl1-x11 is to be removed.
 unity depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
  Package libegl1-mesa is to be removed.
  Package libegl1-x11 is not installed.
  Package libegl1-mesa which provides libegl1-x11 is to be removed.
 libnux-1.0-0 depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
  Package libegl1-mesa is to be removed.
  Package libegl1-x11 is not installed.
  Package libegl1-mesa which provides libegl1-x11 is to be removed.
 compiz-plugins-default depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
  Package libegl1-mesa is to be removed.
  Package libegl1-x11 is not installed.
  Package libegl1-mesa which provides libegl1-x11 is to be removed.
 nux-tools depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
  Package libegl1-mesa is to be removed.
  Package libegl1-x11 is not installed.
  Package libegl1-mesa which provides libegl1-x11 is to be removed.
 libqt4-opengl depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
  Package libegl1-mesa is to be removed.
  Package libegl1-x11 is not installed.
  Package libegl1-mesa which provides libegl1-x11 is to be removed.
 libqtgui4 depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
  Package libegl1-mesa is to be removed.
  Package libegl1-x11 is not installed.
  Package libegl1-mesa which provides libegl1-x11 is to be removed.
 unity depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
  Package libegl1-mesa is to be removed.
  Package libegl1-x11 is not installed.
  Package libegl1-mesa which provides libegl1-x11 is to be removed.
 libnux-1.0-0 depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
  Package libegl1-mesa is to be removed.
  Package libegl1-x11 is not installed.
  Package libegl1-mesa which provides libegl1-x11 is to be removed.
 compiz-plugins-default depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
  Package libegl1-mesa is to be removed.
  Package libegl1-x11 is not installed.
  Package libegl1-mesa which provides libegl1-x11 is to be removed.
Removing libegl1-mesa ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package libegl1-sgx-omap4.
(Reading database ... 111802 files and directories currently installed.)
Unpacking libegl1-sgx-omap4 (from .../libegl1-sgx-omap4_1.7.10.0.1.8-1linaro1_armel.deb) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libmpfr4 (3.0.1-5ubuntu1linaro1) ...
Setting up libmpc2 (0.9-3) ...
Setting up cpp-4.6 (4.6.1-9ubuntu3) ...
Setting up cpp (4:4.6.1-2ubuntu5) ...
Setting up binutils (2.21.53.20110810-0ubuntu5.1) ...
Setting up libgomp1 (4.6.1-9ubuntu3) ...
Setting up gcc-4.6 (4.6.1-9ubuntu3) ...
Setting up gcc (4:4.6.1-2ubuntu5) ...
Setting up make (3.81-8.1ubuntu1) ...
Setting up patch (2.6.1-2) ...
Setting up dkms (2.2.0.2-1ubuntu4) ...
Setting up dos2unix (5.3-1) ...
Setting up linux-headers-3.1.1-8 (3.1.1-8.8~lt~ci~20120118001257+025756) ...
Setting up linux-headers-3.1.1-8-linaro-lt-omap (3.1.1-8.8~lt~ci~20120118001257+025756) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.1.1-8-linaro-lt-omap /boot/vmlinuz-3.1.1-8-linaro-lt-omap
Setting up linux-headers-linaro-lt-omap (3.1.1.8.6) ...
Setting up powervr-omap4-dkms (1.7.10.0.1.1-1linaro1) ...
Loading new powervr-omap4-1.7.10.0.1.1 DKMS files...
First Installation: checking all kernels...
dpkg: error: version '*-*' has bad syntax: version number does not start with digit
It is likely that 2.6.38-8-generic belongs to a chroot's host
Building for architecture armel
Building initial module for 3.1.1-8-linaro-lt-omap
Done.

omapdrm_pvr:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.1.1-8-linaro-lt-omap/updates/

depmod....

DKMS: install Completed.
Setting up pvr-omap4-data (1.7.10.0.1.8-1linaro1) ...
Setting up pvr-omap4 (1.7.10.0.1.8-1linaro1) ...
Setting up libegl1-sgx-omap4 (1.7.10.0.1.8-1linaro1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Can not write log, openpty() failed (/dev/pts not mounted?)
dpkg: libgles2-mesa: dependency problems, but removing anyway as you requested:
 nux-tools depends on libgles2-mesa (>= 7.8.1) | libgles2; however:
  Package libgles2-mesa is to be removed.
  Package libgles2 is not installed.
  Package libgles2-mesa which provides libgles2 is to be removed.
 libqt4-opengl depends on libgles2-mesa (>= 7.8.1) | libgles2; however:
  Package libgles2-mesa is to be removed.
  Package libgles2 is not installed.
  Package libgles2-mesa which provides libgles2 is to be removed.
 unity depends on libgles2-mesa (>= 7.8.1) | libgles2; however:
  Package libgles2-mesa is to be removed.
  Package libgles2 is not installed.
  Package libgles2-mesa which provides libgles2 is to be removed.
 libnux-1.0-0 depends on libgles2-mesa (>= 7.8.1) | libgles2; however:
  Package libgles2-mesa is to be removed.
  Package libgles2 is not installed.
  Package libgles2-mesa which provides libgles2 is to be removed.
 compiz-plugins-default depends on libgles2-mesa (>= 7.8.1) | libgles2; however:
  Package libgles2-mesa is to be removed.
  Package libgles2 is not installed.
  Package libgles2-mesa which provides libgles2 is to be removed.
 compiz-plugins-main-default depends on libgles2-mesa (>= 7.8.1) | libgles2; however:
  Package libgles2-mesa is to be removed.
  Package libgles2 is not installed.
  Package libgles2-mesa which provides libgles2 is to be removed.
 nux-tools depends on libgles2-mesa (>= 7.8.1) | libgles2; however:
  Package libgles2-mesa is to be removed.
  Package libgles2 is not installed.
  Package libgles2-mesa which provides libgles2 is to be removed.
 libqt4-opengl depends on libgles2-mesa (>= 7.8.1) | libgles2; however:
  Package libgles2-mesa is to be removed.
  Package libgles2 is not installed.
  Package libgles2-mesa which provides libgles2 is to be removed.
 unity depends on libgles2-mesa (>= 7.8.1) | libgles2; however:
  Package libgles2-mesa is to be removed.
  Package libgles2 is not installed.
  Package libgles2-mesa which provides libgles2 is to be removed.
 libnux-1.0-0 depends on libgles2-mesa (>= 7.8.1) | libgles2; however:
  Package libgles2-mesa is to be removed.
  Package libgles2 is not installed.
  Package libgles2-mesa which provides libgles2 is to be removed.
 compiz-plugins-default depends on libgles2-mesa (>= 7.8.1) | libgles2; however:
  Package libgles2-mesa is to be removed.
  Package libgles2 is not installed.
  Package libgles2-mesa which provides libgles2 is to be removed.
 compiz-plugins-main-default depends on libgles2-mesa (>= 7.8.1) | libgles2; however:
  Package libgles2-mesa is to be removed.
  Package libgles2 is not installed.
  Package libgles2-mesa which provides libgles2 is to be removed.
(Reading database ... 111807 files and directories currently installed.)
Removing libgles2-mesa ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package libgles2-sgx-omap4.
(Reading database ... 111799 files and directories currently installed.)
Unpacking libgles2-sgx-omap4 (from .../libgles2-sgx-omap4_1.7.10.0.1.8-1linaro1_armel.deb) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libgles2-sgx-omap4 (1.7.10.0.1.8-1linaro1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 111804 files and directories currently installed.)
Removing libopenvg1-mesa ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package wireless-crda.
(Reading database ... 111795 files and directories currently installed.)
Unpacking wireless-crda (from .../wireless-crda_1.14_armel.deb) ...
Selecting previously deselected package linux-image-3.1.1-8-linaro-lt-omap.
Unpacking linux-image-3.1.1-8-linaro-lt-omap (from .../linux-image-3.1.1-8-linaro-lt-omap_3.1.1-8.8~lt~ci~20120118001257+025756_armel.deb) ...
Done.
Selecting previously deselected package tiomap4-syslink-ipc-ducati-firmware.
Unpacking tiomap4-syslink-ipc-ducati-firmware (from .../tiomap4-syslink-ipc-ducati-firmware_2.6.1+git20111110+f289b98f-0ubuntu1_all.deb) ...
Selecting previously deselected package tiomap4-syslink-ipc-tesla-firmware.
Unpacking tiomap4-syslink-ipc-tesla-firmware (from .../tiomap4-syslink-ipc-tesla-firmware_2.6.1+git20111110+f289b98f-0ubuntu1_all.deb) ...
Selecting previously deselected package tiomap4-syslink-mm-ducati-firmware-dce.
Unpacking tiomap4-syslink-mm-ducati-firmware-dce (from .../tiomap4-syslink-mm-ducati-firmware-dce_1.50.21.1+dce2+3_all.deb) ...
Selecting previously deselected package devio.
Unpacking devio (from .../devio_1.2-1build1_armel.deb) ...
Preparing to replace fakeroot 1.17-1 (using .../pkgs/fakeroot_1.17-1_armel.deb) ...
Unpacking replacement fakeroot ...
Selecting previously deselected package flash-kernel.
Unpacking flash-kernel (from .../flash-kernel_2.28ubuntu34linaro3_armel.deb) ...
Selecting previously deselected package linux-firmware.
Unpacking linux-firmware (from .../linux-firmware_1.60linaro1_all.deb) ...
Selecting previously deselected package linux-image-linaro-lt-omap.
Unpacking linux-image-linaro-lt-omap (from .../linux-image-linaro-lt-omap_3.1.1.8.6_armel.deb) ...
Selecting previously deselected package pvr-omap4-dkms.
Unpacking pvr-omap4-dkms (from .../pvr-omap4-dkms_1.7.10.0.1.1-1linaro1_armel.deb) ...
Selecting previously deselected package libgles1-sgx-omap4.
Unpacking libgles1-sgx-omap4 (from .../libgles1-sgx-omap4_1.7.10.0.1.8-1linaro1_armel.deb) ...
Selecting previously deselected package libopenvg1-sgx-omap4.
Unpacking libopenvg1-sgx-omap4 (from .../libopenvg1-sgx-omap4_1.7.10.0.1.8-1linaro1_armel.deb) ...
Selecting previously deselected package pvr-omap4-utils.
Unpacking pvr-omap4-utils (from .../pvr-omap4-utils_1.7.10.0.1.8-1linaro1_armel.deb) ...
Selecting previously deselected package ubuntu-omap4-extras-graphics.
Unpacking ubuntu-omap4-extras-graphics (from .../ubuntu-omap4-extras-graphics_1.0_all.deb) ...
Selecting previously deselected package ti-uim.
Unpacking ti-uim (from .../ti-uim_0.0+git20110201+c738944-1linaro6_armel.deb) ...
Selecting previously deselected package libtimemmgr2.
Unpacking libtimemmgr2 (from .../libtimemmgr2_2.00+20110626+gita6dda467f-0ubuntu2_armel.deb) ...
Selecting previously deselected package libtisyslink0.
Unpacking libtisyslink0 (from .../libtisyslink0_2.0+m2+20110920+da27e851-0ubuntu2_armel.deb) ...
Selecting previously deselected package tisyslink-utils.
Unpacking tisyslink-utils (from .../tisyslink-utils_2.0+m2+20110920+da27e851-0ubuntu2_armel.deb) ...
Selecting previously deselected package ubuntu-omap4-extras-config.
Unpacking ubuntu-omap4-extras-config (from .../ubuntu-omap4-extras-config_1.30_all.deb) ...
Selecting previously deselected package hwpack-linaro-lt-panda-x11-base.
Unpacking hwpack-linaro-lt-panda-x11-base (from .../hwpack-linaro-lt-panda-x11-base_20120123-1_armel.deb) ...
Selecting previously deselected package linux-headers-3.0.0-12.
Unpacking linux-headers-3.0.0-12 (from .../linux-headers-3.0.0-12_3.0.0-12.20_all.deb) ...
Preparing to replace manpages 3.27-1ubuntu2 (using .../manpages_3.27-1ubuntu2_all.deb) ...
Unpacking replacement manpages ...
Preparing to replace manpages-dev 3.27-1ubuntu2 (using .../manpages-dev_3.27-1ubuntu2_all.deb) ...
Unpacking replacement manpages-dev ...
Selecting previously deselected package u-boot-tools.
Unpacking u-boot-tools (from .../u-boot-tools_2011.06-3ubuntu1_armel.deb) ...
Selecting previously deselected package uboot-mkimage.
Unpacking uboot-mkimage (from .../uboot-mkimage_2011.06-3ubuntu1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libc-dev-bin (2.13-20ubuntu5) ...
Setting up linux-libc-dev (3.0.0-15.26) ...
Setting up libc6-dev (2.13-20ubuntu5) ...
Setting up wireless-crda (1.14) ...
Setting up linux-image-3.1.1-8-linaro-lt-omap (3.1.1-8.8~lt~ci~20120118001257+025756) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
/usr/share/update-notifier/notify-reboot-required: 17: gettext: not found
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.1.1-8-linaro-lt-omap /boot/vmlinuz-3.1.1-8-linaro-lt-omap

Good news! Module version  for omapdrm_pvr.ko
exactly matches what is already found in kernel 3.1.1-8-linaro-lt-omap.
DKMS will not replace this module.
You may override by specifying --force.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.1.1-8-linaro-lt-omap /boot/vmlinuz-3.1.1-8-linaro-lt-omap
update-initramfs: Generating /boot/initrd.img-3.1.1-8-linaro-lt-omap
/bin/df: Warning: cannot read table of mounted file systems: No such file or directory
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.1.1-8-linaro-lt-omap /boot/vmlinuz-3.1.1-8-linaro-lt-omap
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.1.1-8-linaro-lt-omap /boot/vmlinuz-3.1.1-8-linaro-lt-omap
/etc/kernel/postinst.d/update-notifier: 17: gettext: not found
Setting up tiomap4-syslink-ipc-ducati-firmware (2.6.1+git20111110+f289b98f-0ubuntu1) ...
Setting up tiomap4-syslink-ipc-tesla-firmware (2.6.1+git20111110+f289b98f-0ubuntu1) ...
Setting up tiomap4-syslink-mm-ducati-firmware-dce (1.50.21.1+dce2+3) ...
Setting up devio (1.2-1build1) ...
Setting up fakeroot (1.17-1) ...
Setting up flash-kernel (2.28ubuntu34linaro3) ...
Setting up linux-firmware (1.60linaro1) ...
Setting up linux-image-linaro-lt-omap (3.1.1.8.6) ...
Setting up pvr-omap4-dkms (1:1.7.10.0.1.1-1linaro1) ...
Setting up libgles1-sgx-omap4 (1.7.10.0.1.8-1linaro1) ...
Setting up libopenvg1-sgx-omap4 (1.7.10.0.1.8-1linaro1) ...
Setting up pvr-omap4-utils (1.7.10.0.1.8-1linaro1) ...
Setting up ubuntu-omap4-extras-graphics (1.0) ...
Setting up ti-uim (0.0+git20110201+c738944-1linaro6) ...
Setting up libtimemmgr2 (2.00+20110626+gita6dda467f-0ubuntu2) ...
Setting up libtisyslink0 (2.0+m2+20110920+da27e851-0ubuntu2) ...
Setting up tisyslink-utils (2.0+m2+20110920+da27e851-0ubuntu2) ...
Setting up ubuntu-omap4-extras-config (1.30) ...
ubuntu-omap4-extras-config stop/waiting
Setting up hwpack-linaro-lt-panda-x11-base (20120123-1) ...
Setting up linux-headers-3.0.0-12 (3.0.0-12.20) ...
Setting up manpages (3.27-1ubuntu2) ...
Setting up manpages-dev (3.27-1ubuntu2) ...
Setting up u-boot-tools (2011.06-3ubuntu1) ...
Setting up uboot-mkimage (2011.06-3ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-image-linaro-lt-omap set to automatically installed.
libtisyslink0 set to automatically installed.
libgles1-sgx-omap4 set to automatically installed.
pvr-omap4-data set to automatically installed.
pvr-omap4 set to automatically installed.
libopenvg1-sgx-omap4 set to automatically installed.
linux-headers-3.1.1-8-linaro-lt-omap set to automatically installed.
wireless-crda set to automatically installed.
dkms set to automatically installed.
devio set to automatically installed.
flash-kernel set to automatically installed.
ubuntu-omap4-extras-config set to automatically installed.
linux-headers-3.0.0-12 set to automatically installed.
u-boot-tools set to automatically installed.
linux-headers-linaro-lt-omap set to automatically installed.
libegl1-sgx-omap4 set to automatically installed.
ti-uim set to automatically installed.
libgles2-sgx-omap4 set to automatically installed.
linux-firmware set to automatically installed.
pvr-omap4-dkms set to automatically installed.
libtimemmgr2 set to automatically installed.
uboot-mkimage set to automatically installed.
dos2unix set to automatically installed.
tisyslink-utils set to automatically installed.
powervr-omap4-dkms set to automatically installed.
pvr-omap4-utils set to automatically installed.
tiomap4-syslink-mm-ducati-firmware-dce set to automatically installed.
tiomap4-syslink-ipc-ducati-firmware set to automatically installed.
linux-image-3.1.1-8-linaro-lt-omap set to automatically installed.
ubuntu-omap4-extras-graphics set to automatically installed.
linux-headers-3.1.1-8 set to automatically installed.
tiomap4-syslink-ipc-tesla-firmware set to automatically installed.
N: This command is deprecated. Please use 'apt-mark auto' and 'apt-mark manual' instead.
Done
Cleaning up ...Done
------------------------------------------------------------
proc umounted
Sleeping for 1 second(s) to wait for the partition to settle
Checking that no-one is using this disk right now ...
OK
Warning: partition 1 does not end at a cylinder boundary
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
Sleeping for 1 second(s) to wait for the partition to settle

Formating boot partition

mkfs.vfat 3.0.9 (31 Jan 2010)

Formating root partition

mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=rootfs
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1970416 inodes, 7874560 blocks
393728 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
241 block groups
32768 blocks per group, 32768 fragments per group
8176 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000

Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 22 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
`/tmp/tmpmF19Me/u-boot/u-boot.img' -> `/tmp/tmpZRWv4Z/boot-disc/u-boot.img'
Will use kernel=/tmp/tmpZRWv4Z/binary/boot/filesystem.dir/boot/vmlinuz-3.1.1-8-linaro-lt-omap, initrd=/tmp/tmpZRWv4Z/binary/boot/filesystem.dir/boot/initrd.img-3.1.1-8-linaro-lt-omap, dtb=/tmp/tmpZRWv4Z/binary/boot/filesystem.dir/boot/dt-3.1.1-8-linaro-lt-omap/omap4-panda.dtb.
Copying spl '/tmp/tmplKKFm0/spl/MLO' to boot partition.
`/tmp/tmplKKFm0/spl/MLO' -> `/tmp/tmpZRWv4Z/boot-disc/MLO'
Image Name:   Linux
Created:      Mon Jan 30 18:19:02 2012
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    5319048 Bytes = 5194.38 kB = 5.07 MB
Load Address: 80008000
Entry Point:  80008000
Image Name:   initramfs
Created:      Mon Jan 30 18:19:04 2012
Image Type:   ARM Linux RAMDisk Image (uncompressed)
Data Size:    1872843 Bytes = 1828.95 kB = 1.79 MB
Load Address: 00000000
Entry Point:  00000000
Image Name:   boot script
Created:      Mon Jan 30 18:19:05 2012
Image Type:   ARM Linux Script (uncompressed)
Data Size:    450 Bytes = 0.44 kB = 0.00 MB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 442 Bytes = 0.43 kB = 0.00 MB
`/tmp/tmpZRWv4Z/boot-disc/boot.scr' -> `/tmp/tmpZRWv4Z/boot-disc/boot.ini'

Populating rootfs partition
Be patient, this may take a few minutes


Creating /etc/flash-kernel.conf


Updating /etc/network/interfaces

Done creating Linaro image on /dev/sdb

でけた。


kernel bootパラメータの変更。

ubootのkernel起動パラメーターにディスプレイ解像度(1024x768への対応)とUSB HDDをrootFSにするパラメータを入れる。

kinneko@BuildSV:~/linaro-panda$ sudo mount /dev/sdb1 /media/
kinneko@BuildSV:~/linaro-panda$ sudo mv /media/boot.txt /media/boot.txt.org
kinneko@BuildSV:~/linaro-panda$ sudo cp /media/boot.txt.org /media/boot.txt
kinneko@BuildSV:~/linaro-panda$ sudo mv /media/boot.scr /media/boot.scr.org
kinneko@BuildSV:~/linaro-panda$ sudo vi /media/boot.txt

setenv initrd_high "0xffffffff"

setenv fdt_high "0xffffffff"

setenv bootcmd "fatload mmc 0:1 0x80200000 uImage; fatload mmc 0:1 0x81600000 uInitrd; fatload mmc 0:1 0x815f0000 board.dtb; bootm 0x80200000 0x81600000 0x815f0000"

setenv bootargs "console=tty0 console=ttyO2,115200n8 root=UUID=09a9fb68-5c3f-4155-b669-19a5201dfcd6 rootwait ro earlyprintk fixrtc nocompcache vram=48M omapfb.vram=0:24M mem=456M@0x80000000 mem=512M@0xA0000000"

boot

のsetenv bootcmdを、

setenv bootargs "console=tty0 console=ttyO2,115200n8 root=LABEL=utvrootfs rootwait ro earlyprintk fixrtc nocompcache omapfb.mode=dvi:1024x768MR-24@60 vram=48M omapfb.vram=0:24M mem=456M@0x80000000 mem=512M@0xA0000000"

に。

kinneko@BuildSV:~/linaro-panda$ sudo mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Ubuntu" -d /media/boot.txt /media/boot.scr
Image Name:   Ubuntu
Created:      Mon Jan 30 18:46:32 2012
Image Type:   ARM Linux Script (uncompressed)
Data Size:    457 Bytes = 0.45 kB = 0.00 MB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 449 Bytes = 0.44 kB = 0.00 MB

できたものごと、bootのバックアップ。

kinneko@BuildSV:~/linaro-panda$ mkdir -p 1201/boot
kinneko@BuildSV:~/linaro-panda$ sudo cp -a /media/* 1201/boot/
kinneko@BuildSV:~/linaro-panda$ sudo umount /media 

rootFSのバックアップ。

kinneko@BuildSV:~/linaro-panda$ sudo mount /dev/sdb2 /media
kinneko@BuildSV:~/linaro-panda$ cd /media/
kinneko@BuildSV:/media$ sudo tar zcf /home/kinneko/linaro-panda/1201/linaro_rootfs1201.tgz ./
kinneko@BuildSV:/media$ cd ~/linaro-panda/
kinneko@BuildSV:~/linaro-panda$ sudo umount /media/

これでSDの作業は終わり。

抜いておく。


USB HDDを用意する。

40Gの雑魚ドライブ。

また、sdbなのでお間違えなきよう。

10Gと残りでパーティション切る。

どちらもext3でフォーマット。

最初のパーティションにutvrootfsラベルをつける。

kinneko@BuildSV:~/linaro-panda$ sudo fdisk /dev/sdb
kinneko@BuildSV:~/linaro-panda$ sudo fdisk -l /dev/sdb

Disk /dev/sdb: 40.0 GB, 40007761920 bytes
64 heads, 32 sectors/track, 38154 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x496fc9b0

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       10241    10486768   83  Linux
/dev/sdb2           10242       38154    28582912   83  Linux
kinneko@BuildSV:~/linaro-panda$ sudo mkfs.ext3 /dev/sdb1
kinneko@BuildSV:~/linaro-panda$ sudo mkfs.ext3 /dev/sdb2
kinneko@BuildSV:~/linaro-panda$ sudo e2label /dev/sdb1 utvrootfs
kinneko@BuildSV:~/linaro-panda$ sudo e2label /dev/sdb1          
utvrootfs

最初のパーティションにrootFSを展開する。

kinneko@BuildSV:~/linaro-panda$ sudo mount /dev/sdb1 /media
kinneko@BuildSV:~/linaro-panda$ sudo tar zxf 1201/linaro_rootfs1201.tgz -C /media/
kinneko@BuildSV:~/linaro-panda$ sudo umount /media

二番目のパーティションにアーカイブも置いておく。

kinneko@BuildSV:~/linaro-panda$ sudo mount /dev/sdb2 /media
kinneko@BuildSV:~/linaro-panda$ sudo cp 1201/linaro_rootfs1201.tgz /media/
kinneko@BuildSV:~/linaro-panda$ sudo umount /media/

できたSDと、HDDをPandaboardに取り付けて、起動テスト。

無事起動してきた。

マウスポインタの残骸が出るのが再発。

アップデート・マネージャは19ファイルを更新しろと言っている。


terminalを起動して、dropbearを入れて、linaroアカウントのパスワードを変更。


あとはsshから作業。

パッケージのアップグレード。

linaro@linaro-ubuntu-desktop:~$ apt-get upgrade -s 
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  unity unity-common
The following packages will be upgraded:
  base-files ifupdown libicu44 libmetacity-private0 libunity-core-4.0-4
  metacity metacity-common python-software-properties
  software-properties-common software-properties-gtk tomboy unity-services
  update-notifier update-notifier-common x11-common xorg xserver-xorg
  xserver-xorg-input-all xserver-xorg-video-all
19 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Inst base-files [6.4ubuntu5linaro6] (6.4ubuntu5linaro7 Linaro Overlay PPA:11.10/oneiric [armel])
Conf base-files (6.4ubuntu5linaro7 Linaro Overlay PPA:11.10/oneiric [armel])
Inst ifupdown [0.7~alpha5.1ubuntu5] (0.7~alpha5.1ubuntu5.1 Ubuntu:11.10/oneiric-updates [armel])
Inst libicu44 [4.4.2-2] (4.4.2-2ubuntu0.11.10.1 Ubuntu:11.10/oneiric-security [armel])
Inst metacity-common [1:2.34.1-1ubuntu4] (1:2.34.1-1ubuntu4.1 Ubuntu:11.10/oneiric-updates [all])
Inst libmetacity-private0 [1:2.34.1-1ubuntu4] (1:2.34.1-1ubuntu4.1 Ubuntu:11.10/oneiric-updates [armel])
Inst libunity-core-4.0-4 [4.24.0.2011.10-0linaro3] (4.28.0-0ubuntu2 Ubuntu:11.10/oneiric-updates [armel]) []
Inst unity-services [4.24.0.2011.10-0linaro3] (4.28.0-0ubuntu2 Ubuntu:11.10/oneiric-updates [armel])
Inst metacity [1:2.34.1-1ubuntu4] (1:2.34.1-1ubuntu4.1 Ubuntu:11.10/oneiric-updates [armel])
Inst python-software-properties [0.81.13.1] (0.81.13.2 Ubuntu:11.10/oneiric-updates [all])
Inst software-properties-common [0.81.13.1] (0.81.13.2 Ubuntu:11.10/oneiric-updates [all])
Inst software-properties-gtk [0.81.13.1] (0.81.13.2 Ubuntu:11.10/oneiric-updates [all])
Inst tomboy [1.8.0-1ubuntu1.1] (1.8.0-1ubuntu1.1.1 Ubuntu:11.10/oneiric-updates [armel])
Inst update-notifier [0.117ubuntu3.1] (0.117ubuntu3.2 Ubuntu:11.10/oneiric-updates [armel]) []
Inst update-notifier-common [0.117ubuntu3.1] (0.117ubuntu3.2 Ubuntu:11.10/oneiric-updates [all])
Inst x11-common [1:7.6+7ubuntu7] (1:7.6+7ubuntu7.1 Ubuntu:11.10/oneiric-security [armel])
Inst xserver-xorg-video-all [1:7.6+7ubuntu7] (1:7.6+7ubuntu7.1 Ubuntu:11.10/oneiric-security [armel])
Inst xserver-xorg-input-all [1:7.6+7ubuntu7] (1:7.6+7ubuntu7.1 Ubuntu:11.10/oneiric-security [armel])
Inst xserver-xorg [1:7.6+7ubuntu7] (1:7.6+7ubuntu7.1 Ubuntu:11.10/oneiric-security [armel])
Inst xorg [1:7.6+7ubuntu7] (1:7.6+7ubuntu7.1 Ubuntu:11.10/oneiric-security [armel])
Conf ifupdown (0.7~alpha5.1ubuntu5.1 Ubuntu:11.10/oneiric-updates [armel])
Conf libicu44 (4.4.2-2ubuntu0.11.10.1 Ubuntu:11.10/oneiric-security [armel])
Conf metacity-common (1:2.34.1-1ubuntu4.1 Ubuntu:11.10/oneiric-updates [all])
Conf libmetacity-private0 (1:2.34.1-1ubuntu4.1 Ubuntu:11.10/oneiric-updates [armel])
Conf unity-services (4.28.0-0ubuntu2 Ubuntu:11.10/oneiric-updates [armel])
Conf libunity-core-4.0-4 (4.28.0-0ubuntu2 Ubuntu:11.10/oneiric-updates [armel])
Conf metacity (1:2.34.1-1ubuntu4.1 Ubuntu:11.10/oneiric-updates [armel])
Conf python-software-properties (0.81.13.2 Ubuntu:11.10/oneiric-updates [all])
Conf software-properties-common (0.81.13.2 Ubuntu:11.10/oneiric-updates [all])
Conf software-properties-gtk (0.81.13.2 Ubuntu:11.10/oneiric-updates [all])
Conf tomboy (1.8.0-1ubuntu1.1.1 Ubuntu:11.10/oneiric-updates [armel])
Conf update-notifier-common (0.117ubuntu3.2 Ubuntu:11.10/oneiric-updates [all])
Conf update-notifier (0.117ubuntu3.2 Ubuntu:11.10/oneiric-updates [armel])
Conf x11-common (1:7.6+7ubuntu7.1 Ubuntu:11.10/oneiric-security [armel])
Conf xserver-xorg-video-all (1:7.6+7ubuntu7.1 Ubuntu:11.10/oneiric-security [armel])
Conf xserver-xorg-input-all (1:7.6+7ubuntu7.1 Ubuntu:11.10/oneiric-security [armel])
Conf xserver-xorg (1:7.6+7ubuntu7.1 Ubuntu:11.10/oneiric-security [armel])
Conf xorg (1:7.6+7ubuntu7.1 Ubuntu:11.10/oneiric-security [armel])

問題なさそうなので入れる。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get upgrade 

一旦再起動しておく。

Ubuntu-TV化する続きの作業はまただな。

2012-01-26

[][] Ubuntu TVやってみる(10) ようやくubuntu-tvの導入(概要)

rootFSのバックアップをした。

パッケージをアップデートしたら、マウスの残像なんかはなくなった気がする。

Unity2dにしたからではないと思うけど。


さて、長い環境整備も終わって、ようやく本番。

でも、この先も長い(^^;。


LinaroのRicardo SalvetiがUbuntuTVがpandaboardで動作したという報告をしている。

http://rsalveti.wordpress.com/2012/01/10/ubuntu-tv-ui-at-pandaboard-and-next-steps/

http://rsalveti.wordpress.com/2012/01/16/ubuntu-tv-fully-accelerated-on-a-pandaboard-with-ubuntu-leb/

1/10の時点では、Qtmobilityのほうにいくつか問題があったようだ。

1/14には、Rob Clark(robclark)によって、Qtmobilityにパッチが入って使えるようになった。

https://github.com/robclark/qtmobility-1.1.0

D

1/16分の報告では、必要なパッチについては、すでにlinaro overlay PPAにパッケージ化されて入っているそうだ。

この環境では、linaro overlay PPAはすでに利用できるようになっている。


あとは、以下に従う。

https://wiki.ubuntu.com/UbuntuTV/Contributing

AMD ION向けの内容なのだけど。

参考になる資料がこれ以外にない。


流れとしては、以下のようになる。

  • ubuntu-tvのビルド
  • unity-lens-videoのビルド
  • dconfのフォームファクターをtvに設定
  • 既存のunity2d関係のプロセスを終わる
  • ウインドウマネージャをmetacityに変更
  • ubuntu-tvの起動用スクリプトから起動

[][] Ubuntu TVやってみる(11) ubuntu-tv(unity2d改)のビルド

どーせなら、PPAで、ubuntu-tv(専用のunity2d)も、unity-lens-videoも、パッケージで提供してくれるといいのに。

ないの?

linaro@linaro-ubuntu-desktop:~$ apt-cache search ubuntu-tv

ない。

linaro@linaro-ubuntu-desktop:~$ apt-cache search unity-lens-video
unity-lens-video - Video lens for unity

をや、あるよ。

unity-lens-video (0.5+51+201201160324~oneiric1 Linaro Overlay PPA:11.10/oneiric [armel])

使えそう。

ちょっと楽ができそう。


前にやったときには、ubuntu-tvの実体であるunity2d改変版のビルドに必要なパッケージを入れると、依存関係でOMAPのOpenGL/ES関係のパッケージである、hwpack-linaro-lt-panda-x11-base, libegl1-sgx-omap4, libgles2-sgx-omap4が削除されてしまう。その問題については、*-devを事前にインストールしておくと問題がないという情報もあるようなので、それも試す。


OMAP用パッケージが削除されないように、事前にdevパッケージを入れておいてみる。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get install libegl1-sgx-omap4-dev libgles2-sgx-omap4-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libswscale2 libavutil51 libxcb-xfixes0 libpostproc52 libavformat53
  libschroedinger-1.0-0 libgbm1 libvpx0 libgsm1 libwayland0 libavcodec53
  libxcb-dri2-0 libva1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libpthread-stubs0 libpthread-stubs0-dev libx11-dev libxau-dev libxcb1-dev
  libxdmcp-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev
  xorg-sgml-doctools xtrans-dev
The following NEW packages will be installed:
  libegl1-sgx-omap4-dev libgles2-sgx-omap4-dev libpthread-stubs0
  libpthread-stubs0-dev libx11-dev libxau-dev libxcb1-dev libxdmcp-dev
  x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools
  xtrans-dev
0 upgraded, 13 newly installed, 0 to remove and 2 not upgraded.
Need to get 41.7 kB/3815 kB of archives.
After this operation, 15.6 MB of additional disk space will be used.
(snip)

ビルドに必要なパッケージを導入する。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get build-dep unity-2d
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  autoconf automake autotools-dev cmake cmake-data debhelper dh-translations
  emacsen-common gettext gettext-base gir1.2-gee-1.0 html2text intltool
  intltool-debian libatk1.0-dev libboost1.46-dev libcairo-script-interpreter2
  libcairo2-dev libcurl3 libdbus-1-dev libdbus-glib-1-dev libdbusmenu-glib-dev
  libdbusmenu-qt-dev libdconf-dbus-1-dev libdconf-qt-dev libdee-dev
  libencode-locale-perl libexpat1-dev libfile-listing-perl libfontconfig1-dev
  libfreetype6-dev libgdk-pixbuf2.0-dev libgee-dev libglib2.0-dev
  libglib2.0-dev-bin libgtk-3-dev libgtk2.0-dev libhtml-parser-perl
  libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-date-perl
  libhttp-message-perl libhttp-negotiate-perl libice-dev libindicator-dev
  libindicator3-dev libio-socket-ssl-perl liblwp-mediatypes-perl
  liblwp-protocol-https-perl libnet-http-perl libnet-ssleay-perl
  libnux-1.0-dev libpango1.0-dev libpcre3-dev libpcrecpp0 libpixman-1-dev
  libpng12-dev libqt4-designer libqt4-dev libqt4-help libqt4-opengl-dev
  libqt4-qt3support libqt4-scripttools libqt4-test libqtbamf-dev libqtdee-dev
  libqtgconf-dev libsigc++-2.0-dev libsm-dev libstartup-notification0-dev
  libunistring0 libunity-core-4.0-dev libunity-dev liburi-perl
  libutouch-geis-dev libwnck-3-dev libwww-perl libwww-robotrules-perl
  libxcb-render0-dev libxcb-shm0-dev libxcomposite-dev libxcursor-dev
  libxdamage-dev libxext-dev libxfixes-dev libxft-dev libxi-dev
  libxinerama-dev libxml-parser-perl libxml2-utils libxmlrpc-core-c3-0
  libxrandr-dev libxrender-dev libxres-dev libxxf86vm-dev m4 po-debconf
  qt4-linguist-tools qt4-qmake x11proto-composite-dev x11proto-damage-dev
  x11proto-fixes-dev x11proto-randr-dev x11proto-render-dev
  x11proto-resource-dev x11proto-xext-dev x11proto-xf86vidmode-dev
  x11proto-xinerama-dev zlib1g-dev
0 upgraded, 110 newly installed, 0 to remove and 2 not upgraded.
Need to get 37.9 MB/45.4 MB of archives.
After this operation, 219 MB of additional disk space will be used.
(snip)

おお、削除されなかった!

よかった(^^;。

普通なら、以下のような表示が出る。

The following packages will be REMOVED:
  hwpack-linaro-lt-panda-x11-base libegl1-sgx-omap4 libgles2-sgx-omap4
(snip)
0 upgraded, 129 newly installed, 3 to remove and 2 not upgraded.

これは、依存関係のバグで、OpenGL系ではビルドにmesaを必須にしているからのよう。

そのうち直るんだろうか...


ソースコードの取得と、ubuntu-tvの動作に必要な関連ツールをダウンロードする。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get install bzr dconf-tools ffmpeg gnome-common libdeclarative-multimedia
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libxcb-xfixes0 libgbm1 libwayland0 libxcb-dri2-0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  autopoint bzrtools git git-man libavdevice53 libavfilter2 libdc1394-22
  liberror-perl libltdl-dev libqtmultimediakit1 libtool python-bzrlib
  python-configobj python-paramiko rsync
Suggested packages:
  bzr-doc bzr-gtk bzr-svn python-bzrlib.tests graphviz librsvg2-bin git-doc
  git-el git-arch git-cvs git-svn git-email git-daemon-run git-gui gitk gitweb
  libtool-doc qtmobility-l10n gfortran fortran95-compiler gcj python-kerberos
  python-gpgme python-bzrlib-dbg openssh-server
The following NEW packages will be installed:
  autopoint bzr bzrtools dconf-tools ffmpeg git git-man gnome-common
  libavdevice53 libavfilter2 libdc1394-22 libdeclarative-multimedia
  liberror-perl libltdl-dev libqtmultimediakit1 libtool python-bzrlib
  python-configobj python-paramiko rsync
0 upgraded, 20 newly installed, 0 to remove and 5 not upgraded.
Need to get 9990 kB of archives.
After this operation, 36.7 MB of additional disk space will be used.
(snip)

bzrを使って、ubuntu-tvのソースコードをダウンロードする。

linaro@linaro-ubuntu-desktop:~$ bzr branch lp:~s-team/ubuntutv/trunk ubuntu-tv
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
Branched 959 revision(s).   

ビルドする。

linaro@linaro-ubuntu-desktop:~$ cd ubuntu-tv
linaro@linaro-ubuntu-desktop:~/ubuntu-tv$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found version "4.7.4")
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabi/libX11.so;/usr/lib/arm-linux-gnueabi/libXext.so
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabi/libX11.so;/usr/lib/arm-linux-gnueabi/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/arm-linux-gnueabi/libX11.so
-- checking for module 'glib-2.0'
--   found glib-2.0, version 2.30.0
-- checking for module 'gdk-3.0'
--   found gdk-3.0, version 3.2.0
-- checking for module 'gtk+-3.0'
--   found gtk+-3.0, version 3.2.0
-- checking for module 'gio-2.0'
--   found gio-2.0, version 2.30.0
-- checking for module 'libwnck-3.0'
--   found libwnck-3.0, version 3.2.0
-- checking for module 'libqtgconf'
--   found libqtgconf, version 0.0
-- checking for module 'nux-core-1.0'
--   found nux-core-1.0, version 1.16.0
-- checking for module 'pango'
--   found pango, version 1.29.3
-- checking for module 'dconf-qt'
--   found dconf-qt, version 
-- GSettings schemas will be installed into /usr/local/share/glib-2.0/schemas/
-- checking for module 'libqtbamf'
--   found libqtbamf, version 0.0
-- checking for module 'libqtdee'
--   found libqtdee, version 0.2
-- checking for module 'dbusmenu-qt'
--   found dbusmenu-qt, version 0.9.0
-- checking for module 'libstartup-notification-1.0'
--   found libstartup-notification-1.0, version 0.12
-- checking for module 'indicator3-0.4'
--   found indicator3-0.4, version 0.4.1
-- checking for module 'unity-core-4.0'
--   found unity-core-4.0, version 4.24.0
-- checking for module 'dee-1.0'
--   found dee-1.0, version 0.5.22
-- checking for module 'xi'
--   found xi, version 1.4.3.99.1
-- checking for module 'libutouch-geis'
--   found libutouch-geis, version 2.1.2
-- Configuring done
-- Generating done
-- Build files have been written to: /home/linaro/ubuntu-tv


linaro@linaro-ubuntu-desktop:~/ubuntu-tv$ make
[  0%] Generating radiofilteroptions.moc
[  0%] Generating bfb.moc
[  0%] Generating dashclient.moc
(snip)
[ 74%] Generating af.gmo
[100%] Built target msgfmt


linaro@linaro-ubuntu-desktop:~/ubuntu-tv$ cd ..
linaro@linaro-ubuntu-desktop:~$ 

若干ワーニングが出ているが、ビルドそのものはつつがなく終了した。

[][] Ubuntu TVやってみる(12) unity-lens-videoを導入する

PPAにパッケージがあったので、これを入れるだけ。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get install unity-lens-video
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libxcb-xfixes0 libgbm1 libwayland0 libxcb-dri2-0
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  unity-lens-video
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 28.8 kB of archives.
After this operation, 176 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu/ oneiric/main unity-lens-video armel 0.5+51+201201160324~oneiric1 [28.8 kB]
Fetched 28.8 kB in 2s (13.0 kB/s)           
Selecting previously deselected package unity-lens-video.
(Reading database ... 146629 files and directories currently installed.)
Unpacking unity-lens-video (from .../unity-lens-video_0.5+51+201201160324~oneiric1_armel.deb) ...
Setting up unity-lens-video (0.5+51+201201160324~oneiric1) ...

パッケージがない場合は、以下のようにビルドが必要だった。

$ bzr branch lp:~s-team/ubuntutv/unity-lens-video
$ cd unity-lens-video
$ ./autogen.sh --prefix=/usr --sysconfdir=/etc
$ sudo make install
$ cd ..

[][] Ubuntu TVやってみる(13) ubuntu-tvの起動

起動前に少し準備がある。

動画データがある場合には、サムネイルを生成するスクリプトを走らせておく必要がある。

$ /usr/lib/unity-lens-video/create_tmb.sh ~/Videos/

Unity2dのフォームファクタにtvを指定する。

linaro@linaro-ubuntu-desktop:~$ GSETTINGS_SCHEMA_DIR=ubuntu-tv/data gsettings set com.canonical.Unity2d form-factor tv

** (process:17820): WARNING **: Command line `dbus-launch --autolaunch=be3c9d815a9e99a25c4746ac00384ff5 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n

** (process:17820): WARNING **: Command line `dbus-launch --autolaunch=be3c9d815a9e99a25c4746ac00384ff5 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n

ワーニングが出る。

あ、リモートだからね。

コンソールからやらないとダメか。

というわけで、PandaboardのTerminalから操作する。

Terminalからであれば、特にエラーもなく終了する。


既存のunity2d関連のプロセスを強制終了する。

二度やる必要があると書いてある。

linaro@linaro-ubuntu-desktop:~$ killall unity-2d-{panel,places,launcher,spread} && killall unity-2d-{panel,places,launcher,spread}
unity-2d-panel: no process found
unity-2d-spread: no process found

画面からは、パネルが一度は消えるけど、再起動してきちゃう。


先に、ウインドウマネージャをmetacityに設定する。

linaro@linaro-ubuntu-desktop:~$ metacity --replace &
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 
(metacity:18158): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", 

もう一回、Unity2dを強制終了してみると、もう起動してこなかった。


ubuntu-tvを起動する。

linaro@linaro-ubuntu-desktop:~$ cd ubuntu-tv
linaro@linaro-ubuntu-desktop:~/ubuntu-tv$ ./shell/app/unity-2d-shell -opengl

うまくいった。

https://lh6.googleusercontent.com/-g16kH9LqK3o/Tx9x2o4MEfI/AAAAAAAAB_4/zQveVOfQvig/s720/24%252520-%2525202.jpg

https://lh3.googleusercontent.com/-sXLTAxjDmWs/Tx9x2abmRMI/AAAAAAAAB_w/KFrdsGthOaQ/s720/24%252520-%2525201.jpg

[][] Ubuntu TVやってみる(14) 動画インデックスの生成(xbmcが落ちるので作れず)

一応ぬるぬる動いている。

動画サンプル入れてみないとな。

このへんに映画のサンプルがあるので、~/Videosに落としてみる。

http://www.h264info.com/clips.html

サムネイルの生成は、以下のスクリプトで実行する。

linaro@linaro-ubuntu-desktop:~/Videos$ /usr/lib/unity-lens-video/create_tmb.sh ~/Videos/
/usr/lib/unity-lens-video/create_tmb.sh
Creating thumbnails for /home/linaro/Videos/Captain America - The First Avenger - Trailer 2.mp4...
Creating thumbnails for /home/linaro/Videos/The Hobbit - An Unexpected Journey - Trailer.mp4...

結構時間かかる。

たかだがトレーラーサイズなのに。

これって、早送り用のキーフレームのサムネイルも生成しているのかしらん。

linaro@linaro-ubuntu-desktop:~/Videos$ ls
Captain America - The First Avenger - Trailer 2.mp4
Captain America - The First Avenger - Trailer 2_0.tmb
Captain America - The First Avenger - Trailer 2_1.tmb
Captain America - The First Avenger - Trailer 2_2.tmb
Captain America - The First Avenger - Trailer 2_3.tmb
Captain America - The First Avenger - Trailer 2_4.tmb
Captain America - The First Avenger - Trailer 2_5.tmb
Captain America - The First Avenger - Trailer 2_6.tmb
Captain America - The First Avenger - Trailer 2_7.tmb
Captain America - The First Avenger - Trailer 2_8.tmb
Captain America - The First Avenger - Trailer 2_9.tmb
The Hobbit - An Unexpected Journey - Trailer.mp4
The Hobbit - An Unexpected Journey - Trailer_0.tmb
The Hobbit - An Unexpected Journey - Trailer_1.tmb
The Hobbit - An Unexpected Journey - Trailer_2.tmb
The Hobbit - An Unexpected Journey - Trailer_3.tmb
The Hobbit - An Unexpected Journey - Trailer_4.tmb
The Hobbit - An Unexpected Journey - Trailer_5.tmb
The Hobbit - An Unexpected Journey - Trailer_6.tmb
The Hobbit - An Unexpected Journey - Trailer_7.tmb
The Hobbit - An Unexpected Journey - Trailer_8.tmb
The Hobbit - An Unexpected Journey - Trailer_9.tmb

やっぱそうか。

データ量多くなりそうだな... orz


んー、これだけでは何も出てこないな。

video-lensの説明はこれ。

https://bazaar.launchpad.net/~s-team/ubuntutv/unity-lens-video/view/head:/README.txt

データは、Videos/unityの下に入るようだ。

そんなディレクトリはないな。


データの生成には、XMBCがいるのか。

ドキュメントに従ってPPA版を入れる。

linaro@linaro-ubuntu-desktop:~/Videos$ sudo add-apt-repository ppa:nathan-renniewaldock/xbmc-stable
You are about to add the following PPA to your system:
 XBMC Stable
 Stable releases of XBMC.
 More info: https://launchpad.net/~nathan-renniewaldock/+archive/xbmc-stable
Press [ENTER] to continue or ctrl-c to cancel adding it

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.rEITkGdSnD --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv 428926204FE30238F00B98224CDB129629A4B41A
gpg: requesting key 29A4B41A from hkp server keyserver.ubuntu.com
gpg: key 29A4B41A: public key "Launchpad PPA for Nathan Rennie-Waldock" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

linaro@linaro-ubuntu-desktop:~/Videos$ sudo apt-get update

linaro@linaro-ubuntu-desktop:~/Videos$ apt-get install xbmc -s
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 xbmc : Depends: xbmc-bin (>= 2:11.0-0~beta1~ppa1~oneiric) but 2:11.0~git20111216.68fff18-0linaro7 is to be installed
        Recommends: python-qt3 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

うえ、パッケージコンフリクトだよ。

めんどくさすぎ。

インデックス作るだけなんだけどな。

PPAを削除。

linaro@linaro-ubuntu-desktop:~/Videos$ sudo rm /etc/apt/sources.list.d/nathan-renniewaldock-xbmc-stable-oneiric.list 
linaro@linaro-ubuntu-desktop:~/Videos$ sudo apt-get update

xbmcってないの?

linaro@linaro-ubuntu-desktop:~/Videos$ apt-cache search xbmc
texlive-latex-extra - TeX Live: LaTeX supplementary packages
libnfo1 - an NFO file parser/writer library
minidlna - lightweight DLNA/UPnP-AV server targeted at embedded systems
xbmc - XBMC Media Center (arch-independent data package)
xbmc-eventclients-wiiremote - XBMC Media Center (Event Client WII Remote support package)
xbmc-eventclients-common - XBMC Media Center (Event Client Common package)
xbmc-eventclients-dev - XBMC Media Center (Event Client Dev package)
xbmc-eventclients-j2me - XBMC Media Center (Event Client J2ME package)
xbmc-eventclients-ps3 - XBMC Media Center (Event Client PS3 package)
xbmc-bin - XBMC Media Center (binary data package)
xbmc-live - XBMC Media Center (XBMC Live package)
xbmc-eventclients-xbmc-send - XBMC Media Center (Event Client XBMC-SEND package)
xbmc-bin-dbgsym - debug symbols for package xbmc-bin

普通にあるんじゃん。

これだとダメかね?

linaro@linaro-ubuntu-desktop:~/Videos$ apt-get install xbmc -s
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libxcb-xfixes0 libgbm1 libwayland0 libxcb-dri2-0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libhal-storage1 libhal1 liblzo2-2 libmicrohttpd5 libmikmod2 libqt3-mt
  libsdl-mixer1.2 libsmpeg0 libyajl1 mesa-utils python-bluez python-central
  python-qt3 python-sip xbmc-bin
Suggested packages:
  libqt3-mt-psql libqt3-mt-mysql libqt3-mt-odbc python-qt3-gl python-qt3-doc
  xbmc-test-helper
Recommended packages:
  libcec
The following NEW packages will be installed:
  libhal-storage1 libhal1 liblzo2-2 libmicrohttpd5 libmikmod2 libqt3-mt
  libsdl-mixer1.2 libsmpeg0 libyajl1 mesa-utils python-bluez python-central
  python-qt3 python-sip xbmc xbmc-bin
0 upgraded, 16 newly installed, 0 to remove and 5 not upgraded.
Inst libhal1 (0.5.14-7ubuntu1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
Inst libhal-storage1 (0.5.14-7ubuntu1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
Inst liblzo2-2 (2.05-2ubuntu1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
Inst libmicrohttpd5 (0.4.6-1 Ubuntu:11.10/oneiric [armel])
Inst libmikmod2 (3.1.11-a-6.4 Ubuntu:11.10/oneiric [armel])
Inst libqt3-mt (3:3.3.8-b-8ubuntu1 Ubuntu:11.10/oneiric [armel])
Inst libsmpeg0 (0.4.5+cvs20030824-2.2ubuntu1 Ubuntu:11.10/oneiric [armel])
Inst libsdl-mixer1.2 (1.2.8-6.3build1 Ubuntu:11.10/oneiric [armel])
Inst python-central (0.6.17 Ubuntu:11.10/oneiric [all])
Inst python-bluez (0.18-1build1 Ubuntu:11.10/oneiric [armel])
Inst python-sip (4.12.4-1 Ubuntu:11.10/oneiric [armel])
Inst python-qt3 (3.18.1-4ubuntu3 Ubuntu:11.10/oneiric [armel])
Inst libyajl1 (1.0.12-0ubuntu2 Ubuntu:11.10/oneiric [armel])
Inst xbmc-bin (2:11.0~git20111216.68fff18-0linaro7 Linaro Overlay PPA:11.10/oneiric [armel])
Inst mesa-utils (8.0.1+git20110129+d8f7d6b-0ubuntu2 Ubuntu:11.10/oneiric [armel])
Inst xbmc (2:11.0~git20111216.68fff18-0linaro7 Linaro Overlay PPA:11.10/oneiric [armel])
Conf libhal1 (0.5.14-7ubuntu1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
Conf libhal-storage1 (0.5.14-7ubuntu1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
Conf liblzo2-2 (2.05-2ubuntu1linaro1 Linaro Overlay PPA:11.10/oneiric [armel])
Conf libmicrohttpd5 (0.4.6-1 Ubuntu:11.10/oneiric [armel])
Conf libmikmod2 (3.1.11-a-6.4 Ubuntu:11.10/oneiric [armel])
Conf libqt3-mt (3:3.3.8-b-8ubuntu1 Ubuntu:11.10/oneiric [armel])
Conf libsmpeg0 (0.4.5+cvs20030824-2.2ubuntu1 Ubuntu:11.10/oneiric [armel])
Conf libsdl-mixer1.2 (1.2.8-6.3build1 Ubuntu:11.10/oneiric [armel])
Conf python-central (0.6.17 Ubuntu:11.10/oneiric [all])
Conf python-bluez (0.18-1build1 Ubuntu:11.10/oneiric [armel])
Conf python-sip (4.12.4-1 Ubuntu:11.10/oneiric [armel])
Conf python-qt3 (3.18.1-4ubuntu3 Ubuntu:11.10/oneiric [armel])
Conf libyajl1 (1.0.12-0ubuntu2 Ubuntu:11.10/oneiric [armel])
Conf xbmc-bin (2:11.0~git20111216.68fff18-0linaro7 Linaro Overlay PPA:11.10/oneiric [armel])
Conf mesa-utils (8.0.1+git20110129+d8f7d6b-0ubuntu2 Ubuntu:11.10/oneiric [armel])
Conf xbmc (2:11.0~git20111216.68fff18-0linaro7 Linaro Overlay PPA:11.10/oneiric [armel])

行けそうじゃない。

入れる。

linaro@linaro-ubuntu-desktop:~/Videos$ sudo apt-get install xbmc

起動する。

linaro@linaro-ubuntu-desktop:~/Videos$ xbmc
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
Error: unable to open display 
FEH.py: cannot connect to X server 

うげ、これもダメなのかよ。


一旦、ubuntu-tvを終わる。

linaro@linaro-ubuntu-desktop:~/Videos$ ps ax | grep unity-2d-shell
 2774 pts/0    Sl+    7:22 ./shell/app/unity-2d-shell -opengl
linaro@linaro-ubuntu-desktop:~/Videos$ kill 2774

xbmcを起動すると、セグフォルトで落ちた... orz

というわけで、コンテンツインデックスが作れない罠。

手で作る?

インデックスだけ自動生成したらいいので、

なんかのスクリプトで書いた互換デーモンとかないのかね。

てーか、このへんxbmcに依存してるのがイヤ。

2012-01-25

[][] Ubuntu TVやってみる(4) なんか表示は出たのだけど、デモ動画と違いすぎ

なんかね、ごにょごにょやってたら、表示はできるようになったのだけどね、なんかすっきりしないとこも多いので、やり直し。

https://lh5.googleusercontent.com/-4lD-I40cqag/Tx5_gb2NdyI/AAAAAAAAB-8/4_m32hL7ttw/s720/24%252520-%2525201.jpg

ubuntu-tvというか、unity-2d改変版のビルド依存パッケージを入れると、OpenGL/ES用のOMAPライブラリが削除されちゃうので、やろうと思っている人はきをつけてね〜。

ってか、ubuntu-tvもパッケージで提供してくれよ〜。

lens-videoはパッケージありました。

[][] Ubuntu TVやってみる(5) スクエアディスプレイに表示できるようにしてみる

SDまっさらにして再スタート。

kinneko@BuildSV:~/linaro-panda$ sudo linaro-media-create --mmc /dev/sdc --dev panda --hwpack hwpack_linaro-lt-panda-x11-base_20111219-1_armel_supported.tar.gz --binary linaro-o-ubuntu-desktop-tar-20111219-0.tar.gz 

linaro版は、どうやら、ワイドディスプレイに表示されるようになっているようで、手元の昔のスクエア液晶には表示ができない。

それだと作業が滞るので、まずこれを解決する。


DSS2というAngstrome由来のドライバが使われていて、オプションはこのへんにある。

http://omappedia.org/wiki/Bootargs_for_enabling_display#DSS_specific_bootargs

omapfb.mode=<xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m] or <name>[-<bpp>][@<refresh>]

- Default video mode for specified displays. For example - "dvi:800x400MR-24@60".

<xres>, <yres>, <bpp> and <refresh> are decimal numbers and <name> is a string.

<xres> is resolution in x-axis.

<yres> is resolution in y-axis.

<bpp> is bit per pixel.

[M] will allow to compute the timings using VESA(tm) Coordinated Video Timings (CVT).

[R] will allow to compute with reduced blanking (for flatpanels).

[i] will allow to compute interlaced mode.

[m] will add margins equal to 1.8% of xres rounded down to 8 pixels, and 1.8% of yres.

デフォルトはここに書かれているのとは違うようだ。


kernelの起動パラメータは、kernelを起動するubootが渡している。

ubootが参照しているのは、起動パーティションにあるboot.scrの中身になる。

boot.scrは、ubootがロードできるようにmkimageでヘッダが追加されたファイル。

同じ内容がboot.txtに書かれている。

kinneko@BuildSV:~/linaro-panda$ mkdir mnt
kinneko@BuildSV:~/linaro-panda$ sudo mount /dev/sdc1 mnt/
kinneko@BuildSV:~/linaro-panda$ sudo mv mnt/boot.scr mnt/boot.scr.org
kinneko@BuildSV:~/linaro-panda$ sudo mv mnt/boot.txt mnt/boot.txt.org
kinneko@BuildSV:~/linaro-panda$ sudo cp mnt/boot.txt.org mnt/boot.txt     
kinneko@BuildSV:~/linaro-panda$ sudo vi mnt/boot.txt

通常のLinaro版の設定は以下のようになっている。

setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
setenv bootcmd "fatload mmc 0:1 0x80200000 uImage; fatload mmc 0:1 0x81600000 uInitrd; fatload mmc 0:1 0x815f0000 board.dtb; bootm 0x80200000 0x81600000 0x815f0000"
setenv bootargs "console=tty0 console=ttyO2,115200n8  root=UUID=e2d067cc-a340-4ee5-b5eb-7a330833a6a8 rootwait ro earlyprintk fixrtc nocompcache vram=48M omapfb.vram=0:24M mem=456M@0x80000000 mem=512M@0xA0000000"

無難なところで、"omapfb.mode=dvi:1024x768MR-24@60"を追記する。

kinneko@BuildSV:~/linaro-panda$ cat mnt/boot.txt
setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
setenv bootcmd "fatload mmc 0:1 0x80200000 uImage; fatload mmc 0:1 0x81600000 uInitrd; fatload mmc 0:1 0x815f0000 board.dtb; bootm 0x80200000 0x81600000 0x815f0000"
setenv bootargs "console=tty0 console=ttyO2,115200n8  root=UUID=8a1267b1-a432-4f86-836f-ef0e75cb2a97 rootwait ro earlyprintk fixrtc nocompcache omapfb.mode=dvi:1024x768MR-24@60 vram=48M omapfb.vram=0:24M mem=456M@0x80000000 mem=512M@0xA0000000"
boot

mkimageでboot.scrを作る。

kinneko@BuildSV:~/linaro-panda$ sudo mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Ubuntu" -d mnt/boot.txt mnt/boot.scr
Image Name:   Ubuntu
Created:      Tue Jan 24 22:23:32 2012
Image Type:   ARM Linux Script (uncompressed)
Data Size:    484 Bytes = 0.47 kB = 0.00 MB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 476 Bytes = 0.46 kB = 0.00 MB

できたのは、少しサイズが大きい。

kinneko@BuildSV:~/linaro-panda$ ls -l mnt/boot.scr*
-rwxr-xr-x 1 root root 548 Jan 24 21:23 mnt/boot.scr
-rwxr-xr-x 1 root root 514 Jan 24 22:50 mnt/boot.scr.org
kinneko@BuildSV:~/linaro-panda$ sudo umount mnt

出来たものをPandaに挿入して再起動。

HDMIケーブルは、NIC側のDVI端子に入れる。

電源を入れて起動する。

ACの突入で起動すると、調子がわるいことがあるようなので、入れたらリセットボタンを押しておく。


表示、きたきた。

ペンギン2匹とコンソールのあと、しばらくブラックアウトする。

そのうち、センタにマウスカーソルが見えてくる。

Xだけの時は、マウスカーソルも快調に動く。


あとは長い。待つだけ。

ほんと長い...


やっぱ、SDからだとUnity表示終わるまですら時間がかかりすぎだわ。

Unity動くと、カーソルの残像が出る。

クリックしても、カーソルが残る。

リフレッシュがおいついていないようだ。


あれ?これ、1024x768じゃないな...

VRAM足りないかな?

800x600くらい?

こんなもんだっけ?


アップデートマネージャーが、106個のパッケージをアップデートせよと言っているけど、とりあえず無視。


Terminalを起動して、dropbearをインストールし、sshを開通。

てーか、このイメージのユーザー名がわからぬな。

ユーザー名はlinaroになっている。

shadowファイルにはパスワードのハッシュが埋まっているので、linaroにはパスワードが設定されているらしい。

クリアする。

エコーがおかしいのか、terminal画面で、passwdコマンドのインターフェイスが出ない。

めくら打ちで変更OK。

以下sshごしに作業できる。

[][] Ubuntu TVやってみる(6) USBドライブからの起動に変更する

SDをrootFSにしていると、どうにも遅いし、SDが消耗するので、USBハードディスクをrootFSに変更する。

USBドライブをrootFSにする方法は、このへんにもう書かれている。

http://www.omappedia.com/wiki/Ubuntu_on_OMAP_FAQ#I_want_to_install_Ubuntu_on_external_USB_hard_disk_instead_of_sluggish_SD_card


rootfsのkernelパラメータは、UUID形式で書かれているが、これにLabelを使っている。

デバイス指定でもいいと思うのだけど。ダメなのかな?


おお、そうだ、USBの口がもう足りない。

USB HUBを使って、キーボードとマウスをそちらに移動して、USB HDDを直接つなげる。

ドライブは、sdaとして認識している。

自動マウントされていたら、アンマウントしておく。

必要なのは1つだが、一応、パーティションを2つ切っておく。

linaro@linaro-ubuntu-desktop:~$ sudo su -
root@linaro-ubuntu-desktop:~# fdisk /dev/sda
root@linaro-ubuntu-desktop:~# fdisk /dev/sda -l

Disk /dev/sda: 40.0 GB, 40007761920 bytes
64 heads, 32 sectors/track, 38154 cylinders, total 78140160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc621b949

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    20973567    10485760   83  Linux
/dev/sda2        20973568    78140159    28583296   83  Linux

10Gと残りの2つ。

どちらもext3で初期化しておく。

10Gのほうにはラベルをutvrootfsと付けておく。

root@linaro-ubuntu-desktop:~# mkfs.ext3 /dev/sda1
root@linaro-ubuntu-desktop:~# mkfs.ext3 /dev/sda2
root@linaro-ubuntu-desktop:~# e2label /dev/sda1 utvrootfs
root@linaro-ubuntu-desktop:~# e2label /dev/sda1
utvrootfs
root@linaro-ubuntu-desktop:~# shutdown -h now

終わったら、一旦Pandaboardを落とす。


別マシンに、SDとHDDをつないで、SDの第二パーティションの内容を、HDDの第一パーティションにコピーする。

kinneko@BuildSV:~/linaro-panda$ sudo su -
root@BuildSV:~# mount /dev/sdb2 /media/
root@BuildSV:~# mount /dev/sdc1 /mnt/
root@BuildSV:~# cp -a /media/* /mnt/
root@BuildSV:~# umount /mnt /media

kernelの起動オプションを書き換える。

先ほどと同様に、boot.txtを変更して、boot.scrを作成する。

root@BuildSV:~# mount /dev/sdb1 /media/
root@BuildSV:~# sudo vi /media/boot.txt
setenv bootargs "console=tty0 console=ttyO2,115200n8 root=LABEL=utvrootfs rootwait ro earlyprintk fixrtc nocompcache omapfb.mode=dvi:1024x768MR-24@60 vram=48M omapfb.vram=0:24M mem=456M@0x80000000 mem=512M@0xA0000000"
root@BuildSV:~# sudo mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Ubuntu" -d /media/boot.txt /media/boot.scr
Image Name:   Ubuntu
Created:      Tue Jan 24 23:23:05 2012
Image Type:   ARM Linux Script (uncompressed)
Data Size:    457 Bytes = 0.45 kB = 0.00 MB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 449 Bytes = 0.44 kB = 0.00 MB
root@BuildSV:~# umount /media 

SDとHDDをPandaに戻して起動。

おお、前に比べたら、だいぶ起動が速い。

ややぎこちなさは残るものの、これなら使えそうなレベルだわ。

[][] Ubuntu TVやってみる(7) Unity-2dにする(もうなってた)

おや?

kernel起動パラメータで、解像度指定していても、ワイドディスプレイに接続するとちゃんとワイドに映る。

dviから取得している解像度データのほうが優先するのかな?


Ubuntu-TVの実体は、unity-2dの改変版。

なので、とりあえず、現在動いているunity-3dを2dに変更してみる。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get install unity-2d
(snip)
unity-2d is already the newest version.
(snip)

なんだよ... orz

はいってるんじゃん...

linaro@linaro-ubuntu-desktop:~$ dpkg -l | grep unity
ii  gir1.2-unity-4.0                       4.0.6-0ubuntu3                          GObject introspection data for the Unity library
ii  libmeanwhile1                          1.0.2-4                                 open implementation of the Lotus Sametime Community Client protocol
ii  libunity-2d-private0                   4.12.0-0ubuntu1.1                       Unity 2D shared library
ii  libunity-core-4.0-4                    4.24.0.2011.10-0linaro3                 Core library for the Unity interface.
ii  libunity-misc4                         4.0.4-0ubuntu2                          Miscellaneous functions for Unity - shared library
ii  libunity6                              4.0.6-0ubuntu3                          binding to get places into the launcher - shared library
ii  unity                                  4.24.0.2011.10-0linaro3                 Interface designed for efficiency of space and interaction.
ii  unity-2d                               4.12.0-0ubuntu1.1                       Unity interface for non-accelerated graphics cards
ii  unity-2d-launcher                      4.12.0-0ubuntu1.1                       Unity 2D Launcher
ii  unity-2d-panel                         4.12.0-0ubuntu1.1                       Unity 2D Panel
ii  unity-2d-places                        4.12.0-0ubuntu1.1                       Unity 2D Places
ii  unity-2d-spread                        4.12.0-0ubuntu1.1                       Unity 2D Spread
ii  unity-asset-pool                       0.8.22-0ubuntu1                         Unity Assets Pool
ii  unity-common                           4.24.0.2011.10-0linaro3                 Common files for the Unity interface.
ii  unity-greeter                          0.1.1-0ubuntu1                          Unity Greeter
ii  unity-lens-applications                0.4.12-0ubuntu2                         Application lens for unity
ii  unity-lens-files                       0.6.12-0ubuntu1                         File lens for unity
ii  unity-lens-music                       0.2.6-0ubuntu2                          Music lens for unity
ii  unity-scope-musicstores                0.2.6-0ubuntu2                          Store music lens for unity
ii  unity-services                         4.24.0.2011.10-0linaro3                 Services for the Unity interface

確かに入っている。


一旦、ログアウトして、ログイン設定でUbuntu/Ubuntu2Dを2Dに切り替える。

なるほど、UnityとUnity-2Dは微妙に違うのね。

DashHomeの窓の影の付き方とか。


unity関連のプロセスで動作しているのは以下。

linaro@linaro-ubuntu-desktop:~$ ps ax | awk '{print $5}' | grep unity
unity-2d-launcher
unity-2d-panel
/usr/lib/unity/unity-panel-service
/usr/bin/unity-2d-places
/usr/lib/unity-lens-applications/unity-applications-daemon
/usr/lib/unity-lens-music/unity-music-daemon
/usr/lib/unity-lens-files/unity-files-daemon
/usr/lib/unity-lens-music/unity-musicstore-daemon

unity-3dについては、削除しておきたい。

インストールされているもののうち、3dに関連しそうなのは以下。

libunity-core-4.0-4
unity
unity-common
unity-services

消すシミュレーションしてみる。

linaro@linaro-ubuntu-desktop:~$ apt-get remove --purge libunity-core-4.0-4 unity unity-common unity-services -s
(snip)
The following packages will be REMOVED:
  libunity-2d-private0* libunity-core-4.0-4* linaro-ubuntu-desktop*
  ubuntu-desktop* unity* unity-2d* unity-2d-launcher* unity-2d-panel*
  unity-2d-places* unity-2d-spread* unity-common* unity-lens-applications*
  unity-services*
(snip)

2dも消えちゃうな。

apt-get remove --purge libunity-core-4.0-4 -s
The following packages will be REMOVED:
  libunity-2d-private0* libunity-core-4.0-4* linaro-ubuntu-desktop*
  ubuntu-desktop* unity* unity-2d* unity-2d-launcher* unity-2d-panel*
  unity-2d-places* unity-2d-spread*

apt-get remove --purge unity -s

The following packages will be REMOVED:
  linaro-ubuntu-desktop* ubuntu-desktop* unity*

apt-get remove --purge unity-common -s

The following packages will be REMOVED:
  libunity-2d-private0* linaro-ubuntu-desktop* ubuntu-desktop* unity*
  unity-2d* unity-2d-launcher* unity-2d-panel* unity-2d-places*
  unity-2d-spread* unity-common* unity-lens-applications*

apt-get remove --purge unity-services -s

The following packages will be REMOVED:
  libunity-2d-private0* libunity-core-4.0-4* linaro-ubuntu-desktop*
  ubuntu-desktop* unity* unity-2d* unity-2d-launcher* unity-2d-panel*
  unity-2d-places* unity-2d-spread* unity-services*

あら、どれも消せないわ。

[][] Ubuntu TVやってみる(8) Linaroのインストール済み環境を調べる

kernelはこんなもの。

linaro@linaro-ubuntu-desktop:~$ uname -a
Linux linaro-ubuntu-desktop 3.1.1-5-linaro-lt-omap #5~lt~ci~20111218011838+020210-Ubuntu SMP PREEMPT Mon Dec 19 05: armv7l armv7l armv7l GNU/Linux

パッケージリポジトリは普通。

linaro@linaro-ubuntu-desktop:~$ cat /etc/apt/sources.list
# /etc/apt/sources.list

deb http://ports.ubuntu.com/ oneiric main universe
deb-src http://ports.ubuntu.com/ oneiric main universe
deb http://ports.ubuntu.com/ oneiric-security main universe
deb-src http://ports.ubuntu.com/ oneiric-security main universe
deb http://ports.ubuntu.com/ oneiric-updates main universe
deb-src http://ports.ubuntu.com/ oneiric-updates main universe

追加リポジトリは、以下が入っている。

linaro overlay PPAもすでに記入されている。

$ cat /etc/apt/sources.list.d/hwpack.security.list 
deb http://ports.ubuntu.com/ubuntu-ports oneiric-security main universe
$ cat /etc/apt/sources.list.d/hwpack.ubuntu.list 
deb http://ports.ubuntu.com/ubuntu-ports oneiric main universe
$ cat /etc/apt/sources.list.d/hwpack.updates.list 
deb http://ports.ubuntu.com/ubuntu-ports oneiric-updates main universe
$ cat /etc/apt/sources.list.d/overlay.list
# sources.list part for the Linaro overlay ppa
deb http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu oneiric main

インストールされているパッケージを調べる。

linaro@linaro-ubuntu-desktop:~$ dpkg -l | awk 'NR>5 {print $2, $3}' | wc
   1286    2572   38237

すでに、1286もパッケージが入っている。

かなり大掛かりな状態だ。

1つは、後からssh用に入れたdropbear。

パッケージリストは作ってみたが、はてダでは書き切れない。


このうち、Linaro由来のパッケージを、バージョン情報を元にチェックする。

linaro@linaro-ubuntu-desktop:~$ dpkg -l | awk 'NR>5 {print $2, $3}' | grep linaro
base-files 6.4ubuntu5linaro4
bluez 4.96-0ubuntu4linaro2
bluez-alsa 4.96-0ubuntu4linaro2
bluez-cups 4.96-0ubuntu4linaro2
bluez-gstreamer 4.96-0ubuntu4linaro2
bzip2 1.0.5-6ubuntu2linaro1
compiz 1:0.9.6+bzr20110929.2011.10-0linaro3
compiz-core 1:0.9.6+bzr20110929.2011.10-0linaro3
compiz-gnome 1:0.9.6+bzr20110929.2011.10-0linaro3
compiz-plugins-default 1:0.9.6+bzr20110929.2011.10-0linaro3
compiz-plugins-main-default 1:0.9.6.2011.10-0linaro2
file 5.04-5ubuntu4linaro1
flash-kernel 2.28ubuntu34linaro2
gir1.2-dbusmenu-glib-0.4 0.5.0-0ubuntu4~linaro2
gir1.2-dbusmenu-gtk-0.4 0.5.0-0ubuntu4~linaro2
hwpack-linaro-lt-panda-x11-base 20111219-1
libasound2 1.0.24.1-4ubuntu1~linaro2
libbluetooth3 4.96-0ubuntu4linaro2
libbz2-1.0 1.0.5-6ubuntu2linaro1
libcompizconfig0 0.9.5.94-0ubuntu2linaro2
libdbusmenu-glib4 0.5.0-0ubuntu4~linaro2
libdbusmenu-gtk3-4 0.5.0-0ubuntu4~linaro2
libdbusmenu-gtk4 0.5.0-0ubuntu4~linaro2
libdecoration0 1:0.9.6+bzr20110929.2011.10-0linaro3
libegl1-mesa 7.11-0ubuntu3linaro1
libegl1-sgx-omap4 1.7.10.0.1.4-1linaro1
libgbm1 7.11-0ubuntu3linaro1
libgl1-mesa-dri 7.11-0ubuntu3linaro1
libgl1-mesa-glx 7.11-0ubuntu3linaro1
libglapi-mesa 7.11-0ubuntu3linaro1
libgles1-sgx-omap4 1.7.10.0.1.4-1linaro1
libgles2-mesa 7.11-0ubuntu3linaro1
libgles2-sgx-omap4 1.7.10.0.1.4-1linaro1
libglib2.0-0 2.30.0-0ubuntu4linaro9
libglib2.0-bin 2.30.0-0ubuntu4linaro9
libglib2.0-data 2.30.0-0ubuntu4linaro9
libglu1-mesa 7.11-0ubuntu3linaro1
libgmp10 2:5.0.1+dfsg-7ubuntu3linaro1
libgnome-keyring0 3.2.0-0ubuntu3~linaro2
libgnome2-common 2.32.1-1ubuntu1linaro1
libgpm2 1.20.4-3.4ubuntu2linaro1
libiw30 30~pre9-5ubuntu2linaro1
libjpeg-turbo62 1.1.90+svn722-1ubuntu2linaro1
liblightdm-gobject-1-0 1.0.6-0ubuntu1.2linaro2
liblzma2 5.1.1alpha+20110809-2linaro2
libmagic1 5.04-5ubuntu4linaro1
libmpfr4 3.0.1-5ubuntu1linaro1
libncurses5 5.9-1.1linaro1
libncursesw5 5.9-1.1linaro1
libnux-1.0-0 1.16.0.2011.10-0linaro3
libnux-1.0-common 1.16.0.2011.10-0linaro3
libopenvg1-mesa 7.11-0ubuntu3linaro1
libopenvg1-sgx-omap4 1.7.10.0.1.4-1linaro1
libpci3 1:3.1.7-12ubuntu1linaro1
libpopt0 1.16-1ubuntu1linaro1
libpulse-mainloop-glib0 1:1.1-0ubuntu4~linaro1
libpulse0 1:1.1-0ubuntu4~linaro1
libpulsedsp 1:1.1-0ubuntu4~linaro1
libreadline6 6.2-2ubuntu2linaro1
libslang2 2.2.4-3linaro1
libspeex1 1.2~rc1+git20090708+a6d05eb-1linaro2
libspeexdsp1 1.2~rc1+git20090708+a6d05eb-1linaro2
libstartup-notification0 0.12-1ubuntu1linaro1
libunity-core-4.0-4 4.24.0.2011.10-0linaro3
libusb-0.1-4 2:0.1.12-18.1linaro1
libvpx0 0.9.7.p1-1ubuntu1linaro1
libxcb-util0 0.3.8-1ubuntu1linaro1
libxml2 2.7.8.dfsg-4ubuntu2linaro1
libxslt1.1 1.1.26-8ubuntu1linaro1
lightdm 1.0.6-0ubuntu1.2linaro2
linaro-overlay 1112.1
linaro-overlay-minimal 1112.1
linaro-ubuntu-desktop 022-oneiric
linux-firmware 1.60linaro1
linux-headers-3.1.1-5-linaro-lt-omap 3.1.1-5.5~lt~ci~20111218011838+020210
linux-headers-linaro-lt-omap 3.1.1.5.4~oneiric1
linux-image-3.1.1-5-linaro-lt-omap 3.1.1-5.5~lt~ci~20111218011838+020210
linux-image-linaro-lt-omap 3.1.1.5.4~oneiric1
ncurses-base 5.9-1.1linaro1
ncurses-bin 5.9-1.1linaro1
nux-tools 1.16.0.2011.10-0linaro3
pciutils 1:3.1.7-12ubuntu1linaro1
powervr-omap4-dkms 1.7.10.0.1.1-1linaro1
pulseaudio 1:1.1-0ubuntu4~linaro1
pulseaudio-esound-compat 1:1.1-0ubuntu4~linaro1
pulseaudio-module-bluetooth 1:1.1-0ubuntu4~linaro1
pulseaudio-module-gconf 1:1.1-0ubuntu4~linaro1
pulseaudio-module-x11 1:1.1-0ubuntu4~linaro1
pulseaudio-utils 1:1.1-0ubuntu4~linaro1
pvr-omap4 1.7.10.0.1.4-1linaro1
pvr-omap4-data 1.7.10.0.1.4-1linaro1
python-apt 0.8.0ubuntu9linaro1
python-apt-common 0.8.0ubuntu9linaro1
python-libxml2 2.7.8.dfsg-4ubuntu2linaro1
readline-common 6.2-2ubuntu2linaro1
software-center 5.0.3.1linaro1
ti-uim 0.0+git20110201+c738944-1linaro6
ubuntu-wallpapers 0.32.1.1-1linaro1
unity 4.24.0.2011.10-0linaro3
unity-common 4.24.0.2011.10-0linaro3
unity-services 4.24.0.2011.10-0linaro3
wireless-tools 30~pre9-5ubuntu2linaro1
xz-utils 5.1.1alpha+20110809-2linaro2
zip 3.0-4ubuntu1linaro1
linaro@linaro-ubuntu-desktop:~$ dpkg -l | awk 'NR>5 {print $2, $3}' | grep linaro | wc
    104     208    3967

104個だ。

[][] Ubuntu TVやってみる(9) Linaroのインストール状態からパッケージアップデートを行なう

リポジトリの更新。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get update

とりあえす、シミュレーションで更新テスト。

linaro@linaro-ubuntu-desktop:~$ apt-get upgrade -s
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  linux-headers-linaro-lt-omap linux-image-linaro-lt-omap
The following packages will be upgraded:
  app-install-data-partner banshee banshee-extension-soundmenu base-files
  binutils evince evince-common firefox firefox-globalmenu
  firefox-gnome-support flash-kernel gbrainy gir1.2-gstreamer-0.10
  gir1.2-gtk-3.0 gir1.2-rb-3.0 gir1.2-webkit-3.0 gstreamer0.10-alsa
  gstreamer0.10-ffmpeg gstreamer0.10-gconf gstreamer0.10-plugins-base
  gstreamer0.10-plugins-base-apps gstreamer0.10-plugins-good
  gstreamer0.10-pulseaudio gstreamer0.10-tools gstreamer0.10-x initscripts
  language-selector-common language-selector-gnome libasound2 libavcodec53
  libavformat53 libavutil51 libegl1-sgx-omap4 libevince3-3 libgail-3-0
  libgail-3-common libgles1-sgx-omap4 libgles2-sgx-omap4
  libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libgtk-3-0 libgtk-3-bin
  libgtk-3-common libgudev-1.0-0 libgweather-3-0 libgweather-common libjasper1
  libnautilus-extension1 libopenvg1-sgx-omap4 libpostproc52
  libpulse-mainloop-glib0 libpulse0 libpulsedsp libqt4-dbus libqt4-declarative
  libqt4-network libqt4-opengl libqt4-script libqt4-sql libqt4-sql-mysql
  libqt4-svg libqt4-xml libqt4-xmlpatterns libqtcore4 libqtgui4
  librhythmbox-core4 libswscale2 libsyncdaemon-1.0-1 libt1-5 libudev0
  libwebkitgtk-1.0-0 libwebkitgtk-1.0-common libwebkitgtk-3.0-0
  libwebkitgtk-3.0-common linux-libc-dev mousetweaks nautilus nautilus-data
  pulseaudio pulseaudio-esound-compat pulseaudio-module-bluetooth
  pulseaudio-module-gconf pulseaudio-module-x11 pulseaudio-utils pvr-omap4
  pvr-omap4-data python-cups python-launchpadlib python-ubuntuone-client qdbus
  rhythmbox rhythmbox-plugin-cdrecorder rhythmbox-plugins software-center
  sysv-rc sysvinit-utils thunderbird thunderbird-globalmenu
  thunderbird-gnome-support ubufox ubuntuone-client udev
  unity-lens-applications xul-ext-ubufox
104 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
(snip)

104パッケージがアップデートされる。

linux-headers-linaro-lt-omap linux-image-linaro-lt-omapはアップデートされず保留。


アップデートを実行する。

linaro@linaro-ubuntu-desktop:~$ sudo apt-get upgrade   

ここで一旦、rootFSをバックアップする。

二度目なので、次、壊れるのがわかってるから(^^;。