I have an iphone 3gs with old bootrom. The phone was previously jailbroken and motherboard replaced. Due to a virus in my phone, I have erased all content and settings and now want to reprogram it.

I was unable to do it using redsnow or snowbreeze on windows. I am unable to run rednsow 2.0.4 on ubuntu.

Previously, I was able to enter dfu mode but now it is not possible as the home button seems to be broken or problems with installation using itunes. Now I am only able to enter restore mode with itunes logo.

Is there any method to reprogram iphone using just ubuntu without using itunes or redsnow in restore mode?