
Ubuntu日本語フォーラム

ログインしていません。
実行日2/21
使用OS Ubuntu 使用PC DELL Dimention9200c
使用無線子機 BUFFALO WLI-UC-G300HP
https://forums.ubuntulinux.jp/viewtopic.php?id=9481
上記の内容を一通り行ったのですが、
「(4)モジュールの作成とコピー」という操作の時、
makeをつかったら途中まではうまくいっているようなのですが、
最後エラーの文字が数ヶ所でてきて、結局うまくいきません、
えっと make を実行したのち sudo make install を実行したときの端末の画面を書き出しておきます。
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
eve@eve-Dell-DXC061:~/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1$ make
make -C tools
make[1]: ディレクトリ `/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools' に入ります
gcc -g bin2h.c -o bin2h
make[1]: ディレクトリ `/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools' から出ます
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools/bin2h
cp -f os/linux/Makefile.6 /home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/Makefile
make -C /lib/modules/2.6.35-22-generic/build SUBDIRS=/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux modules
make[1]: ディレクトリ `/usr/src/linux-headers-2.6.35-22-generic' に入ります
CC [M] /home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.o
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c: In function ‘RTMPAllocUsbBulkBufStruct’:
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:52: error: implicit declaration of function ‘usb_buffer_alloc’
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:52: warning: assignment makes pointer from integer without a cast
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c: In function ‘RTMPFreeUsbBulkBufStruct’:
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:78: error: implicit declaration of function ‘usb_buffer_free’
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c: In function ‘RTMPFreeTxRxRingMemory’:
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:234: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:62: note: expected ‘UCHAR **’ but argument is of type ‘struct __TX_BUFFER **’
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:241: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:62: note: expected ‘UCHAR **’ but argument is of type ‘struct __TX_BUFFER **’
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:278: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:62: note: expected ‘UCHAR **’ but argument is of type ‘struct __HTTX_BUFFER **’
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c: In function ‘NICInitTransmit’:
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:507: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:62: note: expected ‘UCHAR **’ but argument is of type ‘struct __TX_BUFFER **’
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c: In function ‘RTMPAllocTxRxRingMemory’:
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:566: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:34: note: expected ‘VOID **’ but argument is of type ‘struct __HTTX_BUFFER **’
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:596: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:34: note: expected ‘VOID **’ but argument is of type ‘struct __TX_BUFFER **’
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:610: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:34: note: expected ‘VOID **’ but argument is of type ‘struct __TX_BUFFER **’
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:628: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type
/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:34: note: expected ‘VOID **’ but argument is of type ‘UCHAR **’
make[2]: *** [/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.o] エラー 1
make[1]: *** [_module_/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux] エラー 2
make[1]: ディレクトリ `/usr/src/linux-headers-2.6.35-22-generic' から出ます
make: *** [LINUX] エラー 2
eve@eve-Dell-DXC061:~/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1$ sudo make install
[sudo] password for eve:
Sorry, try again.
[sudo] password for eve:
make -C /home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux -f Makefile.6 install
mkdir: ディレクトリ `/etc/Wireless' を作成できません: ファイルが存在します
make[1]: ディレクトリ `/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux' に入ります
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
cp /home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/RT2870STA.dat /etc/Wireless/RT2870STA/.
install -d /lib/modules/2.6.35-22-generic/kernel/drivers/net/wireless/
install -m 644 -c rt2870sta.ko /lib/modules/2.6.35-22-generic/kernel/drivers/net/wireless/
install: `rt2870sta.ko' を stat できません: そのようなファイルやディレクトリはありません
make[1]: *** [install] エラー 1
make[1]: ディレクトリ `/home/eve/ダウンロード/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux' から出ます
make: *** [install] エラー 2
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
あまり詳しくないので、もしかしたらとても簡単な素人じみた質問かもしれませんが
お答えお願いします。よろしくお願いします
オフライン
そら2011さんが動作報告をされておりますので下記URLを参照してください。
対象となっているドライバソースが異なっているようです。
良く読んでから適応してください。
UbuntuでWLI-UC-G300HP(バッファーローの無線子機)を使って自宅のルーターにつないでインターネットにつなげたいです^^;
https://forums.ubuntulinux.jp/viewtopic.php?id=10723
オフライン
横レス 失礼致します。
フォーラム内に、いくつか似た事例があったかと思いますが、
/ダウンロード/ と言う日本語ディレクトリを使われているようですので、
make の時点でエラーが出ています。
アルファベット半角(1バイト文字)のディレクトリで作業してみてください。
オフライン
自分も同様な事が起きて解決できたので記述しておきます。
ほぼ憶測ですが(初心者なので)、
どうやらソースコード自体にミスがあるようです。
最新のgccでエラーが起こるようになったのかもしれません。
回避手段として、
「~/rt2870/include/os/rt_linux.h」をエディットします。
最初ら辺に
#define usb_buffer_alloc usb_alloc_coherent
#define usb_buffer_free usb_free_coherent
の2行を追加するとmakeが通るようになりました。
オフライン