arnoldthebat / chromiumos

Stub Repo for chromiumos issues
https://arnoldthebat.co.uk/
Other
266 stars 34 forks source link

Chrome OS w/ Android + Vulkan works on regular PC #153

Open XaeroVincent opened 6 years ago

XaeroVincent commented 6 years ago

Has anyone here tried to run the official Chrome OS images work, rather than Chromium OS, which lacks Android, Google Assistant, and Flash support?

It appears with some fiddling around, it's possible to get the genuine Chrome OS images to work on an ordinary Windows laptop. Mine is a Dell Inspiron 15 5000 series with a touch screen. At first, audio and wireless didn't work but after copying over the firmware directory from Arnoldthebat's Special Build and removing a kernel module blacklist, everything started working. 3D acceleration, sound, touch screen, web cam, touch pad, Android, etc. all work and installed to the hard drive.

It's not perfect, however. For some odd reason it takes like 3 minutes or so to login with my user account at the login screen, whereas on Chromium OS, I log in instantly. Once booted, everything is fine, though. Furthermore, laptop suspend/sleep (S3 power state) doesn't function properly (probably due to the older 4.4 kernel with newer ones having better laptop ACPI support), so I made sure to turn that off in the ChromeOS power settings. Lastly, automatic updates won't work. It sees the Omaha update server but the logs are showing that it refuses to connect because the update tool doesn't detect valid Chromebook BIOS firmware and/or hardware security module.

Out of curiosity, I replaced the 4.4.86 kernel with Arnoldthebat's Special Build 4.14 kernel and March 2nd 4.4.118 daily build kernel with the ChromeOS image and it booted fine and showed up in uname, however, the Android container wouldn't start but some of the ARC++ container mount points were still be made via df. ARC++ error messages in /var/log showed permission denied and file not found messages when using the other kernels. So it appears there is some special code compiled into with the official ChromeOS kernels that aren't included with the FOSS Chromium kernel sources?

Anyway, here is a screenshot:

rojter-tech commented 6 years ago

@h20ray Have you tried to "sudo su" first?

modaifallah commented 6 years ago

@penguinfamily I want to dual boot with mac on same SSD, any way to do it?

rojter-tech commented 6 years ago

@modaifallah, if there is a way to implement mac booting with grub 2.0 it is just adding some extra lines in grub.cfg in the EFI partition. It is partition 12. But I don't know the details of that.

You will need to create at least one new partition that you are referring to through its UUID (or partition number).

h20ray commented 6 years ago

@penguinfamily I mean.. from your image (from mega) to hard disk..

modaifallah commented 6 years ago

@penguinfamily okay just downloaded and flashed to USB and wow everything works, and touchscreen is amazing. Android apps work flawlessly but your image has about 3 GB data partition and I don't know how to extend in my USB. I have infrequent screen tears and system hangs for seconds then it works again. How can I disable my Nvidia 960m? How to install to hard disk without wiping? Thanks for everything!

h20ray commented 6 years ago

@penguinfamily thanks for the img file. everything works really well inside my Lenovo thinkpad yoga laptop. I have installed in my SSD. touchscreen runs very well. screenshot 2018-06-04 at 01 44 32-01

modaifallah commented 6 years ago

@h20ray do you have discrete graphics? I have tears and hangs and slow video playback but probably due to installation on USB not internal, though it’s a fast USB 3. @penguinfamily I have SSD with mac and HDD with Windows, can I put it in any of them without wiping the disk? The SSD can’t be erased as it has a hackintosh mac and I want to keep the hackintosh work, the other HDD has many games including GTA V 60 GB 😂😂 so I can’t sacrifice any of those.

Also I tried “dual-boot-install.sh -d /dev/sda” and after it copied files, it said version 64 isn’t supported and didn’t install any bootloader. Can you help install a bootloader at least?

modaifallah commented 6 years ago

screenshot 2018-06-04 at 8 26 06 am

wokawoka commented 6 years ago

@h20ray I'm very interested in your report... Could you please specify which thinkpad yoga you have (since there are different generations, see https://en.wikipedia.org/wiki/ThinkPad_Yoga )

EDIT: from the cpu listed on your screenshot it seems that you may be using the first Yoga 14, may I know if you are using the integrated HD Graphics 4400 or if has the discreet NVIDIA GeForce 840M? Many thanks

volram commented 6 years ago

Any sucess updating to Chrome OS 66?

rojter-tech commented 6 years ago

@volram I am working on building a pure skl and broadwell image with the latest update. For the moment I need to solve how to host the environment for the repo sync and compiling. I have quite limited resources to play with and VM solutions is a big no.

Thisuu commented 6 years ago

@volram I've been running 66th on a braswell based intel NUC for a few days now. screenshot 2018-06-08 at 10 43 42 am

volram commented 6 years ago

Thanks @Thisuu. What image did you used (see my post 8 days ago)?

Thisuu commented 6 years ago

@volram I used kefka image,which is the most recent one for braswell platform. Tried the pixelbook image first but it had some errors and wasn't able to login ( "email or password cannot be verified" to be exact,as @lucabelluccini mentioned earlier ). Then tried with kefka image and it was unable to login for whatever reason ( my android phone gets google login notification but there's an endless loop afterwards.) What worked for me was i had to first log into the chromium install, Replace the content in root partition and also copy kernel modules for the chromium kernel. Reboot with your chromium kernel & not the ChromeOS kernel, that way it allowed me to login. do the initial setup process and login. Then again reboot and this time with the ChromeOS kernel, enter email etc and it logs in.

Thisuu commented 6 years ago

@volram Also, you're booting with an official ChromeOS kernel,right? You won't be able to run android apps if you're on the Chromium kernel. And make sure selinux policy is set to permissive.

volram commented 6 years ago

For me is not necessary the original Chrome OS kernel (the special one from Arnold the Bat work just fine in the Caroline image). But I did try your strategy and it not worked. Chrome OS 66 with Play Store not work in my Macbook Pro 13.

lucabelluccini commented 6 years ago

@Thisuu I have a Udoo X86 board (https://shop.udoo.org/x86/udoo-x86-advanced-plus.html) and I've been running ChromeOS from a recovery image. Android apps are working but slow as hell (e.g. Google Play hang up several times before starting properly). I thought it could be linked to a disk bottleneck, as I was on a USB3 stick. I tried to flash it to the m2 32GB SSD, but the issues persisted.

I think I have better focus on the right recovery image and pick the correct kernel.

So you suggest:

Thisuu commented 6 years ago

@volram mind posting the output of 'uname -a'? Kernel from the chromium will actually work fine if you are not using android apps. but you'll need to boot with a ChromeOS kernel for android container to work.

You gotta do something like, sudo losetup -fP your_ChromeOS_image.bin

mkdir efi-image mkdir efi-local

sudo mount /dev/loop1p12 efi-image/ -o loop,ro sudo mount -t vfat /dev/sda12 efi-local/

sudo cp -avr efi-image/syslinux/vmlinuz.B efi-local/syslinux/vmlinuz.B

Also for this to work, you need to keep the orginial /lib/modules/x.xx.x-xxx(varies with image) directory from the official ChromeOS image.

Thisuu commented 6 years ago

@lucabelluccini Your Udoo board seems so identical to my NUC. we even got the same processor, Celeron N3160 :D I used the special build (chromium 65). It shouldn't cause much difference since i only used the /lib/firmware/ & /lib/modules/4.14.13/ directories from the chromium image.

volram commented 6 years ago

Linux localhost 4.4.79 #7 SMP PREEMPT Sat Nov 11 14:07:20 GMT 2017 x86_64 Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz GenuineIntel GNU/Linux Arnold the Bat Special v. 62. Android Apps works fine with this kernel.

lucabelluccini commented 6 years ago

@Thisuu I had huge lags at the time I tried. Is it the same for you?

Thisuu commented 6 years ago

@lucabelluccini I didn't have a single lag with kefka image. I tried swapping its 3.18 kernel with the Pixelbook's 4.4.118 kernel and It's still working fine.

volram commented 6 years ago

With Cloudready kernel i get black screen. Someone know the reason?

lucabelluccini commented 6 years ago

@Thisuu I've tried to:

Can I reach you via email? I would like to make a reproducible step by step guide for our kind of boards.

https://gist.github.com/lucabelluccini/db8b92219d9b3c7760931680311c1d9d

Thisuu commented 6 years ago

@lucabelluccini The gist here was since there is ROOT-A & ROOT-B partitions(respectively in sda3 and sda5), If you're using sda5 for ChromeOS then you should've first configured your sign in process from that partition,not sda3. So I guess you will be better off doing a Powerwash first and then do the initialize process from chromium installation in sda5. Also, DON'T login from the other root partition(sda3 in this case) until you can login through the ChromeOS.

Can I reach you via email?

Sure,I guess it's in my profile.

modaifallah commented 6 years ago

@PaperInks Man 0.0 It really works ! \ Any idea how to multiboot?

Better than all other options

Volram1 commented 6 years ago

The people with Macbook Pro (Broadcom wireless) will face a curious problem with wi-fi in FydeOS. The solution is just to copy 2 files from the modprobe folder (etc/modprobe.d) from Cloudready (wl.conf and broadcom.conf) and voilá: the wi-fi will work flawless. EDIT: To be exact, the file broadcom.conf for works should have this info inside: blacklist b43 blacklist b43legacy blacklist ssb blacklist bcm43xx blacklist brcm80211 blacklist brcmfmac blacklist brcmsmac blacklist bcma Obs: this is useful for anyone that has broadcom and need the WL module in any Linux distro (with 4.1x kernel). @PaperInks could you please inform the folks of FydeOS of this trick? Thanks.

suoko commented 6 years ago

Fydeos is quite nice and I confirm playstore is there and it works. But it misses the chrome login offered by arnold builds and touchpad must be adjusted. The only feature i didnt find is the linux apps install. There is no apt-get. How can I test that?

Volram1 commented 6 years ago

LINUX KERNEL 4.14 (Intel and AMD cpu patch hang and freeze) To disable the intel patch just add this to your kernel boot commands (image A or B or edit Grub.cfg in partition 12): nopti

AravindhStanley commented 6 years ago

@suoko can you give me the link for fyde os, I just couldnt seem to find a working link. And as for Playstore support, is it working fine? Like installation of apps and stuff.

I have a spare windows 8.1 tablet with z3735 baytrail lying around, so planning to try it out.

AravindhStanley commented 6 years ago

@Volram1 etc/modprobe.d from Cloudready doesn't have broadcom.conf file. Instead, it has broadcom-blacklist.conf.

So if you have the files, can you zip it and upload somewhere, preferably gdrive

suoko commented 6 years ago

https://fydeos.com/download/ @AravindhStanley

AravindhStanley commented 6 years ago

OK so booted up the OS using USB, but for some odd reason, the on screen keyboard won't come up when I click the text field. Even manually touching the keyboard icon does nothing. Googling doesn't seem to help much. I went into the OS using guest mode, here the keyboard comes up, but the keystrokes are not typed in the text field.

Volram1 commented 6 years ago

@AravindhStanley, this file should work; I mistake the name with one from Linux Mint. Moreover, if you get trouble with videos playback in youtube, you have to take another measure: add this command to grub command line: kernel.nmi_watchdog=0 This command disable some power management in the broadcom wirelles and enable best performance (and avoid crash and randon reboots) albeit the temp go up 5 or 10 celsius.

AravindhStanley commented 6 years ago

@Volram1 I managed to make wifi work. Now it works flawlessly. Have to figure out why on screen keyboard is not working? I have seen some users having the same issue even with the official Chrome OS, so it could very well be a bug in chrome os itself rather than with Fyde OS.

AravindhStanley commented 6 years ago

@Volram1 Also is there any way to take the playstore part from Fyde and integrate it with Cloud ready?

Volram1 commented 6 years ago

@AravindhStanley, for me the on screen keyboard works just fine (Im having trouble with wi-fi broadcom). And, I guess, it is possible to copy the files (container and others) from Fyde to Cloudready, but is really dificult; it is necessary some actions to enable the Play Store before using it.

AravindhStanley commented 6 years ago

@Volram1 can you upload your image somewhere like gdrive, I'll try that out and see if it works for me. And as for WiFi, the default ones work well with my Macbook air and Toshiba encore 2, no hacks.

Volram1 commented 6 years ago

@AravindhStanley, mine is the very same image downloaded from Fyde. You could try to put the Caroline image (chromebook pro) in sda5 as per tutorials and see what is the result.

AravindhStanley commented 6 years ago

@Volram1 @PaperInks my biggest issue is onscreen keyboard not working during login page.if you guys have any idea of how to fix it, please let me know. It's driving me nuts.

BTW play store works fine on fyde os out of the box

Volram1 commented 6 years ago

@AravindhStanley, did you enable the on screen keyboard in the acessibility menu? For me, it is enough to select there the option and then the keyboard jump in the screen... And I finally got a solution for the Broadcom wireless in Macbook Pro (bcm 4360). It is in grub command line (linux kernel). It is necessary to force the machine as a linux pc. The command is: acpi_osi=Linux. And Good bye Broadcom internet drops.

AravindhStanley commented 6 years ago

@volram1 Yeah man, i tried everything. Once logged in, keyboard pops up when I select a text field, but can't seem to get it to work in login page.

One of the moderator from cloud ready told me that it is already fixed in dev v65, so have to wait till then I guess.

Volram1 commented 6 years ago

@AravindhStanley, Caroline image is version 66. Just put the content of root A in sda5 and it will works! Download from here: https://cros-updates-serving.appspot.com/

AravindhStanley commented 6 years ago

Okay. That would require a Linux environment right? Can't don't it with my Mac I guess.

Volram1 commented 6 years ago

Yep. Linux Mint usb. Follow the tutorial of Allanin above (7 apr).

AravindhStanley commented 6 years ago

@PaperInks Do you know when the new build of Fyde OS will be released.

@Volram1 When I select the Root A partition, my ubuntu machine throws an error saying it cant mount due to missing codeblocks. Seems too complicated. If you have the modified image, it'll be useful. :)

BTW, Caroline has a different hardware, I have a baytrail z3735, will it be compatible?

Volram1 commented 6 years ago

@AravindhStanley, you have to format the partition sda5; then using the terminal use the command mkfs.ext4 /dev/sda5; then you have to mount it using mount /dev/sda5 /home/local (if the folder don exist, make it with mkdir /home/local); then use the losetup as per Allanin tut above (losetup -fP ...); copy the image to sda 5 (cp -av /home/image/* /home/local)... And finally copy the folders modules and firmware.

AravindhStanley commented 6 years ago

@volram1 I followed your steps, but it's not booting up

Volram1 commented 6 years ago

Try another image with firmware from arnold or cloudready.

AravindhStanley commented 6 years ago

@volram1 it may totally be my mistake, I just couldn't seem to get it to work.