qemuでinitramfsを実験する。 まずは実験用カーネルを用意する。 $ make allnoconfig $ make menuconfig General setup ---> Initial RAM filesystem and RAM disk (initramfs/initrd) support Executable file formats ---> Kernel support for ELF binariesこの二つのみをONにして後は全てOFF $time make bzImage $cd 作業用ディレクトリ $ln -s /usr/src/linux/arch/i386/boot/bzImage 作業用ディレクトリ つぎにダミー用のrawディスクを用意 $qemu-img create dummy_dsk.img 1K initプログラムを用意 ここではhello