bc9/Software/OpenEmbedded/kernel2.6.29(1/2)
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
[[labs.beatcraft.com]]~
[[bc9/Software/OpenEmbedded/kernel2.6.29(2/2)]]~
*kernel update [#ke5bcff7]
On gumstix-oe, currently we can choose kernel version 2.6...
But even 2.6.24 is almost 2 years older than current kern...
So we upgrade kernel to version 2.6.29.~
Followings are the procedures.
*Setting up microSD boot environment [#teb7ccfb]
When upgrade kernel, prepare new userland for upgrade ker...
For convenience of kernel upgrade operation, we don't cho...
we choose the way to make up new bootable environment on ...
**Setting up gumstix build environment [#qdddd844]
This section describes setting up procedure of build envi...
We use gumstix-oe, modified and adjusted version of [[Ope...
Please refer to setting up procedure of gumstix build env...
-[[gumstix developer site - Getting started:http://www.gu...
-[[gumstix developer site - Setting up a build environmen...
-[[gumstix developer site - Replacing the file system ima...
However, we build microSD boot image instead of built-in ...
So build procedure is rather different to site above.
We suppose that following operation executes by "beat" ac...
(When you want to use Ubuntu8.10, refer to [[Build Enviro...
When you want to use Ubuntu9.04, refer to [[Build Environ...
and adjust procedure.)
**Adjusting sh [#z410340b]
On Ubuntu, /bin/sh is symlink to dash, not to bash and so...
So in order to avoid build time failure of bitbake, recon...
$ sudo dpkg-reconfigure dash
Choose "no" when you asked that setting up /bin/sh to sym...
**Instlation of required applications [#p9922790]
Install bitbake required applications as follows:
$ sudo apt-get install build-essential help2man diffstat...
python-dev python-pysqlite2 python-psyco ckermit lrzsz...
**Checking out gumstix-oe [#qf2bae2d]
$ mkdir ~/gumstix
$ cd ~/gumstix
$ svn co https://gumstix.svn.sourceforge.net/svnroot/gum...
**Setting shell environment variables [#b3f6a0c3]
If you prefer to setting up permanently, do as follows.
$ cat gumstix-oe/extras/profile >> ~/.bashrc
or if you prefer to setting up temporally, do as follows,
$ . ~/gumstix/gumstix-oe/extras/profile
or
$ source ~/gumstix/gumstix-oe/extras/profile
**Setting source code caching directories [#hebcab0e]
Gumstix-oe is designed to download source codes during bu...
Default setting store downloaded source codes into /usr/s...
But for easy handling, we change to store source codes in...
$ svn diff build/conf/site.conf
Index: build/conf/site.conf
========================================================...
--- build/conf/site.conf (revision 318)
+++ build/conf/site.conf (working copy)
@@ -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
**Adjusting build setting [#w4ce1bb7]
To utilize PXA270 effectively, edit as follows:~
$ 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"
Kernel maximum size limitation doesn't need for microSD b...
$ 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"
To generate microSD bootable image, acivate mmcboot setti...
And few adjustments for bc9 are added.
$ 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"
#
Module for gumstix expansion board wifistix is known to b...
So we remove this module's build setting.(bc9 orig...
$ 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 ?
"
In above modification we change FEED_ARCH from armv5te to...
So if you want to install applications with ipkg command,...
If you want to use prebuild ipks prepared by gumstix,inc....
but require tune-xscale.inc and build armv5te optimized i...
**Build [#d7af3fe0]
Build kernel, kernel modules, userland by following comma...
Build is starting from arm cross-toolchain and it takes f...
$ bitbake gumstix-directfb-image
When build was successfully finished, following files sho...
$ ls -al tmp/deploy/glibc/images/gumstix-custom-verdex/
Total 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-...
**Formatting microSD [#ldd29d26]
In order to make microSD bootable and layout kernel and u...
At least 128M bytes are required.~
1. Format first 40M bytes of microSD as FAT16~
2. Format remains as ext2~
(Use fdisk、mkvfat、mkext2 or gparted ...
On the condition that vfat partition is mounted to /media...
copy required files to appropriate directory as follows:
$ 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/...
**Booting from microSD[#od92c2fb]
Insert ready microSD into bc9's microSD slot, connect ser...
Boot message appear on serial console and bc9 boot from m...
(But beware: nothing appear on LCD when first boot time.)~
During first time boot locale setting and ssh_key generat...
So first time boot take slightly longer time.~
When boot completed, login from serial console and set ke...
$ depmod
$ vi /etc/modules/pxafb
write only pxafb and save.
$ vi /etc/modules/fbcon
write only fbcon and save.
$ update-modules
Then prompt appear on LCD and pxa frame buffer activated ...
-----------------
RIGHT:by Satoshi OTSUKA
End:
[[labs.beatcraft.com]]~
[[bc9/Software/OpenEmbedded/kernel2.6.29(2/2)]]~
*kernel update [#ke5bcff7]
On gumstix-oe, currently we can choose kernel version 2.6...
But even 2.6.24 is almost 2 years older than current kern...
So we upgrade kernel to version 2.6.29.~
Followings are the procedures.
*Setting up microSD boot environment [#teb7ccfb]
When upgrade kernel, prepare new userland for upgrade ker...
For convenience of kernel upgrade operation, we don't cho...
we choose the way to make up new bootable environment on ...
**Setting up gumstix build environment [#qdddd844]
This section describes setting up procedure of build envi...
We use gumstix-oe, modified and adjusted version of [[Ope...
Please refer to setting up procedure of gumstix build env...
-[[gumstix developer site - Getting started:http://www.gu...
-[[gumstix developer site - Setting up a build environmen...
-[[gumstix developer site - Replacing the file system ima...
However, we build microSD boot image instead of built-in ...
So build procedure is rather different to site above.
We suppose that following operation executes by "beat" ac...
(When you want to use Ubuntu8.10, refer to [[Build Enviro...
When you want to use Ubuntu9.04, refer to [[Build Environ...
and adjust procedure.)
**Adjusting sh [#z410340b]
On Ubuntu, /bin/sh is symlink to dash, not to bash and so...
So in order to avoid build time failure of bitbake, recon...
$ sudo dpkg-reconfigure dash
Choose "no" when you asked that setting up /bin/sh to sym...
**Instlation of required applications [#p9922790]
Install bitbake required applications as follows:
$ sudo apt-get install build-essential help2man diffstat...
python-dev python-pysqlite2 python-psyco ckermit lrzsz...
**Checking out gumstix-oe [#qf2bae2d]
$ mkdir ~/gumstix
$ cd ~/gumstix
$ svn co https://gumstix.svn.sourceforge.net/svnroot/gum...
**Setting shell environment variables [#b3f6a0c3]
If you prefer to setting up permanently, do as follows.
$ cat gumstix-oe/extras/profile >> ~/.bashrc
or if you prefer to setting up temporally, do as follows,
$ . ~/gumstix/gumstix-oe/extras/profile
or
$ source ~/gumstix/gumstix-oe/extras/profile
**Setting source code caching directories [#hebcab0e]
Gumstix-oe is designed to download source codes during bu...
Default setting store downloaded source codes into /usr/s...
But for easy handling, we change to store source codes in...
$ svn diff build/conf/site.conf
Index: build/conf/site.conf
========================================================...
--- build/conf/site.conf (revision 318)
+++ build/conf/site.conf (working copy)
@@ -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
**Adjusting build setting [#w4ce1bb7]
To utilize PXA270 effectively, edit as follows:~
$ 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"
Kernel maximum size limitation doesn't need for microSD b...
$ 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"
To generate microSD bootable image, acivate mmcboot setti...
And few adjustments for bc9 are added.
$ 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"
#
Module for gumstix expansion board wifistix is known to b...
So we remove this module's build setting.(bc9 orig...
$ 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 ?
"
In above modification we change FEED_ARCH from armv5te to...
So if you want to install applications with ipkg command,...
If you want to use prebuild ipks prepared by gumstix,inc....
but require tune-xscale.inc and build armv5te optimized i...
**Build [#d7af3fe0]
Build kernel, kernel modules, userland by following comma...
Build is starting from arm cross-toolchain and it takes f...
$ bitbake gumstix-directfb-image
When build was successfully finished, following files sho...
$ ls -al tmp/deploy/glibc/images/gumstix-custom-verdex/
Total 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-...
**Formatting microSD [#ldd29d26]
In order to make microSD bootable and layout kernel and u...
At least 128M bytes are required.~
1. Format first 40M bytes of microSD as FAT16~
2. Format remains as ext2~
(Use fdisk、mkvfat、mkext2 or gparted ...
On the condition that vfat partition is mounted to /media...
copy required files to appropriate directory as follows:
$ 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/...
**Booting from microSD[#od92c2fb]
Insert ready microSD into bc9's microSD slot, connect ser...
Boot message appear on serial console and bc9 boot from m...
(But beware: nothing appear on LCD when first boot time.)~
During first time boot locale setting and ssh_key generat...
So first time boot take slightly longer time.~
When boot completed, login from serial console and set ke...
$ depmod
$ vi /etc/modules/pxafb
write only pxafb and save.
$ vi /etc/modules/fbcon
write only fbcon and save.
$ update-modules
Then prompt appear on LCD and pxa frame buffer activated ...
-----------------
RIGHT:by Satoshi OTSUKA
Page: