Meego Wiki
Views

N900 kernel compilation

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "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-adapt...")
Line 12: Line 12:
  # export CROSS_COMPILE=arm-none-linux-gnueabi-
  # export CROSS_COMPILE=arm-none-linux-gnueabi-
-
Note: You should have arm tool chain in your host machine
+
Note: You should have arm tool chain in your host machine [http://www.codesourcery.com/sgpp/lite/arm/portal/package7851/public/arm-none-linux-gnueabi/arm-2010.09-50-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 (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"
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:11, 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

Execute following commands in command prompt

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

Note: 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"

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