06-28-2014 06:25 PM
517 ... 1112131415 ...
tools
  1. yaconsult's Avatar
    I suppose I should take down the sd recovery from post #2 since it's causing hassles. I'd like to figure out what's going on though. Strange that it works for some but not others. Variables: different partitioning software, different sd cards, different phones. I guess using the wipe script is less hassle anyway though. It might be better to have individual wipe zips for each partition, also zips to mount each partition from recovery. I can make those.
    As a test, I plugged my sdcard into my linux system and found, as dman861 reported, that the last partition on the sdcard had a type of unknown. I reformatted it as ext4 on linux and now, the phone boots into cwm instead of just displaying the cwm screen and then continuing to boot the phone to android. I rechecked the sdcard on the linux system and the last partition remains properly formatted ext4.

    I have not updated or changed anything since the last time I tried, so the only difference was the formatting of the last ext4 partition on a linux system instead of minitool partition manager on windows 7 x64 which may not able to create these four primary partitions properly. After all, according to windows, you are only supposed to have one primary partition on a disk - LOL.

    I used gparted on linux, so using the live CD or live USB version of gparted.org might be the way to go if you are on windows.

    My phone is the Virgin model.
    skinbark likes this.
    01-05-2014 01:08 PM
  2. smittss's Avatar
    the os has more room in system than ov if i recall.
    164.5 M.
    I have an optimus S (I think). It returns 158.5MB from df -h for the /system partition, so that may be where some of the problem is.
    skinbark and bigsupersquid like this.
    01-05-2014 01:38 PM
  3. smittss's Avatar
    It seems like for some reason, my wireless password isn't saved, and after every reboot, I need to reenter it to connect. I didn't think any of the APKs I deleted should be related. Anyone else having the same problem?
    richierich50 likes this.
    01-05-2014 02:32 PM
  4. skinbark's Avatar
    It seems like for some reason, my wireless password isn't saved, and after every reboot, I need to reenter it to connect. I didn't think any of the APKs I deleted should be related. Anyone else having the same problem?
    Yes that's happening to me too.
    01-05-2014 02:37 PM
  5. skinbark's Avatar
    Note on the wipe zip bigsupersquid uploaded - this zip formats data, system, and cache on both internal memory and sd card. Remove the lines in the updater script that refer to yaffs and MTD unless this is what you want. You can use the mount and format menu in the regular cwm to wipe internal partitions. I'm going to prepare individual scripts to format each sd-ext partition for more control.
    01-05-2014 02:48 PM
  6. bigsupersquid's Avatar
    Note on the wipe zip bigsupersquid uploaded - this zip formats data, system, and cache on both internal memory and sd card. Remove the lines in the updater script that refer to yaffs and MTD unless this is what you want. You can use the mount and format menu in the regular cwm to wipe internal partitions. I'm going to prepare individual scripts to format each sd-ext partition for more control.
    I didn't intend to leave in the internal partition formats. good catch. I'll edit the post to reflect.
    skinbark likes this.
    01-05-2014 03:44 PM
  7. thekraven's Avatar
    I noticed this in your msm7x27-common Boardconfig. These values are for the P500, thunderc are different. The BOARD_KERNEL_BASE is the only one that mght need fixing, the others are just size parameters.

    Code:
    BOARD_KERNEL_BASE := 0x12800000
    
    ## Partition Sizes: Fix this up by examining /proc/mtd on a running device
    BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00440000
    BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00600000
    BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0xff00000
    BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x0c780000
    bigsupersquid and skinbark like this.
    01-05-2014 03:56 PM
  8. brotherswing's Avatar
    What is the average battery life you guys are experiencing with OS2SD? I'm currently getting about four hours...

    VM670 on 4.4.2? Yes, indeed.
    01-05-2014 04:20 PM
  9. skinbark's Avatar
    I noticed this in your msm7x27-common Boardconfig. These values are for the P500, thunderc are different. The BOARD_KERNEL_BASE is the only one that mght need fixing, the others are just size parameters.

    Code:
    BOARD_KERNEL_BASE := 0x12800000
    
    ## Partition Sizes: Fix this up by examining /proc/mtd on a running device
    BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00440000
    BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00600000
    BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0xff00000
    BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x0c780000
    I think when I started building kitkat I had to fudge those values because my build was erroring out. What'll happen is make won't generate a system image that's larger than those settings so unless you're building a tiny config or something you almost have to fake the values. Those really shouldn't be in msm7x27-common IMO they should be in the device folder. Interesting though that the common_full_phone builds we've been doing haven't thrown the error though, since they generate a larger system.img than the p500 could use.
    01-05-2014 04:21 PM
  10. bigsupersquid's Avatar
    I suppose I should take down the sd recovery from post #2 since it's causing hassles. I'd like to figure out what's going on though. Strange that it works for some but not others. Variables: different partitioning software, different sd cards, different phones. I guess using the wipe script is less hassle anyway though. It might be better to have individual wipe zips for each partition, also zips to mount each partition from recovery. I can make those.
    The concept of fakeflash recovery is courtesy of Koush, like CWM proper. Thanks!
    Dunno if it matters, I got the fakeflash to work. it uses the ext partition fstabs and recovery binary from the sd-recovery.
    If you flash it you have to "adb kill-server' before adb will connect to recovery again. reboot into recovery and it's the original one. this does NOT overwrite the recovery partition.
    meant for the skinbark-non-sd recovery only, probably won't work right with other recoveries.
    cwm-sd_fakeflash.zip
    it flashed the OP sd version ok.
    it did not back up or restore internal /system or /data or /cache. instead it backs up and restores the ext partitions, like it should for what it is.
    it does not handle MTD partition restores or flashes (well, except the boot partition.)
    Reboot into the other recovery for those.
    This is experimental for evaluation purposes.
    Don't gripe if it gives you trouble, instead, give useful data to fix it. You'll be guided to what info to post. Like the 2nd post says, you should have adb installed and a clue how to use it.

    for extra amusement value, the restore I did booted with my wifi connected and dev settings correct. but it forgot the CM activation.
    skinbark likes this.
    01-05-2014 04:54 PM
  11. hfl12's Avatar
    Where can i get the patch for newer radio ? Thanks.
    01-05-2014 05:12 PM
  12. skinbark's Avatar
    Amazing work, squid! I'll try it out a little later and let you know how it goes.
    Edit: Tried it. Looks good so far. Flashed the button fix with it and made a backup. I'll try a restore later.
    That's what I call an elegant solution!
    bigsupersquid likes this.
    01-05-2014 05:15 PM
  13. skinbark's Avatar
    What is the average battery life you guys are experiencing with OS2SD? I'm currently getting about four hours...

    VM670 on 4.4.2? Yes, indeed.
    Can't say myself but it'd make sense that the battery life would be affected by having to power the external memory more. I know my mp3 player used to get worse battery life when I played music off the sd card.
    01-05-2014 05:54 PM
  14. brotherswing's Avatar
    Granted read/write activities on SD use more juice than mtd, I expected a reduction in battery life. I'm just looking to find a basis for comparison. I'm trying to establish a baseline so people using OS2SD will know what to expect.

    VM670 on 4.4.2? Yes, indeed.
    01-05-2014 06:41 PM
  15. bigsupersquid's Avatar
    based on past experience with sd gingerbread, I'd say that the radios are going to determine battery life. No syncing or data-moving apps, and easy on the 3g, more life.
    You'd need to test a basic install in NAND and SD both without gapps to get a more reliable baseline.
    01-05-2014 06:46 PM
  16. skinbark's Avatar
    The first backup I made with fakeflash worked fine but the second one gave "Error while backing up cache." Then when I went to restore the first backup I got the error E:format_volume: no MTD partition "/dev/block/mmcblk0p4"
    Error while formatting /cache!
    After that I wiped cache which worked.
    Edit:
    After that, I booted into the restored system, then back into recovery. Fakeflashed and wiped individual partitions which worked I then tried restoring individual partitions and got MD5 mismatch! errors. Then I tried a normal restore and got MD5 mismatch! again.
    01-05-2014 07:40 PM
  17. bigsupersquid's Avatar
    I thought that was fixed by unmounting the mtd partitions before killing recovery. dang.
    manually unmounting all partitions right before or right after the fakeflash takes care of it.
    01-05-2014 07:55 PM
  18. skinbark's Avatar
    Where can i get the patch for newer radio ? Thanks.
    http://forums.androidcentral.com/lg-...optimus-s.html
    01-05-2014 08:32 PM
  19. cammykool's Avatar
    This is zvd based right? And where do we find the recoveries for this.

    Sent from my SCH-I535 using Tapatalk
    01-06-2014 03:27 AM
  20. bigsupersquid's Avatar
    long time no see, cammy.

    regular NAND recovery linked in first post (in the mediafire folder.)
    experimental SD recovery fakeflash is here: cwm-sd_fakeflash.zip
    For the run-from-sd rom version in the second post.
    The experimental requires the regular NAND recovery to be installed first. The regular recovery remains there while using the experimental one.

    //edit: I forgot, it runs fine on ZV4.
    has 3g and wifi. sms works fine. no mms. no bluetooth. if installed with the fakeflash recovery, it remembers wifi passwords.
    01-06-2014 07:19 AM
  21. brotherswing's Avatar
    K
    This is zvd based right? And where do we find the recoveries for this.

    Sent from my SCH-I535 using Tapatalk
    I'm running this on ZV9. Then again, there are functions I can't test as I have no service right now...

    VM670 on 4.4.2? Yes, indeed.
    bigsupersquid likes this.
    01-06-2014 08:42 AM
  22. bigsupersquid's Avatar
    I have tried several different VM APNs (all different MCC and MIN) and none of them broke data on yesterday's build from thekraven's repo.
    they don't show up in the apns list, but still deselect the default Sprint one.
    none of them send mms, either.
    skinbark likes this.
    01-06-2014 09:18 AM
  23. skinbark's Avatar
    OS2SD Recovery Info
    I'm linking to this post to help explain issues related to using the os2sd version of CM11. The regular CWM from post #1 is adequate to flash the os2sd rom, gapps and button fix, but doesn't know how to properly wipe, backup or restore the partitions, so we need alternate methods of doing so. One way to handle wiping is to use CWM to flash zip files which execute a script that removes all files from the sd-ext partitions. I added a set of wipe zips to the os2sd folder. Put them in a folder on your sd card and flash them from the regular recovery to clear external /data, /system, /cache, or all three.

    CWM_6.0.4.6-thunderc-sd.zip is a special version of ClockWorkMod recovery that assumes that you are using sd-ext partitions for /data, /system and /cache. This version of CWM will correctly format, backup and restore the os2sd partitions, but not the regular internal partitions. I changed the colors on the os2sd version to help remember which is installed. Just flash the appropriate zip file to switch between the two versions. If you know you'll just be using the os2sd rom use this recovery.

    Another option is bigsupersquid's "fake flash" recovery. You flash the zip from your regular recovery and it restarts the recovery with new temporary partition settings. If you switch back and forth between normal and os2sd roms or backups use this. cwm-sd_fakeflash.zip can be downloaded here.

    Experienced linux users can use the dd command to backup and restore the os2sd partitions on their pc.
    01-06-2014 09:59 AM
  24. cammykool's Avatar
    long time no see, cammy.

    regular NAND recovery linked in first post (in the mediafire folder.)
    experimental SD recovery fakeflash is here. For the run-from-sd rom version in the second post.
    The experimental requires the regular NAND recovery to be installed first. The regular recovery remains there while using the experimental one.

    //edit: I forgot, it runs fine on ZV4.
    has 3g and wifi. sms works fine. no mms. no bluetooth. if installed with the fakeflash recovery, it remembers wifi passwords.
    My moms friend had a ls670 she didn't need so I got it now

    Sent from my SCH-I535 using Tapatalk
    01-06-2014 11:01 AM
  25. thewraith420's Avatar
    All zvd based basebands should work fine this includes zvd, 4,5 and 9. Zvh and j work with a patch

    Sent from my XT907 using Tapatalk
    skinbark likes this.
    01-06-2014 01:26 PM
517 ... 1112131415 ...

Similar Threads

  1. Serious noob question - Cyanogenmod
    By Halifax in forum Sprint Galaxy S III Rooting, ROM's, and Hack's
    Replies: 4
    Last Post: 12-31-2013, 12:38 AM
  2. Needed quickly plz : Android 4.3 XXUBMJ1 for note 3 N900
    By Osama Mohammed in forum Samsung Galaxy Note 3
    Replies: 4
    Last Post: 12-24-2013, 03:09 PM
  3. Moto G - What are the apn settings for T-Mobile in the US?
    By Johnnyboy125 in forum Moto G (2013)
    Replies: 2
    Last Post: 12-23-2013, 11:32 AM
  4. Recommended apps for spen?
    By mlalande in forum Samsung Galaxy Note 3
    Replies: 4
    Last Post: 12-22-2013, 11:21 PM
LINK TO POST COPIED TO CLIPBOARD