cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Sahana
Observer
Observer
352 Views
Registered: ‎11-26-2020

How to erase EMMC content in Vitis 2020.1

Jump to solution

Hello,

I am trying to erase already flashed emmc content on the board in Vitis 2020.1, I didn't find any options.
I got one AR reference, AR# 72140 (https://www.xilinx.com/support/answers/72140.html) here it is specified to use XSCT command: 

program_flash -erase_only

But I am getting a error in XSCT console as below:

xsct% program_flash -erase_only

****** Xilinx Program Flash
****** Program Flash v2020.1 (64-bit)
**** SW Build 2902540 on Wed May 27 19:54:49 MDT 2020
** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.


ERROR: Please specify config file for erase_only option

Help Me to solve above issue.

0 Kudos
1 Solution

Accepted Solutions
ibaie
Xilinx Employee
Xilinx Employee
211 Views
Registered: ‎10-06-2016

Hi @Sahana 

You just need to use the same command used for programming and append the erase_only option to it.

i.e. something like this (depends on your specific use case)

program_flash -f <configuration file> -fsbl <fsbl ELF file> -flash_type emmc -erase_only

If you have more than one file you would need to use program flash for each of those files. If you are looking for something more close to formatting the partition, you would need to use your Linux image to do so.

Regards

 


Ibai
Don’t forget to reply, kudo, and accept as solution.

View solution in original post

3 Replies
ibaie
Xilinx Employee
Xilinx Employee
260 Views
Registered: ‎10-06-2016

Hi @Sahana 

As per the error message you still need to provide the configuration file. I mean, even for erase_only option you need to specify the file used for programming, in this case it will be used just to get the erase size.

Regards


Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
Sahana
Observer
Observer
225 Views
Registered: ‎11-26-2020

Thank you @ibaie
The board is already flashed(EMMC) with Linux binaries(boot.bin, image.ub and system.bit) so if I want to erase it in vitis command shell which configuration file I should mention?
and also tell me the syntax.

Regards
Sahana S Nayak

0 Kudos
ibaie
Xilinx Employee
Xilinx Employee
212 Views
Registered: ‎10-06-2016

Hi @Sahana 

You just need to use the same command used for programming and append the erase_only option to it.

i.e. something like this (depends on your specific use case)

program_flash -f <configuration file> -fsbl <fsbl ELF file> -flash_type emmc -erase_only

If you have more than one file you would need to use program flash for each of those files. If you are looking for something more close to formatting the partition, you would need to use your Linux image to do so.

Regards

 


Ibai
Don’t forget to reply, kudo, and accept as solution.

View solution in original post