您的位置:首页 > 移动开发 > Android开发

Android 4.3 emulator screen stay black and qemu: could not load initrd 'ramdisk.img'

2013-12-31 13:37 831 查看
After building the 4.3 source code, I try to run the emulator with self-compiled system.img, userdata.img and ramdisk.img, but the emulator's screen stays black and adb devices shows offline, no output.

Try to use "kernel-qemu-armv7" instead of "kernel-qemu", solve the balck screen.

But there is still "qemu: could not load initrd 'ramdisk.img', after trying several times follow the guide on internet:

1. chmod 777 -R * in ramdisk.img's path.

2. using full path in -ramdisk

below list my cmd:

/AOSP/out/host/linux-x86/bin/./emulator -kernel /AOSP/prebuilts/qemu-kernel/arm/kernel-qemu-armv7 -sysdir /AOSP/out/target/product/generic/ -system system.img -data userdata.img -ramdisk /AOSP/out/target/product/generic/ramdisk.img
-skindir skins/ -skin HVGA -partition-size 768

the skins/ folder is copied from SDK path.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐