Erasing the eMMC of Jetson TX2

Hi,

We wish to only erase all the partitions present in the eMMC and not flash it. So is there a way to do this using the flash.sh script? We are using 32.4.3 L4T version.

Thanks,
Ranijth Kumar

hello ranjithkumar.kv,

may I know what’s your expectation, are you going to wipe everything?

Hi Jerry,

Yes we need to wipe everything in the eMMC.

Thanks.

hello ranjithkumar.kv,

what’s the actual use-case?
there’s wipe commands to wipe everything from the disk or partition without possibility to restore it, thanks

Hi Jerry,

We need to erase the eMMC by connecting the module through EVK board and after that we will be putting the same module in our custom board so that it’ll be automatically goes to recovery mode.

Thanks.

hello ranjithkumar.kv,

as you can see,
the flash script perform erase before flashing into the target,
for example,

[  11.2119 ] Bootloader version 01.00.0000
[  11.3012 ] Erasing sdmmc_boot: 3 ......... [Done]
...
[  11.3956 ] Erasing sdmmc_user: 3 ......... [Done]

here’s internal python script, $OUT/Linux_for_Tegra/bootloader/tegraflash_internal.py
for example,

def tegraflash_erase_partition(partition_name):
    info_print('Writing partition')
    command = exec_file('tegradevflash')
    command.extend(['--erase', partition_name])
    run_command(command)

you should enable the commands, for example, --cmd "erase /sdmmc_boot/3" and --cmd "erase /sdmmc_user/3"to erase entire storage.

there’re some args still necessary to perform the command-line,
please also refer to below function for more details.
for example,

def tegraflash_erase(args, partition_name):
    values.update(args)

Hi Jerry,

Thanks for the information. We will look into it.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.