[SailfishDevel] mersdk and kernel-devel

Kimmo Lindholm Kimmo.Lindholm at eke.fi
Sat Jan 11 12:30:29 UTC 2014


Ok, I need to build the complete kernel to get Module.symvers ...

but I get error with "make modules".... HELP

make -f /usr/src/kernels/3.4.0.20131212.3/scripts/Makefile.build obj=fs/lockd
  /usr/src/kernels/3.4.0.20131212.3/scripts/gcc-wrapper.py gcc -Wp,-MD,fs/lockd/.clntlock.o.d  -nostdinc -isystem /usr/lib/gcc/armv7hl-meego-linux-gnueabi/4.6.4/include -I/usr/src/kernels/3.4.0.20131212.3/arch/arm/include -Iarch/arm/include/generated -Iinclude  -I/usr/src/kernels/3.4.0.20131212.3/include -include /usr/src/kernels/3.4.0.20131212.3/include/linux/kconfig.h   -I/usr/src/kernels/3.4.0.20131212.3/fs/lockd -Ifs/lockd -D__KERNEL__ -mlittle-endian   -I/usr/src/kernels/3.4.0.20131212.3/arch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -marm -fno-dwarf2-cfi-asm -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fomit-frame-pointer -g -femit-struct-debug-baseonly -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(clntlock)"  -D"KBUILD_MODNAME=KBUILD_STR(lockd)" -c -o fs/lockd/.tmp_clntlock.o /usr/src/kernels/3.4.0.20131212.3/fs/lockd/clntlock.c
scripts/genksyms/genksyms: option requires an argument -- 'r'
Usage:
genksyms [-adDTwqhV] > /path/to/.tmp_obj.ver

  -a, --arch            Select architecture
  -d, --debug           Increment the debug level (repeatable)
  -D, --dump            Dump expanded symbol defs (for debugging only)
  -r, --reference file  Read reference symbols from a file
  -T, --dump-types file Dump expanded types into file
  -p, --preserve        Preserve reference modversions or fail
  -w, --warnings        Enable warnings
  -q, --quiet           Disable warnings (default)
  -h, --help            Print this message
  -V, --version         Print the release version
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
make[3]: *** [fs/lockd/clntlock.o] Error 1
make[2]: *** [fs/lockd] Error 2
make[1]: *** [fs] Error 2
make: *** [sub-make] Error 2

From: devel-bounces at lists.sailfishos.org [mailto:devel-bounces at lists.sailfishos.org] On Behalf Of Kimmo Lindholm
Sent: Friday, January 10, 2014 11:47 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] mersdk and kernel-devel

It took couple of hours to figure everything out but finally it looks promising...

[SB2 sdk-build SailfishOS-armv7hl] I have no name!@SailfishSDK 62 $ modinfo hello.ko
filename:       /home/mersdk/testit/62/hello.ko
depends:
vermagic:       3.4.0-perf-g8401fcf SMP preempt mod_unload modversions ARMv7

-kimmo

From: devel-bounces at lists.sailfishos.org [mailto:devel-bounces at lists.sailfishos.org] On Behalf Of Jonni Rainisto
Sent: Friday, January 10, 2014 5:34 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] mersdk and kernel-devel

I think that someone did source code request and posted the kernel online:
http://talk.maemo.org/showpost.php?p=1395881&postcount=8

And if you don't trust random internet urls there is source code request information in devices about screen.

re, Jonni
________________________________
From: devel-bounces at lists.sailfishos.org [devel-bounces at lists.sailfishos.org] on behalf of Kimmo Lindholm [Kimmo.Lindholm at eke.fi]
Sent: Friday, January 10, 2014 4:58 PM
To: devel at lists.sailfishos.org
Subject: [SailfishDevel] mersdk and kernel-devel
ahoy,

How can i install kernel-devel to mersdk for compiling modules for SailfishOs-armv7hl ?
Can't find module.h

-kimmo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140111/86aa156f/attachment.html>


More information about the Devel mailing list