4.0代码 make 之后 直接emulator

解决方案 »

  1.   

    几次提示你的try using '-sysdir <path> -system <file>' instead.
    你的这个system.img能不能改一下
      

  2.   

    试过,这个不行呢,我是直接在system.img目录直接emulator,提示:
    emulator: ERROR: You did not provide the name of an Android Virtual Device
    with the '-avd <name>' option. Read -help-avd for more information.
    加上我配置好的AVD名称之后启动的是以前SDk配置好的模拟器,根本不是我编译好的内核,不过我编译的源码确实是4.0.3,是不是我的操作不当?
      

  3.   

    src的根目录
    make 之后不换目录,直接emulator
    仔细看看官方说明吧。。
      

  4.   

    按提示输入命令:
    emulator -sysdir /android/out/target/product/xbroad/ -system system.img -data userdata.img -ramdisk ramdisk.img -partition-size 210 -kernel uImage 发现emulator报错:
    emulator: WARNING: Unable to create sensors port: Connection refused
    qemu: fatal: Trying to execute code outside RAM or ROM at 0x10008000R00=00000000R01=000005a1 R02=00000100 R03=00000000
    R04=00000000 R05=00000000 R06=00000000 R07=00000000
    R08=00000000 R09=00000000 R10=00000000 R11=00000000
    R12=00000000 R13=00000000 R14=00000000 R15=10008000
    PSR=400001d3 -Z-- A svc32
    已放弃这时模拟器都直接退出了,是不是我的kernel的问题??
      

  5.   

    好像是找到问题了,我编译的源码内核不是基于goldfish,而是直接是硬件设备上的映像,而且源码已经把goldfish部分砍掉了,这样的话是不是我不下载goldfish源码就没办法在emulator上运行了?
      

  6.   

    LZ还在么,我也遇到类似的我问题,不过一直提示段错误!相信两年之后的现在LZ应该也是大牛了~求指导啊