> Forums > Samsung Flashen/Flexen/Modden
C
Creating Custom ROMs/Backups for Odin
Erstellt
Dez. '11
|
letzte Antwort
Noch keine
|
Antworten
Noch keine
|
Aufrufe
3.9T |
0
„Gefällt mir“ |
Abos
1 |
So., 04. Dezember, 2011 um 9:34
#1
Nu11u5 hat Folgendes geschrieben: Here is a Requirements:
Making the ROM Dump: The Behold 2 has 14 partitions in its flash memory, but only a few of these are useful to modify. You will want to focus on different partitions depending on what you want to do. After you make a ROM dump you will need to package it using the instructions in the following section before you can flash it. Backup your personal data? You may want to backup your data while trying out a different ROM. It is simple to do. Code: # dd if=/dev/block/stl14 of=/sdcard/userdata bs=4096 Make a custom system image (ROM)? Creating a custom ROM can involve no more than changing out a few included applications to modifying advanced features of the phone. A lot of ing should be performed before distributing a heavily customized system image. It is recommended to make multiple system image dumps as "in-progress" snapshots or saves as you work on the ROM. Otherwise messing up normally means starting over! Code: # dd if=/dev/block/stl9 of=/sdcard/system bs=4096 If you want to get files out of another system image (or userdata image) without flashing, open them in an archive program that can read FAT disk image files - 7-Zip is recommended - or mount them read-only under Linux. Trying to write to the image with these methods will corrupt it as its non-standard. Make a custom kernel or recovery image (ROM)? ADVANCED: Modifying the kernel or recovery image can allow you to enable root, change startup logos, and tweak environment settings for boot. In addition to the other requirements you will need an decent understanding of Linux file permissions, startup, and mount process, as well as a hex editor Code: # dd if=/dev/block/bml8 of=/sdcard/kernel bs=4096 Code: # dd if=/dev/block/bml6 of=/sdcard/recovery bs=4096 Code: $ head -c 1785856 kernel > krnl.bin $ tail -c +1785857 kernel > rd.cgz Code: $ head -c 1937408 recovery > krnl.bin $ tail -c +1937409 recovery > rd.cgz Code: $ mkdir initramfs $ cd initramfs $ gzip -cd ../rd.cgz | cpio -imv Code: $ find | cpio -H newc -R 0.0 -oa | gzip -cn1 > ../rd.cgz $ cat rd.cgz >> krnl.bin Building the Odin Packages: Odin technically allows you to use two types of packages - Specific and OnePackage. Specific packages are labeled "BOOT", "PHONE", "PDA", and "CSC" in the software. Selecting these in Odin checks that they contain exactly the expected flash images and presents an error if anything is out of place (extra or missing files, mislabeled files). The CSC specific package is currently not used for the Behold 2. Since you will rarely want to flash the entire phone at once the Specific Packages are not always appropriate. When someone else goes to flash your ROM they may get an ambiguous error and not know for sure why. OnePackage allows any the partition flash files to be included with each other in one Odin package. These are easier to distribute and will not cause odd errors when someone loads them into Odin. TL;DR: Use OnePackage to distribute ROMs! Note: Errors during flashing are normally recoverable unless the error occurred while flashing the boot partitions (arm9boot and arm11boot). NEVER include these files in an Odin package - they do not need updating! Code: $ [B]tar -H ustar -c[/B] [I]image_1 [image_2 ...][/I] [B]>[/B] [I]your_odin_package.tar[/I] Code: $ [B]md5sum -t[/B] [I]your_odin_package.tar[/I] [B]>>[/B] [I]your_odin_package.tar[/I] $ [B]mv[/B] [I]your_odin_package.tar[/I] [I]your_odin_package.tar[/I][B].md5[/B] Please sign your Odin Packages - its the easiest way to tell if the download corrupted them! Testing your Odin Packages: |
|
Du hast bereits für diesen
Post abgestimmt...
;-)
https://t.ress.at/94Nd3/
Ähnliche Themen:
© by Ress Design Group, 2001 - 2024