双启动Android x86与外部硬盘驱动器上的Lineagos x86 -- lineageos 领域 和 android-x86 领域 和 dual-boot 领域 android 相关 的问题

Dual booting android x86 with LineagOS x86 on external hard drive


简体版||繁體版
1
vote

问题

中文

我在内部笔记本HDD上安装我用USB

的外部垫片

驱动器是500 GB的硬盘,但有50 GB,50 GB,其上有50 GB分区,其余的瞬间未分配

我有Android x86( android-x86_64-9.0-rc2.iso )安装在第一个分区(SDB1)上,我也安装了EFI GRUB2,同时安装Android

我然后安装了lineagos x86( cm -x86_64-14.1-r2.iso )到第二个分区(50 GB),我也告诉它在安装Lineagos

时安装了EFI GRUB2

来自LineaGeoS的GRUB似乎已经覆盖了来自Android-x86的GRUB,现在我无法从BIOS引导屏幕启动到Android-x86,即使它的文件是在第一个分区中的所有文件

是有没有办法编辑GRUB for Lineagos,并从第一个分区添加一个条目以引导android-x86?

我还有Windows 10内的笔记本内的内部SATA硬盘。我不希望外部硬盘驱动器上的可启动装置以任何方式影响此Windows安装或内部驱动器,但似乎efi grub2 get安装Android-x86和LineaGeOS的安装时安装在内部HDD上。这仍然仍然是可以接受的,因为它似乎没有影响Windows安装或以任何方式引导过程,但我没有经历GRUB,无论我要做什么,我想确保它不会在我的内部硬盘驱动器上影响Windows 10 Instracttion。

总结:

sdb1:android-x86 SDB2:LineaGeOS,使用它的GRUB可启动(当我在BIOS启动菜单中选择条目时,此GRUB菜单显示)

如何编辑此GRUB菜单也指向Android-x86安装?是否有可能从Windows中执行此操作?

english

I an installing on an internal notebook HDD that I use as an external dribe from the USB

The drive is a 500 GB HDD but has 50 GB, 50 GB, 50 GB partitions on it and the rest is unallocated at the moment

I have android x86 (android-x86_64-9.0-rc2.iso) installed on the first partition (sdb1) and I also installed EFI GRUB2 while installing android

I then installed LineagOS x86 (cm-x86_64-14.1-r2.iso) to the second partition (50 GB) and I also told it to installed EFI GRUB2 while installing LineagOS

The GRUB from LineageOS seems to have overwritten the GRUB from android-x86 and now I can't boot into android-x86 from the BIOS boot screen, even though it's files are all there in the first partition

Is there any way to edit the GRUB for LineagOS and add an entry to boot android-x86 from the first partition?

I also have in internal SATA HDD inside the notebook with Windows 10. I do not want the bootable installations on the external hard drive to affect this windows installation or the internal drive in any way, but it seems the EFI GRUB2 that got installed while installing android-x86 and LineageOS got installed on the internal HDD. This is still still acceptable because it doesn't seem to have affected the windows installation or it's booting procedure in any way, but I am not experienced with GRUB and whatever it is that I have to do, I want to make sure it will not affect the Windows 10 installtion on my internal hard drive.

To summarize:

sdb1: android-x86 sdb2: LineageOS, bootable using it's GRUB (this grub menu shows up when I select the entry for it in the BIOS boot menu)

How do I edit this GRUB menu to also point to the android-x86 installation? Is it possible to do this from Windows?

        
     
     

回答列表

1
 
vote

启动它会有所帮助,如果您可以使用adb提供一些日志。 x86固件可以从一个提升的命令提示符下抛出命令 abcdefghijklmnadb logcat 。虽然它应该是一个更简单的读数,但它应该是一个转储和非常直,你可以尝试加入-v(冗长)长看: abd logcat -v long

希望Adbd守护进程已开始,因为Init作业的一部分。

但是,如果它没有并且无法获取Logcat,那么您可以尝试跳过一部分引导过程,通过停止Zygote来跳过引导过程中的事情进一步进程:

从 x86开发人员网站:

停止自动运行zygote:

在供应商/ whateve_device_oem / EEEPC / INIT.RC中,更改以下行:

service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server socket zygote stream 666 onrestart write /sys/android_power/request_state wake onrestart write /sys/power/state on

至:

service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server socket zygote stream 666 onrestart write /sys/android_power/request_state wake onrestart write /sys/power/state on disabled oneshot

在这一点上,曾达到Zygote会让达沃克开始沟通的东西让事情变得开始,因为这就是在虚拟机中获取的东西。

尝试通过上面提到的logcat命令拉日志。

当您想要手动启动Zygote后或者它失败后,从ADB shell start zygote 或者如果无法获得adb shell,则可以尝试终端仿真器<代码> start zygote 如果失败,则停止并将更改从引导中恢复为vendor / whateve_device_oem / EEEPC / init.rc的IS,或在ISO中,或在重新编译之前。

希望到这一点,您可以发布转储输出,以便我们可以到达正在发生的事情的核心牢记。

虽然听起来像从主引导加载程序到辅助引导加载程序的引导顺序问题等。它也可能是引导所需的任何其他相关路径。

,经过您在您尝试调试的长期详细步骤之后。导致我长期详细的啰嗦答案到州日志是调试的关键。我的头上的顶部我说,它很可能是一种可以使用来自基于Linux的系统或Linux的 set 命令来纠正,如系统命令提示符或模拟器。 (通过GRUB恢复储存砖块时的键)。

抛出 set 命令查看系统识别的内容,并将其视为所选路径的方式。

看看和与Set Root,CmdPath,内核,Boot,Grub,Vmlinux或Aboot等所需的内容相比,以及启动所需的内容,但不同样让设备和OEM,OE版本或变体等更多内容。

语法是:

set {envvar = value}

简化:

set选项=(值)/ / chened / path

要删除/删除环境变量只是US ABCDEFGHIJKLMNABCDEFGHIJKLMN8 而不是SET命令。

gn'u技术手册解释了什么似乎是您的问题:

https://www.gnu.org /software/grub/manual/grub/html_node/set.html#set

grub的正常启动过程涉及将"前缀" 环境变量设置为a 通过grub-install设置核心图像中的值,设置"root" 变量以匹配,加载 来自前缀的"普通" 模块,并运行'normal'命令(参见第16.3.51节 [正常],第77页)。此命令负责读取"/boot/grub/grub.cfg" ,运行 - ning菜单,并做所有有用的东西grub应该做到这一点

使用 set 命令启动调试解决方案以获取正确的引导变量。如果您必须删除已设置的变量,则使用 abd logcat -v long0 命令。

如果不是,我们需要日志,以了解引导过程的发生。

 

To start it would help if you could provide some logs with adb. The x86 firmware to get a dump of whats going on just simply throw the command adb logcatfrom an elevated command prompt. Making it simpler to read though it should be a dump and pretty straight forward you can try to add -v (verbose) long looking like: abd logcat -v long

hopefully the adbd daemon has started since thats part of the init job.

However, if it has not and cannot get a logcat then you can try to skip part of the boot process to get thing farther along within the boot process by stopping the zygote by:

From the x86 developers website:

Stop zygote to run automatically:

Go within the the vendor/whatever_device_oem/eeepc/init.rc, change following lines:

service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server socket zygote stream 666 onrestart write /sys/android_power/request_state wake onrestart write /sys/power/state on

to:

service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server socket zygote stream 666 onrestart write /sys/android_power/request_state wake onrestart write /sys/power/state on disabled oneshot

At this point hopfully stopping the zygote will get things communicating once the davlik starts going since that is what gets things in the virtual machine going.

Try to pull logs through the above mentioned logcat command.

When you want to start zygote manually after you get or if it fails then throw the command from an adb shell start zygote or if unable to get an adb shell you could just try from a terminal emulator start zygote if that fails then stop and revert the changes to the vendor/whatever_device_oem/eeepc/init.rc from the booted is is, or within the iso, or before re-compilation.

Hopefully by this point you can post a dump output so we can get to the nitty gritty of what is going on.

Though it sounds like a boot order issue from the primary bootloader to the secondary bootloader and so on. It could also be any of the other pertinent paths needed to boot.

With that, after going through your long detailed steps that you have tried for debugging. Leading to my long detailed winded answer to state logs are key to debugging. Of the top off my head I say that it is most likely a path issue that can be corrected using the set command from a linux based system or linux like system command prompt or emulator. (Key by the way when saving a brick from grub-recovery).

Throw the set command to see what the system recognizes and see as the way to the chosen path.

See what's shown and compared to what's needed such as set root, cmdpath, kernel, boot, grub, vmlinux or aboot, and many more things required for boot but not the same let device and OEM, OS version, or variants.

The syntax is:

set {envvar=value}

Simplified:

Set option = (Value)/the/chosen/path

To delete/remove an environmental variable just us unset instead of the set command.

GN'U technical manual explains what's appears to be your asked issue:

https://www.gnu.org/software/grub/manual/grub/html_node/set.html#set

GRUBxe2x80x99s normal start-up procedure involves setting the xe2x80x98prefixxe2x80x99 environment variable to a value set in the core image by grub-install, setting the xe2x80x98rootxe2x80x99 variable to match, loading the xe2x80x98normalxe2x80x99 module from the prefix, and running the xe2x80x98normalxe2x80x99 command (see Section 16.3.51 [normal], page 77). This command is responsible for reading xe2x80x98/boot/grub/grub.cfgxe2x80x99, run- ning the menu, and doing all the useful things GRUB is supposed to do

Start your debugging solutions with the set command to get the proper boot variables in order. If you have to delete a variable that's been set then use the unset command.

If not that than we need logs to find out what's going on with the boot process.

 
 

相关问题

5  我可以在我的Android手机中使用双启动吗?  ( Can i use dual boot in my android mobile phone ) 
我想知道Android是否有任何引导加载程序修改工具,以便我可以使用我的单元格作为双启动。像Symbian- android,Android - Windows Mobile,Android - Java,Android - Bada。 是可能的。 ...

2  HTC Desire Z的双泡枪CM7和CM9?  ( Dualboot cm7 and cm9 for htc desire z ) 
我希望能够从CM7到CM9切换到CM9,反之亦然,而不会每次丢失我的应用和数据。是否有可能制作双泡? ...

1  Android和其他操作系统同时[重复]  ( Android and other os at the same time ) 
这个问题已经在这里有一个答案: 关闭 8年前。 可能的重复: 我可以在我的非Android设备上安装Android吗?< / a> 是否可以拥有Android 2.2以及在我的智能手机上说W...

1  Bricked Onda V919 64GB(没有3G)  ( Bricked onda v919 64gb without 3g ) 
我目前从中国买了一台平板电脑澳大略的V919。当我收到它时,我意识到已安装的Android没有包含Google Play,并且在阅读它之后,我发现您可以用后来的ROM进行升级来解决这个问题。我跟着一个指南来做这件事,但在完成平板电脑后不会开始。 在启动时,我输入我认为的是EFI控制台。 要修复此功能,我试图从备份映...

2  双引导Windows 8平板电脑/智能手机与Android操作系统?  ( Dual booting a windows 8 tablet smartphone with android os ) 
是可能的,并确实是双启动Windows 8平板电脑/智能手机的实用性,果冻豆4.0 +?这样做有严重的限制或限制吗?如果这是不可实现的,那么在这些设备上运行蓝色何时何地呢?就是以相同的方式运行Bluestacks可以在Windows PC上运行Android应用程序作为模拟器(如果我是正确的) ...

2  如何在华硕EEE Pad滑块上双启动Ubuntu(SL101)?  ( How to dual boot ubuntu on asus eee pad slider sl101 ) 
我能够在我的华硕滑块SL101上运行Ubuntu在Chroot环境中(原始TF101华硕EEE焊盘变压器的堂兄)。 但是,由于各种原因,我希望能够突然启动到Ubuntu或Android。 我目前正在运行Cyanogenmod 9 IC,并将设备扎根。 要注意的另一件事是,过去使用nvflash的任何尝试...似乎失败...

4  Android Galaxy Note 10.1上的双启动Linux  ( Dual booting linux on android galaxy note 10 1 ) 
我有三星Galaxy Note 10.1,并希望能够运行Linux发行版。我怀疑这是可以实现的,人们已经完成了这一点。我想知道的是:等细节 当我启动平板电脑时,我可以选择我想要运行的操作系统吗?我不想同时运行。 哪个Linux发行版将给我最好的性能? 我几乎想要保留我的笔,注意和游戏的Android功能(...

8  您是否必须root root一个Android设备安装Ubuntu?  ( Do you have to root an android device to install ubuntu ) 
正如标题所说的那样。为了安装另一个ARM基于ARM的操作系统或双启动手机,您是否必须具有root访问权限? 我目前正在使用摩托罗拉atrix,不确定是否重要。 ...

125  我可以在我的非Android设备上安装Android吗?  ( Can i install android on my non android device ) 
许多人想要尝试/使用Android而不购买新的Android手机。如何在运行诺基亚Symbian,Maemo或MeeGo的当前手机或设备上安装Android; Microsoft Windows Mobile或Windows Phone 7/8/10; Apple iOS(iPhone); RIM的BlackBerr...

4  是否可以同时在手机上运行两个Android实例?  ( Is it possible to run two instances of android on your phone at the same time ) 
抱歉,如果我滥用"实例" 。我的意思是以下内容:我想运行主操作系统。主操作系统所做的'唯一的事情是让我在OS 1,OS 2,OS 3等之间启动/杀戮/切换。我希望应用程序相信他们在正常的Android手机上运行。因此,如果我在两个操作系统上运行应用程序x,即1和2.我希望app x的每个实例相信它在不同的计算机上运行...




© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有