source code of 2.6.38-1003-linaro-omap for beagleboard

Hi all !
I want write module driver hello for beagleboard. I using ALIP for beagleboard.
When I run command: uname -r
Result: 2.6.38-1003-linaro-omap.
But I don’t have source code of 2.6.38-1003-linaro-omap.
I google to download it,but no result.
Please help me. Thank you
Hien Nguyen

You can use 2.6.32, 2.6.37, 2.6.39, 3.2 etc. Choosing weird kernel versions is not the best way to study things

Hi !
I used version kernel 2.6.34, 2.6.38 to write driver, but not effect+ I had run command:
cd linux-
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules
→ It create file hello.ko

  • Then, I run follow command to install module hello.ko in the directory “/” of ALIP running on beagleboard:
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- INSTALL_MOD_PATH=/mnt modules_install
    I have mount directory “/” of ALIP running on beagleboard in directory /mnt on host computer
  • On ALIP, I run command:
    root@linaro:/lib/modules/ insmod ./hello.ko
    → Error: insmod: error inserting ‘./hello.ko’: -1 Invalid module format
    I don’t understand why it can’t load in the kernel. I read book “Embedded Linux Primer A Practical Real-World Approach .2nd.Edition” to write module driver.
    Please help me. Thank you.
    Hien Nguyen

2012/10/14 Maxim Podbereznyy <>

You can try `dmesg` to see if there's any error.

Most likely there’s a mismatch in the version string . Use modinfo to get modules version string and compare that against uname.
You can’t build a kernel module for one kernel and load into another.

Also, do provide more info like build steps, complete output of dmesg, serial log etc. that way you’ll get more responses.


I have kernel source code linux-, I want write driver for beagleboard (beagleboard running kernel 2.6.38-1003-linaro-omap), I must doing ?. Anybody provide me a tutorial write driver for BeagleBoard.
Thank all !
Hien Nguyen

2012/10/14 Joel A Fernandes <>

Hint: if your want to write a driver for "2.6.38-1003-linaro-omap" it
would be wise to start with "2.6.38-1003-linaro-omap" kernel source..
If the "2.6.38-1003-linaro-omap" source code is not available to you,
you better talk to the people you got the "2.6.38-1003-linaro-omap"
kernel from..