Unable to expose emmc

Hi,

I’m trying to expose emmc so I can flash Linux. I’m following this guide: https://wiki.radxa.com/Zero/dev/maskrom#Enable_maskrom

When running boot-g12.py, I’m getting this error:

$ sudo boot-g12.py radxa-zero-erase-emmc.bin 
Firmware Version :
ROM: 3.2 Stage: 0.0
Need Password: 0 Password OK: 1
Writing radxa-zero-erase-emmc.bin at 0xfffa0000...
[DONE]
Running at 0xfffa0000...
[DONE]
Traceback (most recent call last):
  File "/usr/local/bin/boot-g12.py", line 47, in <module>
    (length, offset) = dev.getBootAMLC()
                       ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyamlboot/pyamlboot.py", line 356, in getBootAMLC
    self.dev.ctrl_transfer(bmRequestType = 0x40,
  File "/usr/lib/python3.12/site-packages/usb/core.py", line 1082, in ctrl_transfer
    ret = self._ctx.backend.ctrl_transfer(
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/usb/backend/libusb1.py", line 893, in ctrl_transfer
    ret = _check(self.lib.libusb_control_transfer(
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/usb/backend/libusb1.py", line 602, in _check
    raise USBTimeoutError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBTimeoutError: [Errno 110] Operation timed out

dmesg:

[826977.654709] usb 5-4: new high-speed USB device number 31 using xhci_hcd
[826977.870960] usb 5-4: New USB device found, idVendor=1b8e, idProduct=c003, bcdDevice= 0.20
[826977.870965] usb 5-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[826977.870966] usb 5-4: Product: GX-CHIP
[826977.870967] usb 5-4: Manufacturer: Amlogic

lsusb:

$ lsusb | grep -i gx
Bus 005 Device 032: ID 1b8e:c003 Amlogic, Inc. GX-CHIP

@RadxaYuntian Have you ever encountered a similar problem?

Which hardware you are using?

Radxa Zero 2 pro