4.2. Use SD Card for Bare Burn

4.2.1. Preparations Before Use

  1. Refer to [Linux development environment user guide] [1.2 how to compile BSP] to compile the following files:

    • fip.bin - bootloader + uboot

    • boot.emmc/boot.spinand/boot.spinor- minimal Linux image(Optional)

    • rootfs.emmc/rootfs.spinand/rootfs.spinor - rootFS(Optional)

    • system.emmc/system.spinand/system.spinor – rw zoning(Optional)

    • cfg.emmc/cfg.spinand/cfg.spinor - config rw zoning(Optional)

  2. A FAT32 format TF Card(micro SD)

4.2.2. Explanation of Bare Burning Process

../_images/UseSDC002.png

4.2.3. Operation Process

  1. Put fip.bin,*.emmc/.spinand/.spinor in the SD card

  2. Insert the SD card into the SD card slot of Cvitek EVB

  3. Boot Cvitek EVB platform

4.2.4. Operation Example

Confirm files before use

SPINAND

../_images/UseSDC003.png

Insert the SD card, connect the cv180x/cv181x platform to the power supply, and start the burning program automatically

When the platform is finished burning, you can see the following message on UART port.

Power off the platform and restart it to finish burning

../_images/UseSDC004.png

4.2.5. Use upgrade.zip to Upgrade

  1. Refer to [Linux development environment user’s Guide] [1.2 how to compile BSP] to compile upgrade.zip

  2. Copy upgrade.zip to SD card

  3. Decompress upgrade.zip (please unzip the file to the root directory of SD card)

4.2.6. Precautions

Please make sure SD card is correctly formatted as FAT32

4.2.7. Set eMMC ECSD Register

When SD card is used for bare burning, EMMC driver built in u-boot will be used to modify ECSD, mainly for ECSD [162], that is, n_ Rst function is turned on, and the specific burning mode is as follows:

  1. Enter the following command under u-boot to start n_Rst function

uboot # mmc fuse_rstn 0