วันพุธที่ 15 ตุลาคม พ.ศ. 2557

RT73 Driver compile problem on linux 2.6.38

I've FriendlyARM Tiny 6410 SDK and I've got and linux kernel sources from DVD. But when I'm compile new kernel to install to run Ubuntu I'm not found RT73USB wireless driver. I was solve this problem by download driver sources from railink official website (RT73_Linux_STA_Drv1.1.0.5) . But when I'm compile this driver i've found following problem.

rtmp_init.c:995:3: error: implicit declaration of function 'init_MUTEX'
and
rtmp_init.c:996:3: error: implicit declaration of function 'init_MUTEX_LOCKED'

I've found solution  by modify source code to support linux 2.6.38 kernel by change init_MUTEX and init_MUTEX_LOCKED to sema_init function. Now It can compiled.

Thank you solution from
http://objectlayer.blogspot.com/2012/07/linux-kernel-2638-using-semainit.html

ไม่มีความคิดเห็น:

แสดงความคิดเห็น