菸酒生歲月

再見了永和,再見了台科

Posted on 26 八月, 2008. Filed under: 菸酒生歲月, 心情 |

菸酒生歲月的最後一篇文章

(繼續閱讀…)

Read Full Post | Make a Comment ( None so far )

終於結束了

Posted on 1 八月, 2008. Filed under: 菸酒生歲月, 心情 |

經過兩年來的層層闖關

終於通過口試

再處理完一堆煩死人的手續   ( 幹…圖書館幹嘛一定要精裝本論文啦….是有人要看喔? )

昨天終於拿到我的畢業證書了

(繼續閱讀…)

Read Full Post | Make a Comment ( None so far )

最後一戰

Posted on 24 七月, 2008. Filed under: 菸酒生歲月, 心情 |

明天口試

12:30

加油!  最後一戰了

Read Full Post | Make a Comment ( None so far )

天下文章一大抄

Posted on 7 七月, 2008. Filed under: 菸酒生歲月, 閒聊 |

大陸人真有趣

直接丟落落長一串句子去搜尋,大概可以搜到100篇以上

大概有95%說是原創,剩下3%不說原創也不說從哪裡引用

2%會註明引用來源(但是兩個人的引用來源不一樣)

Read Full Post | Make a Comment ( None so far )

我的未來三年

Posted on 26 六月, 2008. Filed under: 菸酒生歲月, 心情 |

第二梯次

1)第一階段(軍事基礎、專業訓練)起迄日:97.09.16~97.10.13(9/16入營)

      研發替代役 第 2 梯次  (一般替代役第 63 梯次)

09/15 接訓準備作業
09/16 入營日交接及編隊
09/17~10/05 訓練課程期間
10/06 結訓式
10/06~10/08 結訓假
10/09、10、13 至用人單位見習報到日至用人單位見習期間
10/14 研發役第二階段服役期間開始

2)第二、三階段起迄日:97.10.14~100.09.15

Read Full Post | Make a Comment ( None so far )

邁向第七年

Posted on 26 六月, 2008. Filed under: 菸酒生歲月, 心情 |

剛才和小黑挑竿,最後一盤驚險逆轉勝

回到家收到李鱈魚老師傳來的簡訊

(繼續閱讀…)

Read Full Post | Make a Comment ( 1 so far )

Hacker的幽默?

Posted on 20 六月, 2008. Filed under: 菸酒生歲月, 閒聊, Linux |

Journaling Flash Filesystem 是 Log 類型

LogFS  是 Journaling 類型

(繼續閱讀…)

Read Full Post | Make a Comment ( None so far )

有人要宅窟(jaiku)的邀請函嗎?

Posted on 18 六月, 2008. Filed under: 菸酒生歲月, 閒聊 | 標籤: |

我有20個

回覆本篇文章留下mail address

(繼續閱讀…)

Read Full Post | Make a Comment ( 10 so far )

最後一次畢業典禮

Posted on 15 六月, 2008. Filed under: 菸酒生歲月 |

如果我沒有發瘋去念博班,這應該是我的人生最後一次畢業典禮了

(念博士需要的天份和毅力,剛好我兩項都沒有)

P1120203

大學畢業那天,覺得碩班的衣服後面長長一串很華麗

今天我也穿上了…..只覺得很熱

P1120208

被迫考取本組博班正取第二名,卻非常不想繼續念的帥哥助教

P1120223

阿宅們

P1120210 P1120212

Read Full Post | Make a Comment ( 2 so far )

呂子兔 生日快樂

Posted on 2 六月, 2008. Filed under: 菸酒生歲月, 心情 | 標籤: |

雖然我忘了帶你的生日禮物,你依然請我吃飯

真開心

驢子去台拉維夫出差帶回來的鑰匙圈

Jerusalem = 耶路撒冷(唸起來像啾若撒凜)

Terra Santa 不知道是什麼意思,大概是地名吧

右邊那張我就看得懂了:來自Holy Land 的禮物

 

DSC00329 DSC00330

=====================================================

山豬之前去亞美利堅出差時去NY買 & 陳哈啦去NY遊學(玩)買的

果然是好兄弟,不約而同買了一模一樣不同size的禮物

DSC00332

Read Full Post | Make a Comment ( None so far )

debian 出大包了

Posted on 20 五月, 2008. Filed under: Bookmarks, 菸酒生歲月, Linux | 標籤:, , |

因為一個疏忽,出了一個大漏洞,導致ssh key 容易被暴力破解

真不敢相信debian 這麼嚴謹的distro 會出這種錯誤

而且擺了一兩年

Serious Debian/Ubuntu openssl/openssh bug found

ubuntu 系出debian 當然也受影響(libssl-0.9.8)

受影響版本:

  • Ubuntu 7.04 (Feisty)
  • Ubuntu 7.10 (Gutsy)
  • Ubuntu 8.04 LTS (Hardy)
  • Ubuntu “Intrepid Ibex” (development): libssl <= 0.9.8g-8
  • Debian 4.0 (etch) (see corresponding Debian security advisory)

(繼續閱讀…)

Read Full Post | Make a Comment ( None so far )

Portable Firefox 3.0 pre nightly build

Posted on 19 五月, 2008. Filed under: 菸酒生歲月, firefox | 標籤: |

從PTT瀏覽器板看到的

相當方便

(繼續閱讀…)

Read Full Post | Make a Comment ( None so far )

一天

Posted on 7 五月, 2008. Filed under: 菸酒生歲月, 心情 |

今天我很有精神

但是腦袋很疲憊

卡了很久的bug,還是沒有解決

(繼續閱讀…)

Read Full Post | Make a Comment ( None so far )

優質睡眠

Posted on 5 五月, 2008. Filed under: 菸酒生歲月, 閒聊 |

這篇講的連我都看的懂

Read Full Post | Make a Comment ( None so far )

密碼

Posted on 5 五月, 2008. Filed under: 菸酒生歲月, 心情 |

「為何有密碼!?」

欲知密碼~  問安卓

(繼續閱讀…)

Read Full Post | Make a Comment ( 9 so far )

大屯山步道

Posted on 4 五月, 2008. Filed under: 菸酒生歲月, 閒聊 |

昨天心血來潮,決定去陽明山晃晃

上網查了點資料,決定要去看看巴拉卡公路週邊景點

(繼續閱讀…)

Read Full Post | Make a Comment ( None so far )

冷清的週末

Posted on 3 五月, 2008. Filed under: 菸酒生歲月, 心情 |

5/3 星期六,剩下不到90天

照慣例只有我.帥哥.淵仔

默默的做著自己的事情

有點累了

先自保吧~

DSC00322

Read Full Post | Make a Comment ( None so far )

Richard Stallman 來台演講

Posted on 3 五月, 2008. Filed under: 菸酒生歲月, 閒聊 |

http://wiki.openmoko.org/wiki/Richard_Stallman/zh_tw

 

台大場次的時間暫定 5/14 (Wed.) 14:00~17:00

講題是「The GNU General Public License: What we’ve changed in version 3, and why」

 

不知道他是誰?  阿宅每天在用的GCC就是他發起的計畫

 

DSC00317

Read Full Post | Make a Comment ( None so far )

與帥哥安的對決

Posted on 29 四月, 2008. Filed under: 菸酒生歲月, 閒聊 |

一勝N敗 (N~5)

今天終於取得第二勝了

(繼續閱讀…)

Read Full Post | Make a Comment ( None so far )

菸酒生的好夥伴:不只是文獻管理工具 – zotero

Posted on 29 四月, 2008. Filed under: 菸酒生歲月, firefox, 學業, 小小心得 | 標籤:, , |

之前介紹過Bibus

這次是另一個更好用的工具:zotero

(繼續閱讀…)

Read Full Post | Make a Comment ( 6 so far )

受保護的文章:S3C2440, USB in Linux

Posted on 28 四月, 2008. Filed under: 菸酒生歲月, Linux, 嵌入式相關 | 標籤:, , , , , , , , , , |

該內容受密碼保護。如欲檢視請在下方輸入你的密碼:

Read Full Post | Make a Comment ( 輸入你的密碼方能觀看迴響。 )

第一次監考

Posted on 28 四月, 2008. Filed under: 菸酒生歲月, 閒聊 |

4/26,27二技聯招

第一次監考,就是大型考試

(繼續閱讀…)

Read Full Post | Make a Comment ( 1 so far )

受保護的文章:DEBUGFS Support

Posted on 28 四月, 2008. Filed under: 菸酒生歲月, Linux, 嵌入式相關 | 標籤:, , , |

該內容受密碼保護。如欲檢視請在下方輸入你的密碼:

Read Full Post | Make a Comment ( 輸入你的密碼方能觀看迴響。 )

ASUS WL-167G (USB WLAN Adapter) For ARM Linux

Posted on 28 四月, 2008. Filed under: 菸酒生歲月, Linux | 標籤:, , , , , , |

great~ it offers linux driver~

copy the directory Linux/rt73 in the Driver CDROM    ( remember to chmod +w )

follow the README in Linux/rt73/module/

if you got error “undefined get_wireless_stats"

just fix rtmp_main.c, replace  netdev->get_wireless_stats to netdev->get_stats

=======================================

編譯module

網路上有非官方driver : rt2x00 project

每天最新版本

或是直接用CVS更新

cvs -d:pserver:anonymous@rt2400.cvs.sourceforge.net:/cvsroot/rt2400 login

cvs -z3 -d:pserver:anonymous@rt2400.cvs.sourceforge.net:/cvsroot/rt2400 co -P source/rt73

修改Makefile

最前面增加五行

ARCH=arm

CROSS_COMPILE=/usr/local/arm/3.4.1/bin/arm-linux-

KERNDIR=/home2/fyodor/kernel/linux-2.6.25__from__2.6.24.3

(KERNDIR要指到目標板所使用的KERNEL SOURCE,而且KERNEL必須先設定好交叉編譯)

ROOTFS = /home2/fyodor/filesystem/rootfs

MODDIR = /lib/modules/2.6.24.3/extra

把module install 的目標位置依照目標kernel版本設定

否則就會安裝到目前uname -r 所找到的kernel module位置…

ps. make install時,modules.dep的設定不會跟著MODDIR而改變

所以還是得設定成extra

修改一行

FIRM_DIR :=    $(ROOTFS)/lib/firmware
編譯

(host)# make armdebug

警告訊息

!!! WARNING: Module file much too big (>1MB)
!!! Check your kernel settings or use ‘strip’
*** Module rt73.ko built successfully

表示編出來的module太大了,這個好解決

必須削減(strip)多餘訊息 (strip之後,板子上無法modprobe!format不合)

(host)# arm-linux-strip ./rt73.ko

把module安裝到target rootfs

這一步,我不很確定怎麼做,試看看吧~

(host)# sudo make install

*** Install module in /lib/modules/2.6.24.3/extra
make[1]: Entering directory `/home2/fyodor/kernel/linux-2.6.25__from__2.6.24.3′
INSTALL /home2/fyodor/filesystem/tools/wirelessTool/WL-167G/rt73-cvs/rt73-cvs-2008042100/Module/rt73.ko
DEPMOD  2.6.24.3
make[1]: Leaving directory `/home2/fyodor/kernel/linux-2.6.25__from__2.6.24.3′
/sbin/depmod -a
*** Update /etc/modprobe.d/ralink alias for wlan*
*** Install firmware in /home2/fyodor/filesystem/rootfs/lib/firmware
*** Check old config …

警告訊息

WARNING: Couldn’t find symtab and strtab in module /lib/modules/2.6.20-15-generic/extra/rt73.ko
*** Update /etc/modprobe.d/ralink alias for wlan*
*** Install firmware in /home2/fyodor/filesystem/rootfs/lib/firmware …
*** Check old config …

因為這一個編譯所使用的kernel版本2.6.24.3,和host機器上目前使用的版本2.6.15不同導致這個錯誤不知道怎麼處理… 應該是沒關係因為真正運作時,這個module在板子上所配合的kernel 版本就對上了參考: http://www.linuxsir.org/bbs/thread307321.html

結束

一樣照著路徑複製到rootfs裡面

module : /lib/modules/2.6.24.3/extra/rt73.ko

firmware : /lib/firmware/rt73.bin

status code :

s3c2410-ohci s3c2410-ohci: urb c2704ec0 path 1 ep0in 5ec20000 cc 5
–> status -62

all status code : include/asm-generic/errno.h

#define ETIME 62      /* Timer expired */

Document of error codes : Documentation/usb/error-codes.txt

-ETIME (**)

No response packet received within the prescribed bus turn-around time.  This error may instead be reported as -EPROTO or -EILSEQ.

懶惰的script


ROOTFS=/home2/fyodor/filesystem/rootfs
echo " install module to $ROOTFS/lib/modules/2.6.24.3/extra/"
cp /lib/modules/2.6.24.3/extra/rt73.ko $ROOTFS/lib/modules/2.6.24.3/extra/rt73.ko
echo " install firmware to $ROOTFS/lib/firmware/"
cp /lib/firmware/rt73.bin $ROOTFS/lib/firmware/
ls -alh $ROOTFS/lib/modules/2.6.24.3/extra/rt73.ko
ls -alh $ROOTFS/lib/firmware/rt73.bin

modprobe

[busybox] # modprobe rt73 debug=15 firmware=/lib/firmware/rt73.bin

[busybox] # ifconfig wlan0 up

[busybox] # dmesg

rt73: USBVendorRequest TIMEOUT
rt73: Retry count exhausted or device removed!!!
rt73: BBP version = 0
s3c2410-ohci s3c2410-ohci: urb c1980840 path 1 ep0in 5ec20000 cc 5 –> status -62

rt73: USBVendorRequest TIMEOUT
s3c2410-ohci s3c2410-ohci: urb c1980840 path 1 ep0out 5ec20000 cc 5 –> status -62

rt73: USBVendorRequest TIMEOUT
s3c2410-ohci s3c2410-ohci: urb c1980840 path 1 ep0in 5ec20000 cc 5 –> status -62

rt73: USBVendorRequest TIMEOUT
s3c2410-ohci s3c2410-ohci: urb c1980840 path 1 ep0in 5ec20000 cc 5 –> status -62

rt73: USBVendorRequest TIMEOUT
s3c2410-ohci s3c2410-ohci: urb c1980840 path 1 ep0in 5ec20000 cc 5 –> status -62

rt73: USBVendorRequest TIMEOUT
rt73: Retry count exhausted or device removed!!!
rt73: BBP version = 0

為什麼會timeout勒…..  搞了一個禮拜還是搞不清楚

rt73: USBVendorRequest TIMEOUT是我自己加的訊息

總之status -62 = -ETIME,就是TIMEOUT

上面說過了,status code的詳細定義在$(KERNDIR)/include/asm-generic/errno.h

error的解釋在$(KERNDIR)/Documentation/usb/error-codes.txt

去rt2x00.serialmonkey.com post問題,一邊trace driver 一邊等

覺得問題比較有可能出在s3c2410-ohci

畢竟這部份的2440移植,我做的很粗糙

Error Code Tracing

rt73: USBVendorRequest TIMEOUT

$(RT73)/Module/rtusb_io.c ===> RTUSB_VendorRequest function內的ret 值

ret=usb_control_msg(pAd->pUsb_Dev, usb_sndctrlpipe( pAd->pUsb_Dev, 0 ), \

Request, RequestType, Value,Index, TransferBuffer, TransferBufferLength, \

CONTROL_TIMEOUT_JIFFIES);

message : s3c2410-ohci s3c2410-ohci: urb c1980840 path 1 ep0out 5ec20000 cc 5 –> status -62

來源:drivers/usb/host/ohci-q.c : dl_done_list() –> dl_reverse_done_list() –> ed_halted()

誰呼叫RTUSB_VendorRequest

RTUSBReadMACRegister

RTUSBWriteMACRegister

Read Full Post | Make a Comment ( 5 so far )

NAND Flash ~ empty flash 問題

Posted on 22 四月, 2008. Filed under: 菸酒生歲月, Linux, 嵌入式相關 | 標籤:, |

Openmoko – 惱人的 Empty flash 問題

# sumtool -e 0x20000 –no-cleanmarkers –littleendian -i output/rootfs.jffs2 -o output/newrootfs.jffs2

(繼續閱讀…)

Read Full Post | Make a Comment ( None so far )

warning: `regparm’ attribute directive ignored

Posted on 19 四月, 2008. Filed under: 菸酒生歲月, Linux, 嵌入式相關 | 標籤:, , |

交叉編譯rt73usb driver的時候,需要指定kernel source路徑

# cd RT73_Linux_STA_Drv1.0.4.0/Module

# make ARCH=arm CROSS_COMPILE=arm-linux-

\KERNDIR=/home2/fyodor/kernel/linux-2.6.25__from__2.6.24.3/

出現了這個警告

warning: `regparm’ attribute directive ignored

網路上查到是說

kernel src directory裡面的 include/asm

他是一個link,應該要指向corss compile目標

(在我這個情況就是asm-arm)

如果沒把asm 指到 asm-arm,就會出現這個warning

http://osdir.com/ml/linux.gps/2006-02/msg00049.html

http://linux.chinaunix.net/bbs/archiver/?tid-916672.html

可是我有正確指過去啊….怎麼還是出現這個warning

Read Full Post | Make a Comment ( None so far )

受保護的文章:diff & patch 用法

Posted on 18 四月, 2008. Filed under: 菸酒生歲月, Linux | 標籤:, , |

該內容受密碼保護。如欲檢視請在下方輸入你的密碼:

Read Full Post | Make a Comment ( 輸入你的密碼方能觀看迴響。 )

胖子"自以為"放閃光

Posted on 11 四月, 2008. Filed under: 菸酒生歲月, 閒聊 |

還好我昨天比較早回家

聽說胖子在LAB用3G手機跟他的啾講了一個小時的視訊電話

噁心的話一堆這就算了

還不時的對著鏡頭   “噘嘴啾"   “咪咪咪"

幹~~~ 

雖然一點都不閃,但這真是太噁爛了

於是阿鋒特地去把六樓的禁煙海報幹起來

改成這樣貼在LAB門口…真是太精美啦!

DSC00297

尤其是手機螢幕上的照片

(傳說中的金山陽明山兩日遊相簿之封面!?)

DSC00301

天哪~~~  怎麼會有這麼好的同學!帶給大家無盡的歡笑

畢業後就沒辦法天天看到胖子,光是想到就覺得好傷心啊!

Read Full Post | Make a Comment ( None so far )

受保護的文章:Linux Driver – Platform Device

Posted on 11 四月, 2008. Filed under: 菸酒生歲月, Linux, 嵌入式相關 | 標籤:, , , |

該內容受密碼保護。如欲檢視請在下方輸入你的密碼:

Read Full Post | Make a Comment ( 輸入你的密碼方能觀看迴響。 )

受保護的文章:Wireless tools for ARM Linux

Posted on 8 四月, 2008. Filed under: 菸酒生歲月, Linux, 小小心得, 嵌入式相關 | 標籤:, , |

該內容受密碼保護。如欲檢視請在下方輸入你的密碼:

Read Full Post | Make a Comment ( 輸入你的密碼方能觀看迴響。 )

« 較早的項目

Liked it here?
Why not try sites on the blogroll...