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


Adaptation Guide

From Mer Wiki
(Difference between revisions)
Jump to: navigation, search
(Kernel)
(Update table and define how config can be verified)
Line 4: Line 4:
  
 
Required kernel options:
 
Required kernel options:
 +
 +
CONFIG_ must be set to one of the permitted values "," seperated and
 +
multiple values permitted
 +
 +
* y = set and enabled
 +
* m = set and module
 +
* n = set to no (commented out or not present)
 +
* "value" = set to "value"
 +
* /regexp/ = set to "value" which matches regexp
 +
 +
examples :
 +
* y : means must be set to y
 +
* y,m : means either y or m
 +
* y,n : means module or unset (not module)
 +
* y,m,! : means either y or m but any other value will warn
 +
* "" : means must be set to null, /.+/ means must match something
 +
* "noop","cfs" : means must be either "noop" or "cfs"
  
 
{| border="1"
 
{| border="1"
 
! Option  
 
! Option  
! Required since
+
! Permitted values
 +
! Reason
 
|-
 
|-
|+ Systemd
+
| CONFIG_DEVTMPFS || y ||
 
|-
 
|-
| CONFIG_DEVTMPFS=y ||
+
| CONFIG_CGROUPS || y ||
 
|-
 
|-
| CONFIG_CGROUPS=y ||
+
| CONFIG_AUTOFS4_FS || y,m ||
 
|-
 
|-
|format | CONFIG_AUTOFS4_FS=[y|m] ||
+
| CONFIG_IPV6 || y,m,!
|-
+
|format | CONFIG_IPV6=[y|m]
+
 
| optional, but highly recommended
 
| optional, but highly recommended
 
|-
 
|-
| CONFIG_RTC_DRV_CMOS=y
+
| CONFIG_RTC_DRV_CMOS || y,!
 
| optional, but highly recommended
 
| optional, but highly recommended
 
|-
 
|-
| CONFIG_FANOTIFY=y
+
| CONFIG_FANOTIFY || y,!
 
| optional, required for systemd readahead.
 
| optional, required for systemd readahead.
 
|-
 
|-
| CONFIG_UEVENT_HELPER_PATH  
+
| CONFIG_UEVENT_HELPER_PATH || "",!
 
| should be empty, if you want to use systemd without initramfs
 
| should be empty, if you want to use systemd without initramfs
 
|-
 
|-
| CONFIG_AUDIT=y  
+
| CONFIG_AUDIT || y,!
 
| optional, but recommended
 
| optional, but recommended
 
|-
 
|-
| CONFIG_TMPFS_POSIX_ACL=y  
+
| CONFIG_TMPFS_POSIX_ACL || y,!
 
| recommended, if you want pam_systemd.so to setup your "seats"
 
| recommended, if you want pam_systemd.so to setup your "seats"
|}
 
 
Remove kernel options:
 
 
{| border="1"
 
! Option
 
! Not Required since
 
|-
 
 
|-
 
|-
| CONFIG_ANDROID_PARANOID_NETWORK=n ||
+
| CONFIG_ANDROID_PARANOID_NETWORK|| n ||
 
|-
 
|-
| CONFIG_ANDROID_LOW_MEMORY_KILLER=n ||
+
| CONFIG_ANDROID_LOW_MEMORY_KILLER || n ||
 
|-
 
|-
|format | CONFIG_DUMMY ||
+
| CONFIG_DUMMY || n ||
 
|-
 
|-
|format | CONFIG_ANDROID
+
| CONFIG_ANDROID || n
 
| not tested
 
| not tested
 
|}
 
|}

Revision as of 23:11, 9 January 2012

This page contains information what is expected from a Mer Hardware Adaptation.

Kernel

Required kernel options:

CONFIG_ must be set to one of the permitted values "," seperated and multiple values permitted

  • y = set and enabled
  • m = set and module
  • n = set to no (commented out or not present)
  • "value" = set to "value"
  • /regexp/ = set to "value" which matches regexp

examples :

  • y : means must be set to y
  • y,m : means either y or m
  • y,n : means module or unset (not module)
  • y,m,! : means either y or m but any other value will warn
  • "" : means must be set to null, /.+/ means must match something
  • "noop","cfs" : means must be either "noop" or "cfs"
Option Permitted values Reason
CONFIG_DEVTMPFS y
CONFIG_CGROUPS y
CONFIG_AUTOFS4_FS y,m
CONFIG_IPV6 y,m,! optional, but highly recommended
 CONFIG_RTC_DRV_CMOS y,! optional, but highly recommended
CONFIG_FANOTIFY y,! optional, required for systemd readahead.
CONFIG_UEVENT_HELPER_PATH "",! should be empty, if you want to use systemd without initramfs
CONFIG_AUDIT y,! optional, but recommended
CONFIG_TMPFS_POSIX_ACL y,! recommended, if you want pam_systemd.so to setup your "seats"
CONFIG_ANDROID_PARANOID_NETWORK n
CONFIG_ANDROID_LOW_MEMORY_KILLER n
CONFIG_DUMMY n
CONFIG_ANDROID n not tested

Patches

When compiling kernel for ARM with Mer 0.20110105.1 or newer

You will need to apply this patch to your kernel with this new Mer and toolchain release, if your kernels break on boot (they likely will). It will enable -mno-unaligned-access in your kernel compilation flags.

--- linux-3.1/Makefile  2011-10-24 18:10:05.000000000 +1100
+++ b/Makefile  2011-12-24 16:06:38.848284875 +1100
@@ -640,6 +640,8 @@
        KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
 endif

+KBUILD_CFLAGS  += -mno-unaligned-access
+
 # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
 # But warn user when we do so
 warn-assign = \
Personal tools