yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 General] fattire:
Yeah-- if you want to start over, you might do this:

repo status

this will show any files you may have changed... you can go to each repository and type git reset --hard to restore it to its initial state

then you can repo sync just to get up to date and make sure there are no issues with the various repos you have... if everything is clean, then copy the roomservice.xml file into .repo/localmanifests/.

Then do the changes I describe here (until Slayher fixes it), then be sure to make clobber to clean out the old build, and then brunch trlte.

Good luck!
[Galaxy Note 4 General] gekkehenkie11:
Thanks fattire !! Going to try it. Also, what different is the T-mobile version from the 910F ? I mean hardware is 100% the same, right ? So if we'd want to get it up on the 910F what are the things we'd have to tweak ?
[Galaxy Note 4 General] fattire:
I'm not too familiar with the different models-- I know there's an exynos version available in europe, but the F variant-- which one is it?

Oh-- to modify my instructions above-- once you add the roomservice.xml file, be sure to repo sync to pull in the new repositories...
[Galaxy Note 4 General] gekkehenkie11:
Snapdragon too, but it's the European version. Same SoC though. Just wondering what's even the difference between carriers. It's only RIL(D) related ?

Yes, got that ;)
[Galaxy Note 4 General] fattire:
Not having one to try I don't know the answer as far as difficulty, but all the non-RIL stuff is probably the same, so I suppose as long as it takes to get the data and phone stuff working is the degree of difficulty... you can look at the code history to see where Slayher added voice and just try to do the same thing...
[Galaxy Note 4 General] :
There's a guy who ported echoe rom from the 910f to the sprint variant. Might be worth asking him what he changed. Think there were a few extra files as well as the ril libs
[Galaxy Note 4 General] gekkehenkie11:
BTW [MENTION=3041959]fattire[/MENTION] and [MENTION=2457777]slayher[/MENTION]: again thanks for all your hard and wonderful work ! I was a bit afraid you guys would keep off the release for a long time, but you didn't and made everybody happy :) Having experimented with this myself I understand that it can be very frustrating to fix stuff if it doesn't even boot ADB (or did you guys use JTAG to debug ? I guess it helped you guys a lot you already got the Note 3 up anyway)

Anyway, Hats off to you guys !
[Galaxy Note 4 General] gekkehenkie11:
Great idea, just sent him a msg. I'd say it's RIL and maybe partitioning stuff.
[Galaxy Note 4 General] Airtioteclint:
Imstall the tmo build. Candian variant users are reporting that it's working for them.
[Galaxy Note 4 General] Beukhof1:
What device do you have?
[Galaxy Note 4 General] fattire:
Hey Gekkehenkie, wanted to make sure you saw this post. It's a "project" to get your feet wet and maybe get people contributing.
[Galaxy Note 4 General] gekkehenkie11:
Hi mate ! Yes, will surely look at that, primary goal is to get everything up and running on 910F or course. I don't think it should be too hard though, I just talked to the guy who did a port for a rom the other way (910F -> sprint) and mostly it are indeed RIL files he changed (although his work was slightly different cause he didnt use sources to build but just replaced the libs themselves).

Oh btw, I'm just syncing files now, you made a small type: .repo/localmanifests should be .repo/local_manifests I just found out ;) After renaming the dir to that, it's now syncing :)
[Galaxy Note 4 General] gekkehenkie11:
Ok synced everything, I think I've set everything up correctly and it's building now.... Off to bed, hopefully tomorrow waking up with a succesful build :)
[Galaxy Note 4 General] vogli:
I finally couldn't resist and have also setup a build environment. I fixed the location error by downloading the com.qualcomm.location.apk from stock. Unfortunately my build then failed with the same redecoration error in QCMetaData.h. I didn't get to look into it yet.

It however happened when I tried to rebuild after a missing c2d2.h error.
[Galaxy Note 4 General] utopiate:
Fingers crossed dude ;) it would be a welcome distraction from essay writing lol
[Galaxy Note 4 General] Beukhof1:
And did it build successful?
[Galaxy Note 4 General] gekkehenkie11:
Not yet, it needs some tweaking, several references to trltetmo need to be changed and the blob pulling fails on some files, that's because of the build.prop settings not allows adb/pull for some files which need root access, I pulled those manually so that wasn't a problem. Some blobs however do not exist at all:

remote object '/system/lib/hw/camera.vendor.apq8084.so'. However this file does exist, maybe I need this one: camera.apq8084.so

remote object '/system/lib/libdetectmodem.so' does not exist. I don't see a similar file

remote object '/system/vendor/firmware/bcm43569A0.hcd' does not exist

remote object '/system/vendor/firmware/bcm43569A0.hcd' does not exist

remote object '/system/vendor/firmware/bcm43569A1.hcd' does not exist

remote object '/system/vendor/firmware/bcm43569A1.hcd' does not exist

These do exist instead in that dir.

bcm43569.hcd

bcm43569A0_semco.hcd

bcm43569A0_wisol.hcd

bcm43569A1_semco.hcd

bcm43569A1_wisol.hcd

Apart from that, device/samsung/trlte/init/init_trlte.c fails , it needs an 'if'. Just added that, now compiling again ...

*EDIT* Damn and as expected:

make: *** No rule to make target `vendor/samsung/trlte/proprietary/vendor/firmware/bcm43569A0.hcd' ... Any idea's [MENTION=3041959]fattire[/MENTION] ? Does it simply need either of those semco/wisol files ? And if so, which one ?

*EDIT* three of those files (the 66 kb versions) are exactly the same ! The other one is 32kb. I think I'm going to try to just rename and see what happens.

Anyway it's building again now, but I'm expecting a break for that camera so file and for that modemdetect so.
[Galaxy Note 4 General] fattire:
All that work sounds like too much. SHouldn't have to do anything? Coudl you have done a repo sync while Slayher was making the tmo changes? I didn't have to change anything except the roomservice.xml...
[Galaxy Note 4 General] gekkehenkie11:
as expected:

No rule to make target `vendor/samsung/trlte-common/proprietary/lib/libdetectmodem.so

Not sure how to proceed here as this file doesn't exist on the 910F ... [MENTION=3041959]fattire[/MENTION] ?
[Galaxy Note 4 General] gekkehenkie11:
I think you had edited your build.prop file ? If not it fails on extracting some blobs you need root access for (adb pull doesn't run as root otherwise). Anyway that part I've solved. The problem is those few files that dont exist like that camera lib...
[Galaxy Note 4 General] fattire:
No I didn't hand edit my build.prop at all. I'm not sure why you're having prop issues at all, save the location.qualcomm thing... I don't think you need to do anything else. Are you sure you are up to date with that repo? If you made changes to it, it may have inhibited your ability to update it via repo sync... but repo sync should also have given you some warnings that it was unable to update... if you do a

git log

in that directory, you should make sure it matches with the one visible on the web site.... just to besure.. also make sure the branch is correct.
[Galaxy Note 4 General] fattire:
Oh wait--if this is 910F you're talking about, and there's a missing prop file, all you have to do is find the Android.mk (or whatever.mk is called by Android.mk) and remove that line.

So I'd do something like cd to the vendor/samsung/trlte-common directory, then

find . -type f -exec grep -Hi libdetectmodem {} \;

to find all files that reference libdetectmodem. Then remove that line.
[Galaxy Note 4 General] gekkehenkie11:
910F indeed ;) Ah I can just delete the ref to it, nice :) Thanks !!
[Galaxy Note 4 General] vogli:
There is a libmdmdetect.so. That might be the one that is needed here.

As for the bcm43569 stuff. This seems to be the issue why people are reporting that they have to switch to 2.4GHz only. This is a 5GHz WiFi chip with BT4.1 included from Broadcom. What confuses me is that Wisol and Semco are chip manufacturers. They all have the same md5 checksum,apart from the A0_semco. So it shouldn't matter.

---------- Post added at 06:21 PM ---------- Previous post was at 06:17 PM ----------

How does it come that you got past the header file stuff that I got? I am still not home yet. I might have used brunch trite instead of trltetmo. I have to check, but I guess that shouldn't work anyway. Maybe it was just a bad timing syncing the repo.
[Galaxy Note 4 General] gekkehenkie11:
Nice find vogli! About header stuff I renamed everything into trlte that seems to work. I searched the device tree for mentions of trltetmo and renamed them. However next problem now is .... is that I am back to where I started. Build breaks with those double definitions in media/libstagefright... this is driving me nuts
[Galaxy Note 4 General] gekkehenkie11:
I missed this message. Yes this is exactly the problem I am mentioning. Qcmetadata redefinitions. We are stuck at the same place
[Galaxy Note 4 General] gekkehenkie11:
One thing I don't understand is why it works for [MENTION=3041959]fattire[/MENTION]. Going to look into it some more when I am at home
[Galaxy Note 4 General] gekkehenkie11:
I think this is the culprit, the makefile in the libstagefright dir:

ifeq ($(TARGET_ENABLE_QC_AV_ENHANCEMENTS),true)
LOCAL_CFLAGS += -DENABLE_AV_ENHANCEMENTS
LOCAL_C_INCLUDES += $(TOP)/$(call project-path-for,qcom-media)/mm-core/inc
LOCAL_C_INCLUDES += $(TOP)/frameworks/av/media/libstagefright/include
LOCAL_SRC_FILES += ExtendedMediaDefs.cpp
LOCAL_SRC_FILES += ExtendedWriter.cpp
LOCAL_SRC_FILES += FMA2DPWriter.cpp
endif #TARGET_ENABLE_AV_ENHANCEMENTS

That mm-core/inc causes to include that QCMetadata.h. Somehow that TARGET_ENABLE_QC_AV_ENHANCEMENTS must be false then for [MENTION=3041959]fattire[/MENTION] I think ... Going to try to just comment out that whole part of the makefile ...
[Galaxy Note 4 General] gekkehenkie11:
Hmmm it seems to continue building now :) It's the only explanation I have at the moment: TARGET_ENABLE_QC_AV_ENHANCEMENTS must be false for fattire and Slayher's build (otherwise they'd run into the same problem). Not sure why it's then true for our builds. Anyway it's building now, lateron we can do a grep to find out about that parameter.
[Galaxy Note 4 General] vogli:
Did you do a repo sync in between? I have seen that there have been changes to this today. It seems to be building for me too now. I also changed the roomservice as slayher has renamed his repo to trltetmo now.
[Galaxy Note 4 General] gekkehenkie11:
No, didnt do a sync. So you're saying it's building now without changing anything else !?!?
[Galaxy Note 4 General] fattire:
Just checked--

BoardConfigCommon.mk:TARGET_ENABLE_QC_AV_ENHANCEMENTS := true

in trlte-common. What's the error associated with this? Mabye I can track it down backwards and see why you get it and I don't...
[Galaxy Note 4 General] gekkehenkie11:
That's odd... I don't get it. Anyway the error is this (amongst a lot similar errors) ->

In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:44:0:
./hardware/qcom/media-caf/apq8084/mm-core/inc/QCMetaData.h:39:32: error: redeclaration of 'kKeyRawCodecSpecificData'
kKeyRawCodecSpecificData = 'rcsd', // raw data - added to support mmParser
^
In file included from frameworks/av/media/libstagefright/AudioPlayer.cpp:37:0:
frameworks/av/include/media/stagefright/MetaData.h:135:5: note: previous declaration 'android::<anonymous enum> kKeyRawCodecSpecificData'
kKeyRawCodecSpecificData = 'rcsd', // raw data - added to support mmParser
[Galaxy Note 4 General] vogli:
Seem like, but unfortunately that doesn't mean that it completes. :)

device/samsung/trlte-common/mkbootimg.mk:30: recipe for target '/home/timow/android/out/target/product/trltetmo/dt.img' failed

make: *** [/home/timow/android/out/target/product/trltetmo/dt.img] Error 1

I am not sure though, what the exact error is. It is complaining about lots of missing android/out/target/product/trltetmo/obj/KERNEL_OBJ/arch/arm/boot/dts/apq8084-sec-trlte-chnduos-r07.dtb

Further up is also an xml namespace error.

---------- Post added at 09:46 PM ---------- Previous post was at 09:42 PM ----------

The dtb files seem to be the issue. I have to look at the kernel.
[Galaxy Note 4 General] gekkehenkie11:
So how did you get past that QCMeta header ? Just a sync solved it ?
[Galaxy Note 4 General] gekkehenkie11:
Going to stop building and make the makefile orginal again and so a sync ...
[Galaxy Note 4 General] gekkehenkie11:
When syncing I get:

error: device/samsung/trlte/: Slayher/android_device_samsung_trlte checkout 809f5cc55f1e83bbdb13eb0c9d2d6a5a174d45fe

What does that mean ? Man ... this is getting on my nerves now ...
[Galaxy Note 4 General] vogli:
I started all over and changed the roomservice to use the new trltetmo repo and did a repo sync and the brunch trltetmo
[Galaxy Note 4 General] fattire:
I always do a reverse-search for "error:" to try to find it. the dtb/dts stuff shouldn't be change din the kernel (for trlte tmo at least)... for your "f" model you're probably using a different defconfig but I'm assumign the dts stuff would similarly be good... I mean, samsung owes you guys a kernel that builds.
[Galaxy Note 4 General] gekkehenkie11:
So you didn't rename anything ? Just synced CM12, then modded the roomservice with fattire's info, synced and then brunch ?
[Galaxy Note 4 General] vogli:
Yes, but change the repo trlte to trltetmo in the roomservice info.
[Galaxy Note 4 General] gekkehenkie11:
Can you copy paste your roomservice please ?
[Galaxy Note 4 General] fattire:
FWIW I updated it in post #2 in the other thread last night... (that said, todays' biuld is bootlooping not sure why.. probably somethign I did or forgot to do... Actually I think i forgot to re-comment out qualcom location now that I think about it)

Update: Yeah that was it. If you happen to forget aboutthat, you can boot into recovery, mount /system, and rm -rf /system/app/com.qualcomm.location and that fixes it.
[Galaxy Note 4 General] gekkehenkie11:
You mean you changed localmanifests into local_manifests, right ? Or did you change more ? I'm not sure what [MENTION=4748177]vogli[/MENTION] meant with changin trltetmo into trlte, so hoping he can post his roomservice file.
[Galaxy Note 4 General] fattire:
Take a look at the one I posted. Since slayher changed the name of the repository from android_device_samsung_trlte to android_device_samsung_trltetmo, you need to reflect this in your version and update roomservice accordingly.

My build from 5 minutes ago is back up and running :)
[Galaxy Note 4 General] gekkehenkie11:
Right, so I should just use the file you've posted without changing it. I understand the confusion now :)
[Galaxy Note 4 General] vogli:
<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<project name="Slayher/android_kernel_samsung_trlte" path="kernel/samsung/trlte" remote="github" />

<project name="Slayher/android_device_samsung_trltetmo" path="device/samsung/trltetmo" remote="github" />

<project name="Slayher/android_device_samsung_trlte-common" path="device/samsung/trlte-common" remote="github" />

<project name="Slayher/proprietary_vendor_samsung" path="vendor/samsung" remote="github" />

<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />

<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" />

<project name="CyanogenMod/android_hardware_qcom_display" path="hardware/qcom/display-caf/apq8084" remote="github" revision="cm-12.0-caf-8084" />

<project name="CyanogenMod/android_hardware_qcom_audio" path="hardware/qcom/audio-caf/apq8084" remote="github" revision="cm-12.0-caf-8084" />

<project name="CyanogenMod/android_hardware_qcom_media" path="hardware/qcom/media-caf/apq8084" remote="github" revision="cm-12.0-caf-8084" />

</manifest>
[Galaxy Note 4 General] gekkehenkie11:
Ok, syncing again, hoping this is finally going to get me past that QCmetadata.h error ...
[Galaxy Note 4 General] vogli:
I am still stuck with the dtb files. It somehow thinks it has a lot more of the as it actually created during the build.

---------- Post added at 11:28 PM ---------- Previous post was at 10:34 PM ----------

Here is the issue:

In kernel/samsung/trlte/arch/arm/boot/dts/qcom/Makefile it only builts the following files:

But in mkbootimage.mk of trlte-common it uses the following to get the list:

I for now changed it to the following:

However, I think the first one should be changed as there are more dts file for trlte:

I think we need the v1.1 as well. This might be causing the mtp problems as well. I have no idea though what the dtb files are used for.
[Galaxy Note 4 General] fattire:
The device tree stuff is new to the kernels-- the idea is to have a .dts file that defines the device so that you can use a single kernel source for multiple devices... read more here https://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf
[Galaxy Note 4 General] gekkehenkie11:
See my post here: http://xdaforums.com/showpost.php?p=57184858&postcount=161

I think I remember I changed this line, specifically that last path, I think I'vre added /dts:

$(hide) $(DTBTOOL) -o $(INSTALLED_DTIMAGE_TARGET) -s $(BOARD_KERNEL_PAGESIZE) -p $(KERNEL_OUT)/scripts/dtc/ $(KERNEL_OUT)/arch/arm/boot/dts/

I'm still syncing sources so I can't check slayher's version. Anyway this worked for me and the resulting DTB file was exactly the same size as the original samsung kernel's one, so I figured it was correct. Keep in mind that this is for the original samsung kernel, so slayher will have changed msm8084 into apq8084 etc.
[Galaxy Note 4 General] vogli:
I am done for today. My disk ran full. I have to move to another PC tomorrow. That will take some time.
[Galaxy Note 4 General] gekkehenkie11:
Haha welcome to my world ;) If you're on virtualbox, you're probably going to need this tutorial: http://derekmolloy.ie/resize-a-virtualbox-disk/ ;) I used it to resize my 100 gb vdi to 200 gb, worked perfectly. Good luck Vogli, catch you tomorrow !
[Galaxy Note 4 General] vogli:
I am in Parallels, but the plan is to use Docker on my Linux Server. That way I can use the full power of the PC and still keep it clean. Otherwise I would go with KVM.
[Galaxy Note 4 General] ciscostud:
Best way to run CM12 is to buy a nexus 6
[Galaxy Note 4 General] hello00:
If i ever need a brain transplant id choose yours because id want a brain that had never been used
[Galaxy Note 4 General] ciscostud:
That would explain why you bought a Note 4 with spen features just to hope for CM12 port. Yes very smart brain.
[Galaxy Note 4 General] gekkehenkie11:
Funny thing then, that we have CM12 running on the Note before on the Nexus 6. Anyway nobody cares about Nexus 6 here, this is the Note 4 forum.
[Galaxy Note 4 General] dtr145r:
no
[Galaxy Note 4 General] hello00:
oh is that right? if you have something worthwhile to say say it if not mosey off somewhere else and do us all a favor
[Galaxy Note 4 General] gekkehenkie11:
Please don't feed the troll so we can focus on development discussion here. Thanks.
[Galaxy Note 4 General] gekkehenkie11:
I just ran into this error:

ake: *** No rule to make target `/media/chris/ext4files/cm/out/target/product/trltetmo/obj/lib/libtime_genoff.so', needed by `/media/chris/ext4files/cm/out/target/product/trltetmo/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so'. Stop.

The file was in vendor/samsung/trlte-common/proprietary/vendor/lib though, copied it to that out dir and it seems to be building again.
[Galaxy Note 4 General] gekkehenkie11:
It continues building, praying finally it's going to get past those damn QCMetadata.h errors... Off to bed now.
[Galaxy Note 4 General] dtr145r:
Best of luck
[Galaxy Note 4 General] fattire:
Thanks for waddling over here from the other thread.

Here's a tip if you're running low on space--

cd $OUT

rm *.zip

gets rid of zips from older builds.
[Galaxy Note 4 General] gekkehenkie11:
Package Complete: /home/gkh/android/system/out/target/product/trltetmo/cm-12-20141209-UNOFFICIAL-trltetmo.zip

:D
[Galaxy Note 4 General] fattire:
Hey congrats!
[Galaxy Note 4 General] utopiate:
Awesome, so close now mu ha ha lol
[Galaxy Note 4 General] DBDPCG:
Will this be compatible with N910G as well as they're pretty similar , there are reports that some roms work for both versions, keep up the amazing work
[Galaxy Note 4 General] jazzypit:
great man you are the best
[Galaxy Note 4 General] shadowsami4:
Amazing what's next step. Thanks for your hard work
[Galaxy Note 4 General] :
amazing work everyone!

*charging phone for the upcoming CM flashing
[Galaxy Note 4 General] cedricf25:
No recovery working for me...

It says :

E:Error executing updater binary in zip ...

E:Unable to mount /system

I checked that I install qualcomm version. But no success. :(

What version have you flashed ?
[Galaxy Note 4 General] Beukhof1:
Great job! Does it boot?
[Galaxy Note 4 General] gekkehenkie11:
Not working just yet, first problem was of course that the updater-scripts checks for trltetmo version, I simply patched that line to match trlte. Then it went on installing but soon aborted with a vague error like "Error while installing package" and just aborted. I suspect it might be a partition thing, I havent even checked if our partitions match trltetmo, going to do that now ...
[Galaxy Note 4 General] cedricf25:
With which recovery ?
[Galaxy Note 4 General] gekkehenkie11:
I'm just using CWM as a recovery. Ah you're having problems with flashing the recovery.img ?
[Galaxy Note 4 General] cedricf25:
I'v flashed twrp with no problem.

But built-in recovery won't flash with odin or heimdall...

How did yo do ?
[Galaxy Note 4 General] vogli:
I am still not done. The build is however running nicely in a Docker container now. It breaks when building the kernel though. I am just giving it another try after doing a repo sync.

Did you have to fix anything else?

---------- Post added at 03:12 PM ---------- Previous post was at 03:11 PM ----------

Have you got a backup of your EFS partition? This is very important. You don't want to brick your device.
[Galaxy Note 4 General] Beukhof1:
I'm using twrp as well no flashing problems so far.
[Galaxy Note 4 General] gekkehenkie11:
Hi Vogli ! No just that error I mentioned on the previous page (a missing lib I had to copy). Apart from that building went smooth now.

Yeah made a backup with CWM
[Galaxy Note 4 General] gekkehenkie11:
BTW I just flashed the recovery.img from the outdir (with flashifly), that doesn't boot neither ...
[Galaxy Note 4 General] isaakmg:
Good work friend! I don't se link of download? Where is it? Thanks in advance....
[Galaxy Note 4 General] gekkehenkie11:
Partition sizes are slightly different, I'm now using:

# Partitions
BOARD_FLASH_BLOCK_SIZE := 262144
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 17825792 #correct
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 19922944 #correct
# BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3984588800 Slayhers version
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3774873600
BOARD_USERDATAIMAGE_PARTITION_SIZE := 27019685888
#BOARD_USERDATAIMAGE_PARTITION_SIZE := 26558312448 Slayhers version

Also I'm not sure about the VOLD part in the fstab file ... Anyway building again with above params but actually I doubt that that's the problem (I guess these params are only used to check for max sizes).
[Galaxy Note 4 General] gekkehenkie11:
Not much sense in putting up a download link when you can't flash it.
[Galaxy Note 4 General] vogli:
OK, I am done now. The build went through now. My container was missing the bc command.
[Galaxy Note 4 General] gekkehenkie11:
Nice ! Make sure to edit your install script the first line (change trltetmo into trlte) and then get ready to see a 'status 1' error while installing with CWM :) Which btw I think means a mounting error ...
[Galaxy Note 4 General] vogli:
I am not planing to flash it yet. I just wanted to get through first of all. I haven't even rooted my phone yet.
[Galaxy Note 4 General] cedricf25:
Ok,

I'v successfully flash CWM. But it doesn't boot.

:(