在 Android 模拟器中从设备启动三星 S7 Edge 提取内核 [英] Boot Sasmsung S7 Edge extraced Kernel from Device in Android Emulator

查看:25
本文介绍了在 Android 模拟器中从设备启动三星 S7 Edge 提取内核的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些是三星 S7 edge zImage 和 ramdisk.

These are Samsung S7 edge zImage and ramdisk.

./emulator -gpu off -verbose -avd Nexus_5X_API_24_4 -ramdisk /home/user/s7boot/boot.emmc.win-ramdisk.gz -kernel /home/user/s7boot/boot.emmc.win-zImage -show-kernel -no-snapshot-load -ranchu -wipe-data

但是在模拟器上停留在黑屏并且在终端中没有消息.

But than is stays in Black Screen on Emulator and in terminal no messages.

试过 -ranchu 和 -qemu

Tried -ranchu and -qemu

使用来自模拟器的通用映像启动:

With generic image from Emulator it boots:

generic_arm64:/ $ uname -a                                                     
Linux loca 3.10.0+ #258 SMP PREEMPT Fri May 19 12:03:16 PDT 2017 aarch64

知道如何启动三星 S7 Edge 内核吗?

Any idea how to boot that Samsung S7 Edge kernel?

谢谢,

推荐答案

作为一般规则,您不能只使用用于一个 Arm 硬件的随机内核并在不同的 Arm 硬件上启动它.由于嵌入式/移动 Arm 系统差异很大,通常打算在一台机器上运行的操作系统或固件映像根本不会在任何其他机器上运行.对于习惯了 x86 世界的新用户来说,这通常令人惊讶,因为每个系统看起来都像标准 PC.

As a general rule, you can't just take a random kernel intended for one piece of Arm hardware and boot it on a different piece of Arm hardware. Because embedded/mobile Arm systems differ so much, typically operating system or firmware images intended to run on one machine will not run at all on any other. This is often surprising for new users who are used to the x86 world where every system looks like a standard PC.

因此您需要将您使用的模拟器机器类型与内核映像相匹配.Android 模拟器不模拟三星 S7,因此您需要使用通用内核或专门针对模拟器提供的机器模型的内核.

So you need to match the emulator machine type you're using with the kernel image. The Android emulator doesn't model a Samsung S7, so you need to use a generic kernel or one specifically targeting the machine model the emulator provides.

这篇关于在 Android 模拟器中从设备启动三星 S7 Edge 提取内核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆