148 pagesV  < 1 2 3 4 5 6 > »  
 
REPLY
> Devices on MT657x - Porting firmware on the MT657x platform
dns-25
Message#1
02.03.13, 13:04
Guru
*********
[offline]

Group: Curators
Messages 2272
Check in: 11.01.12
Xiaomi Redmi 4 Prime

Reputation:-  552  +

Porting firmware from device to device with MT657x processor
Necessary and useful

You can not port the firmware, for example from MT6575 to MT6577. Both the base and stock firmware must be for one processor.
Both firmware must be the same OS version


Shoveled a bunch of sites and forums in search of normal instructions for porting firmware from MT6577 to MT6577, I found one very brief and working instruction. I myself managed to get the firmware from one device to another. For others, the instruction when downloading the firmware is on the logo.
User wrote the instructionsback37from the forumhttp://forum.china-iphone.ru.
Here is the topicwhere i got the instructions from. In it you will find a lot of useful information needed not only for MediaTek processors, but also for others.
Created a thread onsavagemessiahzine.comto make it easier to find instructions (I personally searched for a very long time). The instruction was a little paraphrased, but the essence is the same.

Actually the instruction itself:

First step

We take a working firmware for your device (BASE);
We take the ported firmware for custom recovery (PORT).


Second step

ATPORTWith replacement, we drop folders fromBASE :
/ system / vendor
/ system / lib / hw
/ system / lib / modules


and files
/system/etc/vold.fstab
/system/etc/vold.fstab.nand
system / usr / keylayout / generic.kl
boot.img


Third step

Go to META-INF / com / google / androidPORT , open updater-script.
If there are lines:
assert (getprop ("ro.product.device") == "Smartphone" ||
getprop ("ro.product.board") == "Smartphone" ||

Remove them.

If there are no rows
assert (package_extract_file ("boot.img", "/tmp/boot.img"),
write_raw_image ("/ tmp / boot.img", "bootimg"),
delete ("/ tmp / boot.img"));

append them to the end of the script.

Fourth step

The firmware will be in the folderPORT . Now all this needs to be packed with normal compression in zip (If you unpacked). And sure subscribe .

Fifth step

We are stitching. If it hangs on the logo for more than 10 minutes, it will not load. You need to edit boot.img, namely, unpack both boot and drop the folderrmdiskofPORT at BASE with replacement. Unpack / Pack boot.img can this program . The resulting boot (if the name is new_image.img, rename it to boot.img) is inserted into the archive with the firmware and signed again.

Addition
If something does not work in your firmware after porting, it’s not a fact that it will work after the manipulations given below. But it’s worth a try: yes2:.
HereIt is written which binaries and libraries are responsible for the operation of different modules (GPS, Bluetooth, Wi-Fi, radio, etc.) Try replacing them too.

*OfBASE at PORT

GSM does not work, 3G - change folder/ system / etc / firmware
Wi-Fi does not work - change files/ system / bin / p2p_supplicant; / system / bin / wpa_supplicant
The camera does not work - we change/system/lib/libcameracustom.so
Problems with sound - we change/system/lib/libaudiosetting.so
The radio does not work - we replacesystem / lib / libaudiosetting.soandlibfmcust.so
Heard wheezing / sound artifacts are replacingsystem / lib / soundfx
Do not work the hardware keys change the foldersystem / usr / keylayout

*Solving some problems (addition)

It does not catch the connection-from the system / etc / firmware folder, we take out modem.img, if after that the network does not work, then we take files from the system / lib / modules folderccci.ko, ccci_plat.ko

The problem with the home key does not work as intended - from the system / usr / keylayout folder we take the fileGeneric.klandmtk-tpd.kl

Wi fi-does not work from the system / lib / modules / folder.mtk_stp_wmt.koandmtk_wmt_wifi.kothen go to META-INF / com / google / android / updater-script looking for symlink symlink (“/ system / lib / modules / wlan_mt6620.ko and changing the value to 6628 if you have such a chip, if you don’t know what , go to the base and in build.prop we search in the wlan line

If there are problems with bluetooth, then we take a file from the folder.system / lib / modules / mtk_stp_bt.koif not working then change these two filessystem / lib / libbluetooth_mtk.so
system / lib / libbluetoothem_mtk.so


Radio does not work - we changesystem / lib / modules / mtk_fm_priv.koandsystem / lib / modules / mtk_fm_drv.koif does not work, then we change these files
system / lib / libfmar1000.so
system / lib / libfmcust.so
system / lib / libfmjni.so
system / lib / libfmmt6616.so
system / lib / libfmmt6620.so
system / lib / libfmmt6626.so
system / lib / libfmmt6628.so

If, however, does not work changeFMradio.apk

The camera does not work with the system / lib / hw / folder; change this file camera.default.so; if it does not help, then with the system / lib folder we change:
- libcamalgo.so
libcamera_client.so
libcameracustom.so
libcameraprofile.so
libcameraservice.so

video does not work change these fileslibmhalandlibMTKOmxin the system / lib folder

The problem with GPS is changing these files.system / xbin / libmnlpandmnld

Black screen, slow animation, slow auto-rotate-change this filehwcomposer.mt6577.soin the system / lib / hw folder -commentby Andrey567

The compass, the proximity sensor or something from this opera does not work, we changesystem / lib / hw / sensors.default.so


Brief instructions (not universal) for porting 4.2.2 to 6577 devices.

There is no curator in the subject. If there is a user in the subject who wants to become a Curator and the correspondingRequirements for candidates, he can apply in the topicI want to be curator(after having studied the topic header and all materials for curators).
Prior to the appointment of the curator, on filling caps, please contactmoderatorssection through a buttonPictureunder the messages to which you want to add links.


Post has been editedvaalf - 13.05.18, 19:08
AJIuLLI
Message#42
18.03.13, 12:31
Kadyr0FF
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 272
Check in: 24.05.12
Xiaomi Redmi Note 4 3/32

Reputation:-  41  +

Since with 4.1.2 it did not work out yet, I tried to port MIUI 4, signed, threw it on a USB flash drive, but the update does not accept
Log with TWRP 2.4
Updating partition details ...
Installing '/sdcard/update.zip' ...
Checking for MD5 file ...
Skipping MD5 check: no MD5 file found.
E: Error in /sdcard/update.zip
(Status 6)
Error flashing zip '/sdcard/update.zip'
Updating partition details ...


--------------------
dns-25
Message#43
18.03.13, 12:42
Guru
*********
[offline]

Group: Curators
Messages 2272
Check in: 11.01.12
Xiaomi Redmi 4 Prime

Reputation:-  552  +

AJIuLLI @ 18.3.2013, 13:31*
Since with 4.1.2 it did not work out yet, I tried to port MIUI 4, signed, threw it on a USB flash drive, but the update does not accept
Log with TWRP 2.4
Updating partition details ...
Installing '/sdcard/update.zip' ...
Checking for MD5 file ...
Skipping MD5 check: no MD5 file found.
E: Error in /sdcard/update.zip
(Status 6)
Error flashing zip '/sdcard/update.zip'
Updating partition details ...

Is the meta-inf folder in place? If so, skip updater-script, maybe there is an error.
AJIuLLI
Message#44
18.03.13, 12:57
Kadyr0FF
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 272
Check in: 24.05.12
Xiaomi Redmi Note 4 3/32

Reputation:-  41  +

dns-25 @ 03/18/2013, 15:42*
Is the meta-inf folder in place? If so, skip updater-script, maybe there is an error.

Yes, META-INF is in place, the script is redachil as in the instructions, I'll throw it off, I'll be at home.


--------------------
AJIuLLI
Message#45
18.03.13, 19:52
Kadyr0FF
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 272
Check in: 24.05.12
Xiaomi Redmi Note 4 3/32

Reputation:-  41  +

Here is the update-script:
Attached fileupdater-script.txt(32.2 KB)
Renamed to txt to download.


--------------------
dns-25
Message#46
18.03.13, 20:20
Guru
*********
[offline]

Group: Curators
Messages 2272
Check in: 11.01.12
Xiaomi Redmi 4 Prime

Reputation:-  552  +

On, put in the place of the past. Do not forget to sign the firmware.Attached filescript.rar(12.83 KB)

For the future: firmware commands boot and kill are written at the end of the script. A lot of extra and incomprehensible poudalyal. Formatting and mounting commands for your own changed.
What kind of smartphone?
AJIuLLI
Message#47
18.03.13, 20:41
Kadyr0FF
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 272
Check in: 24.05.12
Xiaomi Redmi Note 4 3/32

Reputation:-  41  +

dns-25 @ 03/18/2013, 23:20*
What kind of smartphone?

Alcatel OT-992D
Now try your script.

Upd:
Updating partition details ...
Installing '/sdcard/update.zip' ...
Checking for MD5 file ...
Skipping MD5 check: no MD5 file found.
0%
20%
Random offset: 0x2f4
40%
60%
80%
asser failed: write_raw_image ("/ tmp / boot.img"),
E: Error in /sdcard/update.zip
(Status 7)
Error flashing zip '/sdcard/update.zip'
Updating partition details ...


asser failed: write_raw_image ("/ tmp / boot.img"), I will try to remove /tmp/boot.img and put /boot.img everywhere


Upd # 2:
Updating partition details ...
E: Unable to mount '/ cuspack'
Installing '/sdcard/update.zip' ...
Checking for MD5 file ...
Skipping MD5 check: no MD5 file found.
E: Error in /sdcard/update.zip
(Status 6)
Error flashing zip '/sdcard/update.zip'
Updating partition details ...
E: Unable to mount '/ custpack'


Got a brick. I will flash on the drain.

Post has been editedAJIuLLI - 18.03.13, 21:05


--------------------
AJIuLLI
Message#48
18.03.13, 21:23
Kadyr0FF
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 272
Check in: 24.05.12
Xiaomi Redmi Note 4 3/32

Reputation:-  41  +

Found MIUI 4 universal, specifically for 6577. There is a version for 854 * 480 G3. Swing, we'll see there.
Link:


--------------------
dns-25
Message#49
18.03.13, 21:28
Guru
*********
[offline]

Group: Curators
Messages 2272
Check in: 11.01.12
Xiaomi Redmi 4 Prime

Reputation:-  552  +

AJIuLLI @ 18.3.2013, 22:23*
Found MIUI 4 universal, specifically for 6577. There is a version for 854 * 480 G3. Swing, we'll see there.
Link:

By the way, there the commands for formatting / mounting will be different. There's also a custpack. Are there no firmware under CWM?
AJIuLLI
Message#50
18.03.13, 21:35
Kadyr0FF
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 272
Check in: 24.05.12
Xiaomi Redmi Note 4 3/32

Reputation:-  41  +

dns-25 @ 03/19/2013, 00:28*
Are there no firmware under CWM?

Not that the firmware, I and CWM do not have: D

There would be at least some Alcatel could use custpack

Post has been editedAJIuLLI - 18.03.13, 21:36


--------------------
AJIuLLI
Message#51
19.03.13, 07:04
Kadyr0FF
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 272
Check in: 24.05.12
Xiaomi Redmi Note 4 3/32

Reputation:-  41  +

dns-25 @ 03/19/2013, 00:28*
Ibid custpack

And how can I add a custpack in ROM so that it is in Mainfest?
Is it enough just to sign?


--------------------
dns-25
Message#52
19.03.13, 12:46
Guru
*********
[offline]

Group: Curators
Messages 2272
Check in: 11.01.12
Xiaomi Redmi 4 Prime

Reputation:-  552  +

AJIuLLI @ 19.3.2013, 8:04*
And how can I add a custpack in ROM so that it is in Mainfest?
Is it enough just to sign?

Just add the folder and sign it. But the problem is its contents. Since all firmware stock is cloaked, it is not clear what to shove in a custpack. Whether all applications, or their contents (res).
And the block layout will be different. I tried to do the 997D firmware and there are 3 block-custpack (usually the system), and the system is another block.
proFC
Message#53
19.03.13, 15:22
^_^
********
[offline]

Group: Friendssavagemessiahzine.com
Messages 1578
Check in: 08.04.09
Xiaomi Redmi Note 3 Pro Standard

Reputation:-  33  +

After reading the topic, I realized that there is no kernel in order to use 4.1 per mt6577. But it is Heiskrin gtr works on 4.1 and it has MT6577 dual core
AJIuLLI
Message#54
19.03.13, 15:38
Kadyr0FF
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 272
Check in: 24.05.12
Xiaomi Redmi Note 4 3/32

Reputation:-  41  +

But it is Heiskrin gtr works on 4.1 and it has MT6577 dual core

The kernel is needed for a particular phone, with different drivers. Different devices have a different camera, sound card, video accelerator, if the hardware is similar - you can try to port the core from one phone to another.


--------------------
dns-25
Message#55
19.03.13, 16:13
Guru
*********
[offline]

Group: Curators
Messages 2272
Check in: 11.01.12
Xiaomi Redmi 4 Prime

Reputation:-  552  +

If the hardware is similar, you can try to port the kernel from one phone to another.

And that is not the fact that it will turn out.
Ygrek64
Message#56
19.03.13, 19:38
Experienced
******
[offline]

Group: Friendssavagemessiahzine.com
Messages 581
Check in: 24.02.12
Xiaomi Mi Max Standard

Reputation:-  90  +

dns-25 @ 03/02/2013, 16:04*
change files / system / bin / p2p_supplicant

Did not find this file, maybe it is called differently?


--------------------
TeXeT-7021<=>Redmi Note 2 Prime<=>Mi Max Standart<=>Iwown i5 plus<=>Chuwi hi9 air
Mi Max 3 \ 32_9.2.14_MiRoom
dns-25
Message#57
19.03.13, 19:47
Guru
*********
[offline]

Group: Curators
Messages 2272
Check in: 11.01.12
Xiaomi Redmi 4 Prime

Reputation:-  552  +

Ygrek64 @ 03/19/2013, 20:38*
Did not find this file, maybe it is called differently?

All right It happens that it simply does not exist.
proFC
Message#58
21.03.13, 10:17
^_^
********
[offline]

Group: Friendssavagemessiahzine.com
Messages 1578
Check in: 08.04.09
Xiaomi Redmi Note 3 Pro Standard

Reputation:-  33  +

Regarding the universal mui, something needs to be changed in it or just sew?
dns-25
Message#59
21.03.13, 13:25
Guru
*********
[offline]

Group: Curators
Messages 2272
Check in: 11.01.12
Xiaomi Redmi 4 Prime

Reputation:-  552  +

Also according to the instructions from the cap. Universal MIUI, because it all works. So on another smartphone, the port will contain fewer bugs.

Post has been editeddns-25 - 21.03.13, 13:26
AJIuLLI
Message#60
22.03.13, 15:27
Kadyr0FF
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 272
Check in: 24.05.12
Xiaomi Redmi Note 4 3/32

Reputation:-  41  +

dns-25 @ 03/19/2013, 15:46*
Just add the folder and sign it.

How to sign?


--------------------
dns-25
Message#61
22.03.13, 16:27
Guru
*********
[offline]

Group: Curators
Messages 2272
Check in: 11.01.12
Xiaomi Redmi 4 Prime

Reputation:-  552  +

AJIuLLI @ 22.3.2013, 16:27*
How to sign?

Cap-Step 4-Last word, click on it)
There is an archive, an instruction in it.

148 pagesV  < 1 2 3 4 5 6 > » 


 mobile version    Now: 04/29/19, 00:19