- Download buildroot
- Update buildroot
$ git pull
- Change configuration to build for i386
- Build buildroot
- Run in QEMU
Steps to create a bootable disk image using EXTLINUX, buildroot, Linux kernel and run using QEMU
- Mount buildroot root filesystem
- Create disk image
- Create ext2 filesystem
$ tune2fs -c 0 -i 0 rootfs.img
- Mount disk image
- Copy buildroot to disk image
- Create boot directory
- Copy Linux kernel and initial ramdisk to boot directory
$ cp initrd.img rootfs/boot
- Install EXTLINUX bootloader
$ vi rootfs/boot/extlinux.conf
default linux
timeout 10
prompt 1
label linux
kernel /boot/vmlinuz
append initrd=/boot/initrd.img root=/dev/sda clocksource=kvm-clock
- Unmount disk image
- Run in QEMU
This was brilliant, thank you.
ReplyDelete