从Android模拟器中的设备引导Sasmsung S7 Edge扩展内核 [英] Boot Sasmsung S7 Edge extraced Kernel from Device in Android Emulator

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

问题描述

这些是Samsung 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世界的新用户来说,这常常令人感到惊讶,因为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仿真器未对Samsung 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模拟器中的设备引导Sasmsung S7 Edge扩展内核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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