嵌入式系統pppoe的移植 - Linux

By Selena
at 2008-09-09T15:52
at 2008-09-09T15:52
Table of Contents
目前小弟的進度如下
1. cross compile pppd (version: ppp-2.4.4)
首先設定環境變數
# export CC=mipsel-linux-uclibc-gcc ---->這是我的cross compiler
(補充 mipsel-linux-uclibc-gcc (GCC) 3.4.6 --->version)
接下來就照ppp-2.4.4提供的readme來做
# ./configure
# make
用file去看由上面步驟build出來的binary
# file pppd
得到以下結果
pppd: ELF 32-bit LSB executable, MIPS, version 1 (SYSV), dynamically
linked (uses shared libs), not stripped
將這個pppd拿到目標板去跑 沒有錯誤訊息產生了
可是同時也沒有任何的echo (網路上說成功執行的話 會有亂碼 不過不同平台
我也不確定會不會有一樣的情況?)
2. cross compile pppoe (version: rp-pppoe-3.5)
configure的參數如下
# ./configure --host=i386 --target=mipsel-linux
執行上面指令後 會有一堆checking的message
但是checking到一半的時候 他會說有個error 就不繼續configure下去了
error 如下:
checking whether setvbuf arguments are reversed... configure: error:
can not run test program while cross compiling
不知道真對上面兩點 有沒有先進可以給予小弟指教的 萬分感謝
※ 引述《jeian (期待變65)》之銘言:
: 謝謝Spig的指教
: 小弟照您的方法試過了以後
: 得到以下訊息
: [root@localhost pppd]# file pppd
: pppd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically
: linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
: 請問一下
: 這是代表說我編譯出來的pppd是for x86的架構嗎
: p.s. 小弟的pppd是經由for MIPS的toolchain 編譯的
: 謝謝
: ※ 引述《jeian (期待變65)》之銘言:
: : 小弟剛接觸linux以及embedded system的領域
: : 如果本篇發問有問題 或是缺少什麼資訊的
: : 請各位先進不吝指教
: : =================問題分隔線=================
: : 目標板環境
: : cpu架構:MIPS
: : kernel: 2.6.12
: : 將ppp-2.4.4 rp-pppoe-3.5 經過交叉編譯後 到目標板執行pppd
: : 結果出現下列的訊息:
: : /usr/local/sbin # ./pppd
: : ./pppd: ./pppd: 1: Syntax error: "(" unexpected
: : 網路上的文件指出 執行pppd以後 如果有出現亂碼 那應該就表示
: : pppd有移植成功 可是小弟一直得到上列錯誤訊息
: : 不知道有沒有哪位先進可以指導我 在移植的時候有哪些需要注意的事項呢
: : 謝謝
--
1. cross compile pppd (version: ppp-2.4.4)
首先設定環境變數
# export CC=mipsel-linux-uclibc-gcc ---->這是我的cross compiler
(補充 mipsel-linux-uclibc-gcc (GCC) 3.4.6 --->version)
接下來就照ppp-2.4.4提供的readme來做
# ./configure
# make
用file去看由上面步驟build出來的binary
# file pppd
得到以下結果
pppd: ELF 32-bit LSB executable, MIPS, version 1 (SYSV), dynamically
linked (uses shared libs), not stripped
將這個pppd拿到目標板去跑 沒有錯誤訊息產生了
可是同時也沒有任何的echo (網路上說成功執行的話 會有亂碼 不過不同平台
我也不確定會不會有一樣的情況?)
2. cross compile pppoe (version: rp-pppoe-3.5)
configure的參數如下
# ./configure --host=i386 --target=mipsel-linux
執行上面指令後 會有一堆checking的message
但是checking到一半的時候 他會說有個error 就不繼續configure下去了
error 如下:
checking whether setvbuf arguments are reversed... configure: error:
can not run test program while cross compiling
不知道真對上面兩點 有沒有先進可以給予小弟指教的 萬分感謝
※ 引述《jeian (期待變65)》之銘言:
: 謝謝Spig的指教
: 小弟照您的方法試過了以後
: 得到以下訊息
: [root@localhost pppd]# file pppd
: pppd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically
: linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
: 請問一下
: 這是代表說我編譯出來的pppd是for x86的架構嗎
: p.s. 小弟的pppd是經由for MIPS的toolchain 編譯的
: 謝謝
: ※ 引述《jeian (期待變65)》之銘言:
: : 小弟剛接觸linux以及embedded system的領域
: : 如果本篇發問有問題 或是缺少什麼資訊的
: : 請各位先進不吝指教
: : =================問題分隔線=================
: : 目標板環境
: : cpu架構:MIPS
: : kernel: 2.6.12
: : 將ppp-2.4.4 rp-pppoe-3.5 經過交叉編譯後 到目標板執行pppd
: : 結果出現下列的訊息:
: : /usr/local/sbin # ./pppd
: : ./pppd: ./pppd: 1: Syntax error: "(" unexpected
: : 網路上的文件指出 執行pppd以後 如果有出現亂碼 那應該就表示
: : pppd有移植成功 可是小弟一直得到上列錯誤訊息
: : 不知道有沒有哪位先進可以指導我 在移植的時候有哪些需要注意的事項呢
: : 謝謝
--
Tags:
Linux
All Comments
Related Posts
ubuntu wireshark 抓不到網卡 (eth0)

By Ophelia
at 2008-09-09T12:17
at 2008-09-09T12:17
coda file system ???

By Audriana
at 2008-09-09T12:14
at 2008-09-09T12:14
有誰知道在Debian下,如何建構Web-based的Router的嗎?

By David
at 2008-09-09T08:46
at 2008-09-09T08:46
glibc版本問題

By Madame
at 2008-09-09T08:10
at 2008-09-09T08:10
f6如何開啟gftp的檔案

By Charlotte
at 2008-09-09T00:18
at 2008-09-09T00:18