简体   繁体   English

从 Android 仿真器中的设备引导三星 S7 Edge 从设备中提取 Kernel

[英]Boot Sasmsung S7 Edge extraced Kernel from Device in Android Emulator

These are Samsung S7 edge zImage and ramdisk.这些是三星 S7 edge zImage 和 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.但是,模拟器上的黑屏和终端中没有消息。

Tried -ranchu and -qemu试过 -ranchu 和 -qemu

With generic image from Emulator it boots:使用来自 Emulator 的通用图像,它会启动:

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

Any idea how to boot that Samsung S7 Edge kernel?知道如何启动三星 S7 Edge kernel 吗?

Thanks,谢谢,

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.作为一般规则,您不能只为一件 Arm 硬件随机选择一个 kernel,然后在另一件 Arm 硬件上启动它。 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.由于嵌入式/移动 Arm 系统差异很大,通常打算在一台机器上运行的操作系统或固件映像根本不会在任何其他机器上运行。 This is often surprising for new users who are used to the x86 world where every system looks like a standard PC.对于习惯于每个系统看起来都像标准 PC 的 x86 世界的新用户来说,这通常会让他们感到惊讶。

So you need to match the emulator machine type you're using with the kernel image.因此,您需要将您使用的仿真器机器类型与 kernel 映像相匹配。 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. 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.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM