Сообщений: 0 | #1 - 15 августа 2015 в 13:12 | |
Делал как в http://help.ubuntu.ru/wiki/tenda_w311mi Файл такой же, модель та же в точности. Вплоть до команды "make" всё ок. Сама команда выдаёт ошибку: make -C tools make[1]: Entering directory `/home/enot/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO (2)/tools' gcc -g bin2h.c -o bin2h make[1]: Leaving directory `/home/enot/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO (2)/tools' /home/enot/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO (2)/tools/bin2h /bin/sh: 1: Syntax error: word unexpected (expecting ")") make: *** [build_tools] Error 2 Какие ещё пакеты надо ставить? Что я мог сделать не так? |
Сообщений: 0 | #2 - 15 августа 2015 в 20:02 | |
в общем после переименования каталога с компиллируемой программой дело сдвинулось, и получилось это make -C tools make[1]: Entering directory `/home/enot/abc/tools' gcc -g bin2h.c -o bin2h make[1]: Leaving directory `/home/enot/abc/tools' /home/enot/abc/tools/bin2h cp -f os/linux/Makefile.6 /home/enot/abc/os/linux/Makefile make -C /lib/modules/3.16.0-38-generic/build SUBDIRS=/home/enot/abc/os/linux modules make[1]: Entering directory `/usr/src/linux-headers-3.16.0-38-generic' CC [M] /home/enot/abc/os/linux/../../common/crypt_md5.o CC [M] /home/enot/abc/os/linux/../../common/crypt_sha2.o CC [M] /home/enot/abc/os/linux/../../common/crypt_hmac.o CC [M] /home/enot/abc/os/linux/../../common/crypt_aes.o CC [M] /home/enot/abc/os/linux/../../common/crypt_arc4.o CC [M] /home/enot/abc/os/linux/../../common/mlme.o CC [M] /home/enot/abc/os/linux/../../common/cmm_wep.o CC [M] /home/enot/abc/os/linux/../../common/action.o CC [M] /home/enot/abc/os/linux/../../common/cmm_data.o CC [M] /home/enot/abc/os/linux/../../common/rtmp_init.o /home/enot/abc/os/linux/../../common/rtmp_init.c: In function ‘NICInitializeAsic’: /home/enot/abc/os/linux/../../common/rtmp_init.c:2173:17: warning: unused variable ‘irqFlag’ [-Wunused-variable] unsigned long irqFlag = 0; ^ CC [M] /home/enot/abc/os/linux/../../common/rtmp_init_inf.o CC [M] /home/enot/abc/os/linux/../../common/cmm_tkip.o CC [M] /home/enot/abc/os/linux/../../common/cmm_aes.o CC [M] /home/enot/abc/os/linux/../../common/cmm_sync.o CC [M] /home/enot/abc/os/linux/../../common/eeprom.o CC [M] /home/enot/abc/os/linux/../../common/cmm_sanity.o CC [M] /home/enot/abc/os/linux/../../common/cmm_info.o CC [M] /home/enot/abc/os/linux/../../common/cmm_cfg.o CC [M] /home/enot/abc/os/linux/../../common/cmm_wpa.o In file included from ./arch/x86/include/asm/string.h:2:0, from include/linux/string.h:17, from ./arch/x86/include/asm/page_32.h:34, from ./arch/x86/include/asm/page.h:13, from ./arch/x86/include/asm/thread_info.h:11, from include/linux/thread_info.h:54, from ./arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:18, from include/linux/spinlock.h:50, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/linux/stat.h:18, from include/linux/module.h:10, from /home/enot/abc/include/os/rt_linux.h:31, from /home/enot/abc/include/rtmp_os.h:44, from /home/enot/abc/include/rtmp_comm.h:60, from /home/enot/abc/include/rt_config.h:33, from /home/enot/abc/os/linux/../../common/cmm_wpa.c:28: /home/enot/abc/os/linux/../../common/cmm_wpa.c: In function ‘PeerWpaMessageSanity’: /home/enot/abc/os/linux/../../common/cmm_wpa.c:456:32: warning: argument to ‘sizeof’ in ‘__builtin_memset’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] NdisZeroMemory(KEYDATA, sizeof(KEYDATA)); ^ ./arch/x86/include/asm/string_32.h:325:52: note: in definition of macro ‘memset’ #define memset(s, c, count) __builtin_memset(s, c, count) ^ /home/enot/abc/os/linux/../../common/cmm_wpa.c:456:2: note: in expansion of macro ‘NdisZeroMemory’ NdisZeroMemory(KEYDATA, sizeof(KEYDATA)); ^ CC [M] /home/enot/abc/os/linux/../../common/dfs.o CC [M] /home/enot/abc/os/linux/../../common/spectrum.o CC [M] /home/enot/abc/os/linux/../../common/rtmp_timer.o CC [M] /home/enot/abc/os/linux/../../common/rt_channel.o CC [M] /home/enot/abc/os/linux/../../common/cmm_profile.o CC [M] /home/enot/abc/os/linux/../../common/cmm_asic.o /home/enot/abc/os/linux/../../common/cmm_asic.c: In function ‘AsicGetAutoAgcOffset’: /home/enot/abc/os/linux/../../common/cmm_asic.c:878:10: warning: unused variable ‘bTempSuccess’ [-Wunused-variable] BOOLEAN bTempSuccess = FALSE; ^ /home/enot/abc/os/linux/../../common/cmm_asic.c:877:6: warning: unused variable ‘LookupTableIndex’ [-Wunused-variable] INT LookupTableIndex = pAd->TxPowerCtrl.LookupTableIndex + TEMPERATURE_COMPENSATION_LOOKUP_TABLE_OFFSET; ^ /home/enot/abc/os/linux/../../common/cmm_asic.c:876:6: warning: unused variable ‘CurrentTemp’ [-Wunused-variable] INT CurrentTemp = 0; ^ /home/enot/abc/os/linux/../../common/cmm_asic.c:875:8: warning: unused variable ‘BbpValue’ [-Wunused-variable] UCHAR BbpValue = 0; ^ /home/enot/abc/os/linux/../../common/cmm_asic.c:874:32: warning: unused variable ‘pTxPowerTuningEntry2’ [-Wunused-variable] PTX_POWER_TUNING_ENTRY_STRUCT pTxPowerTuningEntry2 = NULL; ^ /home/enot/abc/os/linux/../../common/cmm_asic.c:871:8: warning: unused variable ‘RFValue’ [-Wunused-variable] UCHAR RFValue = 0; ^ /home/enot/abc/os/linux/../../common/cmm_asic.c:870:32: warning: unused variable ‘pTxPowerTuningEntry’ [-Wunused-variable] PTX_POWER_TUNING_ENTRY_STRUCT pTxPowerTuningEntry = NULL; ^ /home/enot/abc/os/linux/../../common/cmm_asic.c: In function ‘AsicAdjustTxPower’: /home/enot/abc/os/linux/../../common/cmm_asic.c:1524:20: warning: unused variable ‘pFinalTxPwr’ [-Wunused-variable] PTX_PWR_CFG_STRUC pFinalTxPwr = NULL; ^ /home/enot/abc/os/linux/../../common/cmm_asic.c:1522:11: warning: unused variable ‘bAutoTxAgc’ [-Wunused-variable] BOOLEAN bAutoTxAgc = FALSE; ^ /home/enot/abc/os/linux/../../common/cmm_asic.c: In function ‘AsicEnableIbssSync’: /home/enot/abc/os/linux/../../common/cmm_asic.c:2385:16: warning: unused variable ‘irqFlag’ [-Wunused-variable] unsigned long irqFlag = 0; ^ /home/enot/abc/os/linux/../../common/cmm_asic.c: In function ‘AsicAddPairwiseKeyEntry’: /home/enot/abc/os/linux/../../common/cmm_asic.c:3124:16: warning: unused variable ‘irqFlag’ [-Wunused-variable] unsigned long irqFlag = 0; ^ CC [M] /home/enot/abc/os/linux/../../common/cmm_cmd.o CC [M] /home/enot/abc/os/linux/../../os/linux/rt_profile.o CC [M] /home/enot/abc/os/linux/../../chips/rtmp_chip.o CC [M] /home/enot/abc/os/linux/../../sta/assoc.o CC [M] /home/enot/abc/os/linux/../../sta/auth.o CC [M] /home/enot/abc/os/linux/../../sta/auth_rsp.o CC [M] /home/enot/abc/os/linux/../../sta/sync.o CC [M] /home/enot/abc/os/linux/../../sta/sanity.o CC [M] /home/enot/abc/os/linux/../../sta/rtmp_data.o CC [M] /home/enot/abc/os/linux/../../sta/connect.o /home/enot/abc/os/linux/../../sta/connect.c: In function ‘LinkUp’: /home/enot/abc/os/linux/../../sta/connect.c:1481:35: warning: unused variable ‘pCurrEntry’ [-Wunused-variable] MAC_TABLE_ENTRY *pEntry = NULL, *pCurrEntry = NULL; ^ /home/enot/abc/os/linux/../../sta/connect.c:1480:28: warning: unused variable ‘HashIdx’ [-Wunused-variable] UCHAR Value = 0, idx = 0, HashIdx = 0; ^ CC [M] /home/enot/abc/os/linux/../../sta/wpa.o CC [M] /home/enot/abc/os/linux/../../sta/ags.o CC [M] /home/enot/abc/os/linux/../../sta/sta_cfg.o CC [M] /home/enot/abc/os/linux/../../common/rt_os_util.o CC [M] /home/enot/abc/os/linux/../../os/linux/sta_ioctl.o CC [M] /home/enot/abc/os/linux/../../os/linux/rt_linux.o /home/enot/abc/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’: /home/enot/abc/os/linux/../../os/linux/rt_linux.c:1126:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’ pOSFSInfo->fsuid = current_fsuid(); ^ /home/enot/abc/os/linux/../../os/linux/rt_linux.c:1127:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’ pOSFSInfo->fsgid = current_fsgid(); ^ make[2]: *** [/home/enot/abc/os/linux/../../os/linux/rt_linux.o] Error 1 make[1]: *** [_module_/home/enot/abc/os/linux] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-3.16.0-38-generic' make: *** [LINUX] Error 2 |
Сообщений: 0 | #3 - 15 августа 2015 в 20:37 | |
gibljak, а тебя ndis пакеты установлены? |
Сообщений: 0 | #4 - 16 августа 2015 в 07:31 | |
Unborn: | gibljak, а тебя ndis пакеты установлены? | Линукс из коробки. ndisc6 ndiswrapper-common ndiswrapper-dkms ndiswrapper-utils-1.9 поставил ndisgtk ничего не изменилось. Пакет ndiswrapper-source не устанавливается пишет ошибку. |
Сообщений: 0 | #5 - 16 августа 2015 в 10:21 | |
gibljak, -dkms и -source не нужно устанавливать. А вот mintwifi - да. Посмотри ещё linux-firmware. Это прошивки для оборудования. И после установок нужно перезагружаться на холодную с подключенным свистком. |
Сообщений: 0 | #6 - 22 августа 2015 в 14:21 | |
Unborn: | gibljak, -dkms и -source не нужно устанавливать. А вот mintwifi - да. Посмотри ещё linux-firmware. Это прошивки для оборудования. И после установок нужно перезагружаться на холодную с подключенным свистком. | mintwifi установлен. Сменил систему на 64 - не помогло. |