Changes between Version 3 and Version 4 of SamsungGalaxyXcover2


Ignore:
Timestamp:
Aug 5, 2015, 8:40:50 AM (9 years ago)
Author:
Rick van der Zwet
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SamsungGalaxyXcover2

    v3 v4  
    44
    55= Requirements =
    6 * Linux envirionment
     6* Linux envirionment with compiler tools
    77* split-bootimg.pl found ar [[http://www.enck.org/tools.html]]
     8* Android Tools mkbootfs mkbootimg (optional simg2img)
     9* Android SDK Environment
     10* Heimdall [[http://glassechidna.com.au/heimdall/]]
     11* Stock S7710 firmware [[http://live.samsung-updates.com/index.php?device=GT-S7710]]
    812
    913
     14What I will do is modify the {{{/fstab.samsungskomer}}} to change the mount of the ext4 {{{/data}}} of the internal location {{{/dev/block/mmcblk0p25}}} to the second partition of the external SDCard {{{/dev/block/mmcblk1p2}}}. Technically speaking you do not even need to root your device, but by flashing firmware you will need to do some pretty advanced stuff.
    1015
    11 What I will do is modify the {{{/etc/fstab.samsungskomer}}} to change the mount of the ext4 {{{/data}}} of the internal location {{{/dev/block/mmcblk0p25}}} to the second partition of the external SDCard {{{/dev/block/mmcblk1p2}}}.
     16= Steps =
     17
     18== Format SD Card ==
     19Format 32GB class 10 or higher SDcard with two partitions:
     20
     211. 20GB vfat partition, this will serve as the normal extSdCard
     222. 12GB ext4 partition, this will serve as the new /data partition (make sure it is the second and last partition)
    1223
    1324
    1425== Compile Android Tools ==
    15 
     26{{{
    1627 $ git clone https://android.googlesource.com/platform/system/core
    1728 $ cd core
     
    3041 $ cd ../libsparse
    3142 $ gcc -o simg2img -Iinclude -lz simg2img.c sparse_crc32.c backed_block.c output_file.c sparse.c sparse_err.c sparse_read.c
     43}}}
     44== Modify stock kernel ==
     45{{{
     46 $ ./split_bootimg.pl boot.img
    3247
     48 $ mkdir ramdisk; cd ramdisk
     49 $ gzip -dc ../boot.img-ramdisk.gz | cpio -i
     50
     51 # Alter {{{ fstab.samsungskomer }}} and change /data mountpoint from {{{/dev/block/mmcblk0p25}}} to {{{/dev/block/mmcblk1p2}}}
     52 $ vim fstab.samsungskomer
     53
     54 $ cd ..
     55 $ mkbootfs ./ramdisk | gzip > ramdisk-new.gz
     56 $ mkbootimg --cmdline 'no_console_suspend=1 console=null' \
     57            --kernel boot.img-kernel \
     58            --ramdisk ramdisk-new.gz \
     59            -o boot-new.img
     60}}}
     61== Upload kernel ==
     621. Put device in download mode (VolumeDown+Home+Power) on power-on.
     631. $ sudo heimdall flash --pit S7710.pit --Kernel ./boot-new.img # FYI: Pit file retrieval below
     64
     65== Enjoy your new device ==
     66The phone will need to be rebooted a few times and it will be complaining about corruption and encryption, just go will the flow and acknowledge the notifications. Ones completed enjoy your improved Samsung Galaxy XCover 2 (S7710).
     67
     68
     69= Misc =
     70== Retrieve PIT file ==
     711. Put device in download mode (VolumeDown+Home+Power) on power-on.
     721. $ sudo heimdall download-pit --output S7710.pit
     731. Reboot device to perform other heimdall actions as other actions will fail after this.
    3374
    3475= References =