Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I flash a new image or update file on a FAT storage partition using the esptool.py command line for a secure boot device? (IDFGH-14310) #15101

Closed
3 tasks done
andy-danieal opened this issue Dec 27, 2024 · 1 comment
Labels
Resolution: Won't Do This will not be worked on Status: Done Issue is done internally

Comments

@andy-danieal
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

We have used custom partition tables and need to update file on storage FAT partition via command line.

# Espressif ESP32 Partition Table,,,,,
# Name,   Type, SubType, Offset,   Size,      Flags
nvs,      data, nvs,,   0x4000,
otadata,  data, ota,,  0x2000,
phy_init, data, phy,,  0x1000,
priv,     data, nvs,, 0x4000,     encrypted
storage,data,fat,,0x20000,
ota_0,0,    ota_0,,  0x170000,
ota_1,0,    ota_1,, 0x170000,

And initialized wearleveling to FAT partition.


    esp_vfs_spiffs_conf_t conf = {.base_path = "/spiflash",
 .partition_label = "storage", .max_files = 6, .format_if_mount_failed = true};

    err = esp_vfs_spiffs_register(&conf);
     
    //Reading File
    FILE *fptr = fopen((const char *)file_path, "rb");

    //Writing File
    FILE *fptr = fopen((const char *)file_path, "wb");
@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 27, 2024
@github-actions github-actions bot changed the title How do I flash a new image or update file on a FAT storage partition using the esptool.py command line for a secure boot device? How do I flash a new image or update file on a FAT storage partition using the esptool.py command line for a secure boot device? (IDFGH-14310) Dec 27, 2024
@andy-danieal
Copy link
Author

First create spiffs folder with add files

spiffs_create_partition_image(storage ../spiffs FLASH_IN_PROJECT)

  • this line add into CMakeList.txt and build project to generate stroage.bin

Then stroage.bin file flash on secureboot

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Won't Do This will not be worked on and removed Status: Opened Issue is new labels Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Won't Do This will not be worked on Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

2 participants