支援 2G RAM

目前的 kernel 並不 support over 1G RAM,原因是因為 kernel 中 high memory 中的一個選項未開啟。所以想要 support 2G RAM,就要重 compile kernel(所以當然要有另外安裝一個 Linux distribution,Debian or Xandros 都可。


(如果看系統診斷程式,會顯示 2048M。這是因為它是抓 BIOS 的值,而不是抓 Linux 可使用的)


先到 http://eeepc.asus.com/tw/download.htm 下載 EPC 的 kernel source。


然後 copy 出自己 EPC 的 kernel option(放在 /boot/configXXXX,以 config 檔名開頭的檔案就是了)。


將 kernel source 解開,再將自己的 config 覆蓋掉 .config 檔。


make menuconfig


Processor type and features -> High Memory Support


這邊有 off 4GB 64GB 三個選項,預設選為 off,我們將它選為 4GB。(可查看 help 說明,即知 1G RAM 以下可選 off,1~4G RAM 選 4GB,4G RAM 以上選 64GB)


存檔後就下 make 重新 compile kernel。


出來後的 kernel image 在 arch/i386/boot/bzImage


要與原本 image 命名方式雷同,那就


cd arch/i386/boot/
mv bzImage vmlinuz-2g


下一步就是要將此 image 放到我們 EPC 的 /boot 目錄中。因為 EPC 是用 unionfs 系統,所以用預設 image 開機是無法修改 sda1 的。因此我們要準備一個 Linux 開機(光)碟。將剛剛 compile 好的 vmlinuz-2g 放到 USB drive,進系統後打


mount /dev/sda1 /mnt
mkdir /usb
mount /dev/sdb1 /usb(sdb1 是 USB drive,視情況更改)
cp /usb/vmlinuz-2g /mnt/boot/


接著要改 grub,也就是 bootloader 的設定,讓它去使用我們的 vmlinuz-2g 開機。


vi /boot/grub/menu.list


更改 Normal Boot 的 kernel 為 vmlinuz-2g,存檔。


umount /mnt
umount /usb


完成後重開機,看記憶體大小


more /proc/meminfo


應該就可正常使用 2G RAM 了!


留言

熱門文章