Active Topics

 


Reply
Thread Tools
Posts: 38 | Thanked: 2 times | Joined on Apr 2010 @ Novosibirsk, Russia
#1
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.
 
Posts: 38 | Thanked: 2 times | Joined on Apr 2010 @ Novosibirsk, Russia
#2
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's Avatar
Posts: 466 | Thanked: 180 times | Joined on Feb 2010
#3
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
 
Posts: 38 | Thanked: 2 times | Joined on Apr 2010 @ Novosibirsk, Russia
#4
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:15.