richliu’s blog

Linux, 工作, 生活.

richliu’s blog header image 4

Linux kernel 2.6.24 Porting 雜記.

May 15th, 2008 · 2 Comments

最近將某個 Device Porting 從 2.6.16 Porting 上 2.6.24, 記錄一下碰到的問題.
1. Network Driver
當有這樣的訊息時
# ifconfig eth0 up
SIOCSIFFLAGS : invalid agument
我碰到的狀況是, MAC Address 必需要在 probe 時先行 initial 完成.
若是沒有完成, ifconfig 就會出現這樣的錯誤訊息, 原因仍然不明.
我的做法就是加一行
memcpy(dev->dev_addr , addr, 6); 這樣就可以了.
2.6.24 的 NAPI Interface 改過了, 上比對一下 2.6.23 和 2.6.24 的 Code 就可以知道改了什麼地方.
netif_poll_* 的 interface 改名了以外, NAPI hook 的 _poll function 在傳入參數和結構上有小小的修正
2.6.24 修改了 NAPI 的呼叫法, 對我這邊比較複雜的 [...]

[Read more →]

Tags: Linux

[工作] 一次失敗的合作.

May 15th, 2008 · 4 Comments

有時候, 能夠當立斷還是很重要, 拖下去對大家都不好.
E 小姐是從 Z 公司離職, 由前任老闆找到 Linux Kernel Team, 當時我是在 AE Team.
而因為某些因素, 公司改組, 我接任 Linux kernel team leader.
而部門重整時, 因為前老闆有說, E 小姐進來就是要做 Kernel Team, 所以我的考量也留下來.
不過這位 E 小姐有一個附帶條件, 因為身體因素, Loading 不能太重.
E 小姐並沒有 Linux Kernel 開發的背景, 所以我特別安排了一段時間讓他學習如何
Porting Linux Kernel. 在這之前是 Porting u-boot 1.1.2->1.1.4.
接下來主要的內容就是從 Linux kernel 2.6.16 Porting 到 2.6.24 .
沒有想到這一段時間內, 她努力的學習, 結果卻是連 Console 都沒有看到.
後來進用了一位比較熟悉 Kernel 的 [...]

[Read more →]

Tags: 工作