CyanogenMod 14.0 x86 codebase

974 views
Skip to first unread message

Jaap Jan Meijer

unread,
Oct 13, 2016, 6:17:56 AM10/13/16
to Android-x86
Hi,

Merging of CM 14.0 and Android-x86 is nearing completion. You can get the code as following:

git protocol
repo init -u git://git.osdn.jp/gitroot/android-x86/manifest -b nougat-x86 -m cm.xml

http protocol
repo init -u http://scm.osdn.jp/gitroot/android-x86/manifest -b nougat-x86 -m cm.xml



Some known issues and quick fixes:

Kernel build error
Remove vendor/cm/build/core/tasks/kernel.mk

ICMWeatherManager.NoOp() undefined
cd vendor/cmsdk
git revert 009662e24e9c47cd293e05421eabd53a6d163cdc

Build errors MESA + libdrm
Replace graphics components with Mauro's great work:

external/mesa
https://github.com/maurossi/mesa/commits/12.1.0devel_nougat-x86_06-oct-2016

external/drm_gralloc


Out of memory tips
Add to device/generic/common/Boardconfig.mk (or some more appropriate location):
ANDROID_JACK_VM_ARGS := -Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m

Disable Ninja to save some memory (but will slow down incremental builds), also add:
USE_NINJA := false

Stop the Jack server before a new (incremental) build:
jack-admin stop-server


You should now be able to get a bootable iso_img but camera and Bluetooth still need work.

Please keep the discussion on topic.

Martin

unread,
Oct 13, 2016, 1:20:19 PM10/13/16
to Android-x86
Yes, I've fetched Mauro's versions.
 
In file included from external/mesa/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp:38:
In file included from external/llvm/include/llvm/IR/Module.h:22:
In file included from external/llvm/include/llvm/IR/Function.h:23:
In file included from external/llvm/include/llvm/IR/Argument.h:19:
external/llvm/include/llvm/IR/Attributes.h:68:14: fatal error: 'llvm/IR/Attributes.inc' file not found
    #include "llvm/IR/Attributes.inc"
             ^
target  C: libmesa_gallium <= external/mesa/src/gallium/auxiliary/draw/draw_gs.c
1 error generated.
build/core/binary.mk:968: recipe for target '/home/rsa-key-20161007/cm14/out/target/product/android_x86/obj/STATIC_LIBRARIES/libmesa_gallium_intermediates/gallivm/lp_bld_debug.o' failed
make: *** [/home/rsa-key-20161007/cm14/out/target/product/android_x86/obj/STATIC_LIBRARIES/libmesa_gallium_intermediates/gallivm/lp_bld_debug.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from external/mesa/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp:62:
In file included from external/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:22:
In file included from external/llvm/include/llvm/IR/Module.h:22:
In file included from external/llvm/include/llvm/IR/Function.h:23:
In file included from external/llvm/include/llvm/IR/Argument.h:19:
external/llvm/include/llvm/IR/Attributes.h:68:14: fatal error: 'llvm/IR/Attributes.inc' file not found
    #include "llvm/IR/Attributes.inc"
             ^
1 error generated.
build/core/binary.mk:968: recipe for target '/home/rsa-key-20161007/cm14/out/target/product/android_x86/obj/STATIC_LIBRARIES/libmesa_gallium_intermediates/gallivm/lp_bld_misc.o' failed
make: *** [/home/rsa-key-20161007/cm14/out/target/product/android_x86/obj/STATIC_LIBRARIES/libmesa_gallium_intermediates/gallivm/lp_bld_misc.o] Error 1
1 warning generated.
make: *** wait: No child processes.  Stop.
#### make failed to build some targets (01:32:39 (hh:mm:ss)) ####
 
Syncing doesn't help.

Martin

unread,
Oct 13, 2016, 2:38:23 PM10/13/16
to Android-x86
Nevermind, I forgot to apply few patches.

fguy

unread,
Oct 14, 2016, 4:55:32 AM10/14/16
to Android-x86
Finally it turned out to build CM14 x32. Opengapps (pico) integration leads to errors in them.



четверг, 13 октября 2016 г., 13:17:56 UTC+3 пользователь JJ Meijer написал:
Kernel build error
Remove vendor/cm/build/core/tasks/kernel.mk
 
vendor/cm/build/tasks/kernel.mk


fguy

unread,
Oct 14, 2016, 4:57:21 AM10/14/16
to Android-x86
To build Mesa I do so https://groups.google.com/d/msg/android-x86/kRsVzHYjObE/TfC4zkBCAgAJ

четверг, 13 октября 2016 г., 21:38:23 UTC+3 пользователь Martin написал:

Martin

unread,
Oct 14, 2016, 7:26:30 AM10/14/16
to Android-x86
Built successfully, but it's really unstable...After 5 mins of use - caught in infinity bootloop.
I've made my own gapps. Extracted apps from images and few makefiles. You can also add gapps after building... through adb.

After removing vendor/cm/build/tasks/kernel.mk I had to clean source:

cd kernel 
git clean -xfd 

If someone have error like this:

» fatal error: openssl/opensslv.h: No such file or directory «
 Install this:

sudo apt-get install libssl-dev 


 

youling 257

unread,
Oct 14, 2016, 10:27:32 AM10/14/16
to Android-x86
well,i like 32 bit,really need to test 

在 2016年10月14日星期五 UTC+8下午4:55:32,fguy写道:

Martin

unread,
Oct 14, 2016, 12:58:40 PM10/14/16
to Android-x86
btw. suspend causing infinite boot loop.

youling 257

unread,
Oct 14, 2016, 1:36:26 PM10/14/16
to Android-x86
12:56,i downloaded and boot it,Bluetooth、gravity sensor work ,vold mounted NTFS、ext4、f2fs partition,but when the second time,bootloop,now,i have to delete data every time for taste cm14 .

在 2016年10月15日星期六 UTC+8上午12:58:40,Martin写道:

youling 257

unread,
Oct 14, 2016, 2:30:18 PM10/14/16
to Android-x86
needn't every boot delete data,may be i delete /data/misc only once,may be i use magisk mount bootanimation.zip,now,every boot success,no problem,no bootloops

在 2016年10月15日星期六 UTC+8上午1:36:26,youling 257写道:

Jose Luis s

unread,
Oct 14, 2016, 4:06:15 PM10/14/16
to Android-x86
Thanks Martin.

Tested iso:

Baytrail tablet, touchscreen silead, GPS 3G modem.

Boot OK, damm fast, HW accelerated GUI (high dpi), No sound (but modules loaded), No BT (modules loaded), working and stable Wifi, Gravity sensors working, ambient, dimm screen not working, Battery management not working (AXP288 ADC need to be activated in config), GPS and 3G Modem not working.

Martin

unread,
Oct 14, 2016, 5:05:13 PM10/14/16
to Android-x86

Thanks Martin.

Tested iso:

Baytrail tablet, touchscreen silead, GPS 3G modem.

Boot OK, damm fast, HW accelerated GUI (high dpi), No sound (but modules loaded), No BT (modules loaded), working and stable Wifi, Gravity sensors working, ambient, dimm screen not working, Battery management not working (AXP288 ADC need to be activated in config), GPS and 3G Modem not working.

Default DPI in CM is 160, while in aosp is 240(or 320). That's why. 
Sound - for me is working well... even is too high volume, which caused, that one of my (tablet) speakers aren't working... Ah...

I'm working on few fixes... I'll upload next image when ready.

Jose Luis s

unread,
Oct 15, 2016, 3:35:53 PM10/15/16
to Android-x86
Wow.

Sound working?

Maybe you customized something for your tablet?, mine is recognized as "Insyde" vendor and "Baytrail" model.

Also you said that "suspend" makes an infinity bootloop, do you have energy management loaded? (despite the bug stated, of course).

If I get sound working, BT, GPS (with patches got from android-ia), buttons and battery management working, I can definitely switch to CM14, screen brightness is not a no go for me,neither 3G.

I can't wait for your next build.

Thanks for your work.

Jose Luis s

unread,
Oct 15, 2016, 3:37:42 PM10/15/16
to Android-x86
I forgot, touchscreen of course.

Do you get yours working?

Martin

unread,
Oct 15, 2016, 6:07:18 PM10/15/16
to Android-x86
Wow.

Sound working?

Maybe you customized something for your tablet?, mine is recognized as "Insyde" vendor and "Baytrail" model.

Also you said that "suspend" makes an infinity bootloop, do you have energy management loaded? (despite the bug stated, of course).

If I get sound working, BT, GPS (with patches got from android-ia), buttons and battery management working, I can definitely switch to CM14, screen brightness is not a no go for me,neither 3G.

I can't wait for your next build.

Thanks for your work.

It was built directly from source with few my fixes.. Nothing special.

Yeah, sound working, touchscreen also. Everything as MM, but without camera, bluetooth, which aren't working on my tablet anyway - IMX175 sensor is supported by AtomISP driver, which doesn't exist in 4.X kernel. Bluetooth(probably ath3/9k) is also not working due to... I dunno. 

Battery management is working fine for me, hardware buttons also. Can you tell me name of your device, exactly? 


youling 257

unread,
Oct 15, 2016, 8:05:10 PM10/15/16
to Android-x86
Bluetooth work,https://groups.google.com/forum/#!msg/android-x86/kPBpj3CoXW4/Ofbm4nDBGQAJ

/su/xbin_bind/rtk_hciattach ,/su/su.d/2.sh
Screenshot_20161016-075840.png

youling 257

unread,
Oct 15, 2016, 8:15:53 PM10/15/16
to Android-x86


在 2016年10月16日星期日 UTC+8上午8:05:10,youling 257写道:
Screenshot_20161016-081209.png
Screenshot_20161016-081154.png

youling 257

unread,
Oct 15, 2016, 8:36:26 PM10/15/16
to Android-x86
recompile kernel and modules,4.8 kernel cm14,boot loop ;4.8 kernel 7.0,boot loop .
dmesg and log
dmesg.txt
log.txt
Message has been deleted

youling 257

unread,
Oct 15, 2016, 8:40:20 PM10/15/16
to Android-x86

Jose Luis s

unread,
Oct 16, 2016, 6:16:21 AM10/16/16
to Android-x86
Sure.
I have 3 chuwi tablets all dual android 4.4.4 (android-ia), windows  8.1/10

vx8 3g business (2GB ram 32 GB emmc, GPS, 3g)
v89 (2GB ram 64 GB emmc, GPS, 3g)
Hi8

My main goal is to have a "semi"working CM in vx8 and v89, both have a BMA accel ? sensor, Broadcom GNSS 4752 GPS (got a driver from android-ia that I shared in this group), ov cameras (driver available from android-ia) but imx1xx also loaded in Android with atomisp driver, kj gravity sensor, Intel sst audio, touchscreen is weird because windows reported a Silead KMDF HID gpio driver, but android, report Goodix gt9xx_ts (also reported as loaded in your CM14 compilation). For battery management seems to have a Dollar_cove IC (apx288 availabe in kernel).

Martin

unread,
Oct 16, 2016, 7:13:26 AM10/16/16
to Android-x86

Sure.
I have 3 chuwi tablets all dual android 4.4.4 (android-ia), windows  8.1/10

vx8 3g business (2GB ram 32 GB emmc, GPS, 3g)
v89 (2GB ram 64 GB emmc, GPS, 3g)
Hi8

My main goal is to have a "semi"working CM in vx8 and v89, both have a BMA accel ? sensor, Broadcom GNSS 4752 GPS (got a driver from android-ia that I shared in this group), ov cameras (driver available from android-ia) but imx1xx also loaded in Android with atomisp driver, kj gravity sensor, Intel sst audio, touchscreen is weird because windows reported a Silead KMDF HID gpio driver, but android, report Goodix gt9xx_ts (also reported as loaded in your CM14 compilation). For battery management seems to have a Dollar_cove IC (apx288 availabe in kernel).

 "Goodix gt9xx_ts" - seems to be more true.
Camera will not work.. It's not possible currently - for Intel Atom based devices.

I'll try to build special image for one of your devices.




Jose Luis s

unread,
Oct 16, 2016, 7:24:50 AM10/16/16
to Android-x86
Hello Youling, in your dmesg I see you added AXP288, does battery works detected and charging status in other CM13?

Also I see Silead gslx680_ts loaded but some fw issues/error, does it work touchscreen for you on CM13?

I assume sound is working for you in CM13, thanks for your directions.

youling 257

unread,
Oct 16, 2016, 7:42:01 AM10/16/16
to Android-x86
my dmesg,I just use " Kernel command line: BOOT_IMAGE=/32/1kernel root=/dev/ram0 androidboot.hardware=android_x86 androidboot.selinux=permissive DIR=/cm13 SRC=/cm13 intel_idle.max_cstate=0 DEBUG=2 " test cm14 with 4.8 kernel ,just DIR=/cm13

I am use Chih-Wei Huang 6.0 r1 with my 4.8 kernel and modules ,WIFI、Bluetooth、touchscreen、sound、gravity sensor work ,it isn't only kernel、 modules、firmware problem,also need some system files to make Bluetooth、sound work .

i didn't say power management can work ,power management is a bug,https://bugzilla.kernel.org/show_bug.cgi?id=88471

在 2016年10月16日星期日 UTC+8下午7:24:50,Jose Luis s写道:
Message has been deleted

youling 257

unread,
Oct 16, 2016, 8:05:43 AM10/16/16
to Android-x86
I used this battery.sh many months,some times,it will No AXP288 PMIC on i2c Bus. some times,can read battery,http://pastebin.com/yDAUt2tNhttps://github.com/zhaofengli/iwork8/issues/1

https://groups.google.com/d/msg/android-x86/aGLBaYUIw3Y/AUJZ_L_LAAAJ

在 2016年10月16日星期日 UTC+8下午7:42:01,youling 257写道:

Jose Luis s

unread,
Oct 16, 2016, 9:23:44 AM10/16/16
to Android-x86
Agg, seems to be a long term issue....... APX288.

Thanks for the info

Jose Luis s

unread,
Oct 16, 2016, 9:26:13 AM10/16/16
to Android-x86
And for Touchscreen, do you use some specific fw? maybe a calibration file modified?

In my case I get no event from touchscreen.


El domingo, 16 de octubre de 2016, 13:42:01 (UTC+2), youling 257 escribió:

Jose Luis s

unread,
Oct 16, 2016, 9:28:32 AM10/16/16
to Android-x86
Hello Martin.

This would be great and a kind offer from you.

If finally you can make this build, can you add this, please?

https://groups.google.com/d/msg/android-x86/EQR7dqArcXg/coVYeB6IDwAJ

Thanks again.

youling 257

unread,
Oct 16, 2016, 9:59:18 AM10/16/16
to Android-x86
Android x86 4.8 kernel source,no gslx680 default,I cross compile gslx680 ,and no 8723bs Bluetooth patch default .
Android x86 4.4 kernel source,has gslx680 default,has 8723bs Bluetooth patch default.

special fw,https://github.com/onitake/gsl-firmware 

在 2016年10月16日星期日 UTC+8下午9:26:13,Jose Luis s写道:

JJ Meijer

unread,
Oct 17, 2016, 3:35:04 AM10/17/16
to Android-x86
Op vrijdag 14 oktober 2016 23:05:13 UTC+2 schreef Martin:

Thanks Martin.

Default DPI in CM is 160, while in aosp is 240(or 320). That's why. 
Sound - for me is working well... even is too high volume, which caused, that one of my (tablet) speakers aren't working... Ah...

I'm working on few fixes... I'll upload next image when ready.

That's correct, we set it to default 160 DPI because the Android-x86 automatic density setting causes GUI corruption. The user can modify it from setting so no problem I think.


Op zondag 16 oktober 2016 15:59:18 UTC+2 schreef youling 257:
Android x86 4.8 kernel source,no gslx680 default,I cross compile gslx680 ,and no 8723bs Bluetooth patch default .
Android x86 4.4 kernel source,has gslx680 default,has 8723bs Bluetooth patch default.

 
Please create a new thread for kernel development, people who are working on it or have problems will not find your information over here.

Geek Till It Hertz

unread,
Oct 17, 2016, 10:59:36 PM10/17/16
to Android-x86
ANDROID_JACK_VM_ARGS := -Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m
^^ this is a life saver!!!

But i'd not recommend using USE_NINJA := false as it caused completely random errors while building for me.

On Thursday, October 13, 2016 at 3:47:56 PM UTC+5:30, JJ Meijer wrote:
Hi,

Merging of CM 14.0 and Android-x86 is nearing completion. You can get the code as following:

git protocol
repo init -u git://git.osdn.jp/gitroot/android-x86/manifest -b nougat-x86 -m cm.xml

http protocol
repo init -u http://scm.osdn.jp/gitroot/android-x86/manifest -b nougat-x86 -m cm.xml



Some known issues and quick fixes:

Kernel build error
Remove vendor/cm/build/core/tasks/kernel.mk

ICMWeatherManager.NoOp() undefined
cd vendor/cmsdk
git revert 009662e24e9c47cd293e05421eabd53a6d163cdc

Build errors MESA + libdrm
Replace graphics components with Mauro's great work:

external/mesa
https://github.com/maurossi/mesa/commits/12.1.0devel_nougat-x86_06-oct-2016

external/drm_gralloc


Out of memory tips
Add to device/generic/common/Boardconfig.mk (or some more appropriate location):
ANDROID_JACK_VM_ARGS := -Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m

Disable Ninja to save some memory (but will slow down incremental builds), also add:
USE_NINJA := false

Stop the Jack server before a new (incremental) build:
jack-admin stop-server


You should now be able to get a bootable iso_img but camera and Bluetooth still need work.

Please keep the discussion on topic.
Reply all
Reply to author
Forward
0 new messages