[嵌入式第一步]虚拟机以及Linux安装

       经过一段时间的前期理论准备,决定在Vmware Workstation8.0下面安装Fedroa 10,其实都可以的,只是几经尝试,发现这个版本的比较适合我的电脑(配置比较低)。

1、安装虚拟机就不多说了,跟安装一般软件一样,前提是要你的硬盘空间足够;

2、安装Fedroa 10,中间可能有几步要注意一下,否则会出错。a、虚拟磁盘选择IDE;b、制定磁盘空间为立即分配;c、选择安装的服务:最好都选上。

3、虚拟机与主机通信设置:

1)"虚拟机设置"->“Ethenet”->自定义网络连接->VMnet8(NAT);

2)双击虚拟机右下角的以太网标志,选择“connected”和“connect at power on”;

3)安装VM tools,这个主要实现虚拟机和主机之间的复制、粘贴、鼠标切换等功能的;

a、选择“安装VM tools”,点击了之后会出现“取消安装VM Tools”;安装成功之后会显示“ReinInstall VM Tools”。

b、虚拟机挂载Linux.iso镜像文件,此文件一般位于VMware安装目录里面,找到它,然后挂载到虚拟机的CD-ROM当中,这个时候就可以在linux系统中试用这个文件了;

c、在linux当中将光盘当中的文件复制到/tmp当中,用手动的,不用命令了;

d、解压缩VMwareTools-8.8.0-471268.tar.gz:#tar -zxvf VMwareTools-8.8.0-471268.tar.gz

e、进入解压出来的文件夹#cd vmware-tools-distrib

f、运行里面的pl文件:#./*.pl   

4)虚拟机和主机共享文件,有两种方法,一个是通过共享文件夹的方式,一个是通过FTP的文件传输方式。第二种更为常用,我用的是第一种方法。

a、虚拟机->设置->option->shared folders->总是启用->添加->名称“Windows”->主机文件夹“D:\share2linux”属性“启用”

b、会发现虚拟系统当中多了这个目录/mnt/hgfs/WindowsLinux,这个对应于主机目录的share2linux目录,在主机当中的share2linux目录中添加文件,在虚拟系统当中就可以看见了。如果没有则证明没有安装成功。


      可能安装过程中会出现这个提示:VMware Tools installation cannot be started manually while Easy Install is in progress.

      建议看看这个文章:http://blog.csdn.net/oemoon/article/details/6849372      

                                         http://blog.csdn.net/militarygarbscholar/article/details/5750541


参考书籍:《Linux系统移植》

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
CarpVM 是一个用 C 语言编写的小型虚拟机。可以嵌入在应用程序中使用。 包含的指令集有: HALT (code): Halts and attempts to clean up stack, data memory, and label memory before exiting with given exit code. NOP (): Does nothing. Seriously. LOAD (reg, val): Loads given integer value into given register. MOV (dst, src): Copies contents of src register into dst register. ADD (): Pops the top two integers from the stack and pushes their sum. SUB (): Pops the top two integers from the stack and pushes the difference (lower minus upper). MUL (): Pops the top two integers from the stack and pushes their product. MOD (rega, regb): Computes rega % regb and stores in ERX. NOT (reg): Computes bitwise NOT of reg and stores in reg. XOR (): Pops the top two integers from the stack and XORs them. OR (): Pops the top two integers from the stack and ORs them. AND (): Pops the top two integers from the stack and ANDs them. INCR (reg): Increments value in given register. DECR (reg): Decrements value in given register. INC (): Increments the value at the top of the stack. DEC (): Decrements the value at the top of the stack. PUSHR (reg): Pushes value in given register. PUSH (val): Pushes given value. POP (val): Pops an integer from the stack and dumps it into GBG. CMP (): Pops the top two integers from the stack and checks if equal. 0 means equal. Result will be pushed onto the stack. MOV (rega, regb): Move value in rega to regb. JZ (addr): Jumps to given absolute address if top of the stack is 0. RJZ (diff): Adds differential to current EIP (relative jump) if top of the stack is 0. JNZ (addr): Jumps to given absolute address if top of the stack is not 0. RJNZ (diff): Adds differential to current EIP (relative jump) if top of the stack is not 0. JMP (addr): Jumps to given absolute address. RJMP (diff): Adds differential to current EIP (relative jump). DBS (key, val): Sets data memory at key (string pointer) to given value. DBG (key, reg): Gets value from data memory at key (string pointer) and dumps it into given register. CALL (key, nargs): Save state and set EIP to value in data memory at key. RET (val): Push return value and load state. PREG (reg): Prints contents of given register. PTOP (): Peeks top of stack and prints top value. 标签:CarpVM
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值