Divested-Mobile / DivestOS-Build

Everything needed to build DivestOS, a more private and more secure aftermarket mobile operating system.
https://divestos.org/index.php?page=build
Other
226 stars 31 forks source link

Install fails because of "protocol error" #354

Closed stemy2 closed 1 week ago

stemy2 commented 1 week ago

Hello,

The command fastboot update divested-20.0-20241011-dos-FP3-fastboot.zip fails at every attempt, the error message is "data too large". Even the --force option doesn't change anything. What shall i do now ? Did i bricked my phone ?

The whole output:

stem@stem-kubuntu:~/Downloads$ fastboot update --force divested-20.0-20241011-dos-FP3-fastboot.zip
--------------------------------------------
Bootloader Version...: 
Baseband Version.....: 
Serial Number........: A20A98720202
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product'                                 OKAY [  0.020s]
Setting current slot to 'b'                        OKAY [  0.020s]
extracting boot.img (64 MB) to disk... took 0.097s
archive does not contain 'init_boot.img'
extracting dtbo.img (8 MB) to disk... took 0.012s
archive does not contain 'dt.img'
archive does not contain 'pvmfw.img'
archive does not contain 'recovery.img'
extracting vbmeta.img (0 MB) to disk... took 0.000s
archive does not contain 'vbmeta_system.img'
archive does not contain 'vbmeta_vendor.img'
archive does not contain 'vendor_boot.img'
archive does not contain 'vendor_kernel_boot.img'
archive does not contain 'super_empty.img'
archive does not contain 'boot_other.img'
archive does not contain 'odm.img'
archive does not contain 'odm_dlkm.img'
archive does not contain 'product.img'
extracting system.img (1829 MB) to disk... took 6.850s
archive does not contain 'system_dlkm.img'
archive does not contain 'system_ext.img'
archive does not contain 'system_other.img'
extracting vendor.img (474 MB) to disk... took 1.694s
archive does not contain 'vendor_dlkm.img'
archive does not contain 'vendor_other.img'
extracting boot.img (64 MB) to disk... took 0.095s
archive does not contain 'boot.sig'
Sending 'boot_b' (65536 KB)                        OKAY [  2.287s]
Writing 'boot_b'                                   OKAY [  0.668s]
extracting dtbo.img (8 MB) to disk... took 0.012s
archive does not contain 'dtbo.sig'
Sending 'dtbo_b' (8192 KB)                         OKAY [  0.321s]
Writing 'dtbo_b'                                   OKAY [  0.110s]
extracting vbmeta.img (0 MB) to disk... took 0.000s
archive does not contain 'vbmeta.sig'
Sending 'vbmeta_b' (4 KB)                          OKAY [  0.040s]
Writing 'vbmeta_b'                                 OKAY [  0.021s]
archive does not contain 'super_empty.img'
extracting system.img (1829 MB) to disk... took 6.863s
archive does not contain 'system.sig'
Sending sparse 'system_b' 1/4 (517680 KB)          OKAY [ 17.974s]
Writing 'system_b'                                 OKAY [  5.189s]
Sending sparse 'system_b' 2/4 (516208 KB)          OKAY [ 17.473s]
Writing 'system_b'                                 OKAY [  5.183s]
Sending sparse 'system_b' 3/4 (516208 KB)          OKAY [ 17.889s]
Writing 'system_b'                                 OKAY [  5.150s]
Sending sparse 'system_b' 4/4 (323448 KB)          OKAY [ 11.302s]
Writing 'system_b'                                 OKAY [  3.256s]
extracting vendor.img (474 MB) to disk... took 1.686s
archive does not contain 'vendor.sig'
Sending 'vendor_b' (1048576 KB)                    FAILED (remote: 'data too large')
fastboot: error: Command failed
stem@stem-kubuntu:~/Downloads$
stemy2 commented 1 week ago

Update, there's another problem, and it seems worse.

I accidentally relaunched the command. By reflex, i hit the Ctrl + c command to stop it. The merror message changed, and now, it's : Status read failed (Protocol error), and i really fear i have bricked my phone.

The full output:

stem@stem-kubuntu:~/Downloads$ fastboot update --force divested-20.0-20241011-dos-FP3-fastboot.zip
--------------------------------------------
Bootloader Version...: 
Baseband Version.....: 
Serial Number........: A20A98720202
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product'                                 OKAY [  0.020s]
Setting current slot to 'b'                        OKAY [  0.020s]
extracting boot.img (64 MB) to disk... took 0.097s
archive does not contain 'init_boot.img'
extracting dtbo.img (8 MB) to disk... took 0.012s
archive does not contain 'dt.img'
archive does not contain 'pvmfw.img'
archive does not contain 'recovery.img'
extracting vbmeta.img (0 MB) to disk... took 0.000s
archive does not contain 'vbmeta_system.img'
archive does not contain 'vbmeta_vendor.img'
archive does not contain 'vendor_boot.img'
archive does not contain 'vendor_kernel_boot.img'
archive does not contain 'super_empty.img'
archive does not contain 'boot_other.img'
archive does not contain 'odm.img'
archive does not contain 'odm_dlkm.img'
archive does not contain 'product.img'
extracting system.img (1829 MB) to disk... took 6.863s
archive does not contain 'system_dlkm.img'
archive does not contain 'system_ext.img'
archive does not contain 'system_other.img'
extracting vendor.img (474 MB) to disk... took 1.691s
archive does not contain 'vendor_dlkm.img'
archive does not contain 'vendor_other.img'
extracting boot.img (64 MB) to disk... took 0.094s
archive does not contain 'boot.sig'
Sending 'boot_b' (65536 KB)                        OKAY [  2.297s]
Writing 'boot_b'                                   OKAY [  0.657s]
extracting dtbo.img (8 MB) to disk... took 0.012s
archive does not contain 'dtbo.sig'
Sending 'dtbo_b' (8192 KB)                         OKAY [  0.311s]
Writing 'dtbo_b'                                   OKAY [  0.114s]
extracting vbmeta.img (0 MB) to disk... took 0.000s
archive does not contain 'vbmeta.sig'
Sending 'vbmeta_b' (4 KB)                          OKAY [  0.040s]
Writing 'vbmeta_b'                                 OKAY [  0.021s]
archive does not contain 'super_empty.img'
extracting system.img (1829 MB) to disk... took 6.846s
archive does not contain 'system.sig'
Sending sparse 'system_b' 1/4 (517680 KB)          OKAY [ 17.232s]
Writing 'system_b'                                 FAILED (Status read failed (Protocol error))
fastboot: error: Command failed
stem@stem-kubuntu:~/Downloads$
SkewedZeppelin commented 1 week ago

For the size issue you need to use the correct version of fastboot as what the website says: https://divestos.org/pages/bootloader#prereqComputer

For the protocol issue please see the USB troubleshooting steps: https://divestos.org/pages/bootloader#usbCables

stemy2 commented 1 week ago

Solved

1) For the first, i had to ignore the error 2) For the second, i changed the USB port