How to correctly compile kernel module for rk3026? - Forum - ARCTABLET NEWS


Please consider registering


— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?

ClockworkMod (CWM) Recovery easy install for RK3066 and RK3188 -- TWRP/CWM Flash-Tool and root for RK3288

 Please donate to support OMA and CrewRKTablets firmware work, thank you !

sp_Feed sp_TopicIcon
How to correctly compile kernel module for rk3026?

New Member
Forum Posts: 2
Member Since:
sp_UserOfflineSmall Offline
2014/10/16 - 20:28
sp_Permalink sp_Print


I have ereader from onyx C67S running on rk3026.

Unfortunately this reader does not have a touch screen, so I replaced the C67S screen (eink and touchscreen) with C65HD screen. This screen have cypress touchscreen working with the driver cyttsp-i2c. The board on C65HD and C67S have similar design and is possible to connect the touchscreen to the device. 

But the C67S did no recognize the device (no loaded module in /proc, no mention in dmesg). 

Is there a way how to list build-in drivers in the kernel and enable it?

I was also trying to build cyttsp-i2c module from the source but after the insmod, dmesg complain 

<1>[ 411.069022] Unable to handle kernel NULL pointer dereference at virtual address 0000000c
<1>[ 411.077156] pgd = d723c000
<1>[ 411.079866] [0000000c] *pgd=00000000
<0>[ 411.083474] Internal error: Oops: 5 [#1] PREEMPT SMP
<4>[ 411.088450] CPU: 1 Tainted: G C (3.0.36+ #2853)
<4>[ 411.094125] PC is at sys_init_module+0x11ec/0x18dc
<4>[ 411.098923] LR is at sys_init_module+0x11e4/0x18dc
<4>[ 411.103721] pc : [<c04c64b4>] lr : [<c04c64ac>] psr: a0000013
<4>[ 411.103732] sp : cea1bf00 ip : 00000000 fp : 00000028
<4>[ 411.115222] r10: c08caddc r9 : 00000000 r8 : 00000000
<4>[ 411.120453] r7 : fffffff8 r6 : bf2878a8 r5 : bf28786c r4 : bf287860
<4>[ 411.126988] r3 : 00000000 r2 : bf2879a4 r1 : 00000000 r0 : c0a7fa78
<4>[ 411.133525] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
<4>[ 411.140670] Control: 10c5387d Table: 7723c04a DAC: 00000015
<4>[ 411.146422]

The same error is every time I want to load my own cross-compiled module so I think there is something with the compilation configuration.

I was unable to get the original source code so used this repo from github

For the cyttsp-i2c module I patched the source with nook drivers.

the prebuilt toolchain was downloaded form google sourcecode and it was the same as the kernel show on boot

gcc version 4.6.x-google 20120106 (prerelease)

I manage to config the kernel source and the vermagic is the same as the other original modules in /system/lib/modules

vermagic: 3.0.36+ SMP preempt mod_unload ARMv7

but as i said after the insmod the device freeze and reboots.


What am I doing wrong? What else should I try?


Thank you in advance




New Member
Forum Posts: 2
Member Since:
sp_UserOfflineSmall Offline
2014/10/16 - 21:35
sp_Permalink sp_Print

I downloaded theOma_RK3026_Cube_U25GT2-T_KK_4.4.2_v1.0_gen2 loader.7z from

and try to load hubenable.ko and the system did not crash.

What source code, config and toolchain did you use to build the image?

Forum Timezone: Europe/Paris

Most Users Ever Online: 749

Currently Online: Semnone, smith432, kidjej
182 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Oma7144: 5817

globula_neagra: 2424

finless: 604

DarthJabba: 551

exelletor: 450

JochenKauz: 450

cracktech: 432

maikal: 394

Newest Members:







Forum Stats:

Groups: 10

Forums: 185

Topics: 5938

Posts: 58994


Member Stats:

Guest Posters: 43

Members: 257393

Moderators: 5

Admins: 1

Administrators: admin

Moderators: globula_neagra, exelletor, JochenKauz, Oma7144, cracktech