qemu ubuntu for zynq(armhf)

apt-get install qemu-user-static qemu-system

image

mkdir qemu-ubuntu

qemu-debootstrap --arch=armhf trusty qemu-ubuntu

image

cp `which qemu-arm-static` qemu-ubuntu/usr/bin/

chroot qemu-ubuntu/

vi /etc/init/ttyPS0.conf

start on stopped rc RUNLEVEL=[2345] and (
not-container or
container CONTAINER=lxc or
container CONTAINER=lxc-libvirt)

stop on runlevel [!2345]

respawn
exec /bin/login -f root < /dev/ttyPS0 > /dev/ttyPS0 2>&1

echo "deb http://ports.ubuntu.com trusty main restricted multiverse universe" > /etc/apt/sources.list

image

apt-get update

passwd

image

使用时:

sudo rsync –a qemu-ubuntu/ /media/ext4

 

已经可以运行的pure ubuntu trusty:

http://pan.baidu.com/s/1i39TpHF

posted @ 2014-07-12 18:50  Ю詺菛╀時代  阅读(1036)  评论(0编辑  收藏  举报