Difference between revisions of "How to use vanilla kernel on APF27"
From ArmadeusWiki
(→mainline target) |
(→mainline target) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[ | + | By default, the stable kernel version generated by the armadeus BSP for APF27 is 2.6.29.6. Migration toward mainline/vanilla kernel [[Kernel-upstream-status | is in progress]] but not finished. |
− | + | However some features like [[Can | CAN]] or [[GPIOlib]] interrupts management are not available under this 2.6.29 version. This page will explain how to build and use a recent kernel with latest armadeus BSP on APF27, for people wanting more features than 2.6.29 can offer. | |
− | With recent | + | With recent kernels it is very important to know how to use kernel [[device tree]] mechanism ! |
== mainline target == | == mainline target == | ||
− | * Get the latest | + | * Get the latest armadeus BSP development version: |
<pre class="host"> | <pre class="host"> | ||
− | $ git clone git://git.code.sf.net/p/armadeus/code armadeus- | + | $ git clone git://git.code.sf.net/p/armadeus/code armadeus-head |
</pre> | </pre> | ||
− | * Configure the BSP for | + | * Configure the BSP for "mainline" APF27: |
<pre class="host"> | <pre class="host"> | ||
− | $ cd armadeus- | + | $ cd armadeus-head |
$ make apf27mainline_defconfig | $ make apf27mainline_defconfig | ||
</pre> | </pre> | ||
− | * Update your board: | + | * Build the BSP: |
− | First time only: | + | <pre class="host"> |
+ | $ make | ||
+ | </pre> | ||
+ | |||
+ | * Update your board (after having copied BSP generated images in your /tftpboot/): | ||
+ | First time you migrate from 2.6.29 to 3.1x+ only: | ||
<pre class="apf"> | <pre class="apf"> | ||
BIOS> run update_uboot; reset | BIOS> run update_uboot; reset | ||
Line 30: | Line 35: | ||
BIOS> run update_rootfs | BIOS> run update_rootfs | ||
− | BIOS> setenv fdt_addr_r | + | BIOS> setenv fdt_addr_r 0xa1000000 |
BIOS> setenv consoledev ttymxc0 | BIOS> setenv consoledev ttymxc0 | ||
BIOS> saveenv | BIOS> saveenv | ||
Line 36: | Line 41: | ||
</pre> | </pre> | ||
− | * | + | * With recent kernels, framebuffer can support multiple LCDs and so LCD you want to use must be passed as bootargs (like serial port). So you can do (for example): |
<pre class="apf"> | <pre class="apf"> | ||
− | BIOS> setenv | + | BIOS> setenv extrabootargs video=imxfb:Chimei-LW700AT9003 |
+ | BIOS> saveenv | ||
</pre> | </pre> | ||
Line 45: | Line 51: | ||
See [[Kernel-upstream-status]] to know the status of kernel migration. | See [[Kernel-upstream-status]] to know the status of kernel migration. | ||
+ | |||
+ | [[Category: kernel]] |
Latest revision as of 17:27, 25 June 2014
By default, the stable kernel version generated by the armadeus BSP for APF27 is 2.6.29.6. Migration toward mainline/vanilla kernel is in progress but not finished.
However some features like CAN or GPIOlib interrupts management are not available under this 2.6.29 version. This page will explain how to build and use a recent kernel with latest armadeus BSP on APF27, for people wanting more features than 2.6.29 can offer.
With recent kernels it is very important to know how to use kernel device tree mechanism !
mainline target
- Get the latest armadeus BSP development version:
$ git clone git://git.code.sf.net/p/armadeus/code armadeus-head
- Configure the BSP for "mainline" APF27:
$ cd armadeus-head $ make apf27mainline_defconfig
- Build the BSP:
$ make
- Update your board (after having copied BSP generated images in your /tftpboot/):
First time you migrate from 2.6.29 to 3.1x+ only:
BIOS> run update_uboot; reset BIOS> run flash_reset_env; reset
Each time you switch from 2.6.29.6 to mainline:
BIOS> run update_dtb BIOS> run update_kernel BIOS> run update_rootfs BIOS> setenv fdt_addr_r 0xa1000000 BIOS> setenv consoledev ttymxc0 BIOS> saveenv
- With recent kernels, framebuffer can support multiple LCDs and so LCD you want to use must be passed as bootargs (like serial port). So you can do (for example):
BIOS> setenv extrabootargs video=imxfb:Chimei-LW700AT9003 BIOS> saveenv
Evolution of migration
See Kernel-upstream-status to know the status of kernel migration.