sailfishos-sony-tama / main

Documentation, releases, and issues
MIT License
36 stars 7 forks source link

Flashing script on windows not working #170

Closed Oluwaseyi14 closed 2 years ago

Oluwaseyi14 commented 2 years ago

Flashing script on windows is stuck at searching for compatible device, device is in fastboot mode and also using usb2 but the script is not detecting my device. Script Script run as administrator

rinigus commented 2 years ago

Thank you for filing it here! Maybe some Windows users can help you out.

mrbenedetto commented 2 years ago

I have the same Problem with my H8416. My device was running v3.4 and now I wanted to upgrade to v4.2 and I got the same issue.

Maybe Error in flash-on-windows.bat in v4.2 :: Ensure that we are flashing right device :: :: H8416 (<<<--- :: to much, compare v3.4 .bat file) :: H841 Capture

Did not help: https://forum.sailfishos.org/t/xperia-tama-flashing-troubleshooting/7251/5

xsetiadi commented 2 years ago

just check windows script flash, and found this on line 169 "@call :fastboot flash oem_a %blobfilename%" does %blobfilename% refer to vendor.img001 inside sfos.zip or it is refer to vbmeta.img?

just curious, because im gona execute on windows, once my xz2 arrive from local store

xsetiadi commented 2 years ago

just check windows script flash, and found this on line 169 "@call :fastboot flash oem_a %blobfilename%" does %blobfilename% refer to vendor.img001 inside sfos.zip or it is refer to vbmeta.img?

just curious, because im gona execute on windows, once my xz2 arrive from local store

ok got it, its refer to swbinaries

rinigus commented 2 years ago

Did it work for you now? Assuming so from the other issue that you opened regarding MTP

xsetiadi commented 2 years ago

Did it work for you now? Assuming so from the other issue that you opened regarding MTP

not yet, my xz2 will arrive tomorrow, but I will install sfos right to it. did you mean when I'm open MTP from another device it is interfering with the flashing process?

rinigus commented 2 years ago

Issue was opened by @Oluwaseyi14 and that person opened another issue regarding MTP in this repository. From that I conclude that flashing worked. So, question was to @Oluwaseyi14 with the original issue.

Oluwaseyi14 commented 2 years ago

The script didn't work. I had to install and use Linux Mint.

rinigus commented 2 years ago

Thanks for letting me know. Let's see if someone can fix it, I am not going to work on that as I don't use Windows

xsetiadi commented 2 years ago

Thanks for letting me know. Let's see if someone can fix it, I am not going to work on that as I don't use Windows

i just compare the flash-on-windows.bat from the official Xperia 10 Jolla and from your port. the difference is. on your script, there's no command to flash vendor.img001 while on Jolla script it flashes on vendor_a and vendor_b partition.

is that ok?

Oluwaseyi14 commented 2 years ago

Thanks for letting me know. Let's see if someone can fix it, I am not going to work on that as I don't use Windows

i just compare the flash-on-windows.bat from the official Xperia 10 Jolla and from your port. the difference is. on your script, there's no command to flash vendor.img001 while on Jolla script it flashes on vendor_a and vendor_b partition.

is that ok?

Yes it is . we are suppose to flash vendor seperately after running the flash-on-windows.bat

xsetiadi commented 2 years ago

Thanks for letting me know. Let's see if someone can fix it, I am not going to work on that as I don't use Windows

i just compare the flash-on-windows.bat from the official Xperia 10 Jolla and from your port. the difference is. on your script, there's no command to flash vendor.img001 while on Jolla script it flashes on vendor_a and vendor_b partition. is that ok?

Yes it is . we are suppose to flash vendor seperately after running the flash-on-windows.bat

but you didn't mention it on flashing.md is it ok?

rinigus commented 2 years ago

None of the scripts (Linux or Windows) have that vendor.img001 image flashing. I'll have to read up on what is there. It is rather small and we do use LVM with /system and /vendor on our root partitions. Right now, we all use SFOS without flashing that image at all.

xsetiadi commented 2 years ago

None of the scripts (Linux or Windows) have that vendor.img001 image flashing. I'll have to read up on what is there. It is rather small and we do use LVM with /system and /vendor on our root partitions. Right now, we all use SFOS without flashing that image at all.

so it's no problem I guess,

well, I think I know the problem of @Oluwaseyi14. because they did not put fastboot.exe and other components in the sailfish x installation directory, windows are not like Linux. by default, you must put fastboot files and other files in the same directory on flash-on-windows.bat . unlike Linux, you cannot execute fastboot command from any directory (before you configure it)

rinigus commented 2 years ago

I don't think we need to flash vendor.img001 image. It contains almost empty filesystem with just one empty subfolder. So, skip it and do as the script does.

Oluwaseyi14 commented 2 years ago

None of the scripts (Linux or Windows) have that vendor.img001 image flashing. I'll have to read up on what is there. It is rather small and we do use LVM with /system and /vendor on our root partitions. Right now, we all use SFOS without flashing that image at all.

so it's no problem I guess,

well, I think I know the problem of @Oluwaseyi14. because they did not put fastboot.exe and other components in the sailfish x installation directory, windows are not like Linux. by default, you must put fastboot files and other files in the same directory on flash-on-windows.bat . unlike Linux, you cannot execute fastboot command from any directory (before you configure it)

No everything is in the same folder

xsetiadi commented 2 years ago

None of the scripts (Linux or Windows) have that vendor.img001 image flashing. I'll have to read up on what is there. It is rather small and we do use LVM with /system and /vendor on our root partitions. Right now, we all use SFOS without flashing that image at all.

so it's no problem I guess, well, I think I know the problem of @Oluwaseyi14. because they did not put fastboot.exe and other components in the sailfish x installation directory, windows are not like Linux. by default, you must put fastboot files and other files in the same directory on flash-on-windows.bat . unlike Linux, you cannot execute fastboot command from any directory (before you configure it)

No everything is in the same folder

then why flash-on-windows.bat don't detect the fastboot file?

while in @mrbenedetto it seems the fastboot works, but after installing sfos, the device won't detect as supposed to be written in the script. but detect as H8416, so the flash-on-windows.bat failed to verify and then cancel the flash. best to check inside the script and see what device for is that flash-on-windows.bat

rinigus commented 2 years ago

Make sure you download the correct image for your device. So

xsetiadi commented 2 years ago

Make sure you download the correct image for your device. So

  • Which device do you have?
  • How is it detected by fastboot?
  • What is in the script in your downloaded ZIP?

if our device not listed, can we just edit the script? my xz2 is sov37 model, the same model as the guy in xda forum. they say can install it. I'm not yet got my device. and I'm super excited to try on myself

rinigus commented 2 years ago

Then you have to judge yourself which model is the closest to that and try to test with it. Probably flashing it manually then. But as I have no idea about these alternative models, I cannot help you much with it.

xsetiadi commented 2 years ago

Then you have to judge yourself which model is the closest to that and try to test with it. Probably flashing it manually then. But as I have no idea about these alternative models, I cannot help you much with it.

ok, I have an idea about manual flash too, following the script about what file and partition need to flash

lal883 commented 2 years ago

Make sure you download the correct image for your device. So

  • Which device do you have?
  • How is it detected by fastboot?
  • What is in the script in your downloaded ZIP?

if our device not listed, can we just edit the script? my xz2 is sov37 model, the same model as the guy in xda forum. they say can install it. I'm not yet got my device. and I'm super excited to try on myself

I had to edit the script to get it to flash a "SO-05K" (another variant of XZ2c). With the script updated, its md5 checksum will change and the new checksum will have to be updated in the md5.lst also.

xsetiadi commented 2 years ago

Make sure you download the correct image for your device. So

  • Which device do you have?
  • How is it detected by fastboot?
  • What is in the script in your downloaded ZIP?

if our device not listed, can we just edit the script? my xz2 is sov37 model, the same model as the guy in xda forum. they say can install it. I'm not yet got my device. and I'm super excited to try on myself

I had to edit the script to get it to flash a "SO-05K" (another variant of XZ2c). With the script updated, its md5 checksum will change and the new checksum will have to be updated in the md5.lst also.

so I need to generate a new md5?

rinigus commented 2 years ago

Don't bother with the script, just flash manually. It should be fine if you can follow what to flash where.

xsetiadi commented 2 years ago

Don't bother with the script, just flash manually. It should be fine if you can follow what to flash where.

thanks sir, i get my xz2 boot up sailfish now, just flash manual one per partition, and it work. script not recognize my device.

rinigus commented 2 years ago

script couldn't recognize the device as it is not officially AOSP supported one. great that it still works :)

rinigus commented 2 years ago

@xsetiadi: Do not mix the issues!

rinigus commented 2 years ago

As reported in #36, flashing seems to be fine in Windows. Closing here

tordym commented 2 years ago

I bought an XZ3 a couple of weeks ago and decided to try Sailfish on it last weekend. After carefully following the instructions provided on this site I ran into the same issue as mentioned here; the install-script stops while searching for a device.

Fastboot command detects the device and I have the correct version of Sailfish for my phone.

As I couldn't be bothered to mess around with Windows too much I switched to Linux and there it worked without a hitch.

Is it possible that someone can provide a workaround for this issue by providing a step by step (command by command) tutorial for flashing manually on Windows?! I could extract that info from the script, but I am afraid of providing the wrong info here and accidentally helping someone to brick their phone.