Pablito2020 / android_device_bq_krillin

🌲 device tree for the bq E4.5
11 stars 6 forks source link

make fails on the mt66xx_intermediates target #11

Open come-maiz opened 6 years ago

come-maiz commented 6 years ago

Hello!

I am now getting an error during the make.

This is if I use the android_device_bq_krillin cm-14.0 branch:

make: *** No rule to make target '/media/elopio/f22f4d36-2ea8-4320-9ebc-82ea8f3c7ea7/lineageos/android/system/out/target/product/krillin/obj/STATIC_LIBRARIES/lib_driver_cmd_mt66xx_intermediates/export_includes', needed by '/media/elopio/f22f4d36-2ea8-4320-9ebc-82ea8f3c7ea7/lineageos/android/system/out/target/product/krillin/obj/EXECUTABLES/hostapd_intermediates/import_includes'.  Stop.

This is if use the cm-14.1 branch:

make: *** No rule to make target '/media/elopio/f22f4d36-2ea8-4320-9ebc-82ea8f3c7ea7/lineageos/android/system/out/target/product/krillin/obj/STATIC_LIBRARIES/libwifi-hal-mt66xx_intermediates/export_includes', needed by '/media/elopio/f22f4d36-2ea8-4320-9ebc-82ea8f3c7ea7/lineageos/android/system/out/target/product/krillin/obj/SHARED_LIBRARIES/libwifi-service_intermediates/import_includes'.  Stop.
MagnusAlm commented 6 years ago

I get the same error on "android_device_bq_krillin cm-14.0".

Seems to be a problem with "BOARD_USES_MTK_HARDWARE", removing it from wpa_supplicant/Android.mk and BoardConfig.mk gets you further but it craps out when building "out/target/product/krillin/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o".

The lather is probably connected to former since running make with showcommands, shows stuff like "-DWIFI_DRIVER_STATE_CTRL_PARAM=\""/dev/wmtWifi"\" -DWIFI_DRIVER_STATE_ON=\"1\"" prior to the error.

Not getting any further atm.

delijati commented 6 years ago

@MagnusAlm i got a bit further https://github.com/halium-krillin/android_device_bq_krillin/commit/b642e77360dd6e25fae59df385d69fbe9238d8bc but then i get a curl dependency error

MagnusAlm commented 6 years ago

Package Complete: /home/magnus/android/system/out/target/product/krillin/lineage-14.1-20171115-EXPERIMENTAL-krillin.zip

@delijati Removing that whitespace in BoardConfig.mk helped. THANKS ;-)

There was also an extra empty row at the top in: device/bq/krillin/overlay/packages/apps/Settings/res/values/config.xml

delijati commented 6 years ago

hmm i still run into that error:

make: *** Keine Regel vorhanden, um das Ziel „/opt/develop/privat/mobile/halium/out/target/product/krillin/obj/SHARED_LIBRARIES/libcurl_intermediates/export_includes“, 
  benötigt von „/opt/develop/privat/mobile/halium/out/target/product/krillin/obj/SHARED_LIBRARIES/gps.mt6582_intermediates/import_includes“, zu erstellen.  Schluss.
  1034,16s user 94,46s system 94% cpu 19:51,04 total
MagnusAlm commented 6 years ago

@delijati I guess that is related to make a build for halium, I didn't get any such errors when building on "android.git -b cm-14.1".

delijati commented 6 years ago

@MagnusAlm have you flashed it ? is it working ?

MagnusAlm commented 6 years ago

No I haven't and will probably not do it in the nearest few weeks either, since I feel I need to have a working backup phone before I try it. And I will have to test all tools for flashing and backup first.

MagnusAlm commented 6 years ago

@delijati Did the last patch fix the build error you had on your fork?

MagnusAlm commented 6 years ago

I just made a compile with just these changes from stock Pablito2020/android_device_bq_krillin

device/bq/krillin/BoardConfig.mk (removing trailing spaces after these lines) WIFI_DRIVER_FW_PATH_PARAM:="/dev/wmtWifi" BOARD_USES_MTK_HARDWARE := true

device/bq/krillin/overlay/packages/apps/Settings/res/values/config.xml (removed the empty line at the top)

(The following changes might just be cosmetic tho) device/bq/krillin/mtk/patches/frameworks_av/mtk_color_support.patch (removing trailing spaces after media/libstagefright/colorconversion/ColorConverter.cpp after these lines) CAMERA_CMD_START_OT, CAMERA_CMD_STOP_OT,
DpAutoBufferPool *m_pPqPool;
uint32_t m_PqID;

delijati commented 6 years ago

@MagnusAlm i tired a plain lineage build, it worked lineage-14.1-20171117-EXPERIMENTAL-krillin.zip. I had to edit:

device.patch:

diff --git a/BoardConfig.mk b/BoardConfig.mk
index 5c080d1..688956e 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -112,7 +112,7 @@ BOARD_WPA_SUPPLICANT_DRIVER      := NL80211
 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_mt66xx
 BOARD_HOSTAPD_DRIVER             := NL80211
 BOARD_HOSTAPD_PRIVATE_LIB        := lib_driver_cmd_mt66xx
-WIFI_DRIVER_FW_PATH_PARAM:="/dev/wmtWifi" 
+WIFI_DRIVER_FW_PATH_PARAM:="/dev/wmtWifi"
 WIFI_DRIVER_FW_PATH_STA:=STA
 WIFI_DRIVER_FW_PATH_AP:=AP
 WIFI_DRIVER_FW_PATH_P2P:=P2P
@@ -132,7 +132,6 @@ TARGET_SYSTEM_PROP := $(LOCAL_PATH)/system.prop

 # Mediatek needed flags
 BOARD_HAS_MTK_HARDWARE := true
-BOARD_USES_MTK_HARDWARE := true 
 MTK_HARDWARE := true

 # Display
diff --git a/overlay/packages/apps/Settings/res/values/config.xml b/overlay/packages/apps/Settings/res/values/config.xml
index 08c8d55..dbaf137 100644
--- a/overlay/packages/apps/Settings/res/values/config.xml
+++ b/overlay/packages/apps/Settings/res/values/config.xml
@@ -1,4 +1,3 @@
-
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Copyright (C) 2007 The Android Open Source Project

diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk
index 0e25e61..003e299 100755
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -16,7 +16,6 @@

 LOCAL_PATH := $(call my-dir)

-ifeq ($(BOARD_USES_MTK_HARDWARE),true)
 ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_8_X)
 $(warning Build wpa_supplicant_lib...)
     WPA_SUPPL_DIR = external/wpa_supplicant_8
@@ -70,4 +69,3 @@ include $(BUILD_STATIC_LIBRARY)
 ########################

 endif
-endif

.repo/local_manifests/bq_krillin.xml:

<manifest>
    <!-- Device -->
    <project path="device/bq/krillin" name="Pablito2020/android_device_bq_krillin" remote="github" revision="cm-14.0"/>
    <project path="kernel/bq/krillin" name="Pablito2020/android_kernel_bq_krillin" remote="github" revision="cm-14.1"/>
    <project path="vendor/bq/krillin" name="Pablito2020/android_vendor_bq_krillin" remote="github" revision="cm-14.1"/>    
</manifest>
MagnusAlm commented 6 years ago

I have now tried to install the build I made in short words it didn't work. The build was compiled on Xubuntu 16.04 64bit version. (tools installed was the same as for building the cm-13 version, except for "mave" which I think is a typo in the text file provided by Pablito2020.

First I flashed my phone with the "1.5.3_20150618-1313_bq-FW" rom using "MediaTek SP Flash Tool v5.1424.0 (downloaded from bq.com).

Then I flashed the TWRP recovery image I built on to the phone with same SP Tool.

Even tho I could boot into TWRP recovery with that it was hopeless to use since the screen was constantly flashing and it was almost non responsive to input.

I then downloaded twrp-3.1.1-0-krillin.img for BQ Aquaris E4.5 and flashed it. This version worked.

I then installed my CM-14.1 build zip file and open_gapps-arm-7.1-mini-20171116.zip. Even tho that operation did go well it never booted afterwords.

After that I tested a few of the other roms with Kitkat 4.4.2 from bq.com and since that didn't work either I got to the conclusion that the rom I've built was faulty and could never boot.

So I tested to install lineage-13.0-20170521-UNOFFICIAL-krillin.zip instead (along with open_gapps-arm-6.0-mini-20171117.zip and addonsu-13.0-arm-signed.zip). ( I think I was on 1.2.0_20140708-1640_krillin_bq-FW then, tested so many and lost track of it.)

CM-13.0 works tho it seems to have some flaws, not tested every thing I would like to use yet tho. Things that I've noticed that doesn't work so well so far:

Can't receive sms/mms from Iphone 4s. Didn't receive the sms for activating android messenger either.

Some apps hangs and even reboots the phone, even got stuck in safe mode at one point.

I don't know if these issues is related to LineageOs in general, my installation method/tools or the cm-13.0 rom.

delijati commented 6 years ago

@MagnusAlm urgss that sounds pretty disappointing :/

MagnusAlm commented 6 years ago

@delijati Or like a challenge ;-)

MagnusAlm commented 6 years ago

note to my self "check that mobile data is on when trying to send or receive mms, dumbass!"

ghost commented 6 years ago

I fixed vulding for meizu justa adding on /build/core/main.mk the: external/libnl external/libcurl

and also on the same main.mk adding device/meizu to # device and vendor

GRajin commented 1 year ago

hmm i still run into that error:

make: *** Keine Regel vorhanden, um das Ziel „/opt/develop/privat/mobile/halium/out/target/product/krillin/obj/SHARED_LIBRARIES/libcurl_intermediates/export_includes“, 
  benötigt von „/opt/develop/privat/mobile/halium/out/target/product/krillin/obj/SHARED_LIBRARIES/gps.mt6582_intermediates/import_includes“, zu erstellen.  Schluss.
  1034,16s user 94,46s system 94% cpu 19:51,04 total

Were you able to fix this?? Could anyone please help me with this?