emulator命令启动模拟器失败
编译完android系统后,在/out/target/product/filename目录中生成了img文件(system.img userdata.img ramdisk.img uImage)想用emulator启动编译好的内核,
于是输入命令:
emulator -image system.img -data userdata.img -ramdisk ramdisk.img
这时出现了以下警告:
emulator: WARNING: Please note that -image is obsolete and that -system is now used to point
to the system image. Next time, try using '-sysdir <path> -system <file>' instead.
emulator: WARNING: system partition size adjusted to match image file (200 MB > 66 MB)
emulator: WARNING: Unable to create sensors port: Connection refused
emulator: emulator window was out of view and was recentered
弹出的模拟器一直黑屏,启动没成功,开始以为是WARNING: system partition size adjusted to match image file (200 MB > 66 MB)这个问题产生的
于是又输入以下命令:
emulator -image system.img -data userdata.img -ramdisk ramdisk.img -partition-size 210
这时出现的警告又变了:
emulator: WARNING: Please note that -image is obsolete and that -system is now used to point
to the system image. Next time, try using '-sysdir <path> -system <file>' instead.
emulator: WARNING: Unable to create sensors port: Connection refused
弹出的模拟器还是一直黑屏
怀疑是不是因为没加上内核的关系,于是输入以下命令:
emulator -image system.img -data userdata.img -ramdisk ramdisk.img -partition-size 210 -kernel uImage
感觉这时应该能启动了吧,却又报错:
emulator: WARNING: Please note that -image is obsolete and that -system is now used to point
to the system image. Next time, try using '-sysdir <path> -system <file>' instead.
emulator: WARNING: Unable to create sensors port: Connection refused
qemu: fatal: Trying to execute code outside RAM or ROM at 0x10008000
R00=00000000 R01=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
已放弃
这时模拟器启动之后又快速退出,连黑屏都省了直接异常退出!!!!!!!
该怎么解决这个问题呢?????