[PROJECT][EXPERIMENTAL] Linux kernel 3.18.31 for Xiaomi Mi A1 (tissot) - Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De

Since Xiaomi has not released the kernel sources yet, I'm currently trying to port Redmi Note 4 (mido) kernel sources for Mi A1. The porting process may succeed because both these devices are based on same architecture and comes from the same manufacturer. I have shared my kernel sources and those who wanna contribute may send pull request to the same. I'm currently looking for testers and those who wants to volunteer please reply in this thread.
You can test with stock rom or TWRP recovery.
Steps for testing:
1. Download TWRP recovery / boot image of stock rom.
2. Unpack it and replace the prebuilt kernel with our testing kernel.
3. Repack it and reboot phone to fastboot mode.
4. Type fastboot boot <repacked_image_name.img>
5. If it boots, post here the dmesg and other helpful logs
Status [Working]
Boots
Display
WiFi
Touchscreen
RIL
Vibration
IR
Bluetooth
Sensors
SD card
MTP
Charging
XDA:DevDB Information
Linux kernel 3.18.31 for Xiaomi Mi A1 (tissot), Kernel for the Xiaomi Mi A1
Contributors
cute_prince, @ur0
Source Code: https://github.com/cuteprince/android_kernel_xiaomi_msm8953
Version Information
Status: Testing
Created 2017-12-02
Last Updated 2017-12-02

Nah... doesn't boot.. while it's true that we share the same SD625 with many other xiaomi devices, there are other things to consider here... different display, camera, etc... not a kernel expert but just what i think...
anyway thanks for the attempt... i'm sure Xiaomi will release the sources soon, they might be waiting for Oreo since there are some specific commits that only apply to oreo, if so, they are actually kinda doing us a favor, since they always release the kernel once and never bother updating the sources since...

Yes I think it works. I've done it and boot on system, in system I have different kernel.
The stock is from 17/11/2017 and yours is 02/12/2017.
edit: fingerprint doesnt work
camera doesnt work (it opens but see only black screen)
led doesn't work
edit2: link dmesg https://mega.nz/#!JcBjjCSA!_xzviwYuyRBfOmmpx8eDPa9Q8Uvwn_uRu0Usx-w8Y1g
I dont know how to put it here so I've used my mega account, if have problem I can use google driver or dropbox

SevenSlevin said:
Yes I think it works. I've done it and boot on system, in system I have different kernel.
The stock is from 17/11/2017 and yours is 02/12/2017.
edit: fingerprint doesnt work
Click to expand...
Click to collapse
Odd... Didn't boot for me.. maybe I missed something
I see why the FP failed... the selinux is denied it, OP needs to set it to permissive

Normally with this kernel Can I boot in Miui rom from redmi note 4??

OK, got it to boot, great work OP! this could give us some lead until Xiaomi releases kernel source.
EDIT: so as I said earlier, selinux needs to be disabled for now... otherwise wifi, fingerprint, audio and LED don't work...

Wouldn't it make more sense to Port from Mi5X?

Gtxinsane said:
Wouldn't it make more sense to Port from Mi5X?
Click to expand...
Click to collapse
They are porting kernel source, Mi 5X kernel source isn't available either.

SevenSlevin said:
Yes I think it works. I've done it and boot on system, in system I have different kernel.
The stock is from 17/11/2017 and yours is 02/12/2017.
edit: fingerprint doesnt work
camera doesnt work (it opens but see only black screen)
led doesn't work
edit2: link dmesg https://mega.nz/#!JcBjjCSA!_xzviwYuyRBfOmmpx8eDPa9Q8Uvwn_uRu0Usx-w8Y1g
I dont know how to put it here so I've used my mega account, if have problem I can use google driver or dropbox
Click to expand...
Click to collapse
Great . So it booted the stock rom. Did you tried disabling Selinux ? What about wifi, vibration, audio, bt, ir etc ? Are they working ?

sooti said:
OK, got it to boot, great work OP! this could give us some lead until Xiaomi releases kernel source.
EDIT: so as I said earlier, selinux needs to be disabled for now... otherwise wifi, fingerprint, audio and LED don't work...
Click to expand...
Click to collapse
Thanks for testing. Are they working (wifi, bt, ir, led etc) after disabling selinux ?

Yash98 said:
They are porting kernel source, Mi 5X kernel source isn't available either.
Click to expand...
Click to collapse
Oh wow Xioami is really slacking huh.

cute_prince said:
Thanks for testing. Are they working (wifi, bt, ir, led etc) after disabling selinux ?
Click to expand...
Click to collapse
This is very good progress..thank u OP.i will try this out but could you tell me how much it will affect the performance?? If there any noticeable difference? Cause as it's a Redmi note 4 kernel the battery in rn4 is 4000mah.
---------- Post added at 05:46 AM ---------- Previous post was at 05:45 AM ----------
Gtxinsane said:
Oh wow Xioami is really slacking huh.
Click to expand...
Click to collapse
They r slacking very badly..they have too many products rolled out & developer team size might not be that big it seems due to which many things r not happening in the right manner.

Send a screenshot..

cute_prince said:
Thanks for testing. Are they working (wifi, bt, ir, led etc) after disabling selinux ?
Click to expand...
Click to collapse
Ya, no change. Selinux needs to be disabled on your end, add it to the defconfig.
WiFi, bt, it, led not working.
Vibrate and ril work

sooti said:
Ya, no change. Selinux needs to be disabled on your end, add it to the defconfig.
WiFi, bt, it, led not working.
Vibrate and ril work
Click to expand...
Click to collapse
Ok. I'll push another build. B/w if you have Cpu-z installed can you check whether sensors are working ?

Hellrazoraj said:
This is very good progress..thank u OP.i will try this out but could you tell me how much it will affect the performance?? If there any noticeable difference? Cause as it's a Redmi note 4 kernel the battery in rn4 is 4000mah.
Click to expand...
Click to collapse
No problem. This kernel is using device tree file of Mi A1. So device specific configurations like battery, display etc are of Mi A1 itself.

don't work:
wifi, audio, camera, fingerprint, led notification, audio in jack earphones
work:
ril, ir, bluetooth, vibrate, audio in bluetooth earphones
I havent done nothing on Twrp recovery, I've just changed kernel like on description.

error while compiling
C drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_api.o
CC drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_device.o
CC drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_msg.o
CC drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_packet.o
CC drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_sync.o
CC drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_timer.o
CC drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_trace.o
LD drivers/staging/prima/wlan.o
LD drivers/staging/prima/built-in.o
LD drivers/staging/built-in.o
LD drivers/built-in.o
LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
KSYM .tmp_kallsyms1.o
KSYM .tmp_kallsyms2.o
LD vmlinux
SORTEX vmlinux
SYSMAP System.map
make[2]: *** No rule to make target 'arch/arm64/boot/dts/msm8953-qrd-sku3-d2.dtb', needed by 'arch/arm64/boot/Image.gz-dtb'. Stop.
make[2]: *** Waiting for unfinished jobs....
OBJCOPY arch/arm64/boot/Image
/home/ramesh/li/kernel/xiaomi/msm8953/arch/arm64/Makefile:98: recipe for target 'Image.gz-dtb' failed
make[1]: *** [Image.gz-dtb] Error 2
make[1]: Leaving directory '/home/ramesh/li/out/target/product/tissot/obj/KERNEL_OBJ'
Makefile:145: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/ramesh/li/kernel/xiaomi/msm8953'
[ 20% 9987/49431] host C: libicuuc-host <= external/icu/icu4c/source/common/umapfile.c
[ 20% 9987/49431] host C: libicuuc-host <= external/icu/icu4c/source/common/usc_impl.c
[ 20% 9987/49431] host C: libicuuc-host <= external/icu/icu4c/source/common/utrace.c
[ 20% 9987/49431] host C: libicuuc-host <= external/icu/icu4c/source/common/utypes.c
[ 20% 9987/49431] host C: libicuuc-host <= external/icu/icu4c/source/common/wintz.c
[ 20% 9987/49431] Export includes file: -- /home/ramesh/li/out/host/linux-x86/obj/SHARED_LIBRARIES/libicui18n-host_intermediates/export_includes
[ 20% 9987/49431] Export includes file: -- /home/ramesh/li/out/host/linux-x86/obj/STATIC_LIBRARIES/libfdlibm_intermediates/export_includes
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/ramesh/li'
#### make failed to build some targets (12:37 (mm:ss)) ####
Build step 'Execute shell' marked build as failure
FTP: Current build result is [FAILURE], not going to run.
Finished: FAILURE

rameshurfrnd1 said:
error while compiling
C drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_api.o
CC drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_device.o
CC drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_msg.o
CC drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_packet.o
CC drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_sync.o
CC drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_timer.o
CC drivers/staging/prima/CORE/WDI/WPAL/src/wlan_qct_pal_trace.o
LD drivers/staging/prima/wlan.o
LD drivers/staging/prima/built-in.o
LD drivers/staging/built-in.o
LD drivers/built-in.o
LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
KSYM .tmp_kallsyms1.o
KSYM .tmp_kallsyms2.o
LD vmlinux
SORTEX vmlinux
SYSMAP System.map
make[2]: *** No rule to make target 'arch/arm64/boot/dts/msm8953-qrd-sku3-d2.dtb', needed by 'arch/arm64/boot/Image.gz-dtb'. Stop.
make[2]: *** Waiting for unfinished jobs....
OBJCOPY arch/arm64/boot/Image
/home/ramesh/li/kernel/xiaomi/msm8953/arch/arm64/Makefile:98: recipe for target 'Image.gz-dtb' failed
make[1]: *** [Image.gz-dtb] Error 2
make[1]: Leaving directory '/home/ramesh/li/out/target/product/tissot/obj/KERNEL_OBJ'
Makefile:145: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/ramesh/li/kernel/xiaomi/msm8953'
[ 20% 9987/49431] host C: libicuuc-host <= external/icu/icu4c/source/common/umapfile.c
[ 20% 9987/49431] host C: libicuuc-host <= external/icu/icu4c/source/common/usc_impl.c
[ 20% 9987/49431] host C: libicuuc-host <= external/icu/icu4c/source/common/utrace.c
[ 20% 9987/49431] host C: libicuuc-host <= external/icu/icu4c/source/common/utypes.c
[ 20% 9987/49431] host C: libicuuc-host <= external/icu/icu4c/source/common/wintz.c
[ 20% 9987/49431] Export includes file: -- /home/ramesh/li/out/host/linux-x86/obj/SHARED_LIBRARIES/libicui18n-host_intermediates/export_includes
[ 20% 9987/49431] Export includes file: -- /home/ramesh/li/out/host/linux-x86/obj/STATIC_LIBRARIES/libfdlibm_intermediates/export_includes
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/ramesh/li'
#### make failed to build some targets (12:37 (mm:ss)) ####
Build step 'Execute shell' marked build as failure
FTP: Current build result is [FAILURE], not going to run.
Finished: FAILURE
Click to expand...
Click to collapse
Hi, you have to symlink arch/arm/boot/dts/msm8953-qrd-sku3-d2.dtb file to arch/arm64/boot/dts/msm8953-qrd-sku3-d2.dtb
While pushing my sources, git ignored that symlink thats why build is failing for you.

SevenSlevin said:
don't work:
wifi, audio, camera, fingerprint, led notification, audio in jack earphones
work:
ril, ir, bluetooth, vibrate, audio in bluetooth earphones
I havent done nothing on Twrp recovery, I've just changed kernel like on description.
Click to expand...
Click to collapse
As @sooti suggested I'll build another image with selinux disabled. Lets see if selinux is causing the issue. Also can you test whether sensors are working using cpu-z app ?

Related

Help Inserting Multi Touch Patch Into Kernel

I've combined different features from Cyanogen's and JesusFreke's kernel .config files (from /proc/config.gz) into a git clone of android-msm-2.6.29 from android.git.kernel.org. The reason is that for some reason suid does not work properly when running debian as a non-root user on my G1 with Cyanogen's kernels. However it does with JesusFreke's. While I was able to fix that problem, and keep Cyanogens optimizations, I also unfortunately lost Cyanogen's kernel support for multitouch. I assumed this is because he is using a patched version of the synaptics touchpad driver, whereas I was not. So, I tried to download this Kernel Patch (http://web.mit.edu/~luke_h/www/MultiTouchV4/src/KernelPatch.zip), which is what I believe Cyanogen used. However, after replacing the target file with the included one, the make fails with the following:
...
CC drivers/input/touchscreen/synaptics_i2c_rmi.o
drivers/input/touchscreen/synaptics_i2c_rmi.c:31:1: warning: "swap" redefined
In file included from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from drivers/input/touchscreen/synaptics_i2c_rmi.c:18:
include/linux/kernel.h:483:1: warning: this is the location of the previous definition
drivers/input/touchscreen/synaptics_i2c_rmi.c: In function 'synaptics_ts_probe':
drivers/input/touchscreen/synaptics_i2c_rmi.c:513: error: 'struct i2c_client' has no member named 'driver_name'
drivers/input/touchscreen/synaptics_i2c_rmi.c: At top level:
drivers/input/touchscreen/synaptics_i2c_rmi.c:639: warning: initialization from incompatible pointer type
make[3]: *** [drivers/input/touchscreen/synaptics_i2c_rmi.o] Error 1
make[2]: *** [drivers/input/touchscreen] Error 2
make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2
...
Any thoughts on where to proceed from here?

[Q] [Progressing] Building ubuntu touch for galaxy tab p1000

Hi,
Has anyone tried building Ubuntu touch developer preview for P1000 ? I have tried and setup the repos as per https://wiki.ubuntu.com/Touch/Porting
Added manifest for Kernel and device (Humberos's Git hub)
while I try to build get this:
Code:
host C: libmincrypt <= system/core/libmincrypt/sha.c
system/core/libmincrypt/sha.c: In function 'SHA_update':
system/core/libmincrypt/sha.c:153:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
target thumb C: libcrypto <= external/openssl/crypto/evp/m_ripemd.c
external/openssl/crypto/evp/m_ripemd.c:96:2: warning: missing initializer [-Wmissing-field-initializers]
external/openssl/crypto/evp/m_ripemd.c:96:2: warning: (near initialization for 'ripemd160_md.md_ctrl') [-Wmissing-field-initializers]
target thumb C: libcrypto <= external/openssl/crypto/pem/pem_seal.c
target thumb C: libcrypto <= external/openssl/crypto/srp/srp_lib.c
target thumb C++: libstlport <= external/stlport/src/strstream.cpp
make: *** No rule to make target `/home/ravindran/sgtubuntu/out/target/product/p1/obj/SHARED_LIBRARIES/libs3cjpeg_intermediates/export_includes', needed by `/home/ravindran/sgtubuntu/out/target/product/p1/obj/SHARED_LIBRARIES/camera.s5pc110_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Any suggestions?
hi, have you made any progress of your build? ... i'm quite interrested in testing ubuntu on my old tab
br, andy
No progress
Neubi said:
hi, have you made any progress of your build? ... i'm quite interrested in testing ubuntu on my old tab
br, andy
Click to expand...
Click to collapse
No progress.. In fact I have gone 2 steps backwards after trying to remove the local manifest entries..
now even repo sync is failing
~/sgtubuntu$ repo sync
Fetching projects: 14% (20/141) fatal: Couldn't find remote ref refs/heads/phablet-10.1
fatal: Couldn't find remote ref refs/heads/phablet-10.1
error: Cannot fetch humberos/android_device_samsung_p1
Click to expand...
Click to collapse
Getting a Nexus 4 by weekend :cyclops: so maybe will try with that first and then resume sgt7
Ok.. Just pursuing this...
Undoed all the extras.. & tried a build of Nexus4 and it successfully built an image
comparing .repo of both cm10 and the Ubuntu one...did some changes..
Now getting:
~/sgtubuntu$ repo sync
Fetching projects: 14% (20/141) fatal: Couldn't find remote ref refs/heads/phablet-10.1
fatal: Couldn't find remote ref refs/heads/phablet-10.1
error: Cannot fetch CyanogenMod/android_device_samsung_p1
Click to expand...
Click to collapse
manually symlinked kernel & device folders...did a "brunch p1"
and getting a similiar error as earlier :
target thumb C: libbusybox <= external/busybox/miscutils/setserial.c
target thumb C: libcrypto_static <= external/openssl/crypto/ex_data.c
target thumb C: libcrypto_static <= external/openssl/crypto/bio/bss_bio.c
target thumb C: libcrypto_static <= external/openssl/crypto/dsa/dsa_ossl.c
target thumb C: libcrypto_static <= external/openssl/crypto/evp/e_null.c
target thumb C: libcrypto_static <= external/openssl/crypto/hmac/hm_ameth.c
external/openssl/crypto/hmac/hm_ameth.c:166:2: warning: missing initializer [-Wmissing-field-initializers]
external/openssl/crypto/hmac/hm_ameth.c:166:2: warning: (near initialization for 'hmac_asn1_meth.item_verify') [-Wmissing-field-initializers]
target thumb C: libcrypto_static <= external/openssl/crypto/pem/pvkfmt.c
target thumb C++: libpixelflinger_static <= system/core/libpixelflinger/tinyutils/VectorImpl.cpp
make: Circular /home/ravindran/sgtubuntu/out/target/product/p1/recovery/root.ts <- /home/ravindran/sgtubuntu/out/target/product/p1/kernel dependency dropped.
make: *** No rule to make target `/home/ravindran/sgtubuntu/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp', needed by `/home/ravindran/sgtubuntu/out/target/common/obj/APPS/P1Parts_intermediates/src/R.stamp'. Stop.
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
checking on this "make: Circular /home/ravindran/sgtubuntu/out/target/product/p1/recovery/root.ts <- /home/ravindran/sgtubuntu/out/target/product/p1/kernel dependency dropped." ...
any ideas ???
There are lots of dependencies on out/target/common/obj/*
i.e. APPS/ JAVA_LIBRARIES/ PACKAGING/
Guessing the ubuntu repo will not include these....
Progressing...
ravindrank said:
There are lots of dependencies on out/target/common/obj/*
i.e. APPS/ JAVA_LIBRARIES/ PACKAGING/
Guessing the ubuntu repo will not include these....
Click to expand...
Click to collapse
After a lot of googling and read xda threads of porting CM, I'm moving and it is not compiling...
Will port the solution soon once I see the it compiles successfully
I'm not expecting to to give me .zip but who knows
Compiles Successfuly
ravindrank said:
After a lot of googling and read xda threads of porting CM, I'm moving and it is not compiling...
Will port the solution soon once I see the it compiles successfully
I'm not expecting to to give me .zip but who knows
Click to expand...
Click to collapse
Ok... So it compiles and I get a .zip But it doesnt boot yet checking

AOSP builds for Z5C

Hi guys
Thought I should start a thread for various AOSP builds people are doing for their Sony Z5Compact. We can trouble shoot errors and generally take advantage of the way Sony encourage open source development for their devices.
Ill get the ball rolling. (see below)
AOSP NOUGAT 7.1
https://mega.nz/#!Jh5WxSYS!DkYHgBjtR...V6Vdxq11xMplcg
TWRP3.0.3
https://mega.nz/#!QhoBESZI!XzXzHvosc...X57GnZvRBEPoR4
AOSP NOUGAT
Installable .zip compiled with mm binaries: https://mega.nz/#!h8530CLS!vmwYkb4JBdx8YtOaqkETq84bFeR9wiz2KYIlNOWnFBM (as sony has not published N binaries yet.)
Nougat .img files for z5c: https://mega.nz/#!5h5gxYKI!AuCFTO6MV4J5rfMBK_A1Q4eOBr5ZoXQIG2wEW9Fffxg
AOSP MM BUILD for Z5C.
Android 6.1
New Build with Julys/Android N compatible binaries Build # MOB30W
Installable .zip: https://mega.nz/#!80BlACKS!hefd26xN36UPcgnGEfdp9BkPsZvjS3k4Bvzo3dmU9I8
Raw .img files: https://mega.nz/#!FoYTGQbT!8ifDpGlZSaXgsHo1_gLm-67YIdDo0-BW85hra5ZToVY
New Build as of 29/04/16 (untested as of yet) Ignore below list of what works as I havent flashed this to my phone yet.
https://mega.nz/#!MwJ3wSJb!6ALDvaSIPQK0kc8R6MU5mVhUmKKCzVovE54tLcNxTx0
Older MM build (.img files)
https://mega.nz/#!B5hhyYhT!Z1lMcwxHc3KC9lDRCwOcyImBXXLuHgqROZ76J5xArew
RECOMMENDED DO A FULL WIPE OF DATA AND SYSTEM BEFORE FLASHING. Have your old/stock system, recovery,boot.img saved on your pc, as TWRP is not supported in AOSP kernel.
Boots fine.
will load and use previous userdata from rooted sony stock. (but not recommended to dirty flash!)
Data connection was patchy
Camera works but is awful.
External and internal sd card detection/mounts fine, but the rom wants to re format your external sd card before it mounts.
Regards
Joeisgood99
@Joeisgood99, your links are missing the Mega decryption key.
Anyway, I compiled 5.1.1_r24 (latest Lollipop) from source and uploaded here:
https://mega.nz/#!1hZlFCoT!UIEBo9CjaYu0Eg-4CeVdRijchRqNwbErUZPL4qbhzRo
I have no Z5C so consider it fully UNtested.
Still no luck with my 6.0.0_r1 build
nilezon said:
@Joeisgood99, your links are missing the Mega decryption key.
Anyway, I compiled 5.1.1_r24 (latest Lollipop) from source and uploaded here:
https://mega.nz/#!1hZlFCoT!UIEBo9CjaYu0Eg-4CeVdRijchRqNwbErUZPL4qbhzRo
I have no Z5C so consider it fully UNtested.
Still no luck with my 6.0.0_r1 build
Click to expand...
Click to collapse
Thanks for that!
I have only made it about 19 mins in to 6.0.0_r1 build before it fails.
target thumb C: libmmcamera_interface_32 <= hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_thread.c
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:44:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:98:21: error: 'MSM_CAMERA_MAX_USER_BUFF_CNT' undeclared here (not in a function)
int32_t buf_idx[MSM_CAMERA_MAX_USER_BUFF_CNT];
^
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_interface.c:44:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:98:21: error: 'MSM_CAMERA_MAX_USER_BUFF_CNT' undeclared here (not in a function)
int32_t buf_idx[MSM_CAMERA_MAX_USER_BUFF_CNT];
^
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c:40:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:98:21: error: 'MSM_CAMERA_MAX_USER_BUFF_CNT' undeclared here (not in a function)
int32_t buf_idx[MSM_CAMERA_MAX_USER_BUFF_CNT];
^
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_thread.c:41:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:98:21: error: 'MSM_CAMERA_MAX_USER_BUFF_CNT' undeclared here (not in a function)
int32_t buf_idx[MSM_CAMERA_MAX_USER_BUFF_CNT];
^
build/core/binary.mk:801: recipe for target 'out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera.o' failed
target thumb C: libmmcamera_interface_32 <= hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_sock.c
make: *** [out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:45:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:98:21: error: 'MSM_CAMERA_MAX_USER_BUFF_CNT' undeclared here (not in a function)
int32_t buf_idx[MSM_CAMERA_MAX_USER_BUFF_CNT];
^
build/core/binary.mk:801: recipe for target 'out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_thread.o' failed
make: *** [out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_thread.o] Error 1
build/core/binary.mk:801: recipe for target 'out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_interface.o' failed
make: *** [out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_interface.o] Error 1
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c: In function 'mm_stream_write_user_buf':
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1046:21: error: dereferencing pointer to incomplete type
cont_buf->buf_cnt = my_obj->buf[buf->buf_idx].user_buf.bufs_used;
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1047:46: error: dereferencing pointer to incomplete type
for (i = 0; i < (int32_t)cont_buf->buf_cnt; i++) {
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1048:25: error: dereferencing pointer to incomplete type
cont_buf->buf_idx = my_obj->buf[buf->buf_idx].user_buf.buf_idx;
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1055:50: error: dereferencing pointer to incomplete type
for (i = 0; i < (int32_t)cont_buf->buf_cnt; i++) {
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1103:21: error: dereferencing pointer to incomplete type
cont_buf->buf_cnt = my_obj->buf[index].user_buf.bufs_used;
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1104:46: error: dereferencing pointer to incomplete type
for (i = 0; i < (int32_t)cont_buf->buf_cnt; i++) {
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1105:25: error: dereferencing pointer to incomplete type
cont_buf->buf_idx = my_obj->buf[index].user_buf.buf_idx;
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1112:50: error: dereferencing pointer to incomplete type
for (i = 0; i < (int32_t)cont_buf->buf_cnt; i++) {
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c: In function 'mm_stream_read_user_buf':
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1163:60: error: dereferencing pointer to incomplete type
frameID = (buf_info->buf->frame_idx - 1) * user_buf->buf_cnt;
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1177:65: error: dereferencing pointer to incomplete type
my_obj->prev_timestamp = (timeStamp - (nsecs_t)(user_buf->buf_cnt * interval_nsec));
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1180:54: error: dereferencing pointer to incomplete type
interval_nsec = (nsecs_t)(ts_delta / user_buf->buf_cnt);
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1184:38: error: dereferencing pointer to incomplete type
for (i = 0; i < (int32_t)user_buf->buf_cnt; i++) {
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1185:54: error: dereferencing pointer to incomplete type
buf_info->buf->user_buf.buf_idx = user_buf->buf_idx;
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1186:49: error: dereferencing pointer to incomplete type
stream_buf = &my_obj->plane_buf[user_buf->buf_idx];
^
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:1204:49: error: dereferencing pointer to incomplete type
buf_info->buf->user_buf.bufs_used = user_buf->buf_cnt;
^
build/core/binary.mk:801: recipe for target 'out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_channel.o' failed
make: *** [out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_channel.o] Error 1
build/core/binary.mk:801: recipe for target 'out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_stream.o' failed
make: *** [out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_stream.o] Error 1
#### make failed to build some targets (19:09 (mm:ss)) ####
Tried to fix it with this
https://git.geekli.st/pirej/kernel/commit/3b7ca4571409e0e38ae45afedf77afbf3099d801?view=parallel
or similar but didn’t work.
Thanks for your contribution!:good:
Joeisgood99 said:
Thanks for that!
I have only made it about 19 mins in to 6.0.0_r1 build before it fails.
Tried to fix it with this ... or similar but didn’t work.
Thanks for your contribution!:good:
Click to expand...
Click to collapse
I got similar errors.
You need to update the files in ./device/sony/kitakami/kernel-headers/ with files from the Sony kernel source code.
For example, replace:
https://github.com/sonyxperiadev/device-sony-kitakami/blob/master/kernel-headers/media/msmb_camera.h
with
https://github.com/Tommy-Geenexus/a...n_5.x/blob/master/include/media/msmb_camera.h
to get correct MSM_CAMERA_MAX_USER_BUFF_CNT definition.
You also need to add an header include to macaddrsetup.c to make it compile. See this pull request:
https://github.com/sonyxperiadev/macaddrsetup/pull/1
That's all I've got for now.
Edit:
This is the error I end up with:
Code:
No private recovery resources for TARGET_DEVICE suzuran
target Symbolic: init (out/target/product/suzuran/symbols/init)
target Unpacked: adbd (out/target/product/suzuran/obj/EXECUTABLES/adbd_intermediates/PACKED/adbd)
target StaticExecutable: healthd (out/target/product/suzuran/obj/EXECUTABLES/healthd_intermediates/LINKED/healthd)
out/host/linux-x86/bin/checkpolicy: loading policy configuration from out/target/product/suzuran/obj/ETC/sepolicy_intermediates/policy.conf
device/qcom/sepolicy/common/init_shell.te:3:ERROR 'unknown type init_shell' at token ';' on line 16010:
#for accessing fmradio device node
allow init_shell fm_radio_device:chr_file { open read ioctl };
checkpolicy: error(s) encountered while parsing configuration
make: *** [out/target/product/suzuran/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
Edit2:
Possibly solution for sepolicy error:
https://github.com/alviteri/device-qcom-sepolicy/tree/test-m
Source: https://github.com/sonyxperiadev/device-qcom-sepolicy/pull/8
Edit3:
I got past the sepolicy errors, but face new problems.
Some definitions are missing:
Code:
target thumb C++: camera.msm8994_32 <= hardware/qcom/camera/QCamera2/HAL/QCamera2HWI.cpp
hardware/qcom/camera/QCamera2/HAL/QCamera2HWI.cpp: In member function 'int qcamera::QCamera2HardwareInterface::sendCommand(int32_t, int32_t&, int32_t&)':
hardware/qcom/camera/QCamera2/HAL/QCamera2HWI.cpp:3928:10: error: 'CAMERA_CMD_LONGSHOT_ON' was not declared in this scope
case CAMERA_CMD_LONGSHOT_ON:
^
hardware/qcom/camera/QCamera2/HAL/QCamera2HWI.cpp:3970:10: error: 'CAMERA_CMD_LONGSHOT_OFF' was not declared in this scope
case CAMERA_CMD_LONGSHOT_OFF:
^
etc ...
Awesome work @nilezon.
This thread is becoming a build diary for Sony aosp 6.0.0_r1.
I used the commits you pointed out. They fixed the issue, the build stooped 3 mins later with this error
target thumb C++: liboverlay_32 <= hardware/qcom/display/msm8994/liboverlay/overlayRotator.cpp
hardware/qcom/display/msm8994/liboverlay/overlayUtils.cpp: In function 'int overlay::utils::getMdpFormat(int, int)':
hardware/qcom/display/msm8994/liboverlay/overlayUtils.cpp:153:24: error: 'MDP_RGBA_8888_UBWC' was not declared in this scope
return MDP_RGBA_8888_UBWC;
^
hardware/qcom/display/msm8994/liboverlay/overlayUtils.cpp:155:24: error: 'MDP_RGB_565_UBWC' was not declared in this scope
return MDP_RGB_565_UBWC;
^
hardware/qcom/display/msm8994/liboverlay/overlayUtils.cpp:159:24: error: 'MDP_Y_CBCR_H2V2_UBWC' was not declared in this scope
return MDP_Y_CBCR_H2V2_UBWC;
^
target thumb C++: liboverlay_32 <= hardware/qcom/display/msm8994/liboverlay/overlayMdpRot.cpp
build/core/binary.mk:706: recipe for target 'out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/liboverlay_intermediates/overlayUtils.o' failed
make: *** [out/target/product/suzuran/obj_arm/SHARED_LIBRARIES/liboverlay_intermediates/overlayUtils.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: liboverlay_32 <= hardware/qcom/display/msm8994/liboverlay/overlayMdssRot.cpp
#### make failed to build some targets (21:25 (mm:ss)) ####
All these undeclared formats are declared in /devices/sony/kitakami/kernel-headers/linux/msm_mdp.h
but haven’t had a chance to even look at why info isn’t getting passed along yet. Has been a big family oriented weekend. Just sat down. Ill look in to your errors.
Thanks again!
Seems to be a problem with a broken make config, the kitakami settings are not being applied or reverting. The source is also missing a few defines, mainly around the camera it seems.
thx for your great work!
has anyone tested the 5.1.1. builds? are there any known issues?
can't use my phone without root and bloatware instead.
M!tch said:
thx for your great work!
has anyone tested the 5.1.1. builds? are there any known issues?
can't use my phone without root and bloatware instead.
Click to expand...
Click to collapse
Most are holding out for a way to keep DRM keys I think, slows down the trial and error process a bit.
M!tch said:
thx for your great work!
has anyone tested the 5.1.1. builds? are there any known issues?
can't use my phone without root and bloatware instead.
Click to expand...
Click to collapse
I compiled AOSP but couldn't get it to boot. Most likely something wrong with the pre-compiled kernel image.
does the build from the op work?
M!tch said:
does the build from the op work?
Click to expand...
Click to collapse
Don't know. I didn't test.
BUT, FreeXperia has published suzuran (Z5C) build for 5.1.1:
http://fxpblog.co/aosp/aosp-5-1/
http://uploaded.net/file/rg3ocwy3/from/ub0dtu
I don't know if they work either, but I guess they usually does?
I've tried flashing the images in the OP and it just hangs when sending system. Have waited 30 minutes and still nothing.
creebefu said:
I've tried flashing the images in the OP and it just hangs when sending system. Have waited 30 minutes and still nothing.
Click to expand...
Click to collapse
Did you flash with the sparse flag?
Code:
fastboot -S 256M flash system system.img
nilezon said:
Did you flash with the sparse flag?
Code:
fastboot -S 256M flash system system.img
Click to expand...
Click to collapse
That flashed okay, but rebooted and it ended up turning itself off after the Sony - Xperia screen.
For the others I'm literally just doing:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
etc.
Any other commands I should try?
creebefu said:
That flashed okay, but rebooted and it ended up turning itself off after the Sony - Xperia screen.
For the others I'm literally just doing:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
etc.
Any other commands I should try?
Click to expand...
Click to collapse
Hmm, I didn't know that you could flash a recovery image to an Xperia phone:
Code:
fastboot flash recovery recovery.img
I don't think there is any recovery partition.
nilezon said:
Hmm, I didn't know that you could flash a recovery image to an Xperia phone:
Code:
fastboot flash recovery recovery.img
I don't think there is any recovery partition.
Click to expand...
Click to collapse
That's strange as it was flashing fine, and says success.
I'll reset back to stock firmware, then try again without flashing recovery.
creebefu said:
That's strange as it was flashing fine, and says success.
I'll reset back to stock firmware, then try again without flashing recovery.
Click to expand...
Click to collapse
You do that, but I am sure it will not boot anyway.
I think it's something wrong with the pre-built kernel, but I'm not sure.
M!tch said:
does the build from the op work?
Click to expand...
Click to collapse
creebefu said:
I've tried flashing the images in the OP and it just hangs when sending system. Have waited 30 minutes and still nothing.
Click to expand...
Click to collapse
nilezon said:
You do that, but I am sure it will not boot anyway.
I think it's something wrong with the pre-built kernel, but I'm not sure.
Click to expand...
Click to collapse
Thanks for testing guys. I STILL don’t have a Z5C so Im kind of useless atm. I did nothing to alter the code for my build, just sync and make.
Maybe try flashing zombie boot.img (I’m assuming ramdisk is from 32.0.A.5.32/R4B or similar? ) to get aosp to build.
Ill change the op with update that building straight from source produces non bootable rom/or kernel.
Also re the recovery partition: This is new to me as I’m coming from HTC where there was a designated recovery partition however I’m sure that when you flash a recovery.img to a Sony phone
Code:
fastboot flash recovery fotatwrp.img
for example, you are flashing it to the FOTAKernel partition, which is empty on an unlocked xperia because it used to handle the OEM OTA's, but is wiped upon unlocking the phone. The only way you can boot from this partition is to have extract-elf-ramdisk compiled in your ramdisk.cpio (source code) https://github.com/Dees-Troy/extract_elf_ramdisk. Or you can just have the recovery in the boot.img and boot in to recovery via fastboot.
Sony veterans please correct me if I’m wrong.
Some info.
https://twrp.me/devices/sonyxperiaz.html
Joeisgood99 said:
Sony veterans please correct me if I’m wrong.
Some info.
https://twrp.me/devices/sonyxperiaz.html
Click to expand...
Click to collapse
Thats untrue for Xperia Z5C ... It already has new bootloader and here is your recovery partition:
/dev/block/bootdevice/by-name/recovery
See Z5C official sourcecode
Sent from my mint using XDA Free mobile app
nilezon said:
Don't know. I didn't test.
BUT, FreeXperia has published suzuran (Z5C) build for 5.1.1:
http://fxpblog.co/aosp/aosp-5-1/
http://uploaded.net/file/rg3ocwy3/from/ub0dtu
I don't know if they work either, but I guess they usually does?
Click to expand...
Click to collapse
the op says, the build is working. but i guess it's not confirmed yet because it refers to you.
is there any other source to get information about the builds from fxp?

LineageOS and build error (kernel/gcc)

Hi,
I had my environment set up for building LineageOS (Ubuntu xenial) and it was working perfectly fine.
I haven't updated the machine since March 2017.
Now I did 'repo sync' and suddenly I'm getting the following errors during brunch hammerhead
Code:
LD drivers/video/msm/mdss/mdss-dsi.o
LD drivers/video/msm/mdss/built-in.o
LD drivers/video/msm/built-in.o
LD drivers/video/built-in.o
LD drivers/usb/gadget/g_android.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
ERROR: modpost: Found 12 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
To build the kernel despite the mismatches, build with:
'make CONFIG_NO_ERROR_ON_MISMATCH=y'
(NOTE: This is not recommended)
/media/rawi/android/lineageos/kernel/lge/hammerhead/scripts/Makefile.modpost:98: recipe for target 'vmlinux.o' failed
make[2]: *** [vmlinux.o] Error 1
/media/rawi/android/lineageos/kernel/lge/hammerhead/Makefile:936: recipe for target 'vmlinux.o' failed
make[1]: *** [vmlinux.o] Error 2
Makefile:130: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/media/rawi/android/lineageos/kernel/lge/hammerhead'
[ 12% 4387/34154] target Java: android-support-compat-ics-mr1 (/media/rawi/android/lineageos/out/target/common/obj/JAVA_LIBRARIES/android-support-compat-ics-mr1_intermediates/classes)
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/media/rawi/android/lineageos'
#### make failed to build some targets (13:29 (mm:ss)) ####
What I've already googled is that it's probably wrong toolchain used but I'm using the one supplied with LineageOS which is arm-eabi-4.8.
I added (not sure if it's necessary) the following exports
Code:
export PATH="/media/rawi/android/lineageos/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin:$PATH"
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE="/media/rawi/android/lineageos/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-"
I'd like to highlight that this environment was building LineageOS (cm-14.1 branch) in March perfectly fine
I know that I can add CONFIG_NO_ERROR_ON_MISMATCH=y to config but I assume this is not the right way to do.
Any help greatly appreciated
EDIT: solved... I was compiling CAF kernel with non-caf device
Thread closed as per OP request
-XDA Staff

a530_zap-pro.b00 Missing - Trying to build Lineage OS 15.1

I was following the official guide to building Lineage OS 15.1 for Oneplus 3T but when I executed "extract-files.sh" I got error with some files being missing.Ignoring that, when I ran brunch oneplus3 I got:
Code:
[1060/1060] including ./vendor/qcom/opensource/rcs-service/Android.mk ...
ninja: error: 'vendor/oneplus/oneplus3/proprietary/vendor/firmware/a530_zap-pro.b00', needed by '/home/user/Desktop/lineage/out/target/product/oneplus3/system/vendor/firmware/a530_zap-pro.b00', missing and no known rule to make it
20:25:42 ninja failed with: exit status 1
but I have checked with Root Browser and can say for sure that "a530_zap-pro.b00" file does not exist Anyone who has compiled Lineage OS before can you please tell how did you get it to work as the files don't exist. I'm currently on Oxygen OS Open Beta 24 with Magisk 16.3.
DelicatePanda said:
I was following the official guide to building Lineage OS 15.1 for Oneplus 3T but when I executed "extract-files.sh" I got error with some files being missing.Ignoring that, when I ran brunch oneplus3 I got:
Code:
[1060/1060] including ./vendor/qcom/opensource/rcs-service/Android.mk ...
ninja: error: 'vendor/oneplus/oneplus3/proprietary/vendor/firmware/a530_zap-pro.b00', needed by '/home/user/Desktop/lineage/out/target/product/oneplus3/system/vendor/firmware/a530_zap-pro.b00', missing and no known rule to make it
20:25:42 ninja failed with: exit status 1
but I have checked with Root Browser and can say for sure that "a530_zap-pro.b00" file does not exist Anyone who has compiled Lineage OS before can you please tell how did you get it to work as the files don't exist. I'm currently on Oxygen OS Open Beta 24 with Magisk 16.3.
Click to expand...
Click to collapse
Put this in your local_manifest/roomservice.xml file :
<project path="vendor/oneplus" name="TheMuppet/proprietary_vendor_oneplus" revision="lineage=15.1" />
Click to expand...
Click to collapse
and then do a `repo sync`. This repo wll add all mandatory files (files which are extracted by the `extract-files.sh' tool) to your build tree.
casual_kikoo said:
Put this in your local_manifest/roomservice.xml file :
and then do a `repo sync`. This repo wll add all mandatory files (files which are extracted by the `extract-files.sh' tool) to your build tree.
Click to expand...
Click to collapse
Thank you for that but I was curious about how those files were obtained. And now I'm having another error:
Code:
make[1]: Leaving directory '/home/user/Desktop/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'
make: Leaving directory '/home/user/Desktop/lineage/kernel/oneplus/msm8996'
Building DTBs
make: Entering directory '/home/user/Desktop/lineage/kernel/oneplus/msm8996'
make[1]: Entering directory '/home/user/Desktop/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
Using /home/user/Desktop/lineage/kernel/oneplus/msm8996 as source for kernel
CHK include/generated/utsrelease.h
CALL /home/user/Desktop/lineage/kernel/oneplus/msm8996/scripts/checksyscalls.sh
make[2]: 'include/generated/vdso-offsets.h' is up to date.
make[1]: Leaving directory '/home/user/Desktop/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'
make: Leaving directory '/home/user/Desktop/lineage/kernel/oneplus/msm8996'
ninja: build stopped: subcommand failed.
20:21:02 ninja failed with: exit status 1
DelicatePanda said:
Thank you for that but I was curious about how those files were obtained. And now I'm having another error:
Code:
make[1]: Leaving directory '/home/user/Desktop/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'
make: Leaving directory '/home/user/Desktop/lineage/kernel/oneplus/msm8996'
Building DTBs
make: Entering directory '/home/user/Desktop/lineage/kernel/oneplus/msm8996'
make[1]: Entering directory '/home/user/Desktop/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
Using /home/user/Desktop/lineage/kernel/oneplus/msm8996 as source for kernel
CHK include/generated/utsrelease.h
CALL /home/user/Desktop/lineage/kernel/oneplus/msm8996/scripts/checksyscalls.sh
make[2]: 'include/generated/vdso-offsets.h' is up to date.
make[1]: Leaving directory '/home/user/Desktop/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ'
make: Leaving directory '/home/user/Desktop/lineage/kernel/oneplus/msm8996'
ninja: build stopped: subcommand failed.
20:21:02 ninja failed with: exit status 1
Click to expand...
Click to collapse
Your output is missing some information, there is no error in this, except
Code:
ninja: build stopped : subcommand failed
casual_kikoo said:
Your output is missing some information, there is no error in this, except
Code:
ninja: build stopped : subcommand failed
Click to expand...
Click to collapse
Sorry for the delay I am attaching the output of entire "brunch oneplus3" command to this and could you please tell me from where the files in the repo were obtained. Thanks for the help:highfive:
DelicatePanda said:
Sorry for the delay I am attaching the output of entire "brunch oneplus3" command to this and could you please tell me from where the files in the repo were obtained. Thanks for the help:highfive:
Click to expand...
Click to collapse
You have some problem with jack-server :
FAILED: setup-jack-server
/bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.11.ALPHA.jar 2>&1 || (exit 0) ) && (JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx2G" prebuilts/sdk/tools/jack-admin start-server 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update server prebuilts/sdk/tools/jack-server-4.11.ALPHA.jar 4.11.ALPHA 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-4.32.CANDIDATE.jar 4.32.CANDIDATE || exit 47 )"
Jack server already installed in "/home/user/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx2G -cp /home/user/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
Jack server failed to (re)start, try 'jack-diagnose' or see Jack server log
No Jack server running. Try 'jack-admin start-server'
No Jack server running. Try 'jack-admin start-server'
Click to expand...
Click to collapse
In the root of your Android build directory
Code:
prebuilts/sdk/tools/jack-admin start-server
and then, straight after starting jack-server, relaunch your build process.
Also, judging from the log, jack-server is launching with 2G of RAM, which is very low IMO. If you have a low end PC, check this XDA thread, which explains you how to use Google Cloud for free to build ROM.
If you still have issues with jack-server, check this build guide by @nathanchance : there is a part about jack-server memory's problem (Ctrl + F -> "Jack issues").
Also, check a look at this Google Groups thread, this might help you.
Concerning TheMuppets : to be honest with you, I don't know exactly where files come from, BUT looking at commit messages on their Github, you can see, among others, that fourkbomb is pushing to this organization; a quick Google Search, you find his Github profile, he's a member of LineageOS. Also, you'll find a lot of ROMs builders TheMuppet' repo, so nothing to worry about (their repos are on Github, so you can check by yourself ).

Categories

Resources