Quantcast
Channel: MobileRead Forums - PocketBook
Viewing all articles
Browse latest Browse all 1248

Compile kernel module for Pocketbook 740

$
0
0
I am trying to compile a kernel module for my Pocketbook 740 (Inkpad 3 Pro).
The device announces following kernel

Code:

Linux version 3.10.65+ (jenkins@bsp-builder) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) ) #2 SMP
I have tried two kernel sources:
I compiled them with
  • gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf
  • gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux

using following commands:
Code:

#!/bin/sh
export KCFLAGS="-mcpu=cortex-a8 -march=armv7-a -mfpu=neon -mfloat-abi=softfp"
CROSS_PREFIX=/workspace/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-
NCPUS=8
make ARCH=arm CROSS_COMPILE="${CROSS_PREFIX}" -j ${NCPUS} $1

Right now I am trying to insert the block device module loop.ko just to see if my build works. I seem to always get
Code:

$ insmod /mnt/ext1/loop.ko
insmod: can't insert '/mnt/ext1/loop.ko': invalid module format

When I consult file my module and the modules on the device look the same:
Code:

drivers/block/loop.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=487b84d6a004392e0fe384329cb7ea2ffb87d38c, not stripped

epdc.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=8c110ead8aa1506eee362cee022ba27f81394d0e, not stripped

Any help greatly appreciated.

Viewing all articles
Browse latest Browse all 1248

Trending Articles