tag:blogger.com,1999:blog-5768610196044632406.post9149138484399217052..comments2019-08-09T10:38:29.339+01:00Comments on Steven's Blog: Reconstructing MTK LCM driversstevenhoneymanhttp://www.blogger.com/profile/06494159684713841991noreply@blogger.comBlogger29125tag:blogger.com,1999:blog-5768610196044632406.post-36570992902554232972017-04-23T04:10:37.881+01:002017-04-23T04:10:37.881+01:00UPD2: I think I found LCD driver here: https://git...UPD2: I think I found LCD driver here: https://github.com/gryber678/Kernel_6737mВня Седовhttps://www.blogger.com/profile/14285198222248456058noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-12130208577636727002017-04-23T02:42:33.356+01:002017-04-23T02:42:33.356+01:00UPD: My LCD is rm68200_cpt50_blj_hd and LCD in A i...UPD: My LCD is rm68200_cpt50_blj_hd and LCD in A is otm1283a_cmi50_tps65132_hd.<br />Here&#39;s images: https://goo.gl/0tw5o0Вня Седовhttps://www.blogger.com/profile/14285198222248456058noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-43539718636100564442017-04-22T12:56:00.601+01:002017-04-22T12:56:00.601+01:00Hello
So, I got two lk.bin files:A, that supports...Hello<br /><br />So, I got two lk.bin files:A, that supports x64 ROMs, but LCD is not working, and B, that supports only x32, but works with my LCD.<br /><br />I want to take LCD driver from B and put it in A.<br />Any help?<br /><br />Device is Doogee X5 Max Pro, MT6737.Вня Седовhttps://www.blogger.com/profile/14285198222248456058noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-85460518994503366402017-03-06T13:30:37.833+00:002017-03-06T13:30:37.833+00:00Hello
First, thanks for your reply ;).
In case ...Hello<br /><br />First, thanks for your reply ;). <br /><br />In case You need further info and/or feedbacks now I&#39;m working on 2 MT6795 WQHD 6&quot; devices (PPTV King7 &amp; Freetel Samurai Kiwami FTJ152D) + 2 MT6795 WQHD 5.5&quot; devices (Creo MARK 1 &amp; AMOI L861 also branded as Stonex One or Santin Dante). RAW MAINhttps://www.blogger.com/profile/04180115569027595393noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-7008892558478859022017-03-05T19:48:42.676+00:002017-03-05T19:48:42.676+00:00Hi. Unfortunately I&#39;ve been busy with other th...Hi. Unfortunately I&#39;ve been busy with other things and not had any time to play with the MT67xx devices yet. I did buy some though and will get to it eventually! Anything interesting that I find out I&#39;ll post on here. From a quick look through their source they&#39;ve made some annoying default changes to non-engineer builds.stevenhoneymanhttps://www.blogger.com/profile/06494159684713841991noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-7486587937659827572017-03-03T13:52:41.622+00:002017-03-03T13:52:41.622+00:00Hello Steven,
Since SP Multiport Download Tool cu...Hello Steven,<br /><br />Since SP Multiport Download Tool current &amp; former versions don&#39;t support MT67xx, I can&#39;t manage to switch LCD drivers for related lk in case of multiple support = SPMDT returns failure error while trying to load lk.<br /><br />For instance I have a MT6795 WQHD 6&quot; device, that has lk.bin with dual support for r63419_wqhd_auo_booyi_3d_vdo &amp; nt35598_wqhd_dsi_vdo_truly. I&#39;d like to switch init sequence in order to test such lk with other MT6795 WQHD 6&quot; devices that use same r63419 or nt35598 &amp; same camera/sensors.<br /><br />Is there an alternative tool that allows to change/switch LCM (as formerly possible with SPMDT on MT65xx) ?<br /><br />Otherwise, can those changes be performed manually through HEX editing ?<br /><br />Thanks in advance. RAWhttps://www.blogger.com/profile/04180115569027595393noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-62725004163770477212017-01-04T10:27:32.846+00:002017-01-04T10:27:32.846+00:00Hello Steven
I have Pixi 4 (4) kernel source MT65...Hello Steven <br />I have Pixi 4 (4) kernel source MT6580 and I want to port it to my Infinix Hot 2, I have the LK.bin and I know the name of my LCM controller, but I don&#39;t know exactly how to decode the LCM controller inside the source, I found one similar in name but still couldn&#39;t edit it.Ahmed Rahmyhttps://www.blogger.com/profile/05960873461467332885noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-22588413365979445132017-01-04T10:24:21.366+00:002017-01-04T10:24:21.366+00:00This comment has been removed by the author.Ahmed Rahmyhttps://www.blogger.com/profile/05960873461467332885noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-26578881447158770632016-07-17T19:38:32.186+01:002016-07-17T19:38:32.186+01:00Here are the files of firmware (screenshot)
https:...Here are the files of firmware (screenshot)<br />https://www.dropbox.com/s/q3qjpsepr59p4bk/2016_07_18_00.02.49.png?dl=0<br />https://www.dropbox.com/s/k87r7u2f0traqmb/IMG_20160409_125257.jpg?dl=0<br />I tried the AGOLD_DRIVER replacement while flashing but didn&#39;t worked.<br />Please check this scatter file of working ROM<br />https://www.dropbox.com/s/bd24kdgkqy45qv8/MT6592_Android_scatter.txt?dl=0LAkshmi NArayanahttps://www.blogger.com/profile/11782353847680903633noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-14398656469148407052016-07-17T19:01:42.509+01:002016-07-17T19:01:42.509+01:00Did you notice the AGOLD_DRIVER partition just aft...Did you notice the AGOLD_DRIVER partition just after NVRAM?stevenhoneymanhttps://www.blogger.com/profile/06494159684713841991noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-17112541149300170712016-07-17T18:58:16.664+01:002016-07-17T18:58:16.664+01:00Hmm, they&#39;re both &#39;agold&#39; butchered co...Hmm, they&#39;re both &#39;agold&#39; butchered code so I&#39;ll not be able to be much help unfortunately. My 2 suggestions were going to be to mess with the SPMDT tool (which you already have), and swap the init sequences for the lcds... but they look the same (assuming I&#39;m looking in the right place... it&#39;s a guess)<br /><br />$ dd status=none if=lk_inew.bin bs=1 count=128 skip=243588 | xxd<br />$ dd status=none if=lk_auxus.bin bs=1 count=128 skip=240800 | xxd<br /><br />The uart logs should give more of a clue as to what is happenning when the boot process fails, or LCD init fails but boot continues.stevenhoneymanhttps://www.blogger.com/profile/06494159684713841991noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-7732544402617222222016-07-17T16:07:45.683+01:002016-07-17T16:07:45.683+01:00Here are the lk.bin files of both firmwares..
http...Here are the lk.bin files of both firmwares..<br />https://www.dropbox.com/s/321dbb02zxcrgs1/lk_inew.bin?dl=0<br />https://www.dropbox.com/s/v8ugunyfn6g7pmr/lk_auxus.bin?dl=0<br /><br />If u still need UART boot logs, I will get them..<br />Thanks for your time.LAkshmi NArayanahttps://www.blogger.com/profile/11782353847680903633noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-31495596196058531412016-07-17T13:25:56.364+01:002016-07-17T13:25:56.364+01:00Hi. Can you upload the few files somewhere and I&#...Hi. Can you upload the few files somewhere and I&#39;ll take a look? Basically should just be: the two lk.bin files, uart boot logs of the working ROM.stevenhoneymanhttps://www.blogger.com/profile/06494159684713841991noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-37590190881460008212016-07-17T09:21:09.040+01:002016-07-17T09:21:09.040+01:00Hi Steve.
Can you help me in my LCD drivers issue?...Hi Steve.<br />Can you help me in my LCD drivers issue??<br />I have a clone mobile of knew v8+ named as Auxus One.<br /><br />Everything is identical except the name.<br /><br />My problem is when I flash stock ROM of inew v8+ to mine everything is working fine.<br /><br />Now when I flash my stock ROM of Auxus LCD is not lighting up, everything is working normal in the background.<br /><br />After working around using SPMDT Tool, what I found is, the uboot file in inew&#39;s firmware has 2 lcd drivers 70544 and 70744. The second one works. Whereas the lk.bin in Auxus&#39; one has only one driver 70544.<br /><br />What I did was replace lk.bin of Auxus&#39; with inew&#39;s, but phone doesn&#39;t boot up but LCD works. Even tried with preloader, A gold driver etc.. But no use.<br /><br />I tried binary edit of the files but doesn&#39;t have any knowledge in it and hence didn&#39;t succeed.<br /><br />Can you give me a solution??<br /><br />Thanks in advance..<br /><br />By the way mine is MTK6592 chipsetLAkshmi NArayanahttps://www.blogger.com/profile/11782353847680903633noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-9929818803432766632015-12-12T15:11:30.227+00:002015-12-12T15:11:30.227+00:00Hi. Yes that is possible, providing that you have ...Hi. Yes that is possible, providing that you have the bootloader source.<br />In the version of lk that I have, in the file:<br /><br />bootable/bootloader/lk/app/mt_boot/mt_boot.c<br /><br />you will find what you&#39;re looking for.<br /><br />#define DEFAULT_SERIAL_NUM &quot;0123456789ABCDEF&quot;<br />/*<br /> * Support read barcode from /dev/pro_info to be serial number.<br /> * Then pass the serial number from cmdline to kernel.<br /> */<br />#define SERIAL_NUM_FROM_BARCODE<br />...<br />...<br />...<br />#ifdef SERIAL_NUM_FROM_BARCODE<br /> /* Append androidboot.serialno=xxxxyyyyzzzz in cmdline */<br /> sprintf(cmdline, &quot;%s%s%s&quot;, cmdline, &quot; androidboot.serialno=&quot;, sn_buf);<br />#endif<br />...<br />...<br />(and so on)<br />stevenhoneymanhttps://www.blogger.com/profile/06494159684713841991noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-37587744798270299312015-12-12T14:50:19.179+00:002015-12-12T14:50:19.179+00:00hello Steven,
thank you for sharing these precious...hello Steven,<br />thank you for sharing these precious informations.<br />recently i&#39;ve been searching all around the internet about the &quot;chinese serial number:0123456789abcdef&quot; with no results.<br />From what i understood, in the boot process, the bootloader (aka lk) send an unknown serial number to the kernel, which in turn somehow change that unknown SN into the &quot;chinese id&quot; and send it to the init process through cmdline.<br />I have 2 questions:<br />1) Is it technically possible to change that serial number?<br />2) If yes, how?Unknownhttps://www.blogger.com/profile/09901352752262627941noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-68166845580600227162015-09-04T19:47:12.162+01:002015-09-04T19:47:12.162+01:00Yes, basically LCDs need some commands sending whe...Yes, basically LCDs need some commands sending when they&#39;re first powered on before they can be used. For some reason that I still haven&#39;t figured out, the details of each screens commands are a closely guarded secret by the controller manufacturers which makes writing drivers impossible. The contents of this post describe how I took the (initialisation) command sequence for my specific LCD out of the phone&#39;s secondary bootloader and spliced it in to a similar driver for some other phone.<br /><br />However I did find a suspiciously similar looking/sounding phone to yours which isn&#39;t running an agold butchered firmware. It&#39;s using just one LCM driver - nt35596<br />stevenhoneymanhttps://www.blogger.com/profile/06494159684713841991noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-89970848112780941292015-09-04T17:34:41.967+01:002015-09-04T17:34:41.967+01:00I&#39;m kind of a newbie here, so... What do you m...I&#39;m kind of a newbie here, so... What do you mean by pulling the init sequence?<br />Is it about the boot.img and the ramdisk?Miguel Duartehttps://www.blogger.com/profile/16337681015485145170noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-76021317220195834012015-09-04T16:04:35.739+01:002015-09-04T16:04:35.739+01:00They produce android builds even more dodgy than u...They produce android builds even more dodgy than usual - some of their config options (from the phone I had) include:<br />AGOLD_CHEAT_EVALUATING_SOFTWARE_CPU_CORE_CHANGED = 8核<br />AGOLD_CHEAT_EVALUATING_SOFTWARE_CPU_CORE_ORIGIN = 单核,單核<br />AGOLD_CHEAT_EVALUATING_SOFTWARE_LIKE_ANTUTU_USE_OPENGL = yes<br /><br />and it&#39;ll boot-loop if you try to remove any of their spyware apps (APK)...<br /><br />At a guess, I&#39;d say HLY are the initials of whoever made the panel, the &quot;55&quot; probably is the size (as in 5.5 inch) and NT_1185A the controller, i.e. something from Novatek. Are there no clues in the boot logs (either bootloader or kernel)? The resolution might help narrow it down (*actual* resolution... don&#39;t belive anything agold tells you!)<br /><br />If you can find a way to send it the ID command and give you the result (2x 8-bit values) that might be another way to see. Alternatively pull the init sequence out of the bootloader and comb through different manufacturers until one looks close.<br /><br />I moved on to a different non-agold-butchered phone so I don&#39;t think I did identify the controller on that, but I&#39;ll check through anything I saved just in casestevenhoneymanhttps://www.blogger.com/profile/06494159684713841991noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-44269410690437735282015-09-04T14:36:37.100+01:002015-09-04T14:36:37.100+01:00What do you mean by &quot;agold special&quot;?
I t...What do you mean by &quot;agold special&quot;?<br />I think I have one of those (Ulefone Be Touch 2).<br />When I do the *#*#114#*#*, it reports that the LCM is &quot;HLY_55NT_1185A&quot;.<br />I can&#39;t find any information about this anywhere.Miguel Duartehttps://www.blogger.com/profile/16337681015485145170noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-66397357091049975402015-07-05T21:14:58.690+01:002015-07-05T21:14:58.690+01:00Hi,
It&#39;ll not be as easy as that unfortunately...Hi,<br />It&#39;ll not be as easy as that unfortunately. The LCM init sequences are easy to see because they are large amounts of data arranged in a specific order in the file. The rest of the driver is made up of individual values and timings which you won&#39;t be able to find and replace. Your only option that I know about is to compile your own from source (not publically available, though lots of manufacturers have distributed it). It&#39;s nowhere near as complicated as a full kernel/android build because you don&#39;t need to worry about accelerometer/alsps/camera/sound/magsensor/etc drivers.stevenhoneymanhttps://www.blogger.com/profile/06494159684713841991noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-32579222710902303712015-07-05T06:29:33.351+01:002015-07-05T06:29:33.351+01:00hello, i have 2 lk.bin files, i need to extract a ...hello, i have 2 lk.bin files, i need to extract a lcd driver from one and put it onto another one, maybe copy/paste, how can i do that, i&#39;m not good with linux<br />i know the driver name.<br />what software can i open that lk.bin under windows?idLEhttps://www.blogger.com/profile/07776982195627260136noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-80139178804600249142015-03-18T17:47:56.963+00:002015-03-18T17:47:56.963+00:00Oh, well in that case just follow what I&#39;ve wr...Oh, well in that case just follow what I&#39;ve written above. In a numbered list, steps are:<br /><br />1. Get an idea of what the driver is based around. Manufacturer and screen res are better than nothing. Also grab the timings from boot log (lk or kernel, should be identical)<br />2. Find a few similar drivers in GPL sources (e.g. lenovo/acer/github various). The same IC range differ on timings and init sequence<br />3. Find the init sequence in good lk.bin using a hex editor, extract it somehow. (copy &amp; paste is better than nothing...!)<br />4. Put the data from (1) and (3) into the best looking (2)<br /><br /><br />Got any neat tricks on getting the GPIO map or battery charge data right? Those two really slow me downstevenhoneymanhttps://www.blogger.com/profile/06494159684713841991noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-15305224691810720072015-03-18T07:03:51.566+00:002015-03-18T07:03:51.566+00:00please help
only need to unpack/extract/decompile ...please help<br />only need to unpack/extract/decompile lk.binAjit Uchihahttps://www.blogger.com/profile/09947202653342224487noreply@blogger.comtag:blogger.com,1999:blog-5768610196044632406.post-74418827196885005712015-03-18T02:54:52.082+00:002015-03-18T02:54:52.082+00:00i have mtk backup with sp flash tool blocks comple...i have mtk backup with sp flash tool blocks complete stock rom backup. i have all the files that i need to use to flash using SP flash tool. I already have my lk.bin file.<br /><br />All i want you to tell me is how to decompile lk.bin or extract the lcm drivers whatever it is called will be huge help man the only thing that is holding me back from getting kitkat is the lack of me not being able to extract lk.bin.Ajit Uchihahttps://www.blogger.com/profile/09947202653342224487noreply@blogger.com