Latest product reviews
ARCHOS 50 Diamond
ARCHOS GamePad2
ARCHOS
Smartphones
ARCHOS
TV Connect
ARCHOS 101 XS

A A A
Avatar

Please consider registering
Guest

Search

— 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?
Avatar
pb2000
New Member
Forum Posts: 2
Member Since:
2014/10/16
sp_UserOfflineSmall Offline
1
2014/10/16 - 20:28
sp_Permalink sp_Print

Hi,

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 

https://github.com/peterzhu0503/kernel_rk3026.git

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

https://github.com/martinezjavier/nook_color.git

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

 

Fero

Avatar
pb2000
New Member
Forum Posts: 2
Member Since:
2014/10/16
sp_UserOfflineSmall Offline
2
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 http://crewrktablets.arctablet.com/?wpfb_dl=1676

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: murigny64, Cristis, omarbled
231 Guest(s)

Currently Browsing this Page:
1 Guest(s)


Devices in use: Desktop (198), Phone (29), Tablet (7)

Top Posters:

Oma7144: 5664

globula_neagra: 2424

finless: 604

DarthJabba: 551

exelletor: 450

JochenKauz: 450

cracktech: 430

maikal: 394

Newest Members:

omarbled

carlo6727

toche

tsantilas

mgt2010zg

Zenker13

Forum Stats:

Groups: 10

Forums: 185

Topics: 5884

Posts: 58438

 

Member Stats:

Guest Posters: 43

Members: 255334

Moderators: 5

Admins: 1

Administrators: admin

Moderators: globula_neagra, exelletor, JochenKauz, Oma7144, cracktech


CrewRKTablets moderators: JochenKauz and Astralix