How to upgrade mesa in android-x86 branch ?

1,190 views
Skip to first unread message

Lovereighty Lau

unread,
Jan 30, 2018, 6:23:37 AM1/30/18
to Android-x86
I have built android-x86 marshmallow but found blank display problem when running a PoC Unity3d inside vmware (same program runs fine in android-x86 with a low-end PC).  I see the mesa version of the branch is not latest, so I download from mesa the latest version, but obviously it cannot be simply merged into android-x86. (I have tried but too many fails) 
So I would like to ask : Is there a standard way to merge mesa source into android-x86 branch ?  On the other hand, can I merge the mesa part (external/mesa and kernel ? ) from newer branch (e.g. Oreo) into Marshmallow ? Thanks in advance.

Mauro Rossi

unread,
Feb 1, 2018, 12:18:38 AM2/1/18
to Android-x86
Hi,
It is possible, but easier in newer Android stable version,
please have a look at following link to build nougat-x86,
or download esperimental iso

https://drive.google.com/folderview?id=0B_OFHiIqgpSFMlk4bkhaMnAwbDA

Instructions File: build_with_drm_composer.txt It helps to overcome build errore
M.

Lovereighty Lau

unread,
Feb 1, 2018, 9:22:33 AM2/1/18
to Android-x86
Hi Mauro,

Thanks for the info, particularly the instruction file stating what files are to be replaced.  Since the latest mesa version is 17.3.3 whereas it is 17.1.10 in x86-Nougat  (which has the same problem as in Marshmallow), I think I should try the new mesa.

Harkaman

unread,
Feb 1, 2018, 11:55:48 AM2/1/18
to Android-x86
when i run this command:
cd ~/nougat-x86_development/external/libdrm/
git remote add maurossi https://github.com/maurossi/libdrm
git fetch maurossi 2.4.89_android-x86
git checkout FETCH_HEAD

It asks user name and password from github. Then i add my username and pass. but it fails. How can I fix this issue? other command run fine. I m building android-x86 N.

Mauro Rossi

unread,
Feb 1, 2018, 12:54:01 PM2/1/18
to Android-x86


Il giorno giovedì 1 febbraio 2018 17:55:48 UTC+1, Harkaman ha scritto:
when i run this command:
cd ~/nougat-x86_development/external/libdrm/
git remote add maurossi https://github.com/maurossi/libdrm
git fetch maurossi 2.4.89_android-x86
git checkout FETCH_HEAD

It asks user name and password from github. Then i add my username and pass. but it fails. How can I fix this issue? other command run fine. I m building android-x86 N.

There was a type on that command, the repo has a different name, but I wrote it wrong

git remote add maurossi https://github.com/maurossi/drm
Message has been deleted
Message has been deleted
Message has been deleted

Harkaman

unread,
Feb 8, 2018, 11:48:14 AM2/8/18
to Android-x86
@Mauro Rossi

Which branch mesa, kernel your recommend to build with nougat-x86?
I built with both mesa 17.3.3_oreo-x86/17.4.0devel_swrast_w52, drm 2.4.89_android-x86, drm_hwcomposer, llvm60, device_generic_common nougat-x86_kernel-4.15 and kernel-4.15. I changed as you said  external/mesa/Android.mk (to libLLVM60, iHAVE_LLVM variable accordingly set to 0x0600 ). Build successfully, it stucks at Android-x86 booting screen.

Please guide me.

Mauro Rossi

unread,
Feb 8, 2018, 1:27:52 PM2/8/18
to Android-x86
With mesa 17.3 and later used in nougat-x86 build, you'll need to checkout x86 oreo-x86 branch for project external/drm_gralloc

Please provide your system specs
Mauro

Harkaman

unread,
Feb 8, 2018, 2:11:04 PM2/8/18
to Android-x86
OS Name Microsoft Windows 10 Home
Version 10.0.16299 Build 16299
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name DESKTOP-MC7GJK1
System Manufacturer HP
System Model HP Notebook
System Type x64-based PC
System SKU X3L16EA#UUW
Processor Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz, 2000 Mhz, 2 Core(s), 4 Logical Processor(s)
BIOS Version/Date Insyde F.40, 10/31/2017
SMBIOS Version 2.8
Embedded Controller Version 63.49
BIOS Mode UEFI
BaseBoard Manufacturer HP
BaseBoard Model Not Available
BaseBoard Name Base Board
Platform Role Mobile
Secure Boot State Off
PCR7 Configuration Elevation Required to View
Windows Directory C:\Windows
System Directory C:\Windows\system32
Boot Device \Device\HarddiskVolume2
Locale United States
Hardware Abstraction Layer Version = "10.0.16299.192"
User Name DESKTOP-MC7GJK1\Harkaman Shivakoti
Time Zone W. Europe Standard Time
Installed Physical Memory (RAM) 6.00 GB
Total Physical Memory 5.91 GB
Available Physical Memory 2.26 GB
Total Virtual Memory 6.85 GB
Available Virtual Memory 2.65 GB
Page File Space 960 MB
Page File C:\pagefile.sys
Device Encryption Support Elevation Required to View
Hyper-V - VM Monitor Mode Extensions Yes
Hyper-V - Second Level Address Translation Extensions Yes
Hyper-V - Virtualization Enabled in Firmware Yes
Hyper-V - Data Execution Protection Yes

This is the one(laptop) I normally use for test.
Reply all
Reply to author
Forward
0 new messages