How to enable workers on your control plane nodes.The online resize2fs may corrupt the filesystem so here's an alternative. QEMU: sudo resize2fs /dev/sda // Be careful not to run this on your host machine Host: qemu-img resize rootfs_debian6_rpi.ext4 +1G Not enough space to install anything after you're up and running? Here's how to resize the image. -nographic = don't use graphics, and redirect serial I/O to console.-kernel = specify the kernel image to use for booting.Qemu-system-x86 -kernel linux-2.6.26/arch/i386/boot/bzImage -hda rootfs.img -append "console=ttyS0 root=/dev/hda panic=1" -nographic -no-reboot Qemu-system-x86 -kernel linux-2.6.26/arch/i386/boot/bzImage -hda rootfs.img -append "console=ttyS0 root=/dev/hda init=/bin/ash" -nographic Qemu-system-x86 -kernel linux-2.6.26/arch/i386/boot/bzImage -hda rootfs.img -append "console=ttyS0 root=/dev/hda" -nographic I got these from Rob Landley at OLS 2008: Qemu-system-aarch64 -nographic -no-reboot -machine virt -cpu cortex-a57 -smp 2 -m 256 -kernel Image -append "panic=5 ro ip=dhcp root=/dev/vda" -drive file=rootfs.img,format=raw,if=none,id=hd0 -device virtio-blk-device,drive=hd0 Here are the steps for building a Ext3 rootfs image, assuming you Busybox built on your host, for the target architecture:ĭd if=/dev/zero of=rootfs.img bs=1M count=10 Qemu-system-aarch64 -nographic -no-reboot -machine virt -cpu cortex-a57 -smp 2 -m 256 -kernel Image -initrd -append "panic=5 ro ip=dhcp root=/dev/ram rdinit=/sbin/init" Then the image built can be booted with the following command: Here are the steps for building a cpio.gz ramfs image, assuming you Busybox built on your host, for the target architecture:įind. Mkdir _install/proc _install/sys _install/dev _install/etc _install/etc/init.dĬat > _install/etc/init.d/rcS /etc/nf Here are the steps to populate a minimal sysroot, assuming you Busybox built on your host, for the target architecture: Some quick useful tips How to populate a minimal sysroot QEMU for the Raspberry Pi - also see discussion.Building an embedded Linux system emulator using QEMU. ![]() Support for new boards or new peripherals can added relatively easily in QEMU, the APIs being quite simple to understand and use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |