MediaTek Genio 1200

Hello,

The GENIO 1200 EVK board boots with the pre-installed Android image, but I would like to install Yocto instead. I built your Yocto 24.1 version successfully, but when I tried to flash it, I encountered an error. How can I resolve this issue?

hakan@hakan:~/mediatek-build$ genio-flash -i rity-browser-image --load-dtbo gpu-mali.dtbo --load-dtbo apusys.dtbo --load-dtbo video.dtbo
Genio Tools: v1.4.2
Yocto Image:
name: Rity Browser Image (rity-browser-image)
distro: Rity Demo Layer 24.1-release (rity-demo)
codename: kirkstone
machine: genio-1200-evk
overlays: [‘gpu-mali.dtbo’, ‘apusys.dtbo’, ‘video.dtbo’]

WARNING:aiot:[Errno 22] Invalid argument
WARNING:aiot:Board control failed. This might be caused by TTY/COM port being used by another process, such as TeraTerm or Putty on Windows. You could try manually put the board in DOWNLOAD mode. Continue flashing…
INFO:aiot:Continue flashing…
Traceback (most recent call last):
File “/usr/local/bin/genio-flash”, line 8, in
sys.exit(main())
File “/usr/local/lib/python3.8/dist-packages/aiot/flash.py”, line 243, in main
tool.execute()
File “/usr/local/lib/python3.8/dist-packages/aiot/flash.py”, line 237, in execute
run_bootrom(args)
File “/usr/local/lib/python3.8/dist-packages/aiot/bootrom.py”, line 59, in run_bootrom
return aiot_bootrom.bootrom.run(bootrom_app)
File “/usr/local/lib/python3.8/dist-packages/aiot_bootrom/bootrom.py”, line 15, in run
exe_path = get_exec_path()
File “/usr/local/lib/python3.8/dist-packages/aiot_bootrom/bootrom.py”, line 43, in get_exec_path
return resources.files(‘aiot_bootrom’) / bin_name
AttributeError: module ‘importlib.resources’ has no attribute ‘files’

hakan@hakan:~/mediatek-build$ genio-flash -i rity-browser-image --load-dtbo gpu-mali.dtbo --load-dtbo apusys.dtbo --load-dtbo video.dtbo
Genio Tools: v1.4.2
Yocto Image:
name: Rity Browser Image (rity-browser-image)
distro: Rity Demo Layer 24.1-release (rity-demo)
codename: kirkstone
machine: genio-1200-evk
overlays: [‘gpu-mali.dtbo’, ‘apusys.dtbo’, ‘video.dtbo’]

WARNING:aiot:[Errno 22] Invalid argument
WARNING:aiot:Board control failed. This might be caused by TTY/COM port being used by another process, such as TeraTerm or Putty on Windows. You could try manually put the board in DOWNLOAD mode. Continue flashing…
INFO:aiot:Continue flashing…
Traceback (most recent call last):
File “/usr/local/bin/genio-flash”, line 8, in
sys.exit(main())
File “/usr/local/lib/python3.8/dist-packages/aiot/flash.py”, line 243, in main
tool.execute()
File “/usr/local/lib/python3.8/dist-packages/aiot/flash.py”, line 237, in execute
run_bootrom(args)
File “/usr/local/lib/python3.8/dist-packages/aiot/bootrom.py”, line 59, in run_bootrom
return aiot_bootrom.bootrom.run(bootrom_app)
File “/usr/local/lib/python3.8/dist-packages/aiot_bootrom/bootrom.py”, line 15, in run
exe_path = get_exec_path()
File “/usr/local/lib/python3.8/dist-packages/aiot_bootrom/bootrom.py”, line 43, in get_exec_path
return resources.files(‘aiot_bootrom’) / bin_name
AttributeError: module ‘importlib.resources’ has no attribute ‘files’

  1. Which version of genio-tools are you using?
  2. Could you provide all the file list in the tmp/deploy/XXXXX image folder?
    I saw a error message “AttributeError: module ‘importlib.resources’ has no attribute ‘files’” Not sure if any file is missing.
  3. Please upgrade your python version. I guess it is better using something newer than python 3.9. I remembered I’ve read somewhere in the online manual but I’m not sure which version is correct. At least I’m using python 3.13.0

Well. return resources.files(‘aiot_bootrom’) / bin_name
AttributeError: module ‘importlib.resources’ has no attribute ‘files’
It seems you didn’t install aiot_bootrom or genio_bootrom.

Please run pip install this module.

Hi @HAKAN_AYDIN ,

Based on the log, it seems that you are running Genio Tools with Python 3.8. This error is caused by different versions of Python having interface changes on importlib module.

Could you install Python 3.9 or Python 3.12 and see if this problem is fixed? Note that you can have mutiple versions of Python installed, but you’ll need to make sure that you run genio-flash on the correct Python version environment.

I think it was related to the Python version. The issue is resolved. Thank you for your help.