



全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
使用QEMU仿真ARM Linux系统 使用方法,网上有很多文章可以参考:/info/debian_arm_qemu.php - Debian on an emulated ARM machinehttp:/qemu-forum.ipi.fi/viewtopic.php?p=11353 - qemu-system-arm nfsroot bridge trouble/rss/MicroSUSE_System_Builder%27s_Guide创建一个虚拟硬盘$ qemu-img create -f qcow hda.img 10G 创建文件系统 sudo dd if=/dev/zero of=rootfs.img bs=1M count=100 sudo mkfs.ext2 -N 512 rootfs.img 安装Linux系统$ qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.18-6-versatile -initrd initrd.gz -hda hda.img -append root=/dev/ram 运行Linux系统$ qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.18-6-versatile -initrd initrd.img-2.6.18-6-versatile -hda hda.img -append root=/dev/sda1qemu-system-arm -kernel zIegrator -initrd arm_root.img -nographic -append console=ttyAMA0qemu-system-arm -kernel /zImage-qemu-arm -initrd ususe.img -nographic -append console=ttyAMA0Framebuffer console:qemu-system-arm -kernel /zImage-qemu-arm -initrd ususe.img -append console=tty1转载示例先安装Qemu,因为sdl很难搞定.linux建议下载qemu-0.8.2-i386.tar.gz,在根目录下解压即可,自动安装到bin.创建模拟盘sudo qemu-img create -f qcow hda.img 1G下载kernelsudo wget /aurel32/arm-versatile/vmlinuz-2.6.18-2-versatile sudo wget /aurel32/arm-versatile/initrd.img-2.6.18-2-versatile下载initrd安装文件sudo wget /debian/dists/testing/main/installer-arm/rc1/images/rpc/netboot/initrd.gz安装Debian Etch(在桌面环境下)sudo qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.18-2-versatile -initrd initrd.gz -hda hda.img -append root=/dev/ram跳过安装运行(在桌面环境下)sudo qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.18-2-versatile -initrd initrd.img-2.6.18-2-versatile -hda hda.img -append root=/dev/sda1出现login之后退出安装相应的内核sudo apt-get install initramfs-toolssudo wget /aurel32/arm-versatile/linux-image-2.6.18-2-versatile_2.6.18-5+versatile_arm.debsudo dpkg -i linux-image-2.6.18-2-versatile_2.6.18-5+versatile_arm.deb然后重新运行qemu进入命令行,输入dmeg出现 arm的提示就ok如下是qemu-system-arm的帮助文件:QEMU PC emulator version 0.9.0, Copyright (c) 2003-2007 Fabrice Bellardusage: qemu options disk_imagedisk_image is a raw hard image image for IDE hard disk 0Standard options:-M machine select emulated machine (-M ? for list)-fda/-fdb file use file as floppy disk 0/1 image-hda/-hdb file use file as IDE hard disk 0/1 image-hdc/-hdd file use file as IDE hard disk 2/3 image-cdrom file use file as IDE cdrom image (cdrom is ide1 master)-boot a|c|d|n boot on floppy (a), hard disk (c), CD-ROM (d), or network (n)-snapshot write to temporary files instead of disk image files-no-quit disable SDL window close capability-m megs set virtual RAM size to megs MB default=128-smp n set the number of CPUs to n default=1-nographic disable graphical output and redirect serial I/Os to console-k language use keyboard layout (for example fr for French)-localtime set the real time clock to local time default=utc-full-screen start in full screen-usb enable the USB driver (will be the default soon)-usbdevice name add the host or guest USB device nameNetwork options:-net nic,vlan=n,macaddr=addr,model=type create a new Network Interface Card and connect it to VLAN n-net user,vlan=n,hostname=host connect the user mode network stack to VLAN n and send hostname host to DHCP clients-net tap,vlan=n,fd=h,ifname=name,script=file connect the host TAP network interface to VLAN n and use the network script file (default=/etc/qemu-ifup); use script=no to disable script execution; use fd=h to connect to an already opened TAP interface-net socket,vlan=n,fd=h,listen=host:port,connect=host:port connect the vlan n to another VLAN using a socket connection-net socket,vlan=n,fd=h,mcast=maddr:port connect the vlan n to multicast maddr and port-net none use it alone to have zero network devices; if no -net option is provided, the default is -net nic -net user-tftp prefix allow tftp access to files starting with prefix -net user-smb dir allow SMB access to files in dir -net user-redir tcp|udp:host-port:guest-host:guest-port redirect TCP or UDP connections from host to guest -net userLinux boot specific:-kernel bzImage use bzImage as kernel image-append cmdline use cmdline as kernel command line-initrd file use file as initial ram diskDebug/Expert options:-monitor dev redirect the monitor to char device dev-serial dev redirect the serial port to char device dev-parallel dev redirect the parallel port to char device dev-pidfile file Write PID to file-S freeze CPU at startup (use c to start execution)-s wait gdb connection to port 1234-p port change gdb connection port-d item1,. output log to /tmp/qemu.log (use -d ? for a list of log items)-hdachs c,h,s,t force hard disk 0 physical geometry and the optional BIOS translation (t=none or lba) (usually qemu can guess them)-L path set the directory for the BIOS, VGA BIOS and keymaps-no-reboot exit instead of rebooting-loadvm file start right away with a saved state (loadvm in monitor)-vnc display start a VNC server on display-daemonize daemonize QEMU after initializing-opt
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- (小学语文资料)人教版五年级上册语文第7单元试卷2及参考答案
- 反思与总结的卫生资格考试试题及答案
- 自考行政管理管理三要素试题及答案
- 2025年自考行政管理文化传播题及答案
- 2025年行政管理质量控制试题及答案
- 行政管理新动向的试题与答案探讨
- 主管护师考试指南试题及答案
- 药师与健康的关系试题及答案
- 桥梁伸缩缝材料选择与应用课件
- 每周班会课件
- GB/T 17737.4-2013同轴通信电缆第4部分:漏泄电缆分规范
- GB/T 17620-2008带电作业用绝缘硬梯
- 档案管理学(本科)(全)课件
- 学校国家义务教育质量监测应急预案(三页)
- 领取门诊使用免费基本药品治疗严重精神障碍患者知情同意书
- 吉林市富源石材有限公司三佳子饰面花岗岩及周边矿区矿山地质环境保护与土地复垦方案
- 2022年上海奉贤经济发展有限公司招聘笔试题库及答案解析
- 新教材人教版高中数学必修第二册全册教案(教学设计)
- DB23∕T 440-1996 柞蚕生产技术规程
- 药物溶解与溶出及释放-精品医学课件
- 安徽高中毕业生登记表(共7页)
评论
0/150
提交评论