qemu ubuntu for zynq(armhf)

本文介绍了如何使用qemu-arm-static在ARM架构上安装并运行Ubuntu Trusty。通过一系列步骤,包括创建虚拟机、下载镜像、配置环境等,最终实现纯Ubuntu Trusty系统的运行。

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

转载于:https://www.cnblogs.com/shenerguang/p/3840306.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值