<commit_before>## Compile the Linux Kernel and the modules

It’s possible to download the Kernel sources from the GitHub repository [https://github.com/UDOOboard/Kernel_Unico](https://github.com/UDOOboard/Kernel_Unico).

Note: For compiling the sources from an x86/64 PC, it is also necessary to download the cross-compiler from the sources section of the webpage [http://www.udoo.org/other-resources/#sources](http://www.udoo.org/other-resources/#sources).

Download and extract the cross-compiler:

```bash

curl http://download.udoo.org/files/crosscompiler/arm-fsl-linux-gnueabi.tar.gz | tar -xzv

```

It could be prompted to install some packages in order to successfully compile the kernel on Linux.

E.g. in Ubuntu 10.04 it is necessary  to install the following packages:

```bash

sudo apt-get install build-essential ncurses-dev u-boot-tools git 

```

Download the latest revision from GitHub:

```bash

git clone http://github.com/UDOOboard/Kernel_Unico kernel

```

Move inside the folder kernel:

```bash

cd kernel

```

Set the default kernel configuration for UDOO DUAL/QUAD by running the command:

```bash

make ARCH=arm UDOO_defconfig

```

At this point, it is possible, if you need, to edit the config (optional):

```bash

make ARCH=arm menuconfig

```

Start compiling:

```bash

make -j4 CROSS_COMPILE=../arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi- ARCH=arm uImage modules


```

(This operation could take up to 20 minutes, depending on the PC used) The compiled Binary (uImage) will now be available in the arch/arm/boot/ folder.

Copy it in the previous folder:

```bash

cp arch/arm/boot/uImage ..

```

Now install the modules:

```bash

make modules_install INSTALL_MOD_PATH=.. CROSS_COMPILE=../arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi- ARCH=arm

cd ..

```<commit_msg>Updated Compile Linux Kernel instructions to the new kernel 3.14.x from the new github repo<commit_after>## Compile the Linux Kernel and the modules

It’s possible to download the Kernel sources from the GitHub repository [https://github.com/UDOOboard/linux_kernel](https://github.com/UDOOboard/linux_kernel).

It could be prompted to install some packages in order to successfully compile the kernel on Linux.

E.g. in Ubuntu 14.04 it is necessary to install the following packages:

```bash

sudo apt-get install build-essential ncurses-dev u-boot-tools git gcc-arm-linux-gnueabihf

```

Download the latest kernel revision from GitHub:

```bash

git clone https://github.com/UDOOboard/linux_kernel

```

Move inside the folder linux_kernel:

```bash

cd linux_kernel

```

Set the default kernel configuration for UDOO DUAL/QUAD by running the command:

```bash

make ARCH=arm udoo_quad_dual_defconfig

```

At this point, it is possible, if you need, to edit the config (optional):

```bash

make ARCH=arm menuconfig

```

Start compiling the Kernel, modules and dtb files:

```bash

make -j4 CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm zImage modules dtbs


```

(This operation could take up to 20 minutes, depending on the PC used) The compiled Binary (zImage) will now be available in the arch/arm/boot/ folder.

You can copy the kernel binary (zImage) and device tree binaries (.dtb) in the /boot/ partitions of your distro :

```bash
e.g.
cp arch/arm/boot/zImage /media/<user_name>/boot/
cp arch/arm/boot/dts/imx6sx-udoo-neo*.dtb /media/<user_name>/boot/dts/

```

Now install the modules and firmware in the NEO rootfs:

```bash
e.g.
make modules_install firmware_install INSTALL_MOD_PATH=/media/<user_name>/udoobuntu/ CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm

```
{'fraction_non_alphanumeric': 0.10306406685236769, 'fraction_numerical': 0.006128133704735376, 'mean_word_length': 4.32, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6079638', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1142, 'n_words': 410}