MaixCAM MaixPy Upgrade and System Flashing
Introduction to the System and MaixPy
First, let's distinguish between System
and MaixPy
:
- System: The foundation for running all software, including the operating system and drivers, serving as the cornerstone for software operation.
- MaixPy: A software package that relies on system drivers to function.
Obtaining the Latest System
Visit the MaixPy Release Page to find the latest system image file, such as maixcam_os_20240401_maixpy_v4.1.0.xz
.
Note for users in China: Download speeds may be slow. Consider using Xunlei for potentially faster downloads.
Alternatively, use proxy websites like github.abskoop.workers.dev for downloading.
Backup download link: Sourceforge (May not always be up-to-date; prioritize the methods above.)
Backing Up Data
Updating (flashing) the system will erase all data.
If you have important data stored on the system, back it up to your computer before proceeding.
Backup Methods:
- Connect MaixVision and use its file management feature to download your important files to your local computer.
- Use the
scp
command to copy files. - Transfer files using other file management software, such as WinSCP or FileZilla.
- Insert the TF card directly into a card reader and copy the data.
Note: The root directory uses theext4
format, which is not natively supported by Windows. You can use third-party software like DiskGenius to access the data.
Flashing the System onto MaixCAM
Refer to the hardware documentation's MaixCAM System Flashing Guide.
If the conditions for USB flashing are met, it is recommended to use this method, as it avoids removing the TF card.
When to Update the System vs. Updating MaixPy Only
To simplify the process and avoid issues, it is recommended to update the system whenever upgrading MaixPy.
You must update the system in any of the following scenarios:
- Using a new TF card, which requires a TF card reader for system flashing.
- Upgrading MaixPy, and the MaixPy Release Page indicates that any version between the current and target versions includes a system update.
For example, if your current system is
maixcam_os_20240401_maixpy_v4.1.0
and you wish to upgrade to4.7.8
, you must update the system if any version between4.1.0
and4.7.8
includes a system update. Failure to do so may result in MaixPy not functioning properly.
It is strongly recommended to update the system in these cases:
- When using the device for the first time, as the factory-installed system version may be outdated. Upgrade to the latest version to ensure compatibility with the documentation.
Avoid updating in the following cases:
- The current version meets your requirements and is running stably in critical scenarios (e.g., during competitions or product deployment).
- The update introduces new features, but as a development kit, it may cause minor code incompatibilities or introduce bugs. Only update if you are prepared for development and debugging.
Upgrading MaixPy Only
After carefully considering the points above, if you decide to upgrade MaixPy only, here are three methods:
Use the
ssh terminal
feature in MaixVision and run:pip install -U MaixPy
For faster downloads in China, use:
pip install -U MaixPy -i https://pypi.mirrors.ustc.edu.cn/simple
In MaixVision, execute the
examples/tools/install_maixpy.py
script to upgrade.Manually download the file MaixPy-x.x.x-py3-none-any.whl, transfer it to the device, and install it using either of the following methods:
- Run
pip install xxx.whl
in thessh terminal
. - Execute:
import os os.system("xxx.whl")
- Run
Note: The process may take a while. Please be patient.