Difference between revisions of "Linux kernel compilation (for mini6410 board)"
(Created page with "Before starting make sure to have installed in your system an ARM GCC toolchain. ===Download Kernel sources=== Get from the mini6410 support DVD, the FriendlyARM ftp or the l...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
|- | |- | ||
| [https://mega.co.nz/#!m9BhxQiB!JWRnNxZ_vYDFZhiacDhCSlwKOtttmQc34bwcJQA8Gmk FriendlyARM 2.6.38 gcc patched] || 2.6.38 || 2013.04.22 || Patched to work with GCC 4.7+ versions | | [https://mega.co.nz/#!m9BhxQiB!JWRnNxZ_vYDFZhiacDhCSlwKOtttmQc34bwcJQA8Gmk FriendlyARM 2.6.38 gcc patched] || 2.6.38 || 2013.04.22 || Patched to work with GCC 4.7+ versions | ||
+ | |- | ||
+ | | [https://mega.co.nz/#!Xk52gL4I!FyM6hnnvcmVL-meUicupwQbL5AEegPIRX3pJ3qFY0N4 TuxamitoSoftware 2.6.38 - TS001] || 2.6.38 || 2013.04.24 || Based on the FriendlyARM kernel:<br>- Patched to work with GCC 4.7+ versions<br>- Exposure of sysfs GPIO<br>- Enabled 1-wire protocol<br>- Enabled i2c<br>- Enabled SPI (not exposed automatically)<br>- Enabled NFSv4 network file system<br>- Enabled ext4 file system<br>- Removed many debugging options<br>- Enabled USB Wireless devices<br>- Reduce creation of logs<br>- Removed INITRAMFS | ||
|} | |} | ||
Line 40: | Line 42: | ||
The compiled kernel is the file ''zImage'' in the directory ''arch/arm/boot/zImage'' inside the kernel sources directory. | The compiled kernel is the file ''zImage'' in the directory ''arch/arm/boot/zImage'' inside the kernel sources directory. | ||
+ | |||
+ | ---- | ||
+ | <comments/> |
Latest revision as of 13:49, 26 April 2013
Before starting make sure to have installed in your system an ARM GCC toolchain.
Contents
Download Kernel sources
Get from the mini6410 support DVD, the FriendlyARM ftp or the links in this page the source of the linux kernel. These versions are patched and already include a good configured.
Name | Version | Date | Notes |
---|---|---|---|
FriendlyARM 2.6.38 | 2.6.38 | 2012.09.04 | Original FriendlyARM kernel |
FriendlyARM 2.6.38 gcc patched | 2.6.38 | 2013.04.22 | Patched to work with GCC 4.7+ versions |
TuxamitoSoftware 2.6.38 - TS001 | 2.6.38 | 2013.04.24 | Based on the FriendlyARM kernel: - Patched to work with GCC 4.7+ versions - Exposure of sysfs GPIO - Enabled 1-wire protocol - Enabled i2c - Enabled SPI (not exposed automatically) - Enabled NFSv4 network file system - Enabled ext4 file system - Removed many debugging options - Enabled USB Wireless devices - Reduce creation of logs - Removed INITRAMFS |
Uncompress the sources
Uncompress the kernel source file with the command
tar xzvf linux-xxx.tar.gz
or
tar Xzvf linux-xxx.tar.xz
depending on the ending of the file (tar.gz vs tar.xz)
And then cd into de directory:
cd linux-xxx
Configure the kernel
These kernels are patched with drivers to address hardware in the mini6410 board, but we can do some configuration to for example select the LCD (if any) attached to our board:
- Make sure the configuration file is active:
cp config_linux_mini6410 .config
- Enter the configuration menul
make menuconfig
(Note that you might need to install ncurses library, libncurses5-dev in Ubuntu / Debian) - Surf the menu to Device Drivers -> Graphics Support -> Support for frame buffer devices -> S3C Framebuffer Support (eXtended) -> Select LCD Type and chose the correct LCD.
- Exit the menu saving the changes.
Compile the kernel
Execute:
make
The compiled kernel is the file zImage in the directory arch/arm/boot/zImage inside the kernel sources directory.
<comments/>