Difference between revisions of "How to use vanilla kernel on APF27"
From ArmadeusWiki
(→mainline target) |
|||
Line 12: | Line 12: | ||
</pre> | </pre> | ||
− | * Configure the | + | * Configure the BSP for APF27 "mainline" : |
<pre class="host"> | <pre class="host"> | ||
$ cd armadeus-trunk | $ cd armadeus-trunk | ||
Line 19: | Line 19: | ||
* Update your board: | * Update your board: | ||
+ | First time only: | ||
<pre class="apf"> | <pre class="apf"> | ||
BIOS> run update_uboot; reset | BIOS> run update_uboot; reset | ||
BIOS> run flash_reset_env; reset | BIOS> run flash_reset_env; reset | ||
+ | </pre> | ||
+ | Each time you switch from 2.6.29.6 to mainline: | ||
+ | <pre class="apf"> | ||
BIOS> setenv fdt_addr_r A0008000 | BIOS> setenv fdt_addr_r A0008000 | ||
BIOS> saveenv | BIOS> saveenv | ||
Line 34: | Line 38: | ||
BIOS> setenv console console=ttymxc0,115200 video=imxfb:Chimei-LW700AT9003 | BIOS> setenv console console=ttymxc0,115200 video=imxfb:Chimei-LW700AT9003 | ||
</pre> | </pre> | ||
+ | |||
== Evolution of migration == | == Evolution of migration == | ||
See [[Kernel-upstream-status]] to know the status of kernel migration. | See [[Kernel-upstream-status]] to know the status of kernel migration. |
Revision as of 14:48, 17 January 2014
By default, the kernel for APF27 is the 2.6.29.6. Migration for the kernel upstream is in progress but not finished, and some features like CAN or GPIOlib interrupts management are not available under kernel 2.6.29. This article explain how to use a recent kernel with latest armadeus trunk on APF27.
With recent kernel it is also important to know how to use kernel device tree
mainline target
- Get the latest trunk version with command :
$ git clone git://git.code.sf.net/p/armadeus/code armadeus-trunk
- Configure the BSP for APF27 "mainline" :
$ cd armadeus-trunk $ make apf27mainline_defconfig
- Update your board:
First time only:
BIOS> run update_uboot; reset BIOS> run flash_reset_env; reset
Each time you switch from 2.6.29.6 to mainline:
BIOS> setenv fdt_addr_r A0008000 BIOS> saveenv BIOS> run update_dtb BIOS> run update_kernel BIOS> run update_rootfs
- Framebuffer can support multiple LCDs and so LCD you want to use must be passed as bootparam (like serial port). So you can do (for example):
BIOS> setenv console console=ttymxc0,115200 video=imxfb:Chimei-LW700AT9003
Evolution of migration
See Kernel-upstream-status to know the status of kernel migration.