maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Compiling External Kernel Modules (https://talk.maemo.org/showthread.php?t=58027)

Grinchman 2010-07-08 04:49

Compiling External Kernel Modules
 
Hello.
I want to build my own external kernel module.
I try to use this Guide Maemo kernel guide
In section "Compiling External Kernel Modules " on step 2 is command:
Code:

[sbox-MaemoKernel: ~/maemo_kernel] > fakeroot apt-get install kernel-headers
But apt in scratchbox don`t have this package, but have package 'linux-kernel-headers'. I tried to get it by command
Code:

[sbox-MaemoKernel: ~/maemo_kernel] > fakeroot apt-get install linux-kernel-headers
but got errors:
Code:

[sbox-MaemoKernel: ~/maemo_kernel/kernel-2.6.28] > fakeroot apt-get install linux-kernel-headers
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  debconf: PreDepends: perl-base (>= 5.6.1-4) but it is not going to be installed
  debhelper: Depends: perl (>= 5.6.0-16) but it is not going to be installed
            Depends: coreutils
            Depends: file (>= 3.23-1) but it is not going to be installed
            Depends: html2text but it is not going to be installed
            Depends: binutils but it is not going to be installed
  dpkg-dev: Depends: dpkg (>= 1.14.6) but it is not going to be installed
            Depends: perl5
            Depends: cpio (>= 2.4.2-2) but it is not going to be installed
            Depends: bzip2 but it is not going to be installed
            Depends: patch (>= 2.2-1) but it is not going to be installed
            Depends: make but it is not going to be installed
            Depends: binutils but it is not going to be installed
  intltool-debian: Depends: perl but it is not going to be installed
                  Depends: gettext but it is not going to be installed
  libtimedate-perl: Depends: perl (>= 5.6.0-16) but it is not going to be installed
  mini-rc: Depends: ifupdown
  osso-core-config: Depends: passwd but it is not going to be installed
                    Depends: busybox but it is not going to be installed or
                            coreutils
                    PreDepends: base-passwd (>= 3.5.7.osso2) but it is not going to be installed
  perl-modules: Depends: perl (>= 5.8.3-1) but it is not going to be installed
  po-debconf: Depends: perl but it is not going to be installed
              Depends: gettext (>= 0.12) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

How it may to be? I install Maemo SDK from scratch! Act only on instructions from page Maemo_Kernel_Guide. Please help me to resolve this problem.

Grinchman 2010-07-10 02:32

Re: Compiling External Kernel Modules
 
So, I resolved this problem by switching to standart FREMANTLE_ARMEL target, not in created by me maemo_kernel target. Moreover, my kernel module compile! But....but, unfortunately, I got an error while trying to load this module inside the scratchbox.
Code:

insmod: QM_MODULES: Function not implemented
Furthermore, when I tried to load this module directly on device I got such error:
Code:

insmod: error inserting 'my_module.ko': -1 Unknown symbol in module

clasificado 2010-07-10 04:39

Re: Compiling External Kernel Modules
 
make sure that you are running the same version that you are compiling to.

if you are overclocking, you surely are using kernel-power by titan

Grinchman 2010-07-12 06:17

Re: Compiling External Kernel Modules
 
I think scratchbox not support external kernel modules, so forget about it.
Moreover, now module is loaded on device without errors, after when I start to load module not from home dir on device but from /tmp dir over ssh.

Hmmm, I think thread may be closed. Next problem is in other field.


All times are GMT. The time now is 11:12.

vBulletin® Version 3.8.8