2014年4月17日 星期四

Boot Linux bzImage or Ubuntu on x86 Qemu memo

Linux source: tag v3.13
Qemu: https://github.com/qemu/qemu, use master branch

Build qemu:
cd qemu
mkdir out
./configure --prefix=${PWD}/out
pixman not present: apt-get install pixman-xx-dev
DTC not present:  apt-get install libfdt-dev and follow this link
http://askubuntu.com/questions/424329/error-trying-to-compile-qemu-from-source


Run Linux bzImage and busybox on Qemu
http://leave001.blog.163.com/blog/static/162691293201243110252209/
Modify etc/init.d/rcS as
mkdir etc etc/init.d in rootfs
edit etc/init.d/rcS as
#!/bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
/sbin/mdev -s 
http://www.cnblogs.com/senix/archive/2013/02/21/2921221.html

Run Ubuntu on Qemu
https://lists.ubuntu.com/archives/ubuntu-users/2004-September/000189.html

If qemu show
VNC server running on `127.0.0.1:5900'
Check  whether SDL show yes in configure
if not, sudo apt-get install libsdl1.2-dev

0 意見:

張貼留言