V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
qiushaox
V2EX  ›  Android

有大佬成功编译运行过 Android 10 的 qemu kernel 不?

  •  
  •   qiushaox · Feb 8, 2020 · 14131 views
    This topic created in 2277 days ago, the information mentioned may be changed or developed.

    假期不用上班,刚好有时间研究一下 Android 10 的代码,顺便学习一下 kernel,所以想编译一下虚拟机的 kernel。 Android 8.0 之前的 kernel 都按旧官方文档 编译运行成功了。 但是 Android 10 的 kernel 编译方式有变化了,按官新官方文档 编译成功,但运行失败了, 运行 emulator 的 log 跟使用预置 kernel 对比过,也看不出来有什么问题。

    android product 选择的是 aosp_x86_64,kernel config 选择的是 build/upstream/build.config.x86_64.upstream-linux-4.14.y

    成功编译运行过的同学,是否有踩过什么坑,怎么解决的,麻烦指导一下哈

    1 replies    2020-02-08 20:37:40 +08:00
    menyakun
        1
    menyakun  
       Feb 8, 2020
    Android emulator 的 kernel 和 mainline 的不太一样,比如加了一些 hardware accelerator 的部分,defconfig 不能用 upstream kernel 的。如果你想用 upstream kernel 的话,还是试试 Android-x86 吧,据我所知最近几个版本的 Android,Android-x86/kernel 和 mainline 已经没什么差别了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2897 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 06:28 · PVG 14:28 · LAX 23:28 · JFK 02:28
    ♥ Do have faith in what you're doing.