Milk-V Megrez Install OS
Boot Instructions
The Megrez mainboard supports booting the system from four types of media: SD card, eMMC module, SSD (M.2 SATA), and SATA hard drive.
The onboard SPI Flash is used to store boot programs like u-boot, which then loads the operating system from eMMC or SSD based on the boot priority.
System Image Information
Currently, the Megrez image package format is img.zip
.
- System image packages with the
.img.zip
suffix:- Can be flashed using tools like
balenaEtcher
,Rufus
, orWin32DiskImager
. On Linux, thedd
command can be used. Some tools support flashing directly from the zip file, while others require extracting it to an.img
file first. Please try accordingly.
- Can be flashed using tools like
(Recommended) Using BalenaEtcher to Install the System onto SD Card/M.2 SATA SSD/SATA Hard Drive/eMMC Module
Preparation
- A MicroSD card (greater than 16GB), M.2 SATA SSD, SATA hard drive, or eMMC module.
- An SD card reader, M.2 SATA enclosure, SATA hard drive enclosure, or eMMC module reader.
Using balenaEtcher
as an example, the flashing process is as follows:
First, connect the storage media to your PC via the appropriate reader. Installing the system on the target drive will erase all existing data on the storage media, so back up any important files beforehand.
Download the appropriate system image package (suffix .img.zip
) from the resource download page: Resource Download Overview.
You can either extract it to an .img
file before flashing or flash it directly without extracting, as balenaEtcher
supports loading zip files.
- Download and install the flashing tool balenaEtcher.
- Click
Flash from file
and select the downloaded image. - Click
Select target
and choose the storage media. - Click
Flash!
to start the flashing process.
After flashing is complete, insert the storage media into the Megrez mainboard and power it on. Since the system does not currently support automatic partition resizing on first boot, please manually resize the system partition as described in the "System Partition Resizing" section.
Using Fastboot to Install the System onto SD Card/M.2 SATA SSD/eMMC Module
Coming soon.
System Partition Resizing
The system does not currently support automatic partition resizing after boot. Please resize manually after the first boot to avoid running out of space or being unable to access the desktop after a reboot.
The following instructions use the gparted
tool as an example for resizing. You may also use other tools you are familiar with to accomplish the task.
-
Install the
gparted
tool.sudo apt update
sudo apt install gparted -
Launch the gparted program from the command line or by selecting it from the application menu.
sudo gparted
-
In the top-right corner, select the SD card device. You should see the unallocated space (22GB) and the root filesystem rootfs
/
(6GB). -
Select the rootfs
/
partition, right-click, and chooseResize/Move
to expand the partition. -
In the
New size
field, specify the size of the root filesystem. It is recommended to set at least 16GB (enter16384
). You can also adjust the size by dragging the top slider. Alternatively, setFree space following
to0
to allocate all remaining space to the root filesystem. -
After making the changes, click
Resize
. -
You will now see that the rootfs
/
partition has been resized to 16GB. Click thecheckmark
icon in the menu to apply the changes.A prompt will appear. Select
Apply
. -
After the changes are applied, the final partition layout will appear as follows:
Updating/Re-Flashing U-Boot
When U-Boot is Available
Coming soon.
When U-Boot is Unavailable
Coming soon.