VAR-SOM-OM37 Linux Building Linux Images: Difference between revisions
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
</pre> | </pre> | ||
This adds the CodeSourcery tools to your path and allows you to execute the tools using<br>arm-nonelinux-gnueabi-gcc (or other tools in the tool chain) from any directory. | This adds the CodeSourcery tools to your path and allows you to execute the tools using<br>arm-nonelinux-gnueabi-gcc (or other tools in the tool chain) from any directory. | ||
== Building kernel for VAR-SOM-OM37<br> == | == Building kernel for VAR-SOM-OM37<br> == | ||
Line 66: | Line 64: | ||
</pre> | </pre> | ||
Resulting U-Boot image named u-boot.bin will be in the current directory. <br> | Resulting U-Boot image named u-boot.bin will be in the current directory. <br> | ||
== Building the X-Loader for VAR-SOM-OM37<br> == | == Building the X-Loader for VAR-SOM-OM37<br> == |
Revision as of 10:29, 19 January 2014
VAR-SOM-OM35/7 /AM35 Building Linux Images
Instructions for Linux release no.8 can be found here: http://www.variwiki.com/index.php?title=VAR-SOM-OM37_-_Building_Linux_Images&oldid=721
Building Linux images
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:
# sudo apt-get install build-essential libncurses5-dev mtd-tools
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 tool chain is included in the VAR-DVK-3x.
The installation file resides at Software/host_tools/linux/arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2[1]
To install the toolchain, follow the sequence below:
# sudo mkdir –p /opt/toolchain # sudo cp arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 /opt/toolchain # cd /opt/toolchain # sudo tar –jxvf arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 # sudo rm arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
Add the /opt/toolchain/arm-2009q1/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:
# export PATH=/opt/toolchain/arm-2009q1/bin:$PATH
This adds the CodeSourcery 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-OM37
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.
export PATH=<path to U-boot>/tools:$PATH
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.
# source ~/.bashrc
Download variscite_2_6_37.patch from Variscite's FTP
\VAR-SOM-OM35_VAR-SOM-OM37_VAR-SOM-AM35\Software\2_6_37-Release2\sources
To build the kernel, follow the following commands:
git clone git://arago-project.org/git/projects/linux-omap3.git cd linux-omap3 git checkout 4d640ae8cb8bb3a51675208caaf45142e7348b08 git apply /path/to/variscite_kernel_2_6_37.patch make ARCH=arm var-som-om3x_defconfig make ARCH=arm menuconfig make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
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-OM37
Untar the U-Boot source archive from \VAR-SOM-OM35_VAR-SOM-OM37_VAR-SOM-AM35\Software\Linux\sources folder:
tar xjvf u-boot-2009.11-psp03.00.01.06.sdk.tar.bz2
To build the U-Boot, follow the following commands:
# cd u-boot-2009.11-psp03.00.01.06.sdk # make distclean # make var-om3xxx_config # make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
Resulting U-Boot image named u-boot.bin will be in the current directory.
Building the X-Loader for VAR-SOM-OM37
Untar the X-Loader source archive from \VAR-SOM-OM35_VAR-SOM-OM37_VAR-SOM-AM35\Software\Linux\sources folder:
tar xjvf x-load-1.46-psp03.00.01.06.sdk.tar.bz2
To build the X-Loader, follow the following commands:
# cd x-load-1.46-psp03.00.01.06.sdk # make distclean # make var-om35xx_config # make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- PLATFORM_RELFLAGS+='-DFOUR_BIT_ERROR_CORRECT'
Resulting X-Loader image named x-load.bin will be in created the current directory.
Sign image with TI signGP tool (included in CD)