bc9/Software/OpenEmbedded/kernel2.6.29(1/2)
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
]
開始行:
[[labs.beatcraft.com]]~
[[bc9/Software/OpenEmbedded/kernel2.6.29(2/2)]]~
*kernel update [#q81ecfde]
gumstix-oe の kernel は、現在 2.6.21、2.6.22、2.6.24 を選...
2.6.24 でも既に2年近く古いものになっています。~
そこで bc9 の kernel version を 2.6.29 に更新しました。~
更新の手順を以下に記述します。
*microSD boot 環境の構築 [#q0cc00c9]
kernel を更新するにあたって、新しい kernel を利用する use...
kernel 更新作業の利便性から、内蔵FLASH ROMに書き込む方法...
microSDに起動可能の環境を新たに構築する方法を実行します。~
**gumstix の build 環境の作成 [#c840123d]
bc9 (gumstix) の build 環境を作成します。~
ビルド環境 は [[OpenEmbedded:http://wiki.openembedded.net...
(以降、gumstix OEと表記します)~
あらかじめ gumstix 開発者ホームページにある gumstix ビル...
-[[gumstix developer site - Getting started:http://www.gu...
-[[gumstix developer site - Setting up a build environmen...
-[[gumstix developer site - Replacing the file system ima...
ただし、今回は内蔵FLASH ROM に書き込むイメージでなくmicro...
上記ページとは手順がかなり異なります。
以下の作業は Ubuntu8.04LTS 上で beat ユーザで行うことを前...
(Ubuntu8.10 を使用したい場合は [[Build Environment Ubunt...
Ubuntu9.04 を使用したい場合は [[Build Environment Ubunt...
リンク先ページではgccを4.1にしていますが、4.2系の方が良...
**shの調整 [#z410340b]
Ubuntu の /bin/sh は bash でなく dash へのリンクになって...
以下の手順で bash へのリンクになるよう調整します。
$ sudo dpkg-reconfigure dash
dash を /bin/sh にするか聞かれるので、「いいえ」を選択し...
**必須application のインストール [#w200ac3b]
以下のコマンドで bitbake に必要なapplicationをインストー...
$ sudo apt-get install build-essential help2man diffstat...
python-dev python-pysqlite2 python-psyco ckermit lrzsz...
**gumstix OE の check out [#bbc8bfd7]
$ mkdir ~/gumstix
$ cd ~/gumstix
$ svn co https://gumstix.svn.sourceforge.net/svnroot/gum...
**環境変数の設定 [#l1363961]
永続的に設定してしまう場合は
$ cat gumstix-oe/extras/profile >> ~/.bashrc
一時的に環境変数を設定する場合は、
$ . ~/gumstix/gumstix-oe/extras/profile
あるいは
$ source ~/gumstix/gumstix-oe/extras/profile
を実行します。
**source code のキャッシュ保存設定 [#e451cf6a]
gumstix OE は build 作業の途中で source code をダウンロー...
default設定では /usr/share/sources にダウンロードした sou...
扱い易いよう以下のように設定を変更してダウンロード先を gu...
$ svn diff build/conf/site.conf
Index: build/conf/site.conf
========================================================...
--- build/conf/site.conf (リビジョン 318)
+++ build/conf/site.conf (作業コピー)
@@ -1,5 +1,6 @@
# specifies where BitBake should place the downloaded s...
-DL_DIR = "/usr/share/sources"
+DL_DIR = "/home/beat/gumstix/sources"
# specifies where BitBake should create its temporary f...
TMPDIR = ${GUMSTIXTOP}/tmp
**ビルド内容の調整 [#h8d351a1]
PXA270の性能を有効活用するため、以下のように設定を変更し...
$ svn diff com.gumstix.collection/conf/machine/include/t...
Index: com.gumstix.collection/conf/machine/include/tune-...
========================================================...
--- com.gumstix.collection/conf/machine/include/tune-iwm...
+++ com.gumstix.collection/conf/machine/include/tune-iwm...
@@ -1,6 +1,9 @@
# Configurations for the Intel PXA27x Appications Proce...
# Please use tune-xscale for PXA255/PXA26x based proces...
-TARGET_CC_ARCH = "-march=iwmmxt -mcpu=iwmmxt -mtune=iwm...
+FEED_ARCH = "iwmmxt"
+TARGET_CC_ARCH = "-march=iwmmxt -mtune=iwmmxt"
+TARGET_CC_KERNEL_ARCH = "-march=iwmmxt -mtune=iwmmxt"
PACKAGE_ARCH = "iwmmxt"
PACKAGE_EXTRA_ARCHS += "iwmmxt"
microSD から起動できるイメージでは kernel の1Mサイズ制限...
$ svn diff com.gumstix.collection/conf/machine/include/g...
Index: com.gumstix.collection/conf/machine/include/gumst...
========================================================...
--- com.gumstix.collection/conf/machine/include/gumstix....
+++ com.gumstix.collection/conf/machine/include/gumstix....
@@ -10,6 +10,7 @@
KERNEL_IMAGETYPE = "uImage"
RDEPENDS_kernel-base = ""
-KERNEL_IMAGE_MAXSIZE = "1048577"
+KERNEL_IMAGE_MAXSIZE = "2197154" // incleased for mmcbo...
UBOOT_ENTRYPOINT = "a0008000"
@@ -35,7 +35,7 @@
PREFERRED_PROVIDER_bluez-utils-dbus = "bluez-utils"
PREFERRED_PROVIDER_gsmd="libgsmd"
-PREFERRED_VERSION_gumstix-kernel = "2.6.21"
+PREFERRED_VERSION_gumstix-kernel = "2.6.24"
PREFERRED_VERSION_udev = "118"
PREFERRED_VERSION_gnuplot = "4.0.0"
PREFERRED_VERSION_dropbear = "0.47"
microSDから起動できるイメージを作成するため、mmcboot のコ...
ほかに bc9 向けの調整を加えています。
$ svn diff com.gumstix.collection/conf/machine/gumstix-c...
Index: com.gumstix.collection/conf/machine/gumstix-custo...
========================================================...
--- com.gumstix.collection/conf/machine/gumstix-custom-v...
+++ com.gumstix.collection/conf/machine/gumstix-custom-v...
@@ -5,12 +5,12 @@
MACHINE_FEATURES += "verdex"
MACHINE_FEATURES += "iwmmxt"
require conf/machine/include/gumstix.inc
-require conf/machine/include/tune-xscale.inc
+require conf/machine/include/tune-iwmmxt.inc
#
# Your flash size = Total flash (in MB) - 1 (for linux ...
-ROOT_FLASH_SIZE = "15"
-#ROOT_FLASH_SIZE = "31"
+#ROOT_FLASH_SIZE = "15"
+ROOT_FLASH_SIZE = "31"
#
# Enable use of virtual terminal for LCD on tty1 if USE...
@@ -28,7 +28,7 @@
#MACHINE_FEATURES += "spi"
MACHINE_FEATURES += "serial"
-MACHINE_FEATURES += "bluetooth"
+#MACHINE_FEATURES += "bluetooth"
MACHINE_FEATURES += "sound"
# if you enable robostix you will need to disable both ...
@@ -51,7 +51,7 @@
MACHINE_FEATURES += "fat"
# enable one of the following if you want to target bui...
-#MACHINE_FEATURES += "mmcroot"
+MACHINE_FEATURES += "mmcroot"
#MACHINE_FEATURES += "cfroot"
#
gumstix の expansion board wifistix モジュールは build er...
build されないよう設定を削除します。(bc9 ではもともと使...
$ svn diff com.gumstix.collection/packages/tasks/task-ba...
Index: com.gumstix.collection/packages/tasks/task-base-g...
========================================================...
--- com.gumstix.collection/packages/tasks/task-base-gums...
+++ com.gumstix.collection/packages/tasks/task-base-gums...
@@ -201,7 +201,6 @@
RDEPENDS_task-base-gumstix-wifi = "\
task-base-gumstix-pcmcia \
- wifistix-modules \
wireless-tools \
wpa-supplicant \
"
上記の変更で FEED_ARCH を armv5te から iwmmxt にしている...
自分で bitbake build したものでないとインストールできませ...
gumstix.net で用意されている armv5te の prebuild ipk を利...
gumstix-custom-verdex.conf の中で tune-iwmmxt.inc を requ...
**build [#d7af3fe0]
以下のコマンドで kernel、kernel module、userland を build...
arm cross-toolchain の build から順に行われるので、マシン...
$ bitbake gumstix-directfb-image
build が正常に終了すると以下のようなファイルが生成されて...
$ ls -al tmp/deploy/glibc/images/gumstix-custom-verdex/
合計 21780
drwxr-xr-x 2 beat beat 4096 2009-06-23 00:01 .
drwxr-xr-x 3 beat beat 4096 2009-06-22 22:58 ..
-rw-r--r-- 1 beat beat 10402796 2009-06-23 00:01 Angstro...
-rw-rw-r-- 1 beat beat 8713428 2009-06-23 00:01 Angstro...
lrwxrwxrwx 1 beat beat 97 2009-06-23 00:01 gumstix...
lrwxrwxrwx 1 beat beat 98 2009-06-23 00:01 gumstix...
-rw-rw-r-- 1 beat beat 1929321 2009-06-22 22:58 modules...
-rw-r--r-- 1 beat beat 1191276 2009-06-22 22:58 uImage-...
**microSDのformat [#ldd29d26]
microSD に上記の kernel と userland を配置して起動可能に...
最低でも128M以上の容量が必要です。~
1. microSD の先頭40Mを FAT16 で format~
2. 残りを ext2 で format~
(fdisk、mkvfat、mkext2を使っても、gparted を利用しても、...
vfat partition と ext2 partition をそれぞれ作業マシンの /...
以下のように必要なファイルを必要な位置に配置します。
$ sudo cp ~/gumstix/gumstix-oe/extras/mmc-root/gumstix-f...
$ sudo cp ~/gumstix/gumstix-oe/tmp/deploy/glibc/images/g...
$ sudo tar -C /media/disk-1/ -xvfz ~/gumstix/gumstix-oe/...
$ sudo tar -C /media/disk-1/ -xvfz ~/gumstix/gumstix-oe/...
**microSD boot [#od92c2fb]
用意のできた microSD を bc9 の microSDスロットに挿し、シ...
シリアルコンソールに起動ログが流れ microSD から bc9 が起...
初回の起動は locale の設定や ssh_key の生成が行われるので...
起動が完了したらシリアルコンソールからログインし、以下の...
$ depmod
$ vi /etc/modules/pxafb
pxafb とだけ記述して保存
$ vi /etc/modules/fbcon
fbcon とだけ記述して保存
$ update-modules
これで次回起動時から LCD が表示されるようになります。
-----------------
RIGHT:by 大塚聡史
終了行:
[[labs.beatcraft.com]]~
[[bc9/Software/OpenEmbedded/kernel2.6.29(2/2)]]~
*kernel update [#q81ecfde]
gumstix-oe の kernel は、現在 2.6.21、2.6.22、2.6.24 を選...
2.6.24 でも既に2年近く古いものになっています。~
そこで bc9 の kernel version を 2.6.29 に更新しました。~
更新の手順を以下に記述します。
*microSD boot 環境の構築 [#q0cc00c9]
kernel を更新するにあたって、新しい kernel を利用する use...
kernel 更新作業の利便性から、内蔵FLASH ROMに書き込む方法...
microSDに起動可能の環境を新たに構築する方法を実行します。~
**gumstix の build 環境の作成 [#c840123d]
bc9 (gumstix) の build 環境を作成します。~
ビルド環境 は [[OpenEmbedded:http://wiki.openembedded.net...
(以降、gumstix OEと表記します)~
あらかじめ gumstix 開発者ホームページにある gumstix ビル...
-[[gumstix developer site - Getting started:http://www.gu...
-[[gumstix developer site - Setting up a build environmen...
-[[gumstix developer site - Replacing the file system ima...
ただし、今回は内蔵FLASH ROM に書き込むイメージでなくmicro...
上記ページとは手順がかなり異なります。
以下の作業は Ubuntu8.04LTS 上で beat ユーザで行うことを前...
(Ubuntu8.10 を使用したい場合は [[Build Environment Ubunt...
Ubuntu9.04 を使用したい場合は [[Build Environment Ubunt...
リンク先ページではgccを4.1にしていますが、4.2系の方が良...
**shの調整 [#z410340b]
Ubuntu の /bin/sh は bash でなく dash へのリンクになって...
以下の手順で bash へのリンクになるよう調整します。
$ sudo dpkg-reconfigure dash
dash を /bin/sh にするか聞かれるので、「いいえ」を選択し...
**必須application のインストール [#w200ac3b]
以下のコマンドで bitbake に必要なapplicationをインストー...
$ sudo apt-get install build-essential help2man diffstat...
python-dev python-pysqlite2 python-psyco ckermit lrzsz...
**gumstix OE の check out [#bbc8bfd7]
$ mkdir ~/gumstix
$ cd ~/gumstix
$ svn co https://gumstix.svn.sourceforge.net/svnroot/gum...
**環境変数の設定 [#l1363961]
永続的に設定してしまう場合は
$ cat gumstix-oe/extras/profile >> ~/.bashrc
一時的に環境変数を設定する場合は、
$ . ~/gumstix/gumstix-oe/extras/profile
あるいは
$ source ~/gumstix/gumstix-oe/extras/profile
を実行します。
**source code のキャッシュ保存設定 [#e451cf6a]
gumstix OE は build 作業の途中で source code をダウンロー...
default設定では /usr/share/sources にダウンロードした sou...
扱い易いよう以下のように設定を変更してダウンロード先を gu...
$ svn diff build/conf/site.conf
Index: build/conf/site.conf
========================================================...
--- build/conf/site.conf (リビジョン 318)
+++ build/conf/site.conf (作業コピー)
@@ -1,5 +1,6 @@
# specifies where BitBake should place the downloaded s...
-DL_DIR = "/usr/share/sources"
+DL_DIR = "/home/beat/gumstix/sources"
# specifies where BitBake should create its temporary f...
TMPDIR = ${GUMSTIXTOP}/tmp
**ビルド内容の調整 [#h8d351a1]
PXA270の性能を有効活用するため、以下のように設定を変更し...
$ svn diff com.gumstix.collection/conf/machine/include/t...
Index: com.gumstix.collection/conf/machine/include/tune-...
========================================================...
--- com.gumstix.collection/conf/machine/include/tune-iwm...
+++ com.gumstix.collection/conf/machine/include/tune-iwm...
@@ -1,6 +1,9 @@
# Configurations for the Intel PXA27x Appications Proce...
# Please use tune-xscale for PXA255/PXA26x based proces...
-TARGET_CC_ARCH = "-march=iwmmxt -mcpu=iwmmxt -mtune=iwm...
+FEED_ARCH = "iwmmxt"
+TARGET_CC_ARCH = "-march=iwmmxt -mtune=iwmmxt"
+TARGET_CC_KERNEL_ARCH = "-march=iwmmxt -mtune=iwmmxt"
PACKAGE_ARCH = "iwmmxt"
PACKAGE_EXTRA_ARCHS += "iwmmxt"
microSD から起動できるイメージでは kernel の1Mサイズ制限...
$ svn diff com.gumstix.collection/conf/machine/include/g...
Index: com.gumstix.collection/conf/machine/include/gumst...
========================================================...
--- com.gumstix.collection/conf/machine/include/gumstix....
+++ com.gumstix.collection/conf/machine/include/gumstix....
@@ -10,6 +10,7 @@
KERNEL_IMAGETYPE = "uImage"
RDEPENDS_kernel-base = ""
-KERNEL_IMAGE_MAXSIZE = "1048577"
+KERNEL_IMAGE_MAXSIZE = "2197154" // incleased for mmcbo...
UBOOT_ENTRYPOINT = "a0008000"
@@ -35,7 +35,7 @@
PREFERRED_PROVIDER_bluez-utils-dbus = "bluez-utils"
PREFERRED_PROVIDER_gsmd="libgsmd"
-PREFERRED_VERSION_gumstix-kernel = "2.6.21"
+PREFERRED_VERSION_gumstix-kernel = "2.6.24"
PREFERRED_VERSION_udev = "118"
PREFERRED_VERSION_gnuplot = "4.0.0"
PREFERRED_VERSION_dropbear = "0.47"
microSDから起動できるイメージを作成するため、mmcboot のコ...
ほかに bc9 向けの調整を加えています。
$ svn diff com.gumstix.collection/conf/machine/gumstix-c...
Index: com.gumstix.collection/conf/machine/gumstix-custo...
========================================================...
--- com.gumstix.collection/conf/machine/gumstix-custom-v...
+++ com.gumstix.collection/conf/machine/gumstix-custom-v...
@@ -5,12 +5,12 @@
MACHINE_FEATURES += "verdex"
MACHINE_FEATURES += "iwmmxt"
require conf/machine/include/gumstix.inc
-require conf/machine/include/tune-xscale.inc
+require conf/machine/include/tune-iwmmxt.inc
#
# Your flash size = Total flash (in MB) - 1 (for linux ...
-ROOT_FLASH_SIZE = "15"
-#ROOT_FLASH_SIZE = "31"
+#ROOT_FLASH_SIZE = "15"
+ROOT_FLASH_SIZE = "31"
#
# Enable use of virtual terminal for LCD on tty1 if USE...
@@ -28,7 +28,7 @@
#MACHINE_FEATURES += "spi"
MACHINE_FEATURES += "serial"
-MACHINE_FEATURES += "bluetooth"
+#MACHINE_FEATURES += "bluetooth"
MACHINE_FEATURES += "sound"
# if you enable robostix you will need to disable both ...
@@ -51,7 +51,7 @@
MACHINE_FEATURES += "fat"
# enable one of the following if you want to target bui...
-#MACHINE_FEATURES += "mmcroot"
+MACHINE_FEATURES += "mmcroot"
#MACHINE_FEATURES += "cfroot"
#
gumstix の expansion board wifistix モジュールは build er...
build されないよう設定を削除します。(bc9 ではもともと使...
$ svn diff com.gumstix.collection/packages/tasks/task-ba...
Index: com.gumstix.collection/packages/tasks/task-base-g...
========================================================...
--- com.gumstix.collection/packages/tasks/task-base-gums...
+++ com.gumstix.collection/packages/tasks/task-base-gums...
@@ -201,7 +201,6 @@
RDEPENDS_task-base-gumstix-wifi = "\
task-base-gumstix-pcmcia \
- wifistix-modules \
wireless-tools \
wpa-supplicant \
"
上記の変更で FEED_ARCH を armv5te から iwmmxt にしている...
自分で bitbake build したものでないとインストールできませ...
gumstix.net で用意されている armv5te の prebuild ipk を利...
gumstix-custom-verdex.conf の中で tune-iwmmxt.inc を requ...
**build [#d7af3fe0]
以下のコマンドで kernel、kernel module、userland を build...
arm cross-toolchain の build から順に行われるので、マシン...
$ bitbake gumstix-directfb-image
build が正常に終了すると以下のようなファイルが生成されて...
$ ls -al tmp/deploy/glibc/images/gumstix-custom-verdex/
合計 21780
drwxr-xr-x 2 beat beat 4096 2009-06-23 00:01 .
drwxr-xr-x 3 beat beat 4096 2009-06-22 22:58 ..
-rw-r--r-- 1 beat beat 10402796 2009-06-23 00:01 Angstro...
-rw-rw-r-- 1 beat beat 8713428 2009-06-23 00:01 Angstro...
lrwxrwxrwx 1 beat beat 97 2009-06-23 00:01 gumstix...
lrwxrwxrwx 1 beat beat 98 2009-06-23 00:01 gumstix...
-rw-rw-r-- 1 beat beat 1929321 2009-06-22 22:58 modules...
-rw-r--r-- 1 beat beat 1191276 2009-06-22 22:58 uImage-...
**microSDのformat [#ldd29d26]
microSD に上記の kernel と userland を配置して起動可能に...
最低でも128M以上の容量が必要です。~
1. microSD の先頭40Mを FAT16 で format~
2. 残りを ext2 で format~
(fdisk、mkvfat、mkext2を使っても、gparted を利用しても、...
vfat partition と ext2 partition をそれぞれ作業マシンの /...
以下のように必要なファイルを必要な位置に配置します。
$ sudo cp ~/gumstix/gumstix-oe/extras/mmc-root/gumstix-f...
$ sudo cp ~/gumstix/gumstix-oe/tmp/deploy/glibc/images/g...
$ sudo tar -C /media/disk-1/ -xvfz ~/gumstix/gumstix-oe/...
$ sudo tar -C /media/disk-1/ -xvfz ~/gumstix/gumstix-oe/...
**microSD boot [#od92c2fb]
用意のできた microSD を bc9 の microSDスロットに挿し、シ...
シリアルコンソールに起動ログが流れ microSD から bc9 が起...
初回の起動は locale の設定や ssh_key の生成が行われるので...
起動が完了したらシリアルコンソールからログインし、以下の...
$ depmod
$ vi /etc/modules/pxafb
pxafb とだけ記述して保存
$ vi /etc/modules/fbcon
fbcon とだけ記述して保存
$ update-modules
これで次回起動時から LCD が表示されるようになります。
-----------------
RIGHT:by 大塚聡史
ページ名:
BC::labsへの質問は、bc9-dev @ googlegroups.com までお願い致します。