Author: thhk123
Forum: 하드웨어 게시판
Date: 2014-07-20
ihavnoth님께서 말씀하신대로 커널헤더를 설치하고(apt-get install linux-header-(uname -r)
다시 make명령어를 입력해봤더니
make -C tools
make[1]: Entering directory `/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
cp -f os/linux/Makefile.6 /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
make -C /lib/modules/3.14-kali1-amd64/build SUBDIRS=/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.14-kali1-amd64'
CC [M] /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsUsDelay’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:179:8: warning: unused variable ‘i’ [-Wunused-variable]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘duplicate_pkt’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:497:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
In file included from /usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/string.h:4:0,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/string.h:17,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/dynamic_debug.h:111,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/printk.h:244,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/kernel.h:13,
from /usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/percpu.h:44,
from /usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/preempt.h:5,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/preempt.h:20,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/seqlock.h:35,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/time.h:5,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/stat.h:18,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/module.h:10,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:31,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:499:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
In file included from /usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/string.h:4:0,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/string.h:17,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/dynamic_debug.h:111,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/printk.h:244,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/kernel.h:13,
from /usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/percpu.h:44,
from /usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/preempt.h:5,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/preempt.h:20,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/seqlock.h:35,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/time.h:5,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/stat.h:18,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/module.h:10,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:31,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘ClonePacket’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:650:20: warning: assignment makes integer from pointer without a cast [enabled by default]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsPktInit’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:669:2: warning: assignment makes integer from pointer without a cast [enabled by default]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘wlan_802_11_to_802_3_packet’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:695:15: warning: assignment makes integer from pointer without a cast [enabled by default]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1121:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1122:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpDrvAllRFPrint’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2052:4: warning: passing argument 2 of ‘file_w->f_op->write’ from incompatible pointer type [enabled by default]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2052:4: note: expected ‘const char *’ but argument is of type ‘UINT32 *’
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:22: warning: unused variable ‘macValue’ [-Wunused-variable]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:9: warning: unused variable ‘macAddr’ [-Wunused-variable]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2173:21: warning: unused variable ‘net_dev’ [-Wunused-variable]
make[4]: *** [/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o] 오류 1
make[3]: *** [_module_/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] 오류 2
make[2]: *** [sub-make] 오류 2
make[1]: *** [all] 오류 2
make[1]: Leaving directory `/usr/src/linux-headers-3.14-kali1-amd64'
make: *** [LINUX] 오류 2
이번엔 이런 오류가 뜨네요..
어떻게 해야 할까요..
Forum: 하드웨어 게시판
Date: 2014-07-20
ihavnoth님께서 말씀하신대로 커널헤더를 설치하고(apt-get install linux-header-(uname -r)
다시 make명령어를 입력해봤더니
make -C tools
make[1]: Entering directory `/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
cp -f os/linux/Makefile.6 /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
make -C /lib/modules/3.14-kali1-amd64/build SUBDIRS=/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.14-kali1-amd64'
CC [M] /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsUsDelay’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:179:8: warning: unused variable ‘i’ [-Wunused-variable]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘duplicate_pkt’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:497:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
In file included from /usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/string.h:4:0,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/string.h:17,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/dynamic_debug.h:111,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/printk.h:244,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/kernel.h:13,
from /usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/percpu.h:44,
from /usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/preempt.h:5,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/preempt.h:20,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/seqlock.h:35,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/time.h:5,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/stat.h:18,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/module.h:10,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:31,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:499:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
In file included from /usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/string.h:4:0,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/string.h:17,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/dynamic_debug.h:111,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/printk.h:244,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/kernel.h:13,
from /usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/percpu.h:44,
from /usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/preempt.h:5,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/preempt.h:20,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/seqlock.h:35,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/time.h:5,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/stat.h:18,
from /usr/src/linux-headers-3.14-kali1-common/include/linux/module.h:10,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:31,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
from /root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.14-kali1-common/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘ClonePacket’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:650:20: warning: assignment makes integer from pointer without a cast [enabled by default]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsPktInit’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:669:2: warning: assignment makes integer from pointer without a cast [enabled by default]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘wlan_802_11_to_802_3_packet’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:695:15: warning: assignment makes integer from pointer without a cast [enabled by default]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1121:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1122:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpDrvAllRFPrint’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2052:4: warning: passing argument 2 of ‘file_w->f_op->write’ from incompatible pointer type [enabled by default]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2052:4: note: expected ‘const char *’ but argument is of type ‘UINT32 *’
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:22: warning: unused variable ‘macValue’ [-Wunused-variable]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:9: warning: unused variable ‘macAddr’ [-Wunused-variable]
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’:
/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2173:21: warning: unused variable ‘net_dev’ [-Wunused-variable]
make[4]: *** [/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o] 오류 1
make[3]: *** [_module_/root/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] 오류 2
make[2]: *** [sub-make] 오류 2
make[1]: *** [all] 오류 2
make[1]: Leaving directory `/usr/src/linux-headers-3.14-kali1-amd64'
make: *** [LINUX] 오류 2
이번엔 이런 오류가 뜨네요..
어떻게 해야 할까요..