Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

The Linux kernel

430 bytes added, 13:46, 12 March 2018
Linux kernels
= How to cross compile What is Linux?=[[Image:tux.png|left]][http://www.kernel.org The Linux Kernel Archives]Linux is a clone of the linux kernel =operating system Unix, written from scratch by Linus Torvalds with assistance from a loosely-knit team of hackers across the Net. It aims towards POSIX and Single UNIX Specification compliance.
Embedded Linux is It has all the use of features you would expect in a Linux operating system in embedded computer systems such as mobile phonesmodern fully-fledged Unix, including true multitasking, virtual memory, personal digital assistantsshared libraries, media playersdemand loading, setshared copy-top boxeson-write executables, proper memory management, and other consumer electronics devices, multistack networking equipment, machine control, industrial automation, navigation equipment including IPv4 and medical instrumentsIPv6.
Unlike desktop and server versions of Linux, embedded versions of Linux are designed Although originally developed first for devices with relatively limited resources, such as cell phones and set32-bit x86-top boxes. Due to concerns such as cost and sizebased PCs (386 or higher), embedded devices usually have much less RAM and secondary storage than desktop computers, and are likely to use flash memory instead of today Linux also runs on a hard drive. Since embedded devices serve specific rather than general purposes, developers optimize their embedded Linux distributions to target specific hardware configurations and usage situations. These optimizations can include reducing the number multitude of device drivers and software applicationsother processor architectures, in both 32- and modifying the Linux kernel to be a real64-time operating systembit variants.
== Overview of How-To ==This How-To is meant to be a starting point for people to learn build a kernel image for IGEP Processor Boards as quickly and easily as possible.
This =How-To is meant to be a starting point cross compile the linux kernel=In order to build the Linux Kernel for people IGEP PROCESSOR BOARDS it's recommended to learn cross-compile the kernel, that's, build a the kernel image in your HOST machine for IGEP v2 devices as quickly and easily as possiblea target architecture.
This How-To works with the [[Ubuntu 816.04 IGEP v2LTS Toolchain|setup the cross-compiling]] there are two fundamental variables that the kernel uses to select the target architecture.0 SDK Virtual Machine Normally these values are guessed based on your build environment, but most of the contents course that environment here does not match our target embedded system, so we'll need to override them. The variables in question are valid also for other GNU/Linux distributions. We do not issue any guarantee that this will work on other distributionsARCH and CROSS_COMPILE.
== The ARCH variable is the architecture you're targetting as the kernel knows it. For IGEP platforms ==PROCESSOR BOARDS you'll set to "arm" architecture.
* IGEP0020 Hopefully the CROSS_COMPILE variable is also know as IGEP v2 platformpretty self-explanatory.* IGEP0030 is also know as IGEP COM MODULESet this to the prefix of your toolchain (including the trailing dash "-").* IGEP0032 So if your toolchain is also know invoked as IGEP COM PROTONsay arm-linux-gnueabihf-gcc, just chop off that trailing gcc and that's what you use: arm-linux-gnueabihf-.
=== Linux OMAP v2There is an additional variable, INSTALL_MOD_PATH, which defines where the /lib directory will be created, and all the modules stored.6While you don't have to transfer the kernel sources to your target device, if you build any modules, you'll want this directory.37 series ===
See As example, once you've downloaded the [[Linux Kernel 2.6.37.y]] articlekernel source, you should follow these steps:
make ARCH=arm CROSS_COMPILE=[cross compiler] [defconfig] make ARCH= Linux OMAP v2.6.35 series ==arm CROSS_COMPILE=[cross compiler] zImage modulesNewest kernels can require build the dtbs too as:
See the make ARCH=arm CROSS_COMPILE=[[Linux Kernel 2.6.35.y]cross compiler] articlezImage modules dtbs
=== Linux mainline tree (development) ===The result will be a zImage file in <code>${KERNEL_SOURCES}/arch/arm/boot</code>
And dabs will be in <span style="color: rgb(255, 0, 0);"code>'''Note:''' The 'master' branch is where the development work takes place and you should use this if you're after to work with the latest cutting edge developments. It is possible trunk can suffer temporary periods of instability while new features are developed and if this is undesirable we recommend using one of the release branches. '''Use ONLY for development purposes.'''${KERNEL_SOURCES}/arch/arm/boot/dts</spancode>
Additional patches At last you can be found at http://patchwork.install the kernel.org/project/linux-omap/list modules to your target rootfs using this command
This Linux kernel is also considered as a downstream of tmlind's Linux kernel. The main difference between this tree and the linux-omap tree is that the igep OMAP tree has unpublished patches for IGEP v2 support. make ARCH=arm CROSS_COMPILE=[cross compiler] modules_install INSTALL_MOD_PATH=[path to your target rootfs]Example:
Clone GIT repository from git.igep.es make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- omap2plus_defconfig<br>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs<br>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules_install INSTALL_MOD_PATH=/media/user/rootfs
git clone git://git==Linux kernels=====IGEP Boards based on Texas Instruments  Processors===* [[Linux Kernel 2.6.37.y]] (OMAP35xx and DM3730) processor board based.igep* [[Linux Kernel 4.es/pub/scm/linux-omap-29.6y]] (OMAP35xx, DM3730, AM335x) processor board based.git cd linux-omap-2* [[Linux Kernel 3.8.y]] (OMAP5432) processor board based.6
and build with   make ARCH=arm CROSS_COMPILE=[cross compiler] omap2plus_defconfig make ARCH=arm CROSS_COMPILEIGEP Boards based on NXP-Freescale Processors===* [[cross compilerLinux Kernel 3.14.28.y]] uImage modules The result will be an uImage file in arch/arm/boot directory (iMX6) processor board based. You can install the kernel modules to your target rootfs   make ARCH=arm CROSS_COMPILE=* [[cross compilerLinux Kernel 4.9.y] modules_install INSTALL_MOD_PATH=[path to your target rootfs](iMX6) processor board based.
=See also=
*[[How to setup a cross compiler]]
[[Category:Software|Kernel]]
[[Category:Linux Kernel]]
[[Category:Tutorials]]
[[Category:Software applications]]