Kernel 3.165 with SGX libs build trouble

Hi,

quite like back to march 28th report , I have trouble building sgx librairies against kernel 3.15.6-bone5 from bb-kernel repo.

Building modules, stage 2.
MODPOST 3 modules
WARNING: “unregister_vsync_cb” [/home/cedric/test-3.8/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb.ko] undefined!
WARNING: “register_vsync_cb” [/home/cedric/test-3.8/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb.ko] undefined!

It builds but on the BBB:

modprobe -v omaplfb
insmod /lib/modules/3.15.6-bone5/extra/omaplfb.ko
ERROR: could not insert ‘omaplfb’: Unknown symbol in module, or unknown parameter (see dmesg)

dmesg:

[ 1268.469257] omaplfb: Unknown symbol register_vsync_cb (err 0)
[ 1268.469457] omaplfb: Unknown symbol unregister_vsync_cb (err 0)

I had the same error for pvrsrvkm, but added CONFIG_FB_DA8XX=y to config
Then I patched arch/arm/kernel/setup.c by adding at the end
#ifndef MULTI_CACHE EXPORT_SYMBOL(__glue(_CACHE,_dma_map_area)); EXPORT_SYMBOL(__glue(_CACHE,_dma_unmap_area)); EXPORT_SYMBOL(__glue(_CACHE,_dma_flush_range)); #endif

This patch solves
pvrsrvkm: Unknown symbol register_vsync_cb (err 0)

pvrsrvkm: Unknown symbol unregister_vsync_cb (err 0)

Any clue ?

Regards,

Cedric

Fixed on friday afternoon:

https://github.com/RobertCNelson/bb-kernel/commit/181731e134d23a0fd8275db32fc085f7502d0437

sgx works fine, head of am33x-v3.15 branch..

Regards,

Thanks Robert,

Weird as I pulled the branch sunday…

will test that right away on a clean system.

Regards,

Cedric

Ok,
I did a build, sgx build and kernel rebuild then kernel-install.

Installed all the libs and yeepaa !!!

Got it working fine on lcd.

I owe you a beer Robert :wink:

Cheers,

Cédric Malitte

You gota save that beer for the one that gets minecraft working next. :wink:

Regards,

Why minecraft ?

People have been privately asking about it.

Regards,

Ahaha :wink:

You deserve one anyway.

Cheers,

Cédric Malitte

People have been privately asking about it.

What an incredible waste of such fine embedded hardware. To each his / her own though, and the toy project I’m writing here in my spare time is probably equally wasteful. heh.

Basically, I’m using my BBB as an alarm clock / MP3 player while learning Nodejs / javascript better. Works good though . . .

My plan is to pilot my femto brewery… :wink:
Nothing is useless or time wasting as long as you enjoy it !

Cedric