Meego Wiki
Views

N900 kernel compilation

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
Line 12: Line 12:
* then add to ~/.bashrc a line "export PATH=$PATH:/opt/cs/<toolchain>/bin"
* then add to ~/.bashrc a line "export PATH=$PATH:/opt/cs/<toolchain>/bin"
-
Then execute following commands in command prompt
+
To enable ARM cross compilation in current shell session, execute following commands in command prompt
  # export ARCH=arm
  # export ARCH=arm
  # export CROSS_COMPILE=arm-none-linux-gnueabi-
  # export CROSS_COMPILE=arm-none-linux-gnueabi-
-
If you want the the compilation to always do ARM cross_compile, put the above lines to ~/.bashrc
+
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)
Enabling CAIF Protocol support for ST Ericsson Modems (or do whatever changes you need for the kernel)

Revision as of 10:17, 19 May 2011

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