2006年12月30日 星期六

多功能802.11g USB無線網路卡【內建AP基地台】PSP上網送教學*另有三代高功率Hi-Gain

最近買了yahoo奇摩拍賣tangnanpang的一個產品
多功能802.11g USB無線網路卡【內建AP基地台】PSP上網送教學*另有三代高功率Hi-Gain

試了兩種機器
Micorsoft Windows XP Profession Service Pack 2 and
Micorsoft Windows XP Profession Service Pack 1

SP2困難度不高 因為只要照這個買家所給的手冊執行就可以使用基地台功能

那 SP1呢??

也是一樣先放入光碟片安裝該產品的程式
然後再放入該網路卡
會自行安裝驅動程式
然後啟動該設定軟體(以下文章稱"基地台設定軟體")

請將語系設定為英文
開啟你的原本能夠使用的網路開啟分享
然後再將"基地台設定軟體"中的Bridge Adapter要設定你能夠上網的網卡
目前設定部分都沒有設加密 都設定Open System

這樣子 client端 連線 就能夠成功了

透過Facebook分享

2006年12月29日 星期五

toolchain

加了GDB
照著上兩篇做的方法
似乎還是一樣的問題

checking whether the C compiler (/tmp/build/gcc/gcc/xgcc -B/tmp/build/gcc/gcc/ -B/gnutools/arm-elf/bin/ -B/gnutools/arm-elf/lib/ -isystem /gnutools/arm-elf/include -O2 -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [configure-target-libiberty] Error 1
make: Leaving directory `/tmp/build/gcc'


這樣子加不加GDB似乎沒有差別

透過Facebook分享

toolchain

GDB
sources.redgat.com連結沒有了
改從此處下載
http://sourceware.mirrors.tds.net/pub/sourceware.org/gdb/old-releases/gdb-5.3.tar.gz

透過Facebook分享

tool chain

安裝tool-chain
準備三個套件
GNU binary utilities
GNU cimpiler collection core
GNU compiler collection g++
GDB

位置
ftp://ftp.gnu.org/gnu/binutils/binutils-2.13.1.tar.bz2
ftp://ftp.gnu.org/gnu/gcc/gcc-3.2.1/gcc-core-3.2.1.tar.gz
ftp://ftp.gnu.org/gnu/gcc/gcc-3.2.1/gcc-g++-3.2.1.tar.gz
ftp://sources.redhat.com/pub/gdb/releases/gdb-5.3.tar.bz2 (此步驟尚未安裝)

安裝tool chain
  • 先確定本機編譯沒有問題
系統gcc version 4.1.1
compiler版本太新會造成問題
http://gcc.gnu.org/ml/gcc-help/2005-07/msg00155.html 解決網頁

目前安裝 gcc version 3.3

cc會有需要 因此將它指向 gcc 3.3
#ln -s gcc3.3 gcc
#ln -s gcc cc

中間亂做了一件事情 就是刪除ld
結果導致configure出現ld not find
所以去http://www.debian.org/搜尋一下套件
search
尋找出 是binutils套件
所以請重新安裝binutils
#apt-get install -reinstall binutils

  • 配置GNU binary utilities
#mkdir -p /tmp/build/binutils
#cd /tmp/build/binutils
#/src/binutils-2.13.1/configure --target=arm-elf --prefix=/gnutools -v 2>&1 | tee #configure.out
  • 編譯安裝GNU binary utilities
#make -w all install 2>&1 | tee make.out
  • 配置GCC 確保GNU binary utilities 出現在PATH環境變數的最前面
#PATH=/gnutools/bin:$PATH ; export PATH
#mkdir -p /tmp/build/gcc
#cd /tmp/build/gcc
#/src/gcc-3.2.1/configure --target=arm-elf --prefix=/gnutools --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-gxx-include-dir=/gnutools/arm-elf/include -v 2<&1 | tee configure.out
  • 編譯安裝GDB
#make -w all install 2>&1 | tee make.out

發生error
error message is showed below:
checking whether the C compiler (/tmp/build/gcc/gcc/xgcc -B/tmp/build/gcc/gcc/ -B/gnutools/arm-elf/bin/ -B/gnutools/arm-elf/lib/ -isystem /gnutools/arm-elf/include -O2 -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [configure-target-libiberty] Error 1

很奇怪 明明/tmp/build/gcc/gcc/xgcc就有在
root@ubuntunelsonchung:/tmp/build/gcc# /tmp/build/gcc/gcc/xgcc
xgcc: no input files


以下步驟還沒作先po上
#mkdir -p /tmp/build/gdb
#cd /tmp/build/gdb
#/src/gdb-5.3/configure --target=arm-elf --prefix=/gnutools -v 2>&1 | tee configure.out
#make -w all install 2>&1 | tee make.out

目前打算把GDB也裝上後
在重新作一次

透過Facebook分享

2006年12月27日 星期三

Qtopia core

Qtopia Core是一個給嵌入式Linux用於撰寫單一應用程式的架構
目前的版本是4.2.2

安裝過程 還在研究

目前遵照http://www.qiliang.net/20050908.html上所提及的內容
下載了free的檔案
tmake-1.13.tar.gz
qtopia-free-1.7.0.tar.gz
qt-embedded-2.3.7.tar.gz
qtopia-free-source-2.1.1.tar.gz
qt-embedded-2.3.10-free.tar.gz
qt-x11-2.3.2.tar.gz

透過Facebook分享

QT

裝好了Scratchbox

想想該怎麼好好利用它

那就來裝個application

Charles已經確定Kernel OK

那我想來搞個GUI使用介面好了

Charles建議我弄一下QT

查了一下網頁

發現 原來它是跨平台的應用程式發展的架構 能夠提供GUI程式的研發
像現在有許多有名的KDE Opera.. 等等

由Trollteck推出的QT 有for embedded system的GPL版本
在http://www.trolltech.com/products/qtopia/opensource有介紹
叫Qtopia Open Source Edition
only for Linux

透過Facebook分享

2006年12月26日 星期二

Scratchbox

安裝Scratchbox
請先在/etc/apt/sources.list
加入

deb http://scratchbox.org/debian ./


然後

apt-get update


apt-get install scratchbox-core 會自動把scratchbox-libs也一起下載


接下來請安裝
scratchbox-toolchain-arm-gcc3.2-uclibc20040229
and scratchbox-toolchain-arm-gcc3.4-uclibc0.9.28
這兩個compiler

在安裝
scratchbox-devkit-cputransp - CPU transparency methods

安裝完之後
請用sb-adduser加入自己的帳號 : sb-addser nelsonchung

請登出ubuntu在登入ubuntu
下groups
果然有看到自己的帳號內多了一個 sbox

想要登入scratchbox
請下

/scratchbox/login

至於
Creating cross-compilation target for ARM
可以直接參考scratchbox網頁

我執行過程中 有一個部份不太一樣
在選devkit時


最後執行 Testing installation (請參考scratchbox的網頁)

完成測試

Reference:

http://www.scratchbox.org/documentation/docbook/installdoc.html

透過Facebook分享

2006年12月23日 星期六

apt說明網站

apt 進階套件安裝工具

透過Facebook分享

Ubuntu Certified Professional

Ubuntu 出了認證
此網站有一系列需要成為專業級的Ubuntu管理員需要有的專業知識

真希望他有出線上的講課
能夠看真人上課 又可以獲得知識
這真是一種享受

透過Facebook分享

思考未來的走向

女朋友今天跟我說
說我太會給自己找事情做
常常讓自己處於很忙的狀態
只要有時間 就忙著給自己排事情做
看科技的書 寫程式
可是似乎也看不太出來成效

她說 你應該試著給自己放鬆一下
不然 當你的休息時間來了 你忙著看書
如果家裡人找你聊天 處理事情..等等
你就會覺得煩 然後心情受到影響

想想也是
這幾年的生活
還真的是這個樣子

總是希望自己的實力能夠有所提升
所以希望自己的時間都能夠拿去增強實力
這樣子 反而需要去處理自己情緒上的問題

我想 是我需要做些調整的時候
畢竟 未來是可以轉變的
只要一個觀念轉換 一個態度轉變
就可以讓你的未來變的不一樣

Charles也教我 當你遇到有解不開的問題 google又搜尋不到
那就要恭喜你啦 趕快po到blog上 大家就都會reference到你的blog
你的blog就會被排在搜尋結果前面
另外又可以提醒自己把問題解決
如果世界上的問題都被解決
那又有什麼可以學習的地方呢!

透過Facebook分享

2006年12月20日 星期三

ScratchBox

今天安裝ScratchBox

解壓縮三個所需要的壓縮檔

下command ./run_me_first_.sh

發生errors
-----------------------------------------------error messages
./run_me_first.sh
Host kernel has port range under 10000.
This causes problems with fakeroot.
You can fix this eg. by running:
echo "1024 65000" > /proc/sys/net/ipv4/ip_local_port_range ----------------------------------------------------------
請下指令
echo "1024 65000" > /proc/sys/net/ipv4/ip_local_port_range

執行./scratchbox/compilers/arm-gcc4.1-uclibc20061004/bin/arm-linux-gcc -o arm-hello hello.c
卻發生
/home/nelsonchung/Scratchbox
/scratchbox/compilers/arm-gcc4.1-uclibc20061004/bin/../lib/gcc/arm-linux-uclibc/4.1.1/../../../../arm-linux-uclibc/bin/ld: cannot find /scratchbox/compilers/arm- gcc4.1-uclibc20061004/lib/libc.so.0
collect2: ld returned 1 exit status

網路上有人說 是libiconv套件沒裝
去裝裝看 另外想到 libiconv是幹嘛用的?

介紹libiconv網站 http://www.gnu.org/software/libiconv/

原來libiconv 是語言編碼轉換的library

透過Facebook分享