maurossi / linux

android-x86 kernels
Other
57 stars 28 forks source link

Emergency Remount R/O #7

Closed dada-ji closed 7 years ago

dada-ji commented 7 years ago

infinite-reboot when I use kernel in this repo, can't boot success.

maurossi commented 7 years ago

Hi, if it happens with all kernel versions, it could be a problem related to the use of virtio block device.

What happens with Live Boot (tmpfs)? What happens if you install on a non virtualization-aware disk?

Mauro

dada-ji commented 7 years ago

Hi, I can boot success use origin nougat kernel. Yes, I used virtio block device. but when I remove the device, boot form iso file, nothing change, still auto reboot. When I select "debug mode" menu entry, can boot to command line terminal. Hope your reply, thank you very much.

dada

maurossi commented 7 years ago

Hi Dada,

Could you please provide me information about your HW setup and which kernel branch you tried? Please also info about any other (even if minimal) changes in android-x86 projects and information about the type of partition table you used Thanks

In my periodic tests I could always boot from "Intel CPU & Intel GPU" (LiveCD) and also with virtualbox swrast llvmpipe (both LiveCD and installed on virtual hdd), even with the latest kernel-4.13rc5 but I never use GPT partitions

Please check these two posts and provide feedback, then we will solve your issues. Mauro

https://groups.google.com/forum/#!searchin/android-x86/sysrq$3A$20SysRQ$20$3A$20Emergency$20Remount$20R$2FO|sort:date/android-x86/j3-EIQvbnO8/sL00cYB-AgAJ

https://groups.google.com/forum/#!msg/android-x86/ByRiRyX4-8E/NaRAMEslAgAJ

dada-ji commented 7 years ago

Hi Mauro, My HW: CPU: Intel(R) Xeon(R) CPU E3-1230 v5 @ 3.40GHz Motherboard: MSI MS-7A43/E3 KRAIT GAMING V5 (MS-7A43), BIOS 1.10 07/24/2016 Mem: Kingstone DDR4 2400 8GB x2 GPU: Nvidia GeForce GTX 1060 3GB

kernel branch: I tried two: 4.13RC5 and 4.12, all branch is same result, can't boot success.

boot from "Intel CPU & Intel GPU" (USB flash drive), fail boot from QEMU-KVM cdrom, fail boot from installed virtio HDD, fail add androidboot.selinux=permissive to grub command line, fail grub-cmd

When I boot to debug mode, dmesg show something maybe help: debug-mode-exit-fail

dada

dada-ji commented 7 years ago

Hi Mauro, I found what's wrong, I used version 6.0.1 of android x86! I tried add selinux=0 to grub cmd line, boot success! So, it's a foo mistake. I have two directory of android x86, one is Nougat, one is Marshmallow. Pardon me for interrupting you. I'll try to compile nougat with your kernel.

dada

maurossi commented 7 years ago

2017-08-20 12:34 GMT+02:00 dada-ji notifications@github.com:

Hi Mauro, I found what's wrong, I used version 6.0.1 of android x86! I tried add selinux=0 to grub cmd line, boot success! So, it's a foo mistake. I have two directory of android x86, one is Nougat, one is Marshmallow. Pardon me for interrupting you. I'll try to compile nougat with your kernel.

dada

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maurossi/linux/issues/7#issuecomment-323576756, or mute the thread https://github.com/notifications/unsubscribe-auth/AH9VlP9kbGftIFZFmZtnCdTnAYqb00EXks5saAukgaJpZM4O7H8s .

No problem Have a nice day M.

dada-ji commented 7 years ago

Hi Mauro, I merge the kernel 4.13rc5 into nougat 7.1.2, then make iso to use, it can boot success(use GTX960). 1.Can't use GTX1060 card, stay at command line, log info: nouveau.txt dmesg.txt

2.Ethernet can't work ifconfig result ok, ip address: 192.168.0.220, netmask: 255.255.255.0 gateway: 192.168.0.1 ping 192.168.0.1 result: Network is unreachable

dada

sfumato77 commented 7 years ago

apply patch Povilas Android-x86 source

cd system/netd git am 0001-HACK-netd-disable-output-interface-result-validation.patch

0001-HACK-netd-disable-output-interface-result-validation.patch.txt

maurossi commented 7 years ago

Hi dada,

for the GTX1060 problem, please post the /data/log.txt in debug mode live session in android-x86 forum (there is a nouveau thread)

I suspect that NV_PASCAL architecture (0x130) needs to be added to gralloc_drm_nouveau.c but I'll give it a proper look this evening, now I am at work and can't dedicate much time. Then another point in my checklist is to see if some special firmware may be needed, dada may I kindly ask if you could also post a dmesg output of Linux boot (in android-x86 nouveau thread)?

I can also confirm that with latest kernels povilas patch is needed and for 4.12 and later the following changes in project platform/art are necessary to cope with changes in mm, but they have not yet been backported to 7.1.2 branch

https://android.googlesource.com/platform/art/+/6c63f863f9dbf734732ff837c1e772b3482e59ff%5E%21/

Closing the Remount R/O issue on github, for any android-x86 build issue I suggest to use android-x86 forum. Mauro

Alpha-Itachi commented 5 years ago

Hey guys how are you ? I hope you are doing great. You are my only hope to solve my problem. I have the same exact problem ( emergency remount after detecting the system and finding it) . The point is that Im on Phoenix OS (based on android x86) So I dont know what to do. Can you sum the solution up to me. And can you have a look on Phoenix for me. And translate the solutions to match the technical details of Phoenix (i.e. the debug boot in Phoenix) You really are my biggest hope after much searching. I appreciate any help. I signed up here just for this. Thank you ❤

maurossi commented 5 years ago

Hi, the issue was closed, but also it was not a problem of linux experimental repo for android-x86,

please check the solution, mentioned in the comments if Phoenix OS is using selinux, honestly I do not know what to do, you could just disable it like in android-x86.

If the problem you are referring to is one of the netd issue or GTX 1060 support, they do not even belong to linux repo, but solutions are also listed in the comments and they are long gone (meaning resolved in android-x86 codebase) I hope this helps

Mauro

Alpha-Itachi commented 5 years ago

Ok. How to disable it ?! And if its about gtx 1060 max q, where to go ?!

maurossi commented 5 years ago

Please look at the second image in this Closed issue.

GTX 1060 has nothing to do with Remount R/O, but you have no intention to read, obviously, anyway that it has been already resolved in android-x86 code, so please use the search in android-x86 forum.

Please you have to understand that Closed issues are not for chatting.

Mauro