Embedded Freaks..

February 3, 2009

Hello World Module for TS-7260

Filed under: ARM9, linux-device-driver — Tags: , — kunilkuda @ 12:14 pm

Actually this post is based on Linux Device Driver 3rd book (you can buy its hardcopy here, or view its softcopy here).  I only port it into TS-7260 platform.

The hello module consist of hello.c and the Makefile. Here’s the hello.c file: (more…)

Preparing Kernel Header for TS-7260

Filed under: ARM9, linux-device-driver — Tags: , — kunilkuda @ 11:44 am

One of requirements of Linux device driver development in 2.6 kernel series is that we need its header (and some of its object files). Therefore, it’s necessary to compile the kernel first before it can be used as kernel header for device driver development.

For TS-7260, download the kernel from TS-Logic site (here). Note that you need the exact version of the kernel that run on your board to develop device driver that’s running on it. (more…)

January 28, 2009

Differentiating Old-EABI and EABI Cross Compilers

Filed under: ARM9, embedded-linux, linux-device-driver — Tags: , , — kunilkuda @ 11:46 am

I had some difficulties with my cross compiler. It seems like my hello world program cannot be run in the board’s root fs (I’m using Debian ARM as my root fs). After seeking here and there, I found this page on debian site.

So, I tested my compiled binary (using objdump -p), and I found out that my installed Debian ARM was based on Old-EABI, while my current compiler (from Codesourcery) is based on new EABI. The result is that my binaries, application and modules, cannot work on the board’s Debian, but the kernel (since it’s independent from any of root fs) could run on it.

The solution for this is to download the correct cross compiler toolchain from TS-Logic website (here..watch the EABI when you download it).

Older Posts »

Blog at WordPress.com.