yashsingh1/xdaforums huggingface dataset:
[Onetouch Idol 3 Android Development] famewolf:
[MENTION=6866672]petrov.0[/MENTION]

Would you be able to compile a kernel for the 6039's and the 6045's that would allow under/over clocking and undervolting? I recall you saying you had compiled one and I found this tutorial which seems complete......

http://xda-university.com/as-a-developer/adding-features-to-your-kernel

There was a discussion in another thread about the snapdragon 615 normally being a 1.7ghz chip but being set to 1.5 on our idol....presumably due to possible heat issues.
[Onetouch Idol 3 Android Development] petrov.0:
It's not so easy as its written there (I had read this article before) :). I've made some experiments with the governors last week, which are described in this article in 20 rows. But there are many code incompatibilities (missing header files etc.). The recent cyanogen repos on github for the officially supported devices also does not include these governors probably for the same reasons. As for the overclocking this article is completely outdated (or is not for qualcomm chipsets). I would appreciate info how this can be done.
[Onetouch Idol 3 Android Development] famewolf:
Strictly as far as the patches go, could you not browse a git repo for one of the other devices that have a snapdragon 615 chip? Some of them have to have custom kernels by now.
[Onetouch Idol 3 Android Development] DonnieDoezoe:
Alcatel is starting being a Cool Company!!!
[Onetouch Idol 3 Android Development] Demetris:
I wouldn't advice you to overclock 615 soc as it has the infamous 810 cores and will probably start throttling down asap.

Στάλθηκε από το 6045Y μου χρησιμοποιώντας Tapatalk
[Onetouch Idol 3 Android Development] techware7:
SD615 stock is 1.7. Regaining that speed is not overclocking. The Idol 3 is under clocked. Only scenario I would think of noticeable (somewhat crazy) overheating on the Idol 3 (mainly because of its slim design and fused digitizer) would be running your Idol at 1.7 (constant) for some extended periods of time. My guess is that since Alcatel went with slim + fused digi they decided to underclock it.
[Onetouch Idol 3 Android Development] Demetris:
Again, there is a reason phones wearing the SD615 don't use that frequency. Most stay at 1.5ghz unless you want to cook something or want to dry your battery

Στάλθηκε από το 6045Y μου χρησιμοποιώντας Tapatalk
[Onetouch Idol 3 Android Development] gecko702:
Ive rechecked the CM forums no response yet :/
[Onetouch Idol 3 Android Development] keyra74:
wow an update https://disqus.com/by/Ciwrl/
[Onetouch Idol 3 Android Development] famewolf:
There are already at LEAST 1/2 a dozen threads on cyanagenmod for the idol 3 in both general and q&a so lets not turn this into another one. Feel free to discuss it here: http://xdaforums.com/idol-3/general/cyanogenmod-likely-coming-to-idol-3-t3191459
[Onetouch Idol 3 Android Development] xemiw:
Has anyone managed to boot a custom-built kernel? What are the exact steps after the build?
[Onetouch Idol 3 Android Development] petrov.0:
Yes, for 6039 though.

Exact steps for what ? For booting with it ?
[Onetouch Idol 3 Android Development] famewolf:
If a custom kernel existed for the 6045, which to my knowledge it doesn't at least right now, you would flash the zip same as you do anything else from recovery.
[Onetouch Idol 3 Android Development] petrov.0:
It is not necessary to be flashed. It can be booted with fastboot boot <boot.img>. But boot.img must contain all necessary components (kernel, ramdisk and device tree blobs). The easiest way to build the kernel produces only a zImage.
[Onetouch Idol 3 Android Development] xemiw:
Okay, I'll write down the steps I took, because there are a few things I don't understand.

So first of all, I set up the environment for the kernel:

export ARCH=arm64

export SUBARCH=idol3

export CROSS_COMPILE=tools/aarch64-linux-android-4.9/bin/aarch64-linux-android-

Then edited the arch/arm64/Makefile file to use idol3-s defconfig (It's probably the wrong way, but I couldn't figure out how to do it properly)

Then make defconfig && make compiles successfully

After this, I grabbed the original boot.img, unpacked it with xiaolu/mkbootimg_tools, replaced the kernel and repacked it.

And now, using fastboot boot <boot.img> succeeds but reboots after about 10 seconds.

---------- Post added at 10:52 PM ---------- Previous post was at 10:18 PM ----------

Also simply using make doesn't produce dtb files. How are those generated? Looks like I can't just reuse the previous dt.img...
[Onetouch Idol 3 Android Development] petrov.0:
The arm64 Makefile is ... I don't know what to say :) ... In order to build the kernel for arm64:

First clean your previous kernel build.

export ARCH=x86

make mrproper

Then try with:

export ARCH=arm64

export SUBARCH=arm

export CROSS_COMPILE=<use the full path to gcc>

return the original Makefile and if you are in the kernel source root directory execute:

make idol3_defconfig

make Image.gz

The device tree can be built-in the kernel but you need to modify the .config (use make nconfig prior make Image.gz if you want to make any changes) ... please have in mind that it will not boot :). As a start use the dt.img which is extracted from the stock kernel. Also ensure that the command line is correct. Good luck.
[Onetouch Idol 3 Android Development] xemiw:
Thanks, now the kernel compiles properly, but it still doesn't boot.

I'm using the mkboot tool:

mkboot boot.img boot (boot.img is the original file grabbed from my device)

cp arch/arm64/boot/Image boot/kernel

(adjust kernel_size in img_info)

mkboot boot new.img

fastboot boot new.img

Is there something I'm still doing wrong?
[Onetouch Idol 3 Android Development] petrov.0:
I use mkboot only for unpacking. For the boot image I use:

./mkbootimg --dt <dt.img> --ramdisk <ramdisk.packed|or modified> --kernel <kernel image> --cmdline '<the whole string enclosed here>' -o <output file>
[Onetouch Idol 3 Android Development] xemiw:
It makes no difference... I guess the problem is with my kernel, because if I repack the original one, it works perfectly. For the time being, I have no idea, how to figure out what's wrong with it though...
[Onetouch Idol 3 Android Development] petrov.0:
Are you completely sure that your current firmware is arm64 ? I had the same issue when I was trying to build the 6039 kernel with TARGET_ARCH := arm64 (with the cyanogen source tree and tools). The device reboots itself a few seconds after the kernel is loaded. Do you have a backup of the system partition ? In which folder is libc.so ? Can you run file on it ?
[Onetouch Idol 3 Android Development] franq36:
I'm also here for many days ...

I use unpaking/repacking boot with archikitchen.......unpack/repack boot.img stock working perfectly.

I think this is not the problem

no :p

but if not 64bit, they had been included defconfig 32 bits ...
[Onetouch Idol 3 Android Development] xemiw:
Yes, as [MENTION=4209506]franq36[/MENTION] says, there is no arch/arm/configs/idol3_defconfig...

And there are two libc.so-s:

/system/lib/libc.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), not stripped

/system/lib64/libc.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, not stripped
[Onetouch Idol 3 Android Development] petrov.0:
No idea then (I'm aware that there is no configuration file idol3_defconfig in the arch/arm/configs folder). The kernel works fine (except the wireless driver) but as I said earlier on 6039.
[Onetouch Idol 3 Android Development] xemiw:
Okay, I have figured out the problem. Apparently, I was using the wrong toolchain, you need gcc 4.9.x-google (20140827) to compile the kernel properly. It still crashes, but only after booting to the lockscreen.
[Onetouch Idol 3 Android Development] petrov.0:
4.8 works for me.

Now you just need to find the reason for these crashes :fingers-crossed:
[Onetouch Idol 3 Android Development] famewolf:
Do you plan to develop a 6045 kernel with undervolting, over/under clocking and additional schedulers/io schedulers? I ask because [MENTION=6866672]petrov.0[/MENTION]'s main focus of course is towards the 6039. I'll be curious to know if you run into the same wifi issues [MENTION=6866672]petrov.0[/MENTION] did after you resolve whatever is causing the crash at the lockscreen.
[Onetouch Idol 3 Android Development] xemiw:
I don't know, I'm way to new in this to promise anything. Right now, I can't figure out why the phone reboots a few seconds after boot... I've tried a few different methods to grab the logfiles from the phone, but I haven't got anything useful yet...
[Onetouch Idol 3 Android Development] famewolf:
adb logcat to a text file should get you in early enough to see everything up to the moment of the reboot. Not sure if that was one of the methods you tried.
[Onetouch Idol 3 Android Development] xemiw:
Yes I've tried it... it crashes a few seconds after reaching the lockscreen and logcat contains no useful information. It probably doesn't have time to fully flush everything.
[Onetouch Idol 3 Android Development] famewolf:
Probably a stupid question and it's based off linux knowledge not android but are you updating the /lib/modules in addition to the kernel zImage so they match?
[Onetouch Idol 3 Android Development] xemiw:
I didn't, but does it matter in this case? If the kernel had problems loading modules, it would have rebooted earlier I guess...
[Onetouch Idol 3 Android Development] franq36:
yes...

i think incompatibility with function defconfig 64 bits
[Onetouch Idol 3 Android Development] petrov.0:
Most of the modules are embedded in the kernel so should work, the reason for the reboot is somewhere else.
[Onetouch Idol 3 Android Development] Nikola Jovanovic:
Any progress in rom development?
[Onetouch Idol 3 Android Development] petrov.0:
Yes, huge. But is far from ready.
[Onetouch Idol 3 Android Development] Nikola Jovanovic:
It doesn't matter, just keep it up man ! :)

Sent from hell
[Onetouch Idol 3 Android Development] petrov.0:
Actually Ash is the mastermind behind the progress. I just build the ROM in parallel with him :o ... currently he works regarding the ROM for 6039 (me too ... today was my first successfully completed build :D ... after a week ). The next week he will start the hard work for 6045, his phone arrives in Monday ...
[Onetouch Idol 3 Android Development] Nikola Jovanovic:
Great, so excited finally I hear some good news about projects coming in near future.. Will the rom support all versions like K or only I and Y since they have the same components structure?

Quoting myself for infinite time: I have K model and if anything you need I'll be gladly to provide and there are also a couple of users with K so no problems with that :)

Sent from hell
[Onetouch Idol 3 Android Development] Recon Freak:
Petrov, do you have a github we can follow? It's interesting to watch things develop.
[Onetouch Idol 3 Android Development] ashwin007:
If u have the 6045 device can u get an image of system and boot partitions using dd?

EDIT:Its just that if i have an image i can set things up before idol3 5.5 arrives

EDIT 2 : And kindly attach the cat /proc/partitions output aswell
[Onetouch Idol 3 Android Development] Nikola Jovanovic:
Images are posted here http://xdaforums.com/showthread.php?p=62006681

127|u0_a388@idol3:/ $ cat /proc/partitions

major minor #blocks name

179 0 30535680 mmcblk0

179 1 65536 mmcblk0p1

179 2 1536 mmcblk0p2

179 3 1024 mmcblk0p3

179 4 1 mmcblk0p4

179 5 8 mmcblk0p5

179 6 512 mmcblk0p6

179 7 512 mmcblk0p7

179 8 512 mmcblk0p8

179 9 512 mmcblk0p9

179 10 512 mmcblk0p10

179 11 512 mmcblk0p11

179 12 512 mmcblk0p12

179 13 512 mmcblk0p13

179 14 1536 mmcblk0p14

179 15 1536 mmcblk0p15

179 16 1024 mmcblk0p16

179 17 1536 mmcblk0p17

179 18 16384 mmcblk0p18

179 19 20480 mmcblk0p19

179 20 10240 mmcblk0p20

179 21 32 mmcblk0p21

179 22 1536 mmcblk0p22

179 23 16 mmcblk0p23

179 24 1024 mmcblk0p24

179 25 1024 mmcblk0p25

179 26 32768 mmcblk0p26

179 27 32768 mmcblk0p27

179 28 2806784 mmcblk0p28

179 29 32768 mmcblk0p29

179 30 8 mmcblk0p30

179 31 262144 mmcblk0p31

259 0 1024 mmcblk0p32

259 1 512 mmcblk0p33

259 2 32 mmcblk0p34

259 3 27158983 mmcblk0p35

179 32 4096 mmcblk0rpmb

u0_a388@idol3:/ $

And also http://xdaforums.com/showthread.php?p=62885404

Sent from hell
[Onetouch Idol 3 Android Development] ashwin007:
You may want to follow us here

https://github.com/ashwinr64
[Onetouch Idol 3 Android Development] famewolf:
Just want to point out that [MENTION=4720342]Nikola Jovanovic[/MENTION]'s images are from a 6045K which is the dual sim with no sdcard version. I can provide a partition list for a 6045i (usa/canada) but am not on hi speed so hoping someone else can handle the 3GB upload of images since you may need to compare.

Last I remember [MENTION=4487227]DallasCZ[/MENTION] has images in his google drive for the 6045Y which has an identical partition layout to the 6045i (6045k has dual modem partitions and no external sd as mentioned)

6045i partition list by name: http://xdaforums.com/showpost.php?p=62837832&postcount=38

6045Y partition list by name: http://xdaforums.com/showpost.php?p=62838246&postcount=39

6045K partition list by name: http://xdaforums.com/showpost.php?p=62885404&postcount=46

Out of curiosity are the system and boot twrp backups made in the system image thread not usable at all? They are unrooted factory images. http://xdaforums.com/showpost.php?p=62006681&postcount=3
[Onetouch Idol 3 Android Development] ashwin007:
Thanks for the valuable information.BTW tonight I'm getting my 6045y .So I can get all the stuff from it.i must mention ......for 6039s petrov is helping me so much so that we nearly getting it to boot......and its a blind port for me......so just thank-smash petrov
[Onetouch Idol 3 Android Development] famewolf:
I think you and [MENTION=6866672]petrov.0[/MENTION] are both doing an amazing job. He just created a file that should allow users who have "bricked" their 6045's because there is no way to get to bootloader from factory recovery to flash TWRP to the device from Download Mode. This should be very useful in future..now if it only had a way to do it on linux short of a virtualbox vm of win 7.
[Onetouch Idol 3 Android Development] masterdex:
So nice to see the birth of the things each one offers his knowledge, this is the right spirit to do great works. I'm not very experienced but I put immediately available to my terminal to make any kind of test my model is the 6045Y monosim europeo.Firmware 6.10 fastboot command active,root end TWRP.;)
[Onetouch Idol 3 Android Development] yash_rathore25:
Hi guys,

When I am trying to compile kernel through the above mentioned process, I am getting this error, itmincludes the process I am following for compiling the kernel. Where am I doing wrong, I am not able to get?? Please help..

~/android/kernel/idol347/kernel$ export ARCH=arm64

~/android/kernel/idol347/kernel$ export SUBARCH=arm

~/android/kernel/idol347/kernel$ export CROSS_COMPILE=android/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/aarch64-linux-android/bin/

~/android/kernel/idol347/kernel$ make idol3_defconfig

arch/arm64/configs/idol3_defconfig:242:warning: unexpected data

arch/arm64/configs/idol3_defconfig:258:warning: unexpected data

arch/arm64/configs/idol3_defconfig:588:warning: override: reassigning to symbol INET_XFRM_MODE_BEET

warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)

warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)

warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))

warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)

warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)

warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))

#

# configuration written to .config

#

~/android/kernel/idol347/kernel$ make Image.gzMakefile:809: *** multiple target patterns. Stop.

~/android/kernel/idol347/kernel$
[Onetouch Idol 3 Android Development] petrov.0:
Your CROSS_COMPILE path is incorrect. It should be e.g.

CROSS_COMPILE=/home/yash/android/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/aarch64-linux-android/bin/aarch64-linux-android-
[Onetouch Idol 3 Android Development] yash_rathore25:
yupp it worked but got these errors:

gcc: error: unrecognized command line option ‘-mlittle-endian’

gcc: error: unrecognized command line option ‘-mgeneral-regs-only’

make[1]: *** [kernel/bounds.s] Error 1

make: *** [prepare0] Error 2
[Onetouch Idol 3 Android Development] famewolf:
I recall someone saying it requires a very new version of gcc to compile it...see if you have most recent.
[Onetouch Idol 3 Android Development] dexter20082001:
I have been silently following this thread for a little while now and I am happy to see all the work that has been done. I am potentially thinking about getting an an Idol3 4.7 or 5.5 (U.S models) depending on how much money I have available so I really like to see an active community for them.
[Onetouch Idol 3 Android Development] neilownz:
I'm thinking I should have gotten the zenfone 2, but things might eventually get better.
[Onetouch Idol 3 Android Development] dexter20082001:
What has been making me steer clear of the ZenFone 2 is the support and quality I saw from the new MemoPad. Asus really showed a lack of attention to me and the bloatware and bugs in their zenui had me quite upset. Perhaps the ZenFone 2 is better but I know it has an awful speaker.
[Onetouch Idol 3 Android Development] neilownz:
Cyanogenmod is available for it. I would immediately scrap the zenui thingy.
[Onetouch Idol 3 Android Development] ps3cfw:
Zenfone 2 is a phone with SO MUCH potential.

Yet it'll never be observed.

What steers me clear of it is the lack of support for Dolphin Emulator (which would be the only decent thing that phone would shine at).

Anyway, this phone is in the early stages. I am myself deciding about buying an HDD dedicated to a Linux build to compile something for it.

I mean, there are many 615 devices out there, so it shouldn't TOO hard to adapt their config for our device.

The guy who will do that job is not me though, I already had a hard time with Mediatek, I'm not willing to learn again how to compile.
[Onetouch Idol 3 Android Development] franq36:
make -jx

x=CPU Cores pc+1
[Onetouch Idol 3 Android Development] yash_rathore25:
Still the same problem :confused:

I am using gcc 5.1.1 and followed the this process

android@builduntu-VM:~/android/kernel/idol347/kernel$ export ARCH=arm64

android@builduntu-VM:~/android/kernel/idol347/kernel$ export SUBARCH=arm

android@builduntu-VM:~/android/kernel/idol347/kernel$ export CROSS_COMPILE=/home/android/android/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/aarch64-linux-android/bin/aarch64-linux-android-

android@builduntu-VM:~/android/kernel/idol347/kernel$ make idol3_defconfig

HOSTCC scripts/basic/fixdep

HOSTCC scripts/kconfig/conf.o

HOSTCC scripts/kconfig/zconf.tab.o

In file included from scripts/kconfig/zconf.tab.c:2503:0:

scripts/kconfig/menu.c: In function ‘get_symbol_str’:

scripts/kconfig/menu.c:567:18: warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized]

jump->offset = r->len - 1;

^

scripts/kconfig/menu.c:528:19: note: ‘jump’ was declared here

struct jump_key *jump;

^

HOSTLD scripts/kconfig/conf

arch/arm64/configs/idol3_defconfig:242:warning: unexpected data

arch/arm64/configs/idol3_defconfig:258:warning: unexpected data

arch/arm64/configs/idol3_defconfig:588:warning: override: reassigning to symbol INET_XFRM_MODE_BEET

warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)

warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)

warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))

warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)

warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)

warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))

#

# configuration written to .config

#

android@builduntu-VM:~/android/kernel/idol347/kernel$ make

Makefile:809: *** multiple target patterns. Stop.

android@builduntu-VM:~/android/kernel/idol347/kernel$

android@builduntu-VM:~/android/kernel/idol347/kernel$ make -j3

Makefile:809: *** multiple target patterns. Stop.

android@builduntu-VM:~/android/kernel/idol347/kernel$
[Onetouch Idol 3 Android Development] franq36:
only export ARCH=arm64 and cross compile
[Onetouch Idol 3 Android Development] yash_rathore25:
It still giving same error bro...:confused::crying:
[Onetouch Idol 3 Android Development] petrov.0:
Your source directory is unclean. Use 'make mrproper'

Sent from my 6039Y
[Onetouch Idol 3 Android Development] ps3cfw:
Hello guys, I decided I'm not going to waste my time waiting for someone to make a CM, so I decided to try myself to port AOSP to our device.

I'm going kamikaze, so I'm starting with Android 5.1.1_r18 (the latest, BTW).

I'll keep you updated and I hope for eventual help from developers with much more experience than me in this world (even though I know C++ and C#, I never understood how android works and how should a project tree be correctly set)
[Onetouch Idol 3 Android Development] Anghirrim:
Hey! Thanks guys!! I just got my French Idol 3 5.5 today and am happy with it. I was hesitating with the zenfone 2, but finally took the Idol option, hopping for some developers to do dome nice things on it.

You can't count me yet on beta tester as I don't want to screw my warranty. But I'll be reading you all "warranty year" long.

Thanks again guys and keep up the good work!