귀찮아서 initrd 를 2.6.32.24 걸로 끌어다 썻더니 부팅은 시도하지만
커널과 관련된 파일들이 없어서 부팅이 진행되지는 않는다.
그래서 검색을 해보니, make modules_install 을 해주거나 depmod 를 해주면 되는 것으로 추측된다.
cd linux-2.6.30/drivers/gpu/drm/i915/
patch i915_drv.c /tmp/patch # make any modification you need here
make -C /usr/src/linux-headers-`uname -r` M=`pwd` modules
sudo make -C /usr/src/linux-headers-`uname -r` M=`pwd` modules_install
sudo depmod -a
Options:
-d confdir Specify an alternative configuration directory.
-k Keep temporary directory used to make the image.
-o outfile Write to outfile.
-r root Override ROOT setting in mkinitrd.conf.
See mkinitramfs(8) for further details.
FILES
/etc/initramfs-tools/initramfs.conf
The default configuration file for the script. See initramfs.conf(5)
for a description of the available configuration parameter.
/etc/initramfs-tools/modules
Specified modules will be put in the generated image and loaded when
the system boots. The format - one per line - is identical to that of
/etc/modules, which is described in modules(5).
/etc/initramfs-tools/conf.d
The conf.d directory allows to hardcode bootargs at initramfs build
time via config snippets. This allows to set ROOT or RESUME. This is
especially useful for bootloaders, which do not pass an root bootarg.
/etc/initramfs-tools/DSDT.aml
If this file exists, it will be appended to the initramfs in a way that causes it to be loaded by ACPI.
머 생성해도 달라지는건 별로 없군 ㄱ- busybox 에서 못 넘어 간다 (안해!!!! ㅆㅂ)
다른것들 보다는.. 도대체 왜
FATAL: Could not load /lib/modules/... : No such file or directory
라는 에러가 발생을 하는지 모르겠다.
---
/dev/sda1 대신 /dev/hda1을 바꾸면 될까 했는데.. 역시나 안되고 -_-
(sda1은 SATA 하드 hda1은 IDE용 하드의 식별자이다)
혹시나 해서 initrd의 내용을 열어보니
conf/conf.d/resume 파일의 내용중 UUID의 값이 /boot/grub/grub.cfg 의 내용과 다르게 들어있었다.
그리고 이 내용은
/etc/initramfs-tools/conf.d/resume에 들어있던 내용이고
mkinitramfs 에 의해 이 내용이 들어간 것으로 보인다.
Extracting initrd image
Initrd image is just cpio-gzip archive. So to extract it:
집에와서 해보니, BIOS 에서 부터 Shift를 누르는것은 들어가지지 않고,
BIOS 에서 Bootloader로 넘어가는 시점에서 부터 Shift 키를 누르고 있어야 GRUB loader menu로 진입하였다.
눌렀다 뗐다 하는것도 안되고, 계속 메뉴가 뜰때까지 누르고 있어야 하는데 음.. 이건 촘 아니라는 느낌..
update-grub2를 실행해보니, /boot에 추가된 파일을 찾아 자동으로 전부 추가하는 것으로 추측된다.
$ sudo update-grub2
[sudo] password for morpheuz:
Generating grub.cfg ...
Found background image: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.32.15+drm33.5
Found linux image: /boot/vmlinuz-2.6.32-24-generic
Found initrd image: /boot/initrd.img-2.6.32-24-generic
Found linux image: /boot/vmlinuz-2.6.32-23-generic
Found initrd image: /boot/initrd.img-2.6.32-23-generic
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
done
이넘이. HP 노트북 omnibook용 추가 모듈(?)로 인해 발생하는 에러인것 같지만..
잘은 모르겠는데 흐아.. 리눅스 머신이 싱글코어 1.8기가 인가 그런데 언제 또 다시 컴파일 돌리나 ㅠ.ㅠ
[링크 : http://sourceforge.net/projects/omke/]
make menuconfig 에서 / 로 omnibook을 검색하니
아래와 같이 나온다. 이녀석이 기본으로 켜져있어서 omnibook 오류가 난듯 하다.
최상위에서 부터 Ubuntu Supplied Third-Party Device Drivers
그리고 그 메뉴의 가장 아래에 Kernel module for HP and Toshiba laptops