Embedded Freaks..

December 2, 2008

Compiling TS-72XX Linux Kernel 2.6.21 using CodeSourcery-GCC

Filed under: ARM9, embedded-linux — Tags: , — kunilkuda @ 11:57 am

TS-72XX is a board types made by Technologic Systems. I have one of these boards in my hand, TS-7260. But the problem is the board was shipped with Linux 2.4 kernel. So, I decided to recompile the kernel to update mine.

Basically, the steps is similar with Technologic’s note, except that I use CodeSourcery’s toolchain instead of Technologic’s (here and here). Here’s the details of the steps:

Getting and Installing CodeSourcery Toolchain

CodeSourcery provides lite version of their modified GCC package. Even though CodeSourcery’s lite version doesn’t support GUIs out-of-the-box, it still works, and very useful for hobbyist like me.

You can get the toolchain from here. Don’t forget to choose the GNU/Linux version, since you need the bottom of the libc to be connected to GNU/Linux syscalls.

To install the toolchain, just untar the package into any directory. For me, it’s $HOME. It will generate a directory (mine is $HOME/arm-2007q3).

Getting and Compiling the Kernel

The Linux 2.6.21 source code for TS-72XX board can be downloaded here. Untar it to get the source code. Then:

  1. Type “make ts72xx_defconfig”
  2. Type “make menuconfig” (only if you want to add/reduce the kernel features..Otherwise you can skip it).
  3. Type “make ARCH=arm CROSS_COMPILE=/path/to/your/toolchain/arm-none-linux-gnueabi-“

The “arm-none-linux-gnueabi-” refers to the prefix of your cross compiler. Some cross compiler have different prefix (such as “arm-linux-” or “arm-elf-“, etc – depends on how the compiler was compiled).

The result is “arch/arm/boot/zImage” file, which can be copied into your SD-CARD for testing.

Advertisements

2 Comments »

  1. […] Filed under: ARM9 | Tags: ARM9, embedded linux | I’ve compiled the 2.6 kernel (refer to this post), now I’m going to test […]

    Pingback by Testing Linux 2.6.21 on TS-7260 board « Embedded Freaks.. — December 4, 2008 @ 10:43 am

  2. […] the few last posts (here and here), I showed some guide to compile, install, and test the kernel. Now it is the time to […]

    Pingback by Creating Simple Root Filesystem for Embedded Linux « Embedded Freaks.. — December 18, 2008 @ 11:28 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: