yashsingh1/xdaforums huggingface dataset:
[Onetouch Idol 3 Android Development] ps3cfw:
Success! at first, I had the same trouble as poor yash_ratore25 had, but I finally managed to build a 64-bit kernel! (Or at least I think I did.....).

There are some problems with makefile location and file extension (like, it was checking for .dts files but they were all .dtsi, and also looked for a makefile for a folder that din't even exist, so I had to make an empty one for it not to fail.....)

Yash, the problem is: When you do export PATH=$, are you sure the end is the same as export CROSS_COMPILE= ?

for example, these are my export PATH and cross compile:

export PATH=$PATH:/media/il-doc/App/AOSP/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin

export CROSS_COMPILE=aarch64-linux-android-

after that, I make a good ol' make distclean and then make idol3_defconfig, to end it all Make -j13 ('cause 12 thread CPU).

Oh, I also did some modification to the frequency table: it should go up-to 1.7 GHz.

So, with a 18.5 MB kernel, what am I supposed to do? Guess I'll just leave this here...

WARNING: I have to test this yet! I don't take any responsibility!

https://mega.nz/#!oEpyhBxJ!hPL5RwiuPJ8RMBBq0MQkJcyPPzApDSQIIemeh_ZeUdg

EDIT: It seems to me, that I'm definitely missing something in the equation, I just don't know what. It doesn't even get to adb. I can't even logcat why it doesn't boot.

EDIT2: Took me a while to find out what was missing and what wasn't, managed to boot from my custom kernel! Now I'm checking for CPU and GPU overclock...
[Onetouch Idol 3 Android Development] Anghirrim:
[MENTION=1491069]ps3[/MENTION]cwf

I told you I don't want to void my warranty!!!! :D

Don't make such interesting things or I won't be able to resist trying!!
[Onetouch Idol 3 Android Development] ps3cfw:
Even though, I'm having the same problem someone reported way earlier than me: no wi-fi and phone random-self reboots. I'm trying to look for the issue.

But hey, at least we know for sure the 6045Y is definitely not doomed, and source compiles PERFECTLY.
[Onetouch Idol 3 Android Development] dexter20082001:
Was this the 5.1.1 source? Very stoked to see progress. I am a computer science major and am starting to dabble into linux and android development so I have an interest in helping if or when I get this phone.
[Onetouch Idol 3 Android Development] ps3cfw:
Not yet. There's no point in working with 5.1.1 (which I have already prepared, anyway) if (we) can't even have a stable 5.0.1 kernel for the stock rom. It's like making a subsystem with an unstable system: it's not a good idea. NEVER.

Trust me, I worked with a unstable-overclocked AMD FX long enough to know how unstability is bad.

Anyway, I noticed there are two 6045Y configs, called idol3_defconfig and idol3-perf_defconfig. The latter seems to be the same kernel we already had previously.

The normal defconfig may have more debug code inside, though.
[Onetouch Idol 3 Android Development] dexter20082001:
Okay, so if i am not mistaken the Idol3 is still on 5.0, not 5.0.1. If the modules and drivers were not updated on the device as well then that could be a clue to the issue of instability. I am assuming you have also tried it with out any modified clockspeeds?

I am just asking because I do not know what has been tried and I do have some experience so I would really like to help.
[Onetouch Idol 3 Android Development] ps3cfw:
tried with and without CPU/GPU overclocking capability, with GCC 4.9 and GCC 4.8, the situation became increasingly worse:

At first I could get into the lockscreen, just to see the device hang and reboot with no chance of getting a debug log.

Now I can't even get it to boot, so I'm re-unzipping my kernel source and I'm trying to use one of those "optimized" toolchains.

It's really difficult because it gets to the lockscreen, just to hang and reboot, even weirder, if you clean both cache and dalvik, it will optimize ALL THE APPLICATION, just to hang on the "finalizing boot" part. I don't know where to look for.

weirdest of them all, it seems like the source code lacks some fundamental binary files, to be precise those required to make a dt.img file able to make the kernel bootable.

Kernel lacks last-kmsg function. Dmesg, bugreport, logcat, none of them seems to give a clear answer to WHAT MAKES IT HANG.
[Onetouch Idol 3 Android Development] petrov.0:
The kmsg info a.k.a dmesg can be monitored through adb (with adb logcat and the device connected to the USB port). All sources for the DTBs are with extension .dtsi in the source code (because they are source files). You don't need them compiled in the kernel. They must be compiled separately and incorporated in the boot.img (along with the zImage and the ramdisk ... that's the Android way). Also I don't know what changes you make in the source to overclock the processor but this can be dangerous especially if you don't know what you do. Assuming that you still use the stock dt.img is safe though :D
[Onetouch Idol 3 Android Development] ps3cfw:
I'm pretty confident in my overclocking capabilities, my 4.6 GHz 5820K would say so too.

no matter what I do though, it only created 2 DTBs, which are msm8936-mtp-smb1360 and msm8939-mtp-smb1360. Trying to use those to make a dt.img results in failure.

make dtbs does nothing.

Plus, out of boredom, I just tried to compile the kernel with GCC 6. It bootloops before even opening adb communications.
[Onetouch Idol 3 Android Development] petrov.0:
How the overclocking of a PC (Intel i7) CPU is related to the overclocking of the ARM chip in our phones ?!? Do you have some BIOS (UEFI) options on your phone ? This is the command (it is standard for all custom ROMs ... from mkbootimg.mk) which compiles the dt.img from the source code:

$(DTBTOOL) -2 -o $(INSTALLED_DTIMAGE_TARGET) -s $(BOARD_KERNEL_PAGESIZE) -p $(KERNEL_OUT)/scripts/dtc/ $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/dts/
[Onetouch Idol 3 Android Development] xemiw:
I was trying to do the same and got stuck at the same point... I guess I looked up every forum that exists on Earth on debugging android kernels, but I couldn't find a way to figure out why the compiled kernel reboots *exactly* after the boot. On the other hand, I'm definitely not an expert, I was just trying to do the same - porting CM.

A few observations that might help you:

* I'm using the gcc 4.9.x-google (20140827) version, that's the only one I found that produces a booting kernel (got the version string from the kernel binary on the device)

* you don't have to compile the dt.img yourself, you can use the one you have on your device

* about the two defconfigs: yes, idol3 is the one with debug info, idol3-perf seems to be the release version

Anyway, let me know if I can help you with anything!
[Onetouch Idol 3 Android Development] dexter20082001:
Has anyone tried a known working kernel for the same chipset and android version from another device?
[Onetouch Idol 3 Android Development] ps3cfw:
My only possible guess, is that the device hangs when it's trying to load something in particular, because kernel works UNTIL POST-BOOT. It may or may not be related to the missing wi-fi modules (even though HSDPA+ works just fine).

Safe mode does nothing. And the lack of kernel panics is tremendous... even enabling debugging level 8, it just doesn't give out any info about why it hangs.

I guess I could try to use Xiaomi Mi 4I kernel source and adapt it for our idol3. That's the only plausible idea I have anyway.

PS: I have the same situation, google's own GCC 4.9.X is the only working toolchain that gives me a kernel that actually boots.
[Onetouch Idol 3 Android Development] dexter20082001:
If you get around to trying the Mi 4 kernel, let us know how that goes.
[Onetouch Idol 3 Android Development] ps3cfw:
it's currently building using idol3_defconfig, luckily, both devices are VERY similar, so it wasn't very hard to fetch those missing modules the idol3 needed for the kernel to compile. IF this somehow works and I manage to get a working kernel, first things first I'll re-add the overclocking capability (which somehow seems an overrated feature: I assume y'all know it's pretty easy to manage, do you?)

EDIT: Same results, or rather, I think something is broken with my Ubuntu installation, damn 15.10... Time to format and then I'll be back on road, hopefully.
[Onetouch Idol 3 Android Development] yash_rathore25:
finally i got success in installing chineese version of ours idol3 on 6045i

now i will try to port other other roms on the basis of it

running smooth and camera is far better than the updates
[Onetouch Idol 3 Android Development] ps3cfw:
Welp, kernel boots. Somehow starting adb logcat makes it last longer... however, I haven't got any useful results out of this, or at least I think I haven't.

If someone can read this, here's the kmsg:

http://pastebin.com/BM2jBppA

and the alleged logcat (or at least, a tiny portion of it):

http://pastebin.com/RwmsmKv7

I can't find any particular pattern with all of this, there's no kernel panic in the first place! The phone just stops like someone is calling a reboot!
[Onetouch Idol 3 Android Development] Anghirrim:
I am feeling so frustrated for not being able to help when you guys spend time develoing for our device.

Just wanna say thanks again and good luck!

Let me know if you need any translation on documentation you might find useful in french (even if it's not likely to happen as most of the discussions are in english). If I can be of any help, just ask!
[Onetouch Idol 3 Android Development] ps3cfw:
In the meantime, I'm downloading CM12 repos, hoping ash's device tree is already functional and he just couldn't build it.

Here is a test-able boot.img for 6045X devices. If anyone has good will, can you test this out and make as much debug logs as possible (not only logcat)

https://mega.nz/#!UV4nGL6a!bEOsjOQoEY1I4ku3hW8m0HW1jcUB41Ah6cS0Ve6lvyU
[Onetouch Idol 3 Android Development] ps3cfw:
After a detailed look at some dmesg I took with some luck and speed, I'm starting to think that these reboots are not kernel-dependant.

Rather, an app failing and taking down Android with it, so it's app-hunting time!

BTW, thanks to all those willing people who gave an helping hand, quite a lot of them indeed! (0)

(This is to say, if you propose to be a tester, you should test something if someone asks you then. And a lot of users here were in "yeah I'll test anything" mode, which is quite irritating)
[Onetouch Idol 3 Android Development] yash_rathore25:
Sorry bro,

As i was busy in rcovering from bootloops in trial of porting cm12.1 from stock chinese rom (base), which is booting on 6045i. Soon i will upload it here for others also.

Apart from this can anybody provide me updater script from ARDE's rom as i am not able to download the rom neither from here nor from htcmania.

It will be helpful to me alot to built a proper rom.
[Onetouch Idol 3 Android Development] ps3cfw:
It's nice to see you're making progress in porting CM12.1 from another ROM, however I can't help with what you're looking for, aren't you able to edit an updater script (or even better, make one from scratch)? It's not really hard.

Anyway, I finally managed to set-up kernel compilation with CM12.1 source, and I was also able to boot Cyanogenmod Recovery!

What does this mean? Well, I guess that once again, it's been proven the kernel itself boots just fine, and it's the OS that is doing nasty things to the kernel.
[Onetouch Idol 3 Android Development] yash_rathore25:
hey bro,

ur link is not opening.

btw u builded it for cm12.1 or stock ???
[Onetouch Idol 3 Android Development] ps3cfw:
It's intended for stock, since the ramdisk is still 5.0.2.

BTW, may I ask for everyone help for a second?

In build.prop, what exactly are your

ro.product.brand and

ro.product.name ?

This is somehow basic knowledge I may need, in hope to give some contribute to this community before buying a Xiaomi Redmi Note 2.
[Onetouch Idol 3 Android Development] fubugang:
ro.product.brand=TCL

ro.product.name=6045I
[Onetouch Idol 3 Android Development] xemiw:
ro.product.brand=TCL

ro.product.name=6045Y
[Onetouch Idol 3 Android Development] Anghirrim:
ro.product.brand = TCL

ro.product.name = 6045Y
[Onetouch Idol 3 Android Development] yash_rathore25:
ro.product.brand=TCL

ro.product.name=6045I
[Onetouch Idol 3 Android Development] famewolf:
The full build.prop for the 6045i, 6045Y and the 6045K are in the arde rom thread if you need more info. (at least I'm pretty sure..might have been the TWRP thread)
[Onetouch Idol 3 Android Development] yash_rathore25:
hey bro,

i tested ur kernel, it booted upto alcatel splash image then rebooted but unable to get log??

what process to capture log details ??
[Onetouch Idol 3 Android Development] ps3cfw:
a USB To JTAG interface would be the best possible idea.

But since I don't have any of that, adb logcat // dmesg.
[Onetouch Idol 3 Android Development] yash_rathore25:
hmm, may be, will try it soon i find a way to get logs...

I am also new to android development so still learning things .....:D

BTW, chinese rom is successfully running on my 6045i, will upload tommorrow with gapps..:cool:

Bit buzy in office and my net is also not so fast and reliable
[Onetouch Idol 3 Android Development] famewolf:
Did you have to replace the kernel and kernel modules with the 6045i ones? What about the radio drivers(modem)? Did you keep the 6045i one or the chinese one worked ok?

Great work!
[Onetouch Idol 3 Android Development] yash_rathore25:
Bro,

just some changes in build.prop and updater-script only :D

but I am still in need of complete updater script for some further work of porting

can you make an updater script for 6045i.

modem is working fine for me it contains every radio drivers(modems) even SCDMA and CDMA ones with LTE.

It will work everywhere.

I think that it will also work on 6045Y with slight change in updater-script.

:angel:

One more interesting thing I found there is also possibility of dual sim functionality by removing conventional sim tray by dual sim tray provided for 6045K but it will become dual sim phone with 16gb inbuilt and sdcard will be optional if you dont wanna use 2nd sim

some screenshots for reference:
[Onetouch Idol 3 Android Development] yash_rathore25:
Its stable, fast, no lags and camera is awesome in comparison to latest update provided to 6045I.

Works flawlessly...;)

some more screenshots:
[Onetouch Idol 3 Android Development] famewolf:
Very nice! I wonder if a generic source for the dual sim trays is available. I went and looked to see if I still had the arde rom around so I could grab the updater script and binary for you but was unable to locate it...if I remembered what it was named it would probably be easier to find...I know I saved the rom SOMEWHERE. I think [MENTION=4487227]DallasCZ[/MENTION] had the rom at one point because he was looking through it so he might be able to provide them. None of the updates has contained a full updater script/binary since they only do patching.

If all else fails you could always release it as a twrp system image till we can locate them.

Here's the updater binary and the updater-script from one of the updates...the script only does patching...someone would have to do some scripting to place EVERY file from the rom in it's appropriate location after mounting the right partitions etc. It's possible the chinese update-script could be used with the update binary included in the zip.
[Onetouch Idol 3 Android Development] yash_rathore25:
Btw, I somehow managed chinese rom's updater-script to work for 6045, but its not satisfying me to port other roms.

The rom is now uploaded and now I will make a thread for it.
[Onetouch Idol 3 Android Development] Unjustified Dev:
Caf tag for kernel https://www.codeaurora.org/cgit/qui...LINUX_ANDROID_LA.BR.1.1.3.C4.05.00.02.094.002

Branch the tag is based on https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.10/log/?h=LA.BR.1.1.3.c4
[Onetouch Idol 3 Android Development] purple.epod:
This seems important, but I've sadly no idea what it actually means. Can anyone enlighten me? Thanks!
[Onetouch Idol 3 Android Development] famewolf:
If I understand right (and this is outside my area) the caf tag is pointing to the changelog of a repo with kernel source intended for the idol 3. The 2nd link is to the original repo (for a similar device with same cpu I assume?) he used as a starting point.

[MENTION=4911249]Unjustified Dev[/MENTION] Did I explain that right?

..and here's some more info: https://www.reddit.com/r/Android/comments/1rt9md/eli5_what_is_caf_why_is_cm_going_caf_affects_the/

It might get more attention here also: http://xdaforums.com/idol-3/general/cm-port-t3149278
[Onetouch Idol 3 Android Development] Unjustified Dev:
The tag is the point where alcatel began bringing up the board on the codeauroraforum kernel source which is the base source for qcom devices. The branch is always ahead of the tag as the tag can be seen as stable and the branch often a wip until you see another tag commit is made. Since we know the tag in which alcatel begin the board we can make a diff of their changes and bring the device up on a later caf Marshmallow branch which isn't yet created, but will be in the future. For now, we can just merge the latest branch that matches the tag which is only about 50 commits.
[Onetouch Idol 3 Android Development] ps3cfw:
Yes I did, and it boots using the compiled DT.img, even though changing the dt.img still causes the kernel to reach the lockscreen, just to reboot itself soon thereafter.

I don't know why. I even managed to patch the kernel to 3.11. It boots, then it reboots.
[Onetouch Idol 3 Android Development] Unjustified Dev:
Are you able to get a kmsg before it reboots? Set the default.prop to insecure and try to began kmsg as soon as it's detected online. Also are you compiling with the 4.9 64 bit toolchain?
[Onetouch Idol 3 Android Development] ps3cfw:
Tried with 4.8, 4.9. 5.2 and also GCC 6 (even though it was a disaster...), ALL OF THEM give the same result.

I managed to get many KMSG, none of them deliver any kind of kernel panic, and there actually is no sign of kernel panics anywhere, leading me to think it's security-related.

I have not tried to set the default.prop to insecure.
[Onetouch Idol 3 Android Development] Unjustified Dev:
Are you making any other changes besides updating the dt.img and kernel from the boot.img ?
[Onetouch Idol 3 Android Development] ps3cfw:
nope, everything is kept stock (except when I tried to patch to 3.11 to see if it worked...)

Build kernel, build dt.img (v2), Pack all of them into a 19.4 MB Boot.img (compared to the original 32 MB) using stock ramdisk. Tried with and without changing dt_size and/or kernel_size when repacking.
[Onetouch Idol 3 Android Development] Unjustified Dev:
Noticed my kernel for cm also reboots. Not sure if it's the dtb only. For now I repack the boot with stock kernel and dt.img. If I do get it booting with source built kernel ,I'll report back.
[Onetouch Idol 3 Android Development] ps3cfw:
Even using the original dt.img, while using the compiled kernel leads to a reboot, with absolutely no kernel panic or any error that could make sense. My only assumption is that some application may be causing the reboot, so booting android with no application whatsoever (other than the framework) should give good results.

However I haven't proved it yet, since I need my phone for work.
[Onetouch Idol 3 Android Development] Unjustified Dev:
[MENTION=2295876]Recon Freak[/MENTION] The kernel rebooting for me was caused by the wlan module. Once you build the kernel the module will not match the kernel version. I added this patch recommend by sultanxda. The module loads now , but it still crashes.

https://github.com/TeamRegular/andr...mmit/e40931c46736542954f2117e3ea0df840fd57571

<4>[ 403.762187] init_module: umod=0000007f94252010, len=5323000, uargs=0000007fafa29d60

<6>[ 403.836861] wlan: loading driver v3.8.20.23

<3>[ 403.841759] wlan: [1886915264:E :HDD] hdd_parse_config_ini: qcom_cfg.ini Size 7841

<0>[ 403.849218] BUG: spinlock bad magic on CPU#6, WifiStateMachin/1974
[Onetouch Idol 3 Android Development] Recon Freak:
Today I got a good TeamEOS build. Everything I've tested worked. My device though is reported as 6045X instead of 6045I. Thanks for your hard work on the device trees thus far.
[Onetouch Idol 3 Android Development] fubugang:
Didn't know there was a teamos build
[Onetouch Idol 3 Android Development] Recon Freak:
Yes. Wi-Fi is working fine. This is an unofficial personal build.
[Onetouch Idol 3 Android Development] fubugang:
Awesome news, maybe you can share with unjustified dev on how to get WiFi to work on his cm12.1 build
[Onetouch Idol 3 Android Development] Recon Freak:
I used his trees with some syntax fixes in init.idol3 , EOS source code. I made sure to have device_qcom_common and hardware_qcom_fm in the source code.
[Onetouch Idol 3 Android Development] Unjustified Dev:
I guess I should clobber after all my changes. That's most likely my issue on cm with WiFi. I'll clobber tonight thanks for confirming it works.
[Onetouch Idol 3 Android Development] Recon Freak:
I'll try to get what I used to build EOS up on my github tomorrow evening. You can look through EOS source too. I did nothing special.

https://github.com/reconfreak/device_tcl_idol3
[Onetouch Idol 3 Android Development] Recon Freak:
link added to previous post
[Onetouch Idol 3 Android Development] Unjustified Dev:
Yeah, I fixed the init build last night and force pushed it to github. Any reason why you reverted changing the name to alcatel? Also glove mode I know it wasn't tested yet, but have you tried it?
[Onetouch Idol 3 Android Development] Recon Freak:
Just lazy.?
[Onetouch Idol 3 Android Development] Recon Freak:
Are you booting with working Wi-Fi? As for glove mode, I'd have to try and merge it in with eos, so maybe later.
[Onetouch Idol 3 Android Development] famewolf:
Any of you 6045Y users noticed the folks over at HTCMania talking about a kernel for your device?

http://www.htcmania.com/showthread.php?t=1077023

Figured it might have info valuable to you since CM12.1 and the chinese rom boot loop for you.
[Onetouch Idol 3 Android Development] fubugang:
Are you planning on releasing your teameos build?just asking
[Onetouch Idol 3 Android Development] Recon Freak:
Idk. Time and experience are not on my side. Maybe when mm6.0 is ready.
[Onetouch Idol 3 Android Development] Unjustified Dev:
The M compatible kernel will probably be done next week. I'm rebasing on a later caf branch so that will take some time. The device tree and temp kernel are pushed for cm-13 (pulled in a few upstream M related things) . It will most likely boot once the compile errors are fixed , but camera and more may be broken.
[Onetouch Idol 3 Android Development] Jeik:
Hey guys.

I was wondering if someone with the knowledge could make a tutorial to build a rom from source,specifically for the Idol 3.

For example,I would like to build PA from source,somebody else would like to try with Euphoria or NamelessRom.

However,I don't even know where to start,and if I manage to find something,its a guide for old releases of Android.

Although it is highly possible that I am extremely ignorant,and that the guides are actually universal...

Plus the devs would have more free time from the draining hobby if people could expand the rom development and the variety,making rom releases frequent.

After all,we are a community,not a place where people get spoonfed(even though I am pretty much asking for it with this post),and where only 2 people make roms...
[Onetouch Idol 3 Android Development] ckkeo:
I've got the kernel build for 6045I and got my boot.img load and boot on Idol 3 5.5, but the wlan driver refuses to load :(

And if I disabled versioning check in module.c then the system will reboot. I'm looking for the wlan driver source code to rebuild the module, any suggestion where I can find this source code?

Cheer.
[Onetouch Idol 3 Android Development] Unjustified Dev:
The code isn't available I've tried to contact Alcatel but no luck.