Hi Juan

I was able to build and load the hello_printk sample module in the
2.6.24-17-lpia ( image got from the link that you had earlier sent) 

One additional step that I did was to install the LUM headers.

 

apt-get install linux-headers-lum-`uname -r`

 

Hope this helps.

 

+Jay

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Juan
Villacis
Sent: Monday, June 09, 2008 6:10 PM
To: [email protected]
Subject: problem building driver against Ubuntu UME kernel
2.6.24-17-lpiaheaders ...

 

Hi,

 

We successfully installed Ubuntu UME with kernel 2.6.24-17-lpia (from
"Kit-20" in mid-depot at Intel) on an Atom-based MID platform.

 

We configured the system for building 3rd-party drivers via,

 

  # apt-get update

  # apt-get install build-essential

  # apt-get install linux-headers-`uname -r`   # note: `uname -r` =
2.6.24-17-lpia

 

We downloaded simple "Hello World" driver (hello_printk.tar.gz) from,

 

 
http://www.linuxdevcenter.com/pub/a/linux/2007/07/05/devhelloworld-a-sim
ple-introduction-to-device-drivers-under-linux.html

 

and successfully built it on our system.  However, when trying to load
the driver, we get following error,

 

  # insmod hello_printk.ko

  insmod: error inserting 'hello_printk.ko': -1 Invalid module format

 

  # grep hello_printk /var/log/messages

  ... kernel : ... hello_printk: disagrees about version of symbol
struct_module

 

It seems the linux-headers we downloaded do not match those used to
build the running kernel.

 

If this is the case, where can the proper kernel headers for
2.6.24-17-lpia be downloaded?

 

Thanks,

 

-juan

 

-- 
Ubuntu-mobile mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile

Reply via email to