Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step 8 of davinci installation step failed with version-baseband-CN not found #237

Open
ghost opened this issue Aug 26, 2023 · 6 comments
Open
Labels
question Further information is requested

Comments

@ghost
Copy link

ghost commented Aug 26, 2023

Phone: Xiaomi 9T (davinci)
Version: 20.0

Bug:

I am trying to follow this guide: https://divestos.org/builds/LineageOS/davinci/install.html. But the step number 8 failed.

$ fastboot update divested-20.0-20230825-dos-davinci-fastboot.zip
--------------------------------------------
Bootloader Version...:
Baseband Version.....:
Serial Number........: 26351b40
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'version-baseband-CN'                     FAILED

Could not getvar for 'version-baseband-CN' (remote: 'GetVar Variable Not found')

fastboot: error: requirements not met!

With --force the device reboot to the system:

$ fastboot --force update divested-20.0-20230825-dos-davinci-fastboot.zip
--------------------------------------------
Bootloader Version...:
Baseband Version.....:
Serial Number........: 26351b40
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'version-baseband-CN'                     FAILED

Could not getvar for 'version-baseband-CN' (remote: 'GetVar Variable Not found')

requirements not met! but proceeding due to --force
Checking 'version-baseband-GLOBAL'                 FAILED

Could not getvar for 'version-baseband-GLOBAL' (remote: 'GetVar Variable Not found')

requirements not met! but proceeding due to --force
Checking 'version-baseband-INDIA'                  FAILED

Could not getvar for 'version-baseband-INDIA' (remote: 'GetVar Variable Not found')

requirements not met! but proceeding due to --force
extracting boot.img (128 MB) to disk... took 0.283s
archive does not contain 'boot.sig'
Sending 'boot' (131072 KB)                         OKAY [  3.681s]
Writing 'boot'                                     OKAY [  0.295s]
archive does not contain 'init_boot.img'
extracting dtbo.img (32 MB) to disk... took 0.074s
archive does not contain 'dtbo.sig'
Sending 'dtbo' (32768 KB)                          OKAY [  0.861s]
Writing 'dtbo'                                     OKAY [  0.077s]
archive does not contain 'dt.img'
archive does not contain 'pvmfw.img'
extracting recovery.img (64 MB) to disk... took 0.123s
archive does not contain 'recovery.sig'
Sending 'recovery' (65536 KB)                      OKAY [  2.001s]
Writing 'recovery'                                 OKAY [  0.154s]
extracting vbmeta.img (0 MB) to disk... took 0.000s
archive does not contain 'vbmeta.sig'
Sending 'vbmeta' (8 KB)                            OKAY [  0.010s]
Writing 'vbmeta'                                   OKAY [  0.001s]
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'
extracting super_empty.img (0 MB) to disk... took 0.000s
Rebooting into fastboot                            OKAY [  0.000s]
< waiting for any device >

With --force and a manual reboot (Volume Down + Power):

$ fastboot --force update divested-20.0-20230825-dos-davinci-fastboot.zip
--------------------------------------------
Bootloader Version...:
Baseband Version.....:
Serial Number........: 26351b40
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'version-baseband-CN'                     FAILED

Could not getvar for 'version-baseband-CN' (remote: 'GetVar Variable Not found')

requirements not met! but proceeding due to --force
Checking 'version-baseband-GLOBAL'                 FAILED

Could not getvar for 'version-baseband-GLOBAL' (remote: 'GetVar Variable Not found')

requirements not met! but proceeding due to --force
Checking 'version-baseband-INDIA'                  FAILED

Could not getvar for 'version-baseband-INDIA' (remote: 'GetVar Variable Not found')

requirements not met! but proceeding due to --force
extracting boot.img (128 MB) to disk... took 0.283s
archive does not contain 'boot.sig'
Sending 'boot' (131072 KB)                         OKAY [  3.681s]
Writing 'boot'                                     OKAY [  0.295s]
archive does not contain 'init_boot.img'
extracting dtbo.img (32 MB) to disk... took 0.074s
archive does not contain 'dtbo.sig'
Sending 'dtbo' (32768 KB)                          OKAY [  0.861s]
Writing 'dtbo'                                     OKAY [  0.077s]
archive does not contain 'dt.img'
archive does not contain 'pvmfw.img'
extracting recovery.img (64 MB) to disk... took 0.123s
archive does not contain 'recovery.sig'
Sending 'recovery' (65536 KB)                      OKAY [  2.001s]
Writing 'recovery'                                 OKAY [  0.154s]
extracting vbmeta.img (0 MB) to disk... took 0.000s
archive does not contain 'vbmeta.sig'
Sending 'vbmeta' (8 KB)                            OKAY [  0.010s]
Writing 'vbmeta'                                   OKAY [  0.001s]
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'
extracting super_empty.img (0 MB) to disk... took 0.000s
Rebooting into fastboot                            OKAY [  0.000s]
< waiting for any device >
fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable.

Additional Information

I am able to install lineageOS (https://wiki.lineageos.org/devices/davinci/install/variant1) and Xiaomi official ROM (https://xiaomifirmwareupdater.com/miui/davinci/).

The --force seems to force the installation DivestOS recovery.

$ fastboot getvar all
(bootloader) crc:1
(bootloader) DP:0xFF
(bootloader) token:VQEBIQEQzxIdH7-cs21heHkWUm87ywMHZGF2aW5jaQIEyRorgA
(bootloader) parallel-download-flash:yes
(bootloader) cpuid:0xc91a2b80
(bootloader) anti:1
(bootloader) hw-revision:10000
(bootloader) board_version:5.19.0
(bootloader) unlocked:yes
(bootloader) off-mode-charge:0
(bootloader) charger-screen-enabled:0
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:0
(bootloader) version-baseband:
(bootloader) version-bootloader:
(bootloader) erase-block-size: 0x1000
(bootloader) logical-block-size: 0x1000
(bootloader) variant:SM7 UFS
(bootloader) partition-type:persistbak:raw
(bootloader) partition-size:persistbak: 0x4000000
(bootloader) partition-type:persist:raw
(bootloader) partition-size:persist: 0x4000000
(bootloader) partition-type:modemst2:raw
(bootloader) partition-size:modemst2: 0x800000
(bootloader) partition-type:modemst1:raw
(bootloader) partition-size:modemst1: 0x800000
(bootloader) partition-type:bk52:raw
(bootloader) partition-size:bk52: 0x100000
(bootloader) partition-type:bk51:raw
(bootloader) partition-size:bk51: 0xBA000
(bootloader) partition-type:fsc:raw
(bootloader) partition-size:fsc: 0x40000
(bootloader) partition-type:fsg:raw
(bootloader) partition-size:fsg: 0x800000
(bootloader) partition-type:modem:raw
(bootloader) partition-size:modem: 0x14000000
(bootloader) partition-type:core_nhlos:raw
(bootloader) partition-size:core_nhlos: 0xAA00000
(bootloader) partition-type:bk47:raw
(bootloader) partition-size:bk47: 0x1600000
(bootloader) partition-type:boot:raw
(bootloader) partition-size:boot: 0x8000000
(bootloader) partition-type:dsp:raw
(bootloader) partition-size:dsp: 0x4000000
(bootloader) partition-type:logo:raw
(bootloader) partition-size:logo: 0x4000000
(bootloader) partition-type:ifaa:raw
(bootloader) partition-size:ifaa: 0x4000000
(bootloader) partition-type:dtbo:raw
(bootloader) partition-size:dtbo: 0x2000000
(bootloader) partition-type:gsort:raw
(bootloader) partition-size:gsort: 0x1000000
(bootloader) partition-type:hypbak:raw
(bootloader) partition-size:hypbak: 0x800000
(bootloader) partition-type:hyp:raw
(bootloader) partition-size:hyp: 0x800000
(bootloader) partition-type:spunvm:raw
(bootloader) partition-size:spunvm: 0x800000
(bootloader) partition-type:bk45:raw
(bootloader) partition-size:bk45: 0x400000
(bootloader) partition-type:tzbak:raw
(bootloader) partition-size:tzbak: 0x400000
(bootloader) partition-type:tz:raw
(bootloader) partition-size:tz: 0x400000
(bootloader) partition-type:ablbak:raw
(bootloader) partition-size:ablbak: 0x200000
(bootloader) partition-type:abl:raw
(bootloader) partition-size:abl: 0x200000
(bootloader) partition-type:toolsfv:raw
(bootloader) partition-size:toolsfv: 0x200000
(bootloader) partition-type:uefisecappbak:raw
(bootloader) partition-size:uefisecappbak: 0x200000
(bootloader) partition-type:uefisecapp:raw
(bootloader) partition-size:uefisecapp: 0x200000
(bootloader) partition-type:cateloader:raw
(bootloader) partition-size:cateloader: 0x200000
(bootloader) partition-type:bk44:raw
(bootloader) partition-size:bk44: 0x800000
(bootloader) partition-type:bk44:raw
(bootloader) partition-size:bk44: 0x800000
(bootloader) partition-type:catecontentfv:raw
(bootloader) partition-size:catecontentfv: 0x100000
(bootloader) partition-type:dip:raw
(bootloader) partition-size:dip: 0x100000
(bootloader) partition-type:bluetooth:raw
(bootloader) partition-size:bluetooth: 0x100000
(bootloader) partition-type:keymasterbak:raw
(bootloader) partition-size:keymasterbak: 0x100000
(bootloader) partition-type:keymaster:raw
(bootloader) partition-size:keymaster: 0x100000
(bootloader) partition-type:bk43:raw
(bootloader) partition-size:bk43: 0x100000
(bootloader) partition-type:cmnlib64bak:raw
(bootloader) partition-size:cmnlib64bak: 0x100000
(bootloader) partition-type:cmnlib64:raw
(bootloader) partition-size:cmnlib64: 0x100000
(bootloader) partition-type:cmnlibbak:raw
(bootloader) partition-size:cmnlibbak: 0x100000
(bootloader) partition-type:cmnlib:raw
(bootloader) partition-size:cmnlib: 0x100000
(bootloader) partition-type:catefv:raw
(bootloader) partition-size:catefv: 0x80000
(bootloader) partition-type:uefivarstore:raw
(bootloader) partition-size:uefivarstore: 0x80000
(bootloader) partition-type:aopbak:raw
(bootloader) partition-size:aopbak: 0x80000
(bootloader) partition-type:aop:raw
(bootloader) partition-size:aop: 0x80000
(bootloader) partition-type:devcfgbak:raw
(bootloader) partition-size:devcfgbak: 0x40000
(bootloader) partition-type:devcfg:raw
(bootloader) partition-size:devcfg: 0x40000
(bootloader) partition-type:bk42:raw
(bootloader) partition-size:bk42: 0x40000
(bootloader) partition-type:storsec:raw
(bootloader) partition-size:storsec: 0x20000
(bootloader) partition-type:vbmeta:raw
(bootloader) partition-size:vbmeta: 0x20000
(bootloader) partition-type:msadp:raw
(bootloader) partition-size:msadp: 0x40000
(bootloader) partition-type:apdp:raw
(bootloader) partition-size:apdp: 0x40000
(bootloader) partition-type:qupfwbak:raw
(bootloader) partition-size:qupfwbak: 0x20000
(bootloader) partition-type:qupfw:raw
(bootloader) partition-size:qupfw: 0x20000
(bootloader) partition-type:bk41:raw
(bootloader) partition-size:bk41: 0x1A000
(bootloader) partition-type:limits:raw
(bootloader) partition-size:limits: 0x8000
(bootloader) partition-type:secdata:raw
(bootloader) partition-size:secdata: 0x8000
(bootloader) partition-type:multiimgqti:raw
(bootloader) partition-size:multiimgqti: 0x8000
(bootloader) partition-type:multiimgoem:raw
(bootloader) partition-size:multiimgoem: 0x8000
(bootloader) partition-type:bk33:raw
(bootloader) partition-size:bk33: 0x100000
(bootloader) partition-type:ddr:raw
(bootloader) partition-size:ddr: 0x100000
(bootloader) partition-type:bk32:raw
(bootloader) partition-size:bk32: 0xD8000
(bootloader) partition-type:cdt:raw
(bootloader) partition-size:cdt: 0x20000
(bootloader) partition-type:bk31:raw
(bootloader) partition-size:bk31: 0x8000
(bootloader) partition-type:xblbak:raw
(bootloader) partition-size:xblbak: 0x700000
(bootloader) partition-type:xbl_configbak:raw
(bootloader) partition-size:xbl_configbak: 0x80000
(bootloader) partition-type:xbl:raw
(bootloader) partition-size:xbl: 0x700000
(bootloader) partition-type:xbl_config:raw
(bootloader) partition-size:xbl_config: 0x80000
(bootloader) partition-type:userdata:f2fs
(bootloader) partition-size:userdata: 0x1BC8DFB000
(bootloader) partition-type:cust:raw
(bootloader) partition-size:cust: 0x40000000
(bootloader) partition-type:cache:ext4
(bootloader) partition-size:cache: 0x10000000
(bootloader) partition-type:recovery:raw
(bootloader) partition-size:recovery: 0x4000000
(bootloader) partition-type:imagefv:raw
(bootloader) partition-size:imagefv: 0x200000
(bootloader) partition-type:rawdump:raw
(bootloader) partition-size:rawdump: 0x8000000
(bootloader) partition-type:minidump:raw
(bootloader) partition-size:minidump: 0x8000000
(bootloader) partition-type:logdump:raw
(bootloader) partition-size:logdump: 0x4000000
(bootloader) partition-type:system:ext4
(bootloader) partition-size:system: 0xE0000000
(bootloader) partition-type:vendor:raw
(bootloader) partition-size:vendor: 0x60000000
(bootloader) partition-type:bk09:raw
(bootloader) partition-size:bk09: 0x2000000
(bootloader) partition-type:splash:raw
(bootloader) partition-size:splash: 0x20A4000
(bootloader) partition-type:bk08:raw
(bootloader) partition-size:bk08: 0x1F5C000
(bootloader) partition-type:metadata:raw
(bootloader) partition-size:metadata: 0x1000000
(bootloader) partition-type:oem_misc1:raw
(bootloader) partition-size:oem_misc1: 0x1000000
(bootloader) partition-type:devinfo:raw
(bootloader) partition-size:devinfo: 0x1000000
(bootloader) partition-type:oops:raw
(bootloader) partition-size:oops: 0x1000000
(bootloader) partition-type:bk07:raw
(bootloader) partition-size:bk07: 0x800000
(bootloader) partition-type:logfs:raw
(bootloader) partition-size:logfs: 0x800000
(bootloader) partition-type:bk06:raw
(bootloader) partition-size:bk06: 0x400000
(bootloader) partition-type:vm-data:raw
(bootloader) partition-size:vm-data: 0x400000
(bootloader) partition-type:misc:raw
(bootloader) partition-size:misc: 0x400000
(bootloader) partition-type:bk05:raw
(bootloader) partition-size:bk05: 0x200000
(bootloader) partition-type:frp:raw
(bootloader) partition-size:frp: 0x80000
(bootloader) partition-type:keystore:raw
(bootloader) partition-size:keystore: 0x80000
(bootloader) partition-type:bk04:raw
(bootloader) partition-size:bk04: 0x80000
(bootloader) partition-type:bk03:raw
(bootloader) partition-size:bk03: 0x40000
(bootloader) partition-type:bk02:raw
(bootloader) partition-size:bk02: 0x20000
(bootloader) partition-type:bk01:raw
(bootloader) partition-size:bk01: 0x8000
(bootloader) partition-type:dbg:raw
(bootloader) partition-size:dbg: 0x8000
(bootloader) partition-type:ssd:raw
(bootloader) partition-size:ssd: 0x8000
(bootloader) partition-type:switch:raw
(bootloader) partition-size:switch: 0x2000
(bootloader) secure:yes
(bootloader) serialno:26351b40
(bootloader) product:davinci
(bootloader) max-download-size:805306368
(bootloader) kernel:uefi
all:
Finished. Total time: 0.009s
@ghost
Copy link
Author

ghost commented Aug 26, 2023

The DivestOS 20.0 recovery (with manual reboot) doesn't validate the divested-20.0-20230825-dos-davinci.zip.

@SkewedZeppelin
Copy link
Member

Is it orange?

@ghost
Copy link
Author

ghost commented Aug 26, 2023

Is it orange?

Yes

The DivestOS recovery (from step 8), can't install divested-20.0-20230825-dos-davinci.zip. But if I use the lineageOS recovery to flash divested-20.0-20230825-dos-davinci.zip, I have a working DivestOS recovery.

@SkewedZeppelin SkewedZeppelin added the question Further information is requested label Aug 26, 2023
@pastk
Copy link

pastk commented Jun 27, 2024

I have a similar looking issue on davinci trying to install latest 17.1-20240620.

All previous steps from https://divestos.org/builds/LineageOS/davinci/install.html were fine, maybe except that there is a warning (does it matter?)

$ fastboot wipe-super super_empty-davinci.img

Warning: skip copying system image avb footer due to sparse image.
Sending 'system' (264 KB)                          OKAY [  0.012s]
Writing 'system'                                   OKAY [  0.000s]
Sending 'cust' (0 KB)                              OKAY [  0.005s]
Writing 'cust'                                     OKAY [  0.000s]
Sending 'vendor' (0 KB)                            OKAY [  0.007s]
Writing 'vendor'                                   OKAY [  0.000s]
Finished. Total time: 0.041s

After rebooting to the bootloader I try next step which fails:

$ fastboot update divested-17.1-20240620-dos-davinci-fastboot.zip
--------------------------------------------
Bootloader Version...: 
Baseband Version.....: 
Serial Number........: e3ac69b7
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'version-cn'                              FAILED

Could not getvar for 'version-cn' (remote: 'GetVar Variable Not found')

fastboot: error: requirements not met!

Trying to force it fails midway:

$ fastboot update --force divested-17.1-20240620-dos-davinci-fastboot.zip
--------------------------------------------
Bootloader Version...: 
Baseband Version.....: 
Serial Number........: e3ac69b7
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'version-cn'                              FAILED

Could not getvar for 'version-cn' (remote: 'GetVar Variable Not found')

requirements not met! but proceeding due to --force
Checking 'version-in'                              FAILED

Could not getvar for 'version-in' (remote: 'GetVar Variable Not found')

requirements not met! but proceeding due to --force
Checking 'version-eea'                             FAILED

Could not getvar for 'version-eea' (remote: 'GetVar Variable Not found')

requirements not met! but proceeding due to --force
archive does not contain 'fastboot-info.txt'
extracting boot.img (64 MB) to disk... took 0.189s
archive does not contain 'init_boot.img'
extracting dtbo.img (8 MB) to disk... took 0.023s
archive does not contain 'dt.img'
archive does not contain 'pvmfw.img'
extracting recovery.img (64 MB) to disk... took 0.197s
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 'odm.img'
archive does not contain 'odm_dlkm.img'
extracting product.img (559 MB) to disk... took 8.519s
extracting system.img (910 MB) to disk... took 12.747s
archive does not contain 'system_dlkm.img'
archive does not contain 'system_ext.img'
extracting vendor.img (752 MB) to disk... took 16.277s
archive does not contain 'vendor_dlkm.img'
archive does not contain 'super_empty.img'
archive does not contain 'super_empty.img'
extracting boot.img (64 MB) to disk... took 0.311s
archive does not contain 'boot.sig'
archive does not contain 'super_empty.img'
Sending 'boot' (131072 KB)                         OKAY [  2.745s]
Writing 'boot'                                     OKAY [  0.646s]
archive does not contain 'super_empty.img'
extracting dtbo.img (8 MB) to disk... took 0.023s
archive does not contain 'dtbo.sig'
archive does not contain 'super_empty.img'
Sending 'dtbo' (32768 KB)                          OKAY [  0.690s]
Writing 'dtbo'                                     OKAY [  0.173s]
archive does not contain 'super_empty.img'
extracting recovery.img (64 MB) to disk... took 0.197s
archive does not contain 'recovery.sig'
archive does not contain 'super_empty.img'
Sending 'recovery' (65536 KB)                      OKAY [  1.372s]
Writing 'recovery'                                 OKAY [  0.333s]
archive does not contain 'super_empty.img'
extracting vbmeta.img (0 MB) to disk... took 0.000s
archive does not contain 'vbmeta.sig'
archive does not contain 'super_empty.img'
Sending 'vbmeta' (8 KB)                            OKAY [  0.010s]
Writing 'vbmeta'                                   OKAY [  0.001s]
archive does not contain 'super_empty.img'
archive does not contain 'super_empty.img'
extracting product.img (559 MB) to disk... took 10.120s
archive does not contain 'product.sig'
archive does not contain 'super_empty.img'
Warning: skip copying product image avb footer due to sparse image.
Sending 'product' (573308 KB)                      OKAY [ 12.050s]
Writing 'product'                                  FAILED (remote: 'Partition not found')
fastboot: error: Command failed

The device is bootlooped. When I try to enter recovery sometimes it appears on the screen for a split second and then reboots immediately. But once when it appeared I managed to tap a button in it and it stayed. The recovery says its 17.1 so I guess it flashed OK, but not the rest.

Before trying to install Divested I had a PixelOS (android 14) and a pixelos recovery on this phone. Could it be an issue?

fastboot getvar all output (there is no "product" partition there):
fastboot-getvar-all.txt

My FW version is Mi 9T (Global) - V12.1.4.0.RFJMIXM which is the one LineageOS recommends.

@pastk
Copy link

pastk commented Jun 27, 2024

I've managed to fix my issue following way.

I've re-flashed PixelOS recovery. Entered it and switched it to fastbootd mode.

Flashed product, system, vendor, boot, recovery images "manually" i.e. via fastboot flash product product.img. Other images (dtbo.img, etc.) gave errors.

Then I followed https://divestos.org/builds/LineageOS/davinci/install.html from the start, fastboot update --force gave same errors as above (but it managed to flash imgs that gave errors via fastbootd).
Then did copy-partitions-davinci-release.zip (there were a lot of errors).

Then sideloaded the main zip, wiped data and rebooted to the system!
The system seems to work so far!

The only bug I've noticed is in the Updater: it offers me to download the 17.1 2024.06.20 update which I've just installed.

@SkewedZeppelin
Copy link
Member

Weird, but nice to see you got it to work.

As for the updater, it'll always show the latest update even if it is already installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants