Project

General

Profile

Problems installing v4.2 to galaxy s2

Added by robin p almost 6 years ago

I've been using replicant for around 4 months, and yesterday tried to upgrade to v4.2. i followed the instructions on this page:
http://redmine.replicant.us/projects/replicant/wiki/GalaxyS2I9100Installation

except for the final step:
"8. Select wipe data/factory reset
9. Confirm the data wipe by selecting Yes -- delete all user data"

which did not sound like a good thing to do. now my phone hangs at the replicant boot screen (the red guy on roller skates).

what do the above steps actually do? do they as i suspect wipe everything from the internal sd card and my home directory? delete all user data sounds like my personal data, or does it only delete data stored in /var and so on? or is my non-booting device not linked to not wiping the data, and there is some other problem. i didn't upgrade the recovery image, i am still using the version released last year with v4.0.

the image was installed from a .zip file on the internal sd card, while booting from the recovery image.

i ran the md5 and gpg checks before installing the image.

cheers,

robin


Replies (8)

RE: Problems installing v4.2 to galaxy s2 - Added by Xan VFR almost 6 years ago

I've updated my Samsung Galaxy S from Replicant 4.0 to 4.2 with some problems in the process and wipe data/factory reset deleted all my contacts and apps I had installed, so I don't recomend it. I don't know if it has to be done anyway.

What I am sure about it's that you MUST upgrade the recovery image and use the option flash zip with the new recovery image.

RE: Problems installing v4.2 to galaxy s2 - Added by robin p almost 6 years ago

i tried updating recovery, but am not sure if it worked. this the command i used, after putting the phone into download mode:

$ sudo heimdall flash --KERNEL recovery.img --pit stock2.pit

recovery version is still reported as 6.0.3.6, which i think is no change. i think there is an error somewhere here. heimdall reports all is well though:

"Initialising connection...
Detecting device...
Claiming interface...
Attempt failed. Detaching driver...
Claiming interface again...
Setting up interface...

Initialising protocol...
Protocol initialisation successful.

Beginning session...

Some devices may take up to 2 minutes to respond.
Please be patient!

Session begun.

Downloading device's PIT file...
PIT file download successful.

Uploading KERNEL
100%
KERNEL upload successful

Ending session...
Rebooting device...
Releasing device interface...
Re-attaching kernel driver...
"

i tried installing zip again, it still hangs at boot after doing so

any suggestions?

cheers,

robin

RE: Problems installing v4.2 to galaxy s2 - Added by Xan VFR almost 6 years ago

I only executed heimdall flash --KERNEL recovery.img

Are you using heimdall downloaded from http://redmine.replicant.us/projects/replicant/wiki/ReplicantImages?

RE: Problems installing v4.2 to galaxy s2 - Added by robin p almost 6 years ago

Xan VFR wrote:

I only executed heimdall flash --KERNEL recovery.img

I realised last night that running that code will auto-download the pit file from the device and find the correct partition, so the option i added isn't required in this case.

Are you using heimdall downloaded from http://redmine.replicant.us/projects/replicant/wiki/ReplicantImages?

no, i'm using heimdall from a ppa. i will try the version from that page

RE: Problems installing v4.2 to galaxy s2 - Added by Paul Kocialkowski almost 6 years ago

Indeed, no need to do anything with the PIT, that's not in our instructions anyway.

except for the final step:
"8. Select wipe data/factory reset
9. Confirm the data wipe by selecting Yes -- delete all user data"

which did not sound like a good thing to do. now my phone hangs at the replicant boot screen (the red guy on roller skates).

It won't erase the internal/external sdcard's content, only the applications settings. It is mandatory to complete that step, else you end up facing incompatibilities. This is why your devices is not booting, there is no way around it.

The instructions we put on the wiki are mandatory, you can't decide the skip a few and still except it to work!

RE: Problems installing v4.2 to galaxy s2 - Added by Xan VFR almost 6 years ago

It won't erase the internal/external sdcard's content, only the applications settings. It is mandatory to complete that step

Thanks for making the option clearer to me. I must have done something wrong during the update process to lose my contacts and apps.

RE: Problems installing v4.2 to galaxy s2 - Added by robin p almost 6 years ago

Xan VFR wrote:

It won't erase the internal/external sdcard's content, only the applications settings. It is mandatory to complete that step

Thanks for making the option clearer to me. I must have done something wrong during the update process to lose my contacts and apps.

no, i don't think you did - exactly the same has happened to me. my phone now boots (thanks), but all my contacts have gone, plus my settings, the apps i had installed and some other data. i can recover emails and calendar of course from the servers they are stored on, but some info will be harder to recover/recreate.

paul, can you explain what's happened? this looks inconsistent with your above statement.

RE: Problems installing v4.2 to galaxy s2 - Added by Paul Kocialkowski almost 6 years ago

I must have done something wrong during the update process to lose my contacts and apps.

That's perfectly normal. I did mention it was going to erase applications settings. You cannot keep them as-is during a Replicant version update anyways. Your best shot is using some kind of backup application.

paul, can you explain what's happened? this looks inconsistent with your above statement.

That's perfectly consistent, you probably misunderstood or didn't read fully my statement, especially:

It won't erase the internal/external sdcard's content, only the applications settings.

What you describe perfectly falls under "applications settings".

Note that flashing a new Replicant version is like installing a whole new system. You wouldn't expect all your data and applications settings to be kept while updating to a new version of your operating system, would you? (Well, with GNU/Linux, that's not true since it's quite easy to keep /home, but you get the idea.) The thing here is that the system settings format are incompatibly between Repliant versions, so you just cannot keep them as-is.

    (1-8/8)