Some help to compile kernel module

Here for general support for B series TVs, request and problem solve area.
Post Reply

User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Some help to compile kernel module

Post 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
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: Some help to compile kernel module

Post 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
Last edited by marcelru on Tue Mar 15, 2011 10:15 am, edited 2 times in total.
Reason: cross compiler settings changed
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Some help to compile kernel module

Post 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.
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: Some help to compile kernel module

Post by marcelru »

Last edited by juusso on Tue Mar 15, 2011 10:25 am, edited 1 time in total.
Reason: Download from sf added.
marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: Some help to compile kernel module

Post 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

Post Reply

Return to “[B] Support”