Kernel-vanilla

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Building and using a vanilla kernel)
(Drivers: Fix look of table)
Line 51: Line 51:
 
|no
 
|no
 
|[http://lists.openmoko.org/pipermail/openmoko-kernel/2009-July/010379.html no]
 
|[http://lists.openmoko.org/pipermail/openmoko-kernel/2009-July/010379.html no]
 +
|
 
|-
 
|-
  
Line 58: Line 59:
 
|yes
 
|yes
 
|[http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f52046b14b1e1a8a02ae48d0c69d39c5e204644f yes]
 
|[http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f52046b14b1e1a8a02ae48d0c69d39c5e204644f yes]
 +
|
 
|-
 
|-
  
Line 65: Line 67:
 
|yes
 
|yes
 
|[http://lists.openmoko.org/pipermail/openmoko-kernel/2009-July/010379.html no]
 
|[http://lists.openmoko.org/pipermail/openmoko-kernel/2009-July/010379.html no]
 +
|
 
|-
 
|-
  
Line 71: Line 74:
 
|no
 
|no
 
|yes
 
|yes
 +
|
 +
|
 
|-
 
|-
  
Line 78: Line 83:
 
|yes
 
|yes
 
|[http://lists.openmoko.org/pipermail/openmoko-kernel/2009-July/010379.html no]
 
|[http://lists.openmoko.org/pipermail/openmoko-kernel/2009-July/010379.html no]
 +
|
 
|-
 
|-
  
Line 85: Line 91:
 
|yes
 
|yes
 
|[http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a1daf67d721adfecc298132550bc2967c67f764f yes]
 
|[http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a1daf67d721adfecc298132550bc2967c67f764f yes]
 +
|
 
|-
 
|-
  
Line 91: Line 98:
 
|yes
 
|yes
 
|yes
 
|yes
 +
|
 +
|
 
|-
 
|-
  
Line 98: Line 107:
 
|yes
 
|yes
 
|[http://lists.openmoko.org/pipermail/openmoko-kernel/2009-July/010379.html no]
 
|[http://lists.openmoko.org/pipermail/openmoko-kernel/2009-July/010379.html no]
 +
|
 
|-
 
|-
  
Line 104: Line 114:
 
|yes
 
|yes
 
|yes
 
|yes
 +
|
 +
|
 
|-
 
|-
 
|}
 
|}

Revision as of 23:24, 8 November 2009

This page is about vanilla Linux (Linux without any extra patches).

Functionality

This section is about general functionality using vanilla Linux.

  • Functionality is the function of the phone
  • GTA01 and GTA02 is if the GTA01 or GTA02 has it
Functionality GTA01 GTA02
boot yes
log in using ssh yes
log in using serial console yes
Display stuff on screen no

Drivers

This section is about specific drivers.

  • Functionality is what functionality on the phone the part it drives provides
  • GTA01 and GTA02 is if the GTA01 or GTA02 has that component
  • Included is if it now is a part of vanilla Linux. It can have the statuses no, submitted, in staging and yes
  • Tested and confirmed to work is if anybody has been able to use the functionality on vanilla Linux
Driver Functionality GTA01 GTA02 Included Tested and confirmed to work
pcf50606 power management yes no no
pcf50633 power management no yes yes
glamo graphics microSD no yes no
lis302dl accelerometer no yes
ar6000 WiFi no yes no
ASoC (neo1973_gta02_wm8753) sound no yes yes
touchscreen yes yes
jbt6k display yes yes no
generic battery driver yes yes

Building and using a vanilla kernel

Before you start you should be warned that if anything goes wrong, say for example that the newest kernel introduce code that makes your phone explode, you your self is responsible for it. First you need the sources to a vanilla kernel that supports you phone. The Freerunner is supported from right before 2.6.32-rc6. You can download it from http://kernel.org/ and unpack it or check it out from git if you want the absolute newest version. To check it out from git go to the command line, navigate to the folder you want to download it to and run:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

Then you need a config. You can find one here. Replace /path/to/config in the make command with where you stored it. Now, on the command line, enter the folder where Linux is. To keep the result from the compiling separate from the code create a folder to put it in. I will use GTA02 as the folder name in this example

mkdir GTA02

If you are using a cross compiler you need to specify its prefix. In this example it is arm-linux-gnueabi- but you could have another. (In arm-linux-gnueabi-cpp arm-linux-gnueabi- is the prefix) If not you should remove the CROSS_COMPILE argument. Now, run

make O=GTA02 ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- oldconfig=/path/to/config

After it has compiled do

arm-linux-gnueabi-objcopy -O binary -R .note -R .comment -S GTA02/arch/arm/boot/compressed/vmlinux GTA02/linux.bin

Then pack it in an image you can Flash to your Freerunner with

mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n "Freerunner GTA02 vanilla" -d GTA02/linux.bin GTA02/uImage-gta02.bin

You can now flash it to your phone

Personal tools

This page is about vanilla Linux (Linux without any extra patches).

Functionality

This section is about general functionality using vanilla Linux.

  • Functionality is the function of the phone
  • GTA01 and GTA02 is if the GTA01 or GTA02 has it
Functionality GTA01 GTA02
boot yes
log in using ssh yes
log in using serial console yes
Display stuff on screen no

Drivers

This section is about specific drivers.

  • Functionality is what functionality on the phone the part it drives provides
  • GTA01 and GTA02 is if the GTA01 or GTA02 has that component
  • Included is if it now is a part of vanilla Linux. It can have the statuses no, submitted, in staging and yes
  • Tested and confirmed to work is if anybody has been able to use the functionality on vanilla Linux
Driver Functionality GTA01 GTA02 Included Tested and confirmed to work
pcf50606 power management yes no no
pcf50633 power management no yes yes
glamo graphics microSD no yes no
lis302dl accelerometer no yes
ar6000 WiFi no yes no
ASoC (neo1973_gta02_wm8753) sound no yes yes
touchscreen yes yes
jbt6k display yes yes no
generic battery driver yes yes

Building and using a vanilla kernel

Before you start you should be warned that if anything goes wrong, say for example that the newest kernel introduce code that makes your phone explode, you your self is responsible for it. First you need the sources to a vanilla kernel that supports you phone. The Freerunner is supported from right before 2.6.32-rc6. You can download it from http://kernel.org/ and unpack it or check it out from git if you want the absolute newest version. To check it out from git go to the command line, navigate to the folder you want to download it to and run:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

Then you need a config. You can find one here. Replace /path/to/config in the make command with where you stored it. Now, on the command line, enter the folder where Linux is. To keep the result from the compiling separate from the code create a folder to put it in. I will use GTA02 as the folder name in this example

mkdir GTA02

If you are using a cross compiler you need to specify its prefix. In this example it is arm-linux-gnueabi- but you could have another. (In arm-linux-gnueabi-cpp arm-linux-gnueabi- is the prefix) If not you should remove the CROSS_COMPILE argument. Now, run

make O=GTA02 ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- oldconfig=/path/to/config

After it has compiled do

arm-linux-gnueabi-objcopy -O binary -R .note -R .comment -S GTA02/arch/arm/boot/compressed/vmlinux GTA02/linux.bin

Then pack it in an image you can Flash to your Freerunner with

mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n "Freerunner GTA02 vanilla" -d GTA02/linux.bin GTA02/uImage-gta02.bin

You can now flash it to your phone