最近電腦包壞的不少,
之前丟了一個會帶來悲慘命運的 CISCO Mark 電腦包.
有一個發霉丟了.
之前買 ASUS 電腦送的 Targus 包包也有點壞掉了.
只有備用的 Headgram 包包, 怎麼辦, 只好尋找下一個了.
Ubuntu Disable Broadcast Packet
[Gentoo] Apache 2.2 升級到 Apache 2.4 的問題.
除了要在 "/etc/portage/package.unmask" 加上
www-servers/apache app-admin/apache-tools
以便升級以外..
Read more »
Gentoo Gateway 連中研院的 IPv6 Tunnel Broker
自從從中華電信固3 IP 換光世代之後就失去了 IPv6 Address.
今天剛好在某 PTT 文上看到, 中研院的 IPv6 Tunnel Broker 有給固定 IP 和 Prefix.
這樣一來就可以搞家中 IPv6 Enable 了.
如果有 Gentoo 做 Gateway, 想讓家中 Intranet 有 IPv6 的環境, 就需要按照這一篇設定.
換 IPv6 最大的好處是什麼? 用中研院的網路看 Youtube 超順的…
Read more »
KEIL uVersion Link Error
Compile 時最後碰到這個問題.
這是在 C 中去 Link C++ 的 Code 產生的.
linking... .\Obj\Memory.axf: Error: L6218E: Undefined symbol __aeabi_unwind_cpp_pr0 (referred from array_new.o). .\Obj\Memory.axf: Error: L6218E: Undefined symbol __rt_new_handler_addr (referred from new.o). .\Obj\Memory.axf: Error: L6218E: Undefined symbol abort (referred from arm_exceptions_terminate.o). .\Obj\Memory.axf: Error: L6218E: Undefined symbol __rt_eh_globals_addr (referred from arm_exceptions_globs.o). Target not created
解決方法就是 Option -> Target -> Use MicroLib 關掉.
如果要引入一些標準的 C Library, 也不能使用 MicroLib .
像是要初始化 Heap , _init_alloc 也是要關掉 MicroLib 的支援.
註:
當使用 malloc 時, 會去 heap 取得一塊 memory 給程式使用, 但是
Keil 本身並沒有 heap 的管理機制, 要指定一塊 memory 給 heap 用.
這時就要先 initial heap, 要使用 _init_alloc 這個 function 才可以 allocate .
Ref.
MicroLib
101 年除夕年菜
apt-cyg cygwin package manager
cygwin 要使用 install 非常麻煩.
apt-cyg 這個套件提供了一個非常好的安裝方式, 雖然每次都還要跑一次 download setup.bz2 的動作.
但是總比要去使用那個鳥到爆的 setup.exe 好太多了.
Read more »
Gentoo PPPoE Problem
PL2303 Code 10 問題.
這個應該是只有在 Windows 下才會有這個問題.
抓舊版 Driver 就可以了.
20120104 Update: 移除舊版 Driver 的 Link, 留下名字, 大家自己再去 Google 挖.
PL2303_Prolific_USB_To_Serial_Driver%2864BitWin7%29.zip
賣這麼好限制還這麼多, 真鳥.
P.S Linux 下不會有這個問題.
—- 20120104 —-
如留言所示
如果是這樣的話, 下次買 USB2Serial 還是要先測試一下. 試用不對再退貨?
有沒有分辨正版 PL2303 的方法?
我是常買 USB2Serial , 如果照留言講的是山寨版的話,
那我中獎的機率還真高. 大概 30~50%.
之前因為都是用 Linux, 所以都沒有發現.
而且以前 Profilic 也並未提到這件事情 , 請見以前的頁面
所以 Profilic 最近才告訴大家山寨版 IC 這件事情.
—- 20120206 —-
有特別去找 Profilic PL-2303*2 的 Device, 我是找到這個
P6線上便利購 Prolific 讓 2 * RS232週邊變成USB隨插即用 (9 Pin),支援最新Windows 7,ROHS無鉛製程,外銷機種,行動環保~ $760. 小貴, 不過比 shopping.pchome 上的 A-GOOD 的好. A-GOOD 是使用印度 Moschip 的 Solution, 一買來就不能用, 我就退貨了.
以下是測試結果
PL2303 Dual Port Serial Console
OS Ubuntu 10.04
# uname -a
Linux rl-desktop 2.6.32-38-generic-pae #83-Ubuntu SMP Wed Jan 4 12:11:13 UTC 2012 i686 GNU/Linux
[530195.408020] usb 7-1: new full speed USB device using uhci_hcd and address 5
[530195.568599] usb 7-1: configuration #1 chosen from 1 choice
[530195.576514] hub 7-1:1.0: USB hub found
[530195.577494] hub 7-1:1.0: 4 ports detected
[530195.865530] usb 7-1.2: new full speed USB device using uhci_hcd and address 6
[530195.979628] usb 7-1.2: configuration #1 chosen from 1 choice
[530195.982678] pl2303 7-1.2:1.0: pl2303 converter detected
[530195.994622] usb 7-1.2: pl2303 converter now attached to ttyUSB1
[530196.077557] usb 7-1.3: new full speed USB device using uhci_hcd and address 7
[530196.194650] usb 7-1.3: configuration #1 chosen from 1 choice
[530196.197825] pl2303 7-1.3:1.0: pl2303 converter detected
[530196.209640] usb 7-1.3: pl2303 converter now attached to ttyUSB2
/: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|__ Port 1: Dev 5, If 0, Class=hub, Driver=hub/4p, 12M
|__ Port 2: Dev 6, If 0, Class=vend., Driver=pl2303, 12M
|__ Port 3: Dev 7, If 0, Class=vend., Driver=pl2303, 12M
Linux 可以直接抓到, Windows XP 也 OK, Windows 7 我不想測了.
這一家也有賣 PL-2303*1 的版本
P6線上便利購 – Prolific 讓RS232週邊變成USB隨插即用 (9 Pin)35CM,支援最新Windows Vista,ROHS無鉛製程,外銷機種,行動環保~ # $260 我覺得很便宜.
P.S 我還是不知道我買的這二顆 Chip 到底他媽的是不是真的 Profilic 的 Chip.
P.S2 有長輩在 FreeBSD 下試過了, 這二個也可以正確抓到.




近期迴響