Meego Wiki
Views

N900 kernel compilation

From MeeGo wiki
Jump to: navigation, search

Instructions for N900 MeeGo custom kernel compilation

NOTES:

  • Here is a one way to do the kernel compilation
  • If you have imrovement ideas or other ways to do the compilation please add it here
  • TODO: OBS based kernel compilation needs to be documented here!

Compiling directly from source with host toolchain

1. Download Meego kernel for N900

# git clone http://git.gitorious.org/meego-device-adaptation/n900_kernel.git n900_kernel

or use http://meego.gitorious.org/meego-device-adaptation/n900_kernel/archive-tarball/master to download manually

2. Compiling Meego Kernel

First you should have arm tool chain in your host machine (codesourcery toolchain here)

  • untar the toolchain for example to /opt/cs/<toolchain>
  • then add to ~/.bashrc a line "export PATH=$PATH:/opt/cs/<toolchain>/bin"

To enable ARM cross compilation in current shell session, execute following commands in command prompt

# export ARCH=arm
# export CROSS_COMPILE=arm-none-linux-gnueabi-

If you want the the compilation in bash shell to always do ARM cross compile, put the above lines to ~/.bashrc

Enabling CAIF Protocol support for ST Ericsson Modems (or do whatever changes you need for the kernel)

# make omap2plus_defconfig
# make menuconfig  ( Note: select caif protocol support in Networking and driver sections)

Do kernel modifications here!

# make zImage
# make modules
# make modules_install INSTALL_MOD_PATH=$path to install modules


Finally kernel images available @ $Meego_kernel_source/arch/arm/boot/zImage


3. Copy modules to N900 device ( Note: Already device should have meego os)

  1. scp -r $meego_compiled_modules_installed_path root@192.168.2.15:/

Note: connect device with host via usb cable before executing this command


4. Loading Compiled Meego kernel


Download flasher from http://tablets-dev.nokia.com/maemo-dev-env-downloads.php?f=maemo_flasher-3.5_2.5.2.2.tar.gz

Load Kernel using

# sudo ./flasher-3.5  -l -k  $Meego_kernel_source/arch/arm/boot/zImage	 -b

Note: Before executing this command,please power off the device.

Now connect USB cable with device. You will see Meego home screen after 2 or 3 minutes

Personal tools