linaro

Linaro Milestone Builds を試してみることに。

add-apt-repository

add-apt-repository の man に以下な記述あり。

In the second form, ppa:/ will be expanded to the full deb line of the PPA and added into a new file in the /etc/apt/sources.list.d/ directory. The GPG public key of the newly added PPA will also be downloaded and added to apt's keyring.

コマンド実行してみるか。

$ sudo add-apt-repository ppa:linaro-maintainers/tools
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 1DD749B890A6F66D050D985CF1FCBACA7BE1F97B
gpg: requesting key 7BE1F97B from hkp server keyserver.ubuntu.com
gpg: key 7BE1F97B: public key "Launchpad Linaro Overlay PPA" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
$ ls -l /etc/apt/ -lt
total 56
-rw-r--r-- 1 root root 11034 2011-05-06 20:55 trusted.gpg
-rw-r--r-- 1 root root  3644 2011-05-06 20:55 sources.list
drwxr-xr-x 2 root root  4096 2011-05-06 20:55 sources.list.d
-rw-r--r-- 1 root root  3644 2011-05-06 20:55 sources.list.save
-rw-r--r-- 1 root root 10673 2011-01-24 17:31 trusted.gpg~
drwxr-xr-x 2 root root  4096 2011-01-24 17:06 apt.conf.d
-rw------- 1 root root  1200 2011-01-21 11:11 trustdb.gpg
-rw-r--r-- 1 root root  3385 2011-01-21 11:10 sources.list~
-rw------- 1 root root     0 2010-10-08 00:58 secring.gpg
drwxr-xr-x 2 root root  4096 2010-10-05 23:15 preferences.d
drwxr-xr-x 2 root root  4096 2010-10-05 23:15 trusted.gpg.d
$

む、いくつかファイルが更新されている様子。

$ ls sources.list.d -lt
total 32
-rw-r--r-- 1 root root  50 2011-05-06 20:55 dropbox.list
-rw-r--r-- 1 root root 154 2011-05-06 20:55 linaro-maintainers-tools-maverick.list
-rw-r--r-- 1 root root  80 2011-05-06 20:55 canonical-partner-maverick.list
-rw-r--r-- 1 rms  rms  406 2011-05-06 20:55 ubuntu-ja.list
-rw-r--r-- 1 root root  80 2011-05-06 20:55 canonical-partner-maverick.list.save
-rw-r--r-- 1 root root 406 2011-05-06 20:55 ubuntu-ja.list.save
-rw-r--r-- 1 root root  50 2011-05-06 20:55 dropbox.list.save
-rw-r--r-- 1 rms  rms  390 2011-01-24 17:32 ubuntu-ja.list~
$

あ、よく見てみたら linaro-maintainers-tools-maverick.list が追加されてるな。では linaro-image-tools 入れるか。

$ sudo apt-get install linaro-image-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libecj-java db4.6-util linux-headers-2.6.35-22-generic libcitadel2 citadel-mta nmh citadel-server linux-headers-2.6.35-22 libdb4.6 libsieve2-1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  python-hwpack realpath uboot-mkimage
The following NEW packages will be installed:
  linaro-image-tools python-hwpack realpath uboot-mkimage
0 upgraded, 4 newly installed, 0 to remove and 250 not upgraded.
Need to get 55.3kB of archives.
After this operation, 393kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://jp.archive.ubuntu.com/ubuntu/ maverick/main uboot-mkimage amd64 0.4build1 [11.2kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu/ maverick/main realpath amd64 1.15build1 [15.4kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu/ maverick-updates/universe python-hwpack all 0.3 [16.9kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu/ maverick-updates/universe linaro-image-tools all 0.3 [11.8kB]
Fetched 55.3kB in 1s (39.9kB/s)          
Selecting previously deselected package uboot-mkimage.
(Reading database ... 202058 files and directories currently installed.)
Unpacking uboot-mkimage (from .../uboot-mkimage_0.4build1_amd64.deb) ...
Selecting previously deselected package realpath.
Unpacking realpath (from .../realpath_1.15build1_amd64.deb) ...
Selecting previously deselected package python-hwpack.
Unpacking python-hwpack (from .../python-hwpack_0.3_all.deb) ...
Selecting previously deselected package linaro-image-tools.
Unpacking linaro-image-tools (from .../linaro-image-tools_0.3_all.deb) ...
Processing triggers for man-db ...
Setting up uboot-mkimage (0.4build1) ...
Setting up realpath (1.15build1) ...
Setting up python-hwpack (0.3) ...
Setting up linaro-image-tools (0.3) ...
Processing triggers for python-support ...
$

普通に導入完了。

あら?

昼間に一生懸命バイナリなナニを探してたんですがあるみたい。

とは言え

以下なコンテンツに記述されている

Creating and running a QEMU image な記述ですが

$ linaro-media-create --image_file beagle_sd.img --dev beagle \
--binary linaro-natty-headless-tar-20110203-1.tar.gz \
--hwpack hwpack_linaro-omap3_20110203-0_armel_supported.tar.gz

の binary なナニは

から、あるいは hwpack なソレは

にありますね。試してみようかな、と思ったのですが

Get the latest qemu-system package with BeagleBoard XM support

との事で確認してみたところ、Ubuntu デフォルトの qemu-system-arm は beagle というソレが指定できない模様。

この件

週明け以降でがっつり対応予定ッス。