新手上路
三星級會員
- 舊站積分
- 2319
- 舊站發表文章數
- 826
|
樓主 |
發表於 2013-1-9 00:32:50
|
顯示全部樓層
Hi, solo16
I'm trying to compile a kernel however I am asking some help here:
1) I found there are patch and patches for the kernel so should I patch them all?
基本上我是全打上了, 或許有些東西用不上, 反正會進 menuconfig 選單時再篩選就好了
2) when menuconfig the alsa / sound modules should I select the driver? As there is newer version of ALSA driver / lib?
因最近改用OSS4, 但印象中內核自帶的ALSA Driver 通常不會是最新的
3) Should I compile the alsa into the source before compiling the kernel or I just need to compile the ALSA after the kernel installed?
如要用最新的就不用編寫進內核, 後續自行下載編譯即可
4) after successfully configured the kernel source how can i compile it into a deb package?
我是下這個指令,
fakeroot make-kpkg --initrd kernel_image kernel_headers -j3 > build.log 2>&1
-J[核心數2+1]= -j3 加快編譯速度
> build.log 2>&1 將編譯訊息寫入build.log , console 速度慢也會拖累編譯速度
dpkg -i linux*.deb 再下此指令安裝即可
5) how can I make certain modules / functions into a separate deb package so if such functions / modules are needed in the future the user can install it themselve?
模組類的東西就選成[M], 的話就會直接編入核心
把自己和其他人將來會用到的模組全編成[M]模組化,應該是比較簡易而通用的,
開機經過UDEV及Blacklist的過濾後, 並不會全部的模組都被載入的
另一個做法是編譯時加上版本編號, 這樣可以弄2個以上做不同使用區分, 再透過開機選單選擇即可
make-kpkg -- initrd --append-to-version -01 kernel_image kernel_headers
01 自行更換
以上 小弟愚見 希望沒誤人子弟 [|)] [ ] |
|