Unable to flash my Genio-720 Evk with Android 16

Greetings,

I recently purchased a Genio-720 (P2V3) EVK. It boots normally into Android 15 out of the box, and I have not changed any of the onboard boot/switch settings.

I am trying to flash the Android 16 prebuilt image from the MediaTek Genio prebuilt board images into the UFS, but the flashing process fails. I have attached a screenshot of the error, and included below the relevant logs related to UFS from the uart while flashing.

I also tried the Android 15 prebuilt image, but it fails in a similar manner.

I went through the EVK User Guide, which mentions using SP Flash Tool for Android UFS flashing. However, the prebuilt Android images I downloaded do not contain a flash.xml file.

I am currently using Genio Tools v1.7.1. Could you please confirm whether this is the correct version of Genio Tools for the Genio-720 P2V3 EVK and these prebuilt Android images?

Could you also advise on the correct procedure for flashing the prebuilt Android 15/16 images onto the Genio-720 P2V3 EVK? Is there an additional XML/configuration file or another version of SP Flash Tool required for these prebuilt images?

Regards,
Kshitij

UART logs:

[MEM] Memory size: 0x200000000
[MEM] mt_mem_init(): done
[DA] gpio_trap_value : 0x0
[DA] storage_tpye: UFS
device descriptor length = 0x59
power descriptor length = 0x62
interconnect descriptor length = 0x6
configuration descriptor length = 0xe6
unit descriptor length = 0x2d
geometry descriptor length = 0x57
[UFS] UFS version 3.10
[UFS] ufs_get_device_info: Device Desc:
59 0 0 0 0 0 3 4 1 1 1 7f 0 1 f 0
3 10 1 16 0 1 3 4 1 45 16 1a 2 0 0 b3
7 20 b2 fd 20 0 96 a1 e0 17 2 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2 3 b3 1 0 0 0 0 0
[UFS] Unipro version= 5
TW Reduction = 1, TW Type = 0
Shared WB Buffer AU = 0x0
ud0_base_offset = 22, ud_config_len = 26
[UFS] get unit serial number string len 0x18
[UFS] vendor id : 0x145
[UFS] ufs id : SDINFDO4-128G
[UFS] ufs fwver: 2218
[UFS] ufs serial number: 27fd1033ca04de2035249621
[UFS] dev_quirk = 0x0
opcode 0x1 for idn 1 failed, err = 251
[UFS] failed reading ufshcd_read_desc_param. desc_id 1 param_offset 0 desc_len 230 ret 251
[UFS] err: ufs_check_lu_cfg: read config descr error: 251
hba->dev_info.bootable: 0x1
[UFS] info: LU Configuration Check OK. Bootable UFS
[UFS] info: Boot LU Configuration Check OK. Active Boot LU: LU0
opcode 0x1 for idn 1 failed, err = 251
[UFS] failed reading ufshcd_read_desc_param. desc_id 1 param_offset 0 desc_len 230 ret 251
[UFS] err: ufs_check_lu_cfg: read config descr error: 251
bug: active_num_lu shall not be 0[UFS] info: HS-G1-2
[UFS] Sense Data: ASC=29, ASCQ=3
[UFS] err: task response error = 1
[UFS] err: ufs_get_lu_size: ufshcd_queuecommand err
[UFS] err: ufs_get_lu_size(0) fail, ret -5
starting app fitboot
block devices:
fastboot_init()
[USB] U2 pullup D+
[USB] HS (2) is detected
[USB] usb_online: 1
fastboot: processing commands
fastboot: getvar:has-slot:mmc0[len:20]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:getvar:]-[arg:has-slot:mmc0]
fastboot: getvar:partition-type:mmc0[len:26]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:getvar:]-[arg:partition-type:mmc0]
fastboot: erase:mmc0[len:10]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:erase:]-[arg:mmc0]
cmd_erase mmc0
Partition does not exist.
fastboot: getvar:has-slot:mmc0boot0[len:25]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:getvar:]-[arg:has-slot:mmc0boot0]
fastboot: getvar:partition-type:mmc0boot0[len:31]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:getvar:]-[arg:partition-type:mmc0boot0]
fastboot: erase:mmc0boot0[len:15]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:erase:]-[arg:mmc0boot0]
cmd_erase mmc0boot0
Partition does not exist.
fastboot: getvar:has-slot:mmc0boot1[len:25]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:getvar:]-[arg:has-slot:mmc0boot1]
fastboot: getvar:partition-type:mmc0boot1[len:31]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:getvar:]-[arg:partition-type:mmc0boot1]
fastboot: erase:mmc0boot1[len:15]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:erase:]-[arg:mmc0boot1]
cmd_erase mmc0boot1
Partition does not exist.
fastboot: getvar:is-userspace[len:19]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:getvar:]-[arg:is-userspace]
fastboot: getvar:has-slot:mmc0[len:20]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:getvar:]-[arg:has-slot:mmc0]
fastboot: getvar:is-logical:mmc0[len:22]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:getvar:]-[arg:is-logical:mmc0]
fastboot: getvar:is-logical:mmc0[len:22]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:getvar:]-[arg:is-logical:mmc0]
fastboot: getvar:partition-size:mmc0[len:26]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:getvar:]-[arg:partition-size:mmc0]
fastboot: getvar:is-logical:mmc0[len:22]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:getvar:]-[arg:is-logical:mmc0]
fastboot: getvar:max-download-size[len:24]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:getvar:]-[arg:max-download-size]
fastboot: download:0ffff4e8[len:17]
fastboot:[download_base:0xffff000300000000][download_size:0x0]
fastboot:[cmd:download:]-[arg:0ffff4e8]
fastboot: flash:mmc0[len:10]
fastboot:[download_base:0xffff000300000000][download_size:0xffff4e8]
fastboot:[cmd:flash:]-[arg:mmc0]
cmd_flash: mmc0, 268432616
Partition does not exist.
fastboot: getvar:is-userspace[len:19]
fastboot:[download_base:0xffff000300000000][download_size:0xffff4e8]
fastboot:[cmd:getvar:]-[arg:is-userspace]
fastboot: getvar:has-slot:mmc0boot0[len:25]
fastboot:[download_base:0xffff000300000000][download_size:0xffff4e8]
fastboot:[cmd:getvar:]-[arg:has-slot:mmc0boot0]
fastboot: getvar:is-logical:mmc0boot0[len:27]
fastboot:[download_base:0xffff000300000000][download_size:0xffff4e8]
fastboot:[cmd:getvar:]-[arg:is-logical:mmc0boot0]
fastboot: getvar:is-logical:mmc0boot0[len:27]
fastboot:[download_base:0xffff000300000000][download_size:0xffff4e8]
fastboot:[cmd:getvar:]-[arg:is-logical:mmc0boot0]
fastboot: getvar:partition-size:mmc0boot0[len:31]
fastboot:[download_base:0xffff000300000000][download_size:0xffff4e8]
fastboot:[cmd:getvar:]-[arg:partition-size:mmc0boot0]
fastboot: getvar:is-logical:mmc0boot0[len:27]
fastboot:[download_base:0xffff000300000000][download_size:0xffff4e8]
fastboot:[cmd:getvar:]-[arg:is-logical:mmc0boot0]
fastboot: getvar:max-download-size[len:24]
fastboot:[download_base:0xffff000300000000][download_size:0xffff4e8]
fastboot:[cmd:getvar:]-[arg:max-download-size]
fastboot: download:00200000[len:17]
fastboot:[download_base:0xffff000300000000][download_size:0xffff4e8]
fastboot:[cmd:download:]-[arg:00200000]
fastboot: flash:mmc0boot0[len:15]
fastboot:[download_base:0xffff000300000000][download_size:0x200000]
fastboot:[cmd:flash:]-[arg:mmc0boot0]
cmd_flash: mmc0boot0, 2097152
Partition does not exist.
fastboot: getvar:is-userspace[len:19]
fastboot:[download_base:0xffff000300000000][download_size:0x200000]
fastboot:[cmd:getvar:]-[arg:is-userspace]
fastboot: getvar:has-slot:mmc0boot1[len:25]
fastboot:[download_base:0xffff000300000000][download_size:0x200000]
fastboot:[cmd:getvar:]-[arg:has-slot:mmc0boot1]
fastboot: getvar:is-logical:mmc0boot1[len:27]
fastboot:[download_base:0xffff000300000000][download_size:0x200000]
fastboot:[cmd:getvar:]-[arg:is-logical:mmc0boot1]
fastboot: getvar:is-logical:mmc0boot1[len:27]
fastboot:[download_base:0xffff000300000000][download_size:0x200000]
fastboot:[cmd:getvar:]-[arg:is-logical:mmc0boot1]
fastboot: getvar:partition-size:mmc0boot1[len:31]
fastboot:[download_base:0xffff000300000000][download_size:0x200000]
fastboot:[cmd:getvar:]-[arg:partition-size:mmc0boot1]
fastboot: getvar:is-logical:mmc0boot1[len:27]
fastboot:[download_base:0xffff000300000000][download_size:0x200000]
fastboot:[cmd:getvar:]-[arg:is-logical:mmc0boot1]
fastboot: getvar:max-download-size[len:24]
fastboot:[download_base:0xffff000300000000][download_size:0x200000]
fastboot:[cmd:getvar:]-[arg:max-download-size]
fastboot: download:00200000[len:17]
fastboot:[download_base:0xffff000300000000][download_size:0x200000]
fastboot:[cmd:download:]-[arg:00200000]
fastboot: flash:mmc0boot1[len:15]
fastboot:[download_base:0xffff000300000000][download_size:0x200000]
fastboot:[cmd:flash:]-[arg:mmc0boot1]
cmd_flash: mmc0boot1, 2097152
Partition does not exist.
fastboot: reboot[len:6]
fastboot:[download_base:0xffff000300000000][download_size:0x200000]
fastboot:[cmd:reboot]-[arg:]
rebooting the device
[PL_LOG_STORE: check once, sig value 0x2C430412, addr 0x20CD400.
PL_LOG_STORE:sram->sig value 0x2C030412!
PL_LOG_STORE:sram header is not match, format all!
PL_LOG_STORE:set ram_header->sig = 0xABCD1234
BLDR] bl_param version=6 (expect=6)
#T#bldr_param=23
[SYST] CNTCV 000000000B582E7C
[SYST] ENT0 0000000000000000 ENT1 0000000000000000 ENT2 0000000000000000
[SYST] AST0 0000000000000000 AST1 0000000000000000 AST2 0000000000000000
[SYST] CNTCR 105 CNTSR 100
[SYST] DIST 0 0 lastinc 2*

[MTEST][MODE_ENABLED]
No_Change0:0x3FFF, 1:0x0, 2:0x0, 3:0x0, 4:0x0, STA:0x0, S:0x2, FAB0:0x0, FAB11:0x0
[LASTPC]CPU0 pc=0xFFFF00000000EAD0
Pll init start…

I have tried to Erase the UFS aswell:

E:\Genio-720\images-prebuilt\android-15-aiot8391p2_64_bsp_alps-vf-mp-u0.mp5-mp-v0.mp5-V7.48.V4.47_user_raw(1)\aiot8391p2_64_bsp_alps-vf-mp-u0.mp5-mp-v0.mp5-V7.48.V4.47_user_raw>genio-flash erase-mmc
Genio Tools: v1.7.1
Raw Image:
name: UFS Disk Image (Sparse Image)
machine: Unspecified

WARNING:aiot:Cannot find any FTDI device
WARNING:aiot:Unable to find and reset the board. Possible causes are:

  1. This is not a Genio 350/700 EVK, nor a Pumpkin board.
  2. The board port UART0 is not connected.
  3. The UART0 port is being opened by another tool, such as TeraTerm on Windows.
    You can now manually reset the board into DOWNLOAD mode.

INFO:aiot:Continue flashing…
Looking for MediaTek SoC matching USB device 0e8d:0003
Opening COM10 using baudrate=115200
Connected to MediaTek SoC: hw_code[0x8189]
Sending bootstrap to address: 0x2001000
Jumping to bootstrap at address 0x2001000 in AArch64 mode
erasing mmc0
< waiting for any device >
Erasing ‘mmc0’ FAILED (remote: ‘Partition does not exist.’)
fastboot: error: Command failed
erasing mmc0boot0
Erasing ‘mmc0boot0’ FAILED (remote: ‘Partition does not exist.’)
fastboot: error: Command failed
erasing mmc0boot1
Erasing ‘mmc0boot1’ FAILED (remote: ‘Partition does not exist.’)
fastboot: error: Command failed
Rebooting OKAY [ 0.002s]
Finished. Total time: 0.002s

Hi Kshitij,

Welcome to the Genio Community!

A similar query is answered on the forum. Please refer to the link below:

Dear Santosh,

Thank you for the response,
I went through the post you linked and, as suggested, I have changed my python version to 3.12 and genio-tools version to 1.7.0a5.
However, I am still unable to flash the EVK with the error “Partition does not exist.”

Please find the relevant log output below:
E:\Genio-720\images-prebuilt\aiot8391p2_64_bsp_alps-vf-mp-u0_mp5-mp-b0_mp5-V7_145_V4_45_user_raw\aiot8391p2_64_bsp_alps-vf-mp-u0_mp5-mp-b0_mp5-V7_145_V4_45_user_raw>genio-flash
Genio Tools: v1.7.0a5
Raw Image:
name: UFS Disk Image (Sparse Image)
machine: Unspecified

WARNING:aiot:Cannot find any FTDI device
WARNING:aiot:Unable to find and reset the board. Possible causes are:

  1. This is not a Genio 350/700 EVK, nor a Pumpkin board.
  2. The board port UART0 is not connected.
  3. The UART0 port is being opened by another tool, such as TeraTerm on Windows.
    You can now manually reset the board into DOWNLOAD mode.

INFO:aiot:Continue flashing…
Looking for MediaTek SoC matching USB device 0e8d:0003
Opening COM10 using baudrate=115200
Connected to MediaTek SoC: hw_code[0x8189]
Sending bootstrap to address: 0x2001000
Jumping to bootstrap at address 0x2001000 in AArch64 mode
erasing mmc0
< waiting for any device >
Erasing ‘mmc0’ FAILED (remote: ‘Partition does not exist.’)
fastboot: error: Command failed
Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in run_code
File "C:\Users\rhino\AppData\Local\Programs\Python\Python312\Scripts\genio-flash.exe_main
.py", line 7, in
File “C:\Users\rhino\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiot\flashtool.py”, line 149, in main
tool.execute()
File “C:\Users\rhino\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiot\flashtool.py”, line 115, in execute
self.run_worker(image, args)
File “C:\Users\rhino\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiot\flashtool.py”, line 144, in run_worker
flasher.flash_worker(image=image, args=args)
File “C:\Users\rhino\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiot\flash.py”, line 196, in flash_worker
self.flash(args.targets)
File “C:\Users\rhino\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiot\flash.py”, line 148, in flash
self.flash_group(target)
File “C:\Users\rhino\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiot\flash.py”, line 97, in flash_group
self.erase_partition(partition)
File “C:\Users\rhino\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiot\flash.py”, line 63, in erase_partition
self.fastboot.erase(partition)
File “C:\Users\rhino\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiot\fastboot.py”, line 128, in erase
return self._run_command(command)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\rhino\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiot\fastboot.py”, line 31, in _run_command
subprocess.run(command, check=True)
File “C:\Users\rhino\AppData\Local\Programs\Python\Python312\Lib\subprocess.py”, line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘fastboot’, ‘erase’, ‘mmc0’]’ returned non-zero exit status 1.

Could you please advise me on how to resolve this issue? Please let me know if there are any additional steps I should try or any configuration changes I need to make.

Thank you for your support.

Regards,
Kshitij

Hi Kshitij,

Could you please refer to the Genio 720 Evaluation Kit User Guide (“Download | Document | MediaTek Genio”) and confirm which Boot mode is selected on the Board? Refer to section 2.10 Boot Mode Selections and confirm the jumper settings once.

Thanks.

Dear Santosh,

I have checked and verified the boot settings against the Evk user guide,
The Board is currently configured to boot from the UFS.

Regards,
Kshitij

Hi Kshitij,

Sorry for the delayed response.
Could you help share the photo of DIP switches of your board.

Thanks

Dear Santosh,

Here is the image of the DIP switches as requested.

Regards,
Kshitij

Hi Kshitij,

Could you change DIP switches to eMMC mode and try erasing the flash and confirm whether erase is successful?

Thanks,
Santosh

The Boot Selection switches seem to be correct.
Please confirm whether jumper settings are as per the attached.

Hi Kshitij,

Once you try with the above shared procedure and still face the Partition does not exist issue, please download “lk.bin” from the below git path, replace the downloaded “lk.bin” in the package \aiot8391p2_64_bsp_alps-vf-mp-u0_mp5-mp-b0_mp5-V7_145_V4_45_user_raw\aiot8391p2_64_bsp_alps-vf-mp-u0_mp5-mp-b0_mp5-V7_145_V4_45_user_raw> and try genio-flash erase-mmc followed by genio-flash.

Git path : mt8391-evk/lk.bin · main · MediaTek / AIoT / RITY / lk-prebuilt · GitLab
Please provide feedback on the results.

Thanks,
Santosh

Dear Santosh,

The lk.bin you have provided works!
I am able to erase and flash the UFS with Android 16. Thank you!
May I please know why the one you have provided worked, while the one given along with the android15/16 pre-built images were failing, what is the difference between the both?

Regards,
Kshitij

Dear Kshitij,

Thanks for the confirmation.

Technical Synopsis

The flash failure was caused by an incompatibility between the DA binary (lk.bin) used in fastboot mode and the newer WD/SanDisk UFS 3.1 chip (SDINFD04-128G) on the latest EVK revision.

The DA’s generic request for the UFS Configuration Descriptor (desc_id = 1) was rejected (error 251, sense ASC = 29 / ASCQ = 3), preventing the driver from discovering any Logical Units. As a result, Fastboot reported Partition does not exist.

Fix

A patched lk.bin implementing vendor-specific descriptor handling and proper reset recovery for this UFS controller was released. Replacing the legacy binary restores UFS enumeration (sda–sdf), enabling normal Fastboot flash operations.