Page 1 of 1

Re: Some help to compile kernel module

Posted: Tue Mar 15, 2011 8:37 am
by juusso
Try native toolchain.

Download image, - ready for compilling toolchain.
mount it on NFS (ubuntu vmware)

Code: Select all

mount -o loop,offset=32256 /usr/hda.img /armel-chroot 
Use instructions from wiki.

Go to your sources dir,
execute

Code: Select all

make menuconfig
or if you get error of missing instructions:

Code: Select all

./config
then

Code: Select all

make
then

Code: Select all

make install

Re: Some help to compile kernel module

Posted: Tue Mar 15, 2011 9:15 am
by marcelru
Hi menos16,

Welcome aboard!

About your module:

I changed the Makefile to have KDIR point to the kernel sources of the TV, like this:

Code: Select all

#KDIR    := /lib/modules/$(shell uname -r)/build
KDIR    := /home/marcelr/build/ue40b7020/kernel/linux/linux-r011
In your case this is a different directory, no doubt.

then run make and (when you have a working toolchain, and the compiler prefix (arm-SamyGO-linux-gnueabi- in my case) properly set in the Makefile, or for this particular kernel in .mvl_cross_compile in the kernel rootdir) that should do it.
.mvl_cross_compile contents:

Code: Select all

arm-SamyGO-linux-gnueabi-
The result is mcs7830.ko, in my case for kernel 2.6.18_SELP-ARM. I wanted to upload it, but Sourceforge tells me:
Sorry, the board attachment quota has been reached.

In case you want it, send me a PM and I'll try and upload it otherwise.

HTH,

marcelr

Re: Some help to compile kernel module

Posted: Tue Mar 15, 2011 10:01 am
by juusso
You can`t attach any file to board, but you could upload it to rapidshare, megaupload or else and give us link. I could place it to sourceforge download area too.

Re: Some help to compile kernel module

Posted: Tue Mar 15, 2011 10:19 am
by marcelru

Re: Some help to compile kernel module

Posted: Sun May 15, 2011 1:25 pm
by marcelru
Hi menos16,

I had a quick glance at the code for your device; apparently it may be compiled in 2 different ways, so as to enable different features of the device. (with or without PHY, not sure what it is). Maybe you can play around with that. I'll be happy to build both versions of the module for you if you want me to.

grtz,

marcelr