一直以來都有一個困惑到底 bzImage 是由什麼東西所組成的呢? 稍微 trace 了一下 kernel, 雖然還是一大堆困惑 -_-

在 kernel source 的最上層 make V=1 &> make.proc, 可以看到整個 build 的詳細過程. 稍微整理了一下如下所示

vmlinux-img.png

Step 1 - 之前的是 kernel 本尊 ( vmlinux ) 保留了 .note, .comment, 和除錯資訊, 藉由 objcopy  -R .comment -S vmlinux arch/x86/boot/compressed/vmlinux.bin 去除了 .commnt和除錯資訊 產出了 vmlinux.bin, 這個就是沒有壓縮前的 kernel

Step 2 - gzip -f -9 < arch/x86/boot/compressed/vmlinux.bin > arch/x86/boot/compressed/vmlinux.bin.gz

sakbk 發表在 痞客邦 留言(2) 人氣()

 

小沈說希望可以在易PC上做Dual Boot, 於是就來研究一下如何將現有EeePC windows XP 的 build 先裝起來看一下是長什麼樣子.

在 XP 的 partition 當中有四個主分割區分別為 C:/ D:/ 一個PE:/, 和一個 ELF(Hidden partiton),且四個均為 Primary Partition. 所以基本上在這樣的條件下是跟本沒辦法裝現有 Xandros OS. 分割區已經被用完了.

所以 先將 D 槽的 partition 幹掉,重割成 Extended Partition,再割出 Logical Partition 作法如下:

<分割前>                <分割後>

(Primary), C:/

sakbk 發表在 痞客邦 留言(1) 人氣()

«123