SEARCH
TOOLBOX
LANGUAGES
modified on 16 March 2016 at 18:51 ••• 25,111 views

Rebuild kernel

From Manuals

(Difference between revisions)
Jump to: navigation, search
(Created page with '1. Add the native compiler, make and ncurses library if they are not already in your development system. apt-get install gcc g++ make libncurses5-dev To build a kernel for the…')
 
(5 intermediate revisions not shown)
Line 1: Line 1:
-
1. Add the native compiler, make and ncurses library if they are not already in your development system.
+
To build a kernel for the Micromint Electrum you need a compatible [[Ubuntu_ARM_Cross-compile | ARM toolchain]]. Please remember to use the desired board config file and rebuild the kernel modules when you build a new kernel. These commands will build a kernel and its modules using the [[Electrum_Documentation#Boot_and_Operating_System_Files | sources from the wiki]]:
-
apt-get install gcc g++ make libncurses5-dev
+
  tar xJf linux-3.2.76-1-at91.tar.xz
 +
  make kernel
-
To build a kernel for the Micromint Electrum you should use the board config file on the build. It is good practice to rebuild the kernel modules when you build a new kernel. These commands will build a kernel and its modules using the source archive from the wiki:
+
To use the default board config, don't make any changes on menuconfig and just select exit. After a successful build the resulting kernel and modules should be in arch/arm/boot and boot/lib respectively. Once you are able to build a working kernel with the default config, then implement any config and source code changes required by your project.
-
 
+
-
  tar xfj linux-2.6.33.20-1-at91.tar.bz2
+
-
+
-
  cd linux-2.6.33.20-1-at91
+
-
  export ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
+
-
  make mrproper
+
-
  cp arch/arm/configs/electrum100_defconfig .config
+
-
  make oldconfig menuconfig
+
-
  make uImage modules modules_install INSTALL_MOD_PATH=`pwd`/boot
+
-
 
+
-
To use the default config don't make any changes on menuconfig and just select exit. After a successful build the resulting kernel and modules should be in arch/arm/boot and boot/lib respectively. Once you are able to build a working kernel with the default config, then implement any config and source code changes required by your project.
+

Current revision as of 18:51, 16 March 2016

To build a kernel for the Micromint Electrum you need a compatible ARM toolchain. Please remember to use the desired board config file and rebuild the kernel modules when you build a new kernel. These commands will build a kernel and its modules using the sources from the wiki:

 tar xJf linux-3.2.76-1-at91.tar.xz
 make kernel

To use the default board config, don't make any changes on menuconfig and just select exit. After a successful build the resulting kernel and modules should be in arch/arm/boot and boot/lib respectively. Once you are able to build a working kernel with the default config, then implement any config and source code changes required by your project.