The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)


N9 Kernel update project

From Mer Wiki
(Difference between revisions)
Jump to: navigation, search
(TO DO list for kernel update)
(TO DO list for kernel update)
Line 107: Line 107:
 
| RM-680 / RM-696 Board configs / device tree  || free for taking! || There is a LOT of board configs missing, not sure though if we should actually use device tree instead these days. Someone (tm) should investigate.
 
| RM-680 / RM-696 Board configs / device tree  || free for taking! || There is a LOT of board configs missing, not sure though if we should actually use device tree instead these days. Someone (tm) should investigate.
 
|-
 
|-
| Port needed Mer specific patches from old [https://build.pub.meego.com/package/show?package=kernel-adaptation-n950&project=CE%3AAdaptation%3AN950-N9 N950 kernel OBS pack] || free for taking! || There are not so much patches remained actual, see [[#2.6.32 Kernel Update]]
+
| Port needed Mer specific patches from old [https://build.pub.meego.com/package/show?package=kernel-adaptation-n950&project=CE%3AAdaptation%3AN950-N9 N950 kernel OBS pack] || deztructor || There are not so much patches remained actual, see [[#2.6.32 Kernel Update]]
 
|}
 
|}

Revision as of 11:05, 12 October 2012

Contents

Summary

The N9 kernel currently used with various Mer images is based on old 2.6.32 maemo kernel. This page collects needed info for any developers who might want to help in updating that kernel to latest linux-stable version.

Note for N950 users: the N950 support is there but it's not tested very well as we develop with N9 mostly, so issues may appear. N950 patches also very welcome though.

Contact info

  • IRC: #mer and #nemomobile @irc.freenode.net
  • Mailing list: mer-general@lists.merproject.org

Developement

Development git:

git clone git@github.com:nemomobile/kernel-adaptation-n950-n9.git
  • master branch is the latest development branch
  • The git tree is public, if you want to contribute patches, read process below:
  • Patch process:
    • 1. Send patches first to relevant upstream subsystem list (like linux-omap, linux-usb, etc.)
    • 2. Once patches seem to be ok for upstream create a pull request in github like following:
      • NOTE: Pull request section below is under construction, instructions incomplete!
      • 2.1 fork the nemomobile/kernel-adaptation-n950-n9 tree into a personal kernel repo in github (use the "fork" button in github web interface)
      • 2.2 push your changes to your forked PERSONAL kernel github tree
      • 2.3 send a pull request from your personal repo to nemo-mobile/kernel-adaptation-n950-n9 tree (again from the github web interface)
    • 3. If the patch seems ok for N9 kernel, we'll take it in, if not, you will receive comments what to fix.
    • Exceptions:
      • Mer/Nemo specific patches (like config changes) can skip step 1.
      • Drivers that cannot be made upstream compatible, can skip step 1. (like PVR, etc.)

Build instructions from git

    • Use Mer SDK and SB2 to build. NOTE: install the nemo-n950 target to SB2.
    • Install needed packages (inside Mer-SDK chroot)
sudo zypper in make
sb2 -t nemo-n950 -m sdk-install -R zypper in perl ncurses-devel
    • Building (inside Mer-SDK chroot):
sb2 make n9_mer_defconfig
sb2 make -j4 zImage
sb2 make -j4 modules
sb2 make modules_install INSTALL_MOD_PATH=./mods

Deploying to device (kind of "flashing")

  • Pre-requisite: have MOSLO set up on your N9 like this
  • We use helper scripts that prepare the modules etc
./prepare_modules.sh
  • Then use copy script (NOTE: do this outside Mer-SDK chroot)
    • Plug N9 to USB and let it boot so the filesystem gets mounted
    • Then "flash" the kernel (it's just a simple cp actually...)
sudo ./copy_kernel.sh /<path-to>/<mounted>/<N9 filesystem>

Packaging

Packaging development project:

updating pack with git-pkg

  • setup git-pkg by cloning it out and copy gp_make_src to PATH
  • then do following to update patch set for the OBS pack
osc co <kernel pack>
  • do changes in your local mer-n9-linux git mer-latest branch
  • if you change base kernel tag version, edit _src to point to right initial commit
  • then
#symlink .git from your git tree
ln -s /path-to/mer-n9-linux/.git .git
#run git-pkg script to generate tar and latest patches
gp_make_src
  • then copy the "Patches:" lines to your .yaml
specify *.yaml
osc addremove
osc ci -m "latest changes from git..."

TO DO list for kernel update

Work item Person fixing it Other comments
USB networking phdeswer 2 different patches have been sent to linux-omap, can also be solved by using CONFIG_SOC_OMAP3430 (as it only influences USB and is in no way specific to 3430. This option will be removed though at some point in time.)
Display drivers jnikula
PowerVR 3D drivers missing jnikula??
Audio driver parts missing free for taking!
CMT (cellular modem) drivers free for taking!
Touch driver board configuration free for taking!
Volume buttons board config free for taking!
WLAN driver fixing (driver exists but no wlan0 i/f, could be missing board config) free for taking!
Nokia H4P bluetooth driver missing deztructor Not high priority
RM-680 / RM-696 Board configs / device tree free for taking! There is a LOT of board configs missing, not sure though if we should actually use device tree instead these days. Someone (tm) should investigate.
Port needed Mer specific patches from old N950 kernel OBS pack deztructor There are not so much patches remained actual, see #2.6.32 Kernel Update
Personal tools