Building Linux Images¶
Variscite supports its VAR-SOM-MX25 with Linux Kernel 2.6.31 and example Freescale file-systems. The Linux kernel provides support for all on-board peripherals. Your Linux Folder on your CD contains:
- ready-to-run pre-built binaries of : Kernel, U-boot, Xloader
- Source code
- U-boot script for Downloading, Flashing and setting the proper environment parameters.
- Toolchain
Building Linux images for VAR-SOM-MX25¶
This section describes how to rebuild the different software images.
Ensure that the toolchain installation has been completed (see section “Installing the Toolchain”).
Some of the makefiles build development host utilities in the process of building the target content. For these steps to complete correctly, the Linux host must be capable of compiling host programs.
Install the following libraries:
Installing the Toolchain¶
This guide assumes the use of the LITE version of the CodeSourcery toolchain. This version is an unrestricted command line toolchain available free of charge.
The toolchain on the CD included in the VAR-DVK-MX25 package.
The installation file resides at Software/host/ folder.
To install the toolchain, follow the sequence below:
# sudo mkdir –p /opt/toolchain
# sudo cp imx.toolchain.tar.bz2 /opt/toolchain
# cd /opt/toolchain
# sudo tar xvf imx.toolchain.tar.bz2
# sudo rm imx.toolchain.tar.bz2
Add the /opt/toolchain/arm-none-linuux-gnueabi.4.1.2/bin folder to your path. This is typically done by adding an additional line to your shell resource file (~/.bashrc). For the path given above, add the following line to your .bashrc file:
This adds the toolchain tools to your path and allows you to execute the tools using
arm-nonelinux-gnueabi-gcc (or other tools in the tool chain) from any directory.
Building kernel for VAR-SOM-MX25¶
Note: building the kernel requires using mkimage, a host side utility built by the u-boot makefile. You will need to build U-boot and place mkimage in your Path. If you are using a bash shell, add the following in the .bashrc file in your user account.
After making the modifications to the .bashrc file, make sure you perform the following step for the change to take effect in the current session.
Untar the Linux kernel source archive from Software\src folder
To build the kernel, follow the following commands:
If you need to make changes to the default configuration, you can run:
Note: Variscite supports 2 types of LCD displays on VAR-DVK-MX25. The LCD panel should be setup before Kernel build at the menuconfig stage.
Once ready to build the kernel, run:
The resulting kernel image uImage will be placed under arch/arm/boot and is ready to be loaded to target.
Building the U-boot for VAR-SOM-MX25¶
Untar the U-Boot source archive from \Software\src folder:
Go to the u-boot folder:
Configure u-boot. The following actions may be done only once
To build the U-Boot, follow the following commands:
Resulting U-Boot image named u-boot.bin will be in the current directory.
Linux File Systems¶
Preprogrammed Linux file system JFFS2 image is supplied by Freescale and burnt on module without any modification.