강좌 & 팁
리얼텍 RTL8192CU wifi 모듈을 리얼텍 사이트에서 다운로드받아서 빌드하면 다음과 같은 에러가 발생한다.
[리얼텍 RTL8192CU 리눅스 드라이버 소스 사이트]
http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true
[에러]
RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c: In function ‘rtw_proc_init_one’:
/home/kailink/staff/P15-0229_KT-KBOX/bsp_kbox/Linux-4418-release/wifi_rtl_81xx/tmp_rtl8192cu/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:313:3: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
^
/home/kailink/staff/P15-0229_KT-KBOX/bsp_kbox/Linux-4418-release/wifi_rtl_81xx/tmp_rtl8192cu/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:313:11: warning: assignment makes pointer from integer without a cast [enabled by default]
rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
^
/home/kailink/staff/P15-0229_KT-KBOX/bsp_kbox/Linux-4418-release/wifi_rtl_81xx/tmp_rtl8192cu/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:320:3: error: implicit declaration of function ‘create_proc_read_entry’ [-Werror=implicit-function-declaration]
entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
^
/home/kailink/staff/P15-0229_KT-KBOX/bsp_kbox/Linux-4418-release/wifi_rtl_81xx/tmp_rtl8192cu/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:320:9: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
^
/home/kailink/staff/P15-0229_KT-KBOX/bsp_kbox/Linux-4418-release/wifi_rtl_81xx/tmp_rtl8192cu/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:326:9: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("log_level", S_IFREG | S_IRUGO,
^
/home/kailink/staff/P15-0229_KT-KBOX/bsp_kbox/Linux-4418-release/wifi_rtl_81xx/tmp_rtl8192cu/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:332:8: error: dereferencing pointer to incomplete type
entry->write_proc = proc_set_log_level;
^
/home/kailink/staff/P15-0229_KT-KBOX/bsp_kbox/Linux-4418-release/wifi_rtl_81xx/tmp_rtl8192cu/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:348:21: warning: assignment makes pointer from integer without a cast [enabled by default]
padapter->dir_dev = create_proc_entry(dev->name,
^
/home/kailink/staff/P15-0229_KT-KBOX/bsp_kbox/Linux-4418-release/wifi_rtl_81xx/tmp_rtl8192cu/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:379:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("write_reg", S_IFREG | S_IRUGO,
^
/home/kailink/staff/P15-0229_KT-KBOX/bsp_kbox/Linux-4418-release/wifi_rtl_81xx/tmp_rtl8192cu/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:385:7: error: dereferencing pointer to incomplete type
entry->write_proc = proc_set_write_reg;
^
/home/kailink/staff/P15-0229_KT-KBOX/bsp_kbox/Linux-4418-release/wifi_rtl_81xx/tmp_rtl8192cu/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:387:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("read_reg", S_IFREG | S_IRUGO,
---------------------
위와 같은 에러가 발생하면 다음과 같이 수정하고 해 보시기 바랍니다.
diff -pru rtl8192cu/Makefile rtl8192cu.new/Makefile
--- rtl8192cu/Makefile 2013-09-11 05:56:55.000000000 +0200
+++ rtl8192cu.new/Makefile 2013-12-06 16:09:37.000000000 +0100
@@ -1,5 +1,5 @@
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
-EXTRA_CFLAGS += -O1
+#EXTRA_CFLAGS += -O1
#EXTRA_CFLAGS += -O3
#EXTRA_CFLAGS += -Wall
#EXTRA_CFLAGS += -Wextra
diff -pru rtl8192cu/include/autoconf.h rtl8192cu.new/include/autoconf.h
--- rtl8192cu/include/autoconf.h 2013-09-11 05:56:55.000000000 +0200
+++ rtl8192cu.new/include/autoconf.h 2013-12-06 16:09:37.000000000 +0100
@@ -296,9 +296,9 @@
//#define CONFIG_DEBUG_RTL871X
#define DBG 0
-#define CONFIG_DEBUG_RTL819X
+//#define CONFIG_DEBUG_RTL819X
-#define CONFIG_PROC_DEBUG 1
+//#define CONFIG_PROC_DEBUG 1
//#define DBG_IO
//#define DBG_DELAY_OS
@@ -324,7 +324,7 @@
//#define DBG_MEMORY_LEAK 1
-#define DBG_CONFIG_ERROR_DETECT
+//#define DBG_CONFIG_ERROR_DETECT
//#define DBG_CONFIG_ERROR_RESET
//TX use 1 urb
자세한 내용은 http://askubuntu.com/questions/505969/errors-installing-wireless-driver/524460 를 참조하세요.