06-28-2021, 04:47 AM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2021
Device: Pocketbook Inkpad 3 Pro
|
Compile kernel module for Pocketbook 740
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 compiled them with
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 Code:
$ insmod /mnt/ext1/loop.ko insmod: can't insert '/mnt/ext1/loop.ko': invalid module format 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 |
06-30-2021, 06:37 AM | #2 |
Zealot
Posts: 126
Karma: 87007
Join Date: Apr 2021
Device: Lux 5, Libra 2, PRS-T2N
|
Out of curiosity, where/how do you run insmod? Rooted SSH, or using chroot?
|
Advert | |
|
06-30-2021, 07:00 AM | #3 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2021
Device: Pocketbook Inkpad 3 Pro
|
|
06-30-2021, 07:16 AM | #4 |
Weirdo
Posts: 704
Karma: 9000000
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Tolino Shine Color, Tolino Vision 6, Kobo Clara 2E, Boox Note Air 2+
|
Out of curiosity: Newer kerrnels won't work on the device?
|
06-30-2021, 08:13 AM | #5 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2021
Device: Pocketbook Inkpad 3 Pro
|
|
Advert | |
|
06-30-2021, 01:42 PM | #6 |
Zealot
Posts: 126
Karma: 87007
Join Date: Apr 2021
Device: Lux 5, Libra 2, PRS-T2N
|
Can dmsg provide more info?
Would this help? (if CROSS_COMPILE does not equal -C) https://unix.stackexchange.com/quest...e-format-error |
06-30-2021, 04:43 PM | #7 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2021
Device: Pocketbook Inkpad 3 Pro
|
Quote:
|
|
07-01-2021, 01:14 PM | #8 | |
Zealot
Posts: 126
Karma: 87007
Join Date: Apr 2021
Device: Lux 5, Libra 2, PRS-T2N
|
Quote:
Else try: echo Some message > /dev/kmsg and check with dmesg. Assuming kmsg is available. Last edited by wold; 07-01-2021 at 01:18 PM. |
|
07-04-2021, 04:21 PM | #9 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2021
Device: Pocketbook Inkpad 3 Pro
|
I did everything from scratch and followed your advice and got some error output after all. Now the module is working. thx a million
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to compile a working kernel | NiMa | Kobo Developer's Corner | 8 | 02-02-2021 12:17 PM |
Aura H2O Compile and run own kernel | sahbi | Kobo Developer's Corner | 3 | 04-08-2017 07:41 AM |
Compile lab126 kernel | pepijndevos | Kindle Developer's Corner | 24 | 10-24-2012 04:33 PM |
usbvision.ko kernel module for PE | ConteMascetti | enTourage eDGe | 6 | 12-01-2011 04:40 PM |
iLiad Kernel module compilation howto? | drazvan | iRex Developer's Corner | 2 | 04-23-2007 07:43 PM |