# Flash images
This section introduces the production steps of flash images of USB disk, SD card and master chip.
## USB disk image
- Uboot enables USB upgrade
```shell
cd ${SDK_PATH}/ssd20x-uboot-open
export ARCH="arm"
export CROSS_COMPILE=arm-linux-gnueabihf-
make menuconfig
# Device Drivers --->
# [*]Support for Host-side USB
# [*]USB Mass Storage support
# MStar drivers --->
# [*]MSTAR Gpio
# [*]MSTAR USB
# [*]Enable 1st EHC
# [*]Enable 2nd EHC
# [*]Enable 3rd EHC
```
- Create an image of USB disk
```shell
cd ${SDK_PATH}/ssd20x-images-open
./make_usb_upgrade_sigmaster.sh ./WT2012
#1. Select the flash partition
#2. Copy the generated SigmastarUpgrade.bin into USB disk
#Note: USB disk needs to be in fat32 format
```
## SD card image
- Create an image of SD card
```shell
cd ${SDK_PATH}/ssd20x-images-open
./make_sd_upgrade_sigmaster.sh ./WT2012
#1. Select the flash partition
#2. Copy the files in the sd_upgrade directory to the SD card
```
## Make a master
- Making a master depends on the images link file in the same directory. The steps to generate nand.bin are as follows:
```shell
cd ${SDK_PATH}/ssd20x-images-open/SpinandPackBinTool
ln -snf ../WT2012 images #Modify link file point
vim SpinandPackBinTool/images/scripts/[[set_partition.es #Comment "setenv mtdparts ..." line number
#Note: If you have modified the system partition, you need to modify the partition information of the dynpart line in auto_update_spinand.txt to keep it consistent with the mtdparts under uboot
```
- Compile and generate a master
```shell
./SstarMakeBin_dual_env -n SPINAND_FS35ND02G.ini # The description information of nand in .ini file is different
```