gpt4 book ai didi

android - 在模拟器 (GOLDFISH) 上编译并运行 CM 10.2

转载 作者:行者123 更新时间:2023-11-30 03:18:14 26 4
gpt4 key购买 nike

我想在模拟器上构建和运行 CyanongenMod 10.2。首先,我的开发机器没问题(它为 crespo 构建了 CM 10.2,为摩托罗拉 Defy 构建了 CM 分支...为三星 p4 平板电脑构建了 CM 10.1)。

为了为模拟器构建 CM 10.2,我执行以下步骤:breakfast goldfish:下载内核和 goldfish 相关的东西mka:做一个完整的构建构建完成:所有 .img 文件都在 $OUT 文件夹中。似乎一切正常...但是如果我运行“emulator -show-kernel”,它会因大量错误而阻塞:

init: could not import file '/init.carrier.rc' from '/init.rc'
init: do_chown: Could not access /selinux/booleans
init: do_chown: Could not access /sys/fs/selinux/booleans
init: cannot open '/initlogo.rle'
yaffs: dev is 32505856 name is "mtdblock0"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.0, "mtdblock0"
block 1177 is bad
block 1182 is bad
yaffs: dev is 32505857 name is "mtdblock1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.1, "mtdblock1"
yaffs_read_super: isCheckpointed 0
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
fs_mgr: Cannot mount filesystem on /dev/block/mtdblock0 at /system
init: fs_mgr_mount_all returned an error
yaffs tragedy: no more erased blocks
[....]
yaffs tragedy: no more erased blocks
init: cannot find '/system/bin/sysinit', disabling 'sysinit'
init: Unable to open persistent property directory /data/property errno: 2
init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
init: cannot find '/system/bin/vold', disabling 'vold'
init: cannot find '/system/bin/qemu-props', disabling 'qemu-props'
init: cannot find '/system/bin/auditd', disabling 'auditd'
init: cannot find '/system/bin/netd', disabling 'netd'
init: cannot find '/system/bin/debuggerd', disabling 'debuggerd'
init: cannot find '/system/bin/rild', disabling 'ril-daemon'
init: cannot find '/system/bin/surfaceflinger', disabling 'surfaceflinger'
init: cannot find '/system/bin/app_process', disabling 'zygote'
init: cannot find '/system/bin/drmserver', disabling 'drm'
init: cannot find '/system/bin/mediaserver', disabling 'media'
init: cannot find '/system/bin/installd', disabling 'installd'
init: cannot find '/system/bin/keystore', disabling 'keystore'
init: cannot find '/system/bin/handle_compcache', disabling 'compcache'
init: cannot find '/system/bin/qemud', disabling 'qemud'
init: cannot find '/system/bin/logcat', disabling 'goldfish-logcat'
init: cannot find '/system/etc/init.goldfish.sh', disabling 'goldfish-setup'
init: cannot find '/system/bin/sh', disabling 'console'

似乎是 EXT4 图像文件错误:模拟器不接受 EXT4 文件系统,但只接受 yaffs?

问题很简单:是否可以在模拟器上运行 CM 构建?

最佳答案

是的,我和你有同样的问题,然后我运行命令:

mkyaffs2image -f out/target/product/generic/system out/target/product/generic/system_yaffs2.img

emulator -kernel out/target/product/generic/zImage -system out/target/product/generic/system_yaffs2.img -ramdisk out/target/product/generic/ramdisk.img -data out/target/product/generic/data_yaffs2.img -partition-size 1024 -show-kernel -verbose

稍等几分钟,即可启动模拟器。

但是ril服务好像是coredump,所以3G网络不行。我正在寻找解决此问题的方法。

关于android - 在模拟器 (GOLDFISH) 上编译并运行 CM 10.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19660378/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com