cubieplayer / Cubian

Debian for Cubieboard
http://cubian.org
271 stars 49 forks source link

compiling st1232.ko #363

Open rkwiles opened 9 years ago

rkwiles commented 9 years ago

I used the directions on the Source page to build the kernel and that was successful with out any changes by me. I then ran the menuconfig and added the Sitronix st1232 touch controller. It compiled with out errors, I then copied the st1232.ko file to my cubieboard2 running. Linux Cubian 3.4.75-sun7i #35 SMP PREEMPT Sat Feb 8 02:10:31 CST 2014 armv7l GNU/Linux

I added the st1232.ko to the /lib/modules/3.4.75-sun7i/kernel/drivers/input/touchscreen directory and ran depmod -a

When I try and use modprobe st1232 it gives me the following error ERROR: could not insert 'st1232': Exec format error and adds a line to the dmesg of [ 109.884593] st1232: disagrees about version of symbol module_layout

Why does this not work? And how can I correct this?

Thanks

stidn commented 9 years ago

http://unix.stackexchange.com/questions/125624/unable-to-load-module-disagrees-about-version-of-symbol-module-layout

Here, this might help. If you're still not sure I'll try and provide further assistance.

michalliu commented 9 years ago

The simplest way is recompile the whole kernel then install kernel and modules to your board

rkwiles commented 9 years ago

Having trouble compiling.

Maybe I installed Patrick Wood version instead of the mmplayer version.

I tried to find the source version I have on my cubieboard but no luck.

So I have been trying to compile either the mmplayer version or the Patrick Wood version found at github.

When I compile the mmplayer version using the directions at

http://cubian.org/sources/

I get asked a lot of questions, I do not know the answers to, when I do the modules_install build part.

The Patrick Wood code does not supple a .config file that I can find so tried to use the one from the mmplayer directions.

It fails to build of course.

Not sure what I am going to do at this point. Banging my head against a wall just gives me a headache.


From: michalliu notifications@github.com Sent: Tuesday, September 23, 2014 7:12 AM To: cubieplayer/Cubian Cc: Kelly Wiles Subject: Re: [Cubian] compiling st1232.ko (#363)

The simplest way is recompile the whole kernel then install kernel and modules to your board

Reply to this email directly or view it on GitHubhttps://github.com/cubieplayer/Cubian/issues/363#issuecomment-56510420.

michalliu commented 9 years ago

What's the problem of modules_install?

cubieplayer commented 9 years ago

Hi You can download the header package through apt, then compile the driver