 
         
         
         
        
            全文预览已结束            
        
        下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
            使用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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 钼铁冶炼工安全理论竞赛考核试卷含答案
- 安全防范系统安装维护员安全理论模拟考核试卷含答案
- 公司矿山救护工岗位工艺作业技术规程
- 传输机务员创新思维能力考核试卷含答案
- 石作文物修复师安全生产知识模拟考核试卷含答案
- 数字内容营销策略分析方案
- 消化系统疾病三基试题及答案
- 消化内科试卷及答案
- 2025年消防维保现场操作流程
- 企业文档归档管理标准化工具
- 2026届高考备考数学总复习的一些想法和做法
- 人工智能在法律行业的应用
- 湖南省永州市2025年-2026年小学六年级数学期末考试(上学期)试卷及答案
- 2025年职业技能鉴定考试(动物检疫检验员)历年参考题库含答案详解(5卷)
- 2026年色彩流行趋势报告
- 2025年中小学学科带头人选拔理论考试试题及答案
- 四手操作理论试题及答案
- 种鸡场安全培训
- 水箱维护方案(3篇)
- 乡镇资金支付管理制度
- 新疆隆炬新材料有限公司年产5万吨高性能碳纤维项目环评报告
 
            
评论
0/150
提交评论