The present application relates to the RISC-V oriented expandable segmented automatic
mirror image construction technology, including the following steps: constructing empty
img mirror image in computer, dividing
mirror image into p1, p2, p3, p4 four partitions, and formatting four partitions; by chroot into mirror image, according to
system type and applicable hardware, set
software source in mirror image, install corresponding kernel in mirror image and carry out corresponding start configuration; according to
system type, set default language,
font, network, user of mirror image, and install required desktop, display, commonly used
application software package; after exiting chroot, delete command history in mirror image, copy boot
loader file related to start in mirror image to p1 and p2 two partitions of mirror image respectively.The present application can construct Linux
system mirror image suitable for different RISC-V hardware, has better applicability.And can realize segmented automatic mirror image construction, can effectively improve the efficiency of mirror image construction.