Surface Pro 3 Test Build - Android x86_64 with Kernel Patches

664 views
Skip to first unread message

Matt Parnell

unread,
Jun 2, 2015, 1:03:52 AM6/2/15
to andro...@googlegroups.com
Cross posting from my post at XDA. There's a screenshot of the device there:

http://forum.xda-developers.com/windows-8-rt/microsoft-surface/01-jun-2015-android-x86-lollipop-5-1-1-t3125035/post61111177#post61111177

The 32 bit only, as well as the 64 kernel/32 hybrid builds didn't work properly - 32 only wouldn't boot for me (YMMV?), and 32/64 would boot with audio but had issues too.

I could very much use all the help and assistance you can provide in getting this device working. I'm not super up on the various tweaks possible and required within Android, If I'm not mistaken, the project leader is reviewing the kernel patches, so hopefully that makes it into the official common kernel sooner than later, too.

What Works:
  • Battery and power status
  • Both Cameras
  • Power Button (only if you hold it down to shutdown; screen sleep does not work)
  • Type cover and mouse
  • Touch
  • Volume buttons
  • Video (DPI is not set to native, currently)

Not Working/Known Issues:
  • Random crashes
  • No OpenGL
  • Screen sleep/hibernate (works in Linux, I think)
  • Disconnecting the keyboard crashes the GUI, but it restarts
  • Rotation does not work, though I believe the rotation sensor should work
  • This is not ready to install, and the installer doesn't work. DO NOT USE THE INSTALLER
  • Sound does not work in this build; it may be a kernel config issue or a 64 bit issue as it worked on past kernels/builds (32 bit)
Image:
https://mega.co.nz/#!tUkVTKrJ!a5Ex9wAEWdnRuRLi5g-kB3AIFhHLdVyilccSlp84ndw

rbg

unread,
Jun 2, 2015, 9:27:01 PM6/2/15
to andro...@googlegroups.com
think you'll find kernel 4.1 already has all the hooks for surface 3......try ubuntu / ubuntu touch or some other
distribution with linux 4.1 kernel to see if it works yet on that kernel...

android-x86 KitKat is at kernel 4.0 / lollipop still at kernel 3.10.xx

Matt Parnell

unread,
Jun 2, 2015, 9:30:07 PM6/2/15
to andro...@googlegroups.com
I thought 4.1 was only pulling in the battery patches so far...got a link on that information?

Lollipop officially is at 3.x, but the repo for Android-x86 already has an android-4.0 branch.

--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/pIM5-XOOUEo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.

rbg

unread,
Jun 3, 2015, 2:38:53 AM6/3/15
to andro...@googlegroups.com
>I thought 4.1 was only pulling in the battery patches so far...got a link on that information?

   you can google it..

>Lollipop officially is at 3.x, but the repo for Android-x86 already has an android-4.0 branch.

   I know that but it's unofficial / unreleased, but appears you got it all under control and making good progress..
   built a x86_64 week or two ago again(last time I had tried it never would complete) and it was not good....seemed like
   no hardware acceleration, plus from git they've moved mesa up to 10.7-dev....
   be nice if you contribute back your patches for others...good luck

Mauro Rossi

unread,
Jun 3, 2015, 8:42:43 AM6/3/15
to andro...@googlegroups.com
Hi,
If you want to try a couple of ISO images with experimental 4.1.0rc6 kernel rebase WIP and embedded opengl test apps, here they are:


kitkat-x86
with mesa 10.5.6 (git rebase on top of freedesktop 10.5 branch)

https://drive.google.com/file/d/0B_OFHiIqgpSFUC0xNWxNanpPMlE/view?usp=sharing



lollipop-x86 with mesa 10.7.0devel (git rebase on top of freedesktop master branch)

https://drive.google.com/file/d/0B_OFHiIqgpSFNWItYlFWdGEtVnM/view?usp=sharing


NOTE: VERY EXPERIMENTAL BUILDS - android logger is not working, neither in kitkat-x86 nor in lollipop-x86.
NOTE2: kernel is "panicing" on AMD cpus, try only on INTEL cpus (Core Duo or better).

I've not tried to build lollipop x86_64 target yet, in case you want to try:    https://github.com/maurossi/linux/commits/android-4.1rc6_rebase

Mauro

PS: even if not related to this thread, use of nouveau BO coherent was attempted in both builds, while radeonsi patches were applied in lollipop build, without apparent results at this point.
On Intel GPUs I saw no regression, but I have not performed extensive tests yet.

Matt Parnell

unread,
Jun 3, 2015, 10:08:16 AM6/3/15
to andro...@googlegroups.com
Thanks for sharing, I'll have to take a look - as far as the Surface Pro 3 is concerned, these may work a little better, meaning I'd want to update my mesa and kernel.

I'll try these once I get a free moment.

--

Clive Makamara

unread,
Jun 9, 2015, 8:51:06 PM6/9/15
to andro...@googlegroups.com
Thank you for sharing, looking forward to your future builds - I'd lost hope on android x86 for surface pro 3 when I couldn't get wifi or bluetooth working.

Matt Parnell

unread,
Jun 18, 2015, 10:45:29 AM6/18/15
to andro...@googlegroups.com
I have not yet tried your builds, but I did clone your kernel repo and patch it (it does need 3 of the patches to work - please see:

https://github.com/shvr/fedora-surface-pro-3-kernel/blob/master/surface-pro-3-buttons.patch
https://github.com/shvr/fedora-surface-pro-3-kernel/blob/master/surface-pro-3-cameras.patch
https://github.com/shvr/fedora-surface-pro-3-kernel/blob/master/typecover3-multitouch.patch

...The multitouch and keyboard patch, with the addition of the JP type cover breaks the kernel build though, so I had to remove it. That guy's repo seems most up to date as far as tweaking patches goes.

I get more crashes with 4.1, no audio, and no opengl, at least on x86_64 builds. I am unsure if it is something specific to my debian x86_64 build machine, or something else, but I am unable to get any 32 bit builds to boot on the Surface, grub just hangs. I can boot a 64 pure, as well as a 32/64 hybrid system (note that Android's UI won't start with the hybrid), so I am not sure what the problem is.

Another thing to consider is that audio won't work on these newer builds but does on the 3.18 and 3.19 kernel builds, and on the generic SP2 and other builds that are floating around. I'm not sure if I need to tweak an mk file somewhere or if I'm doing something wrong, so any advice would be appreciated.


Here's a new 4.0 build:
https://mega.co.nz/#!RUV3gAiJ!nKnKTPS94UtMNAGcrvbeAjoh8FntJ-WqHZF2mw2J36s

Here's my 4.1rc8 build (very broken, broken wifi):
https://mega.co.nz/#!UIcSVarR!Mb6I1oCvE5IfwzfCpNWSHVbheDqn1DbxoE9xUqbmBKo


Other than audio, it is interesting that disconnecting and then reconnecting the type cover causes the ui to crash and restart on all builds. I'm not sure what's going on there. I notice in the dmesg that some unrecognized devices are part of the type cover, I believe these to be the accelerometer, but so far there is no linux driver for it.

Matt Parnell

unread,
Jun 18, 2015, 4:19:21 PM6/18/15
to andro...@googlegroups.com
Correction: seems I built with the wrong manifest, disgregard the 4.1 build please.

Matt Parnell

unread,
Jun 18, 2015, 4:20:49 PM6/18/15
to andro...@googlegroups.com
Bah, nevermind. I was wrong.
Reply all
Reply to author
Forward
0 new messages