mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 08:38:38 +08:00
57595a7937
TXTABLE - Text based Partition Table https://github.com/apache/nuttx/pull/9936 https://nuttx.apache.org/docs/latest/components/filesystem/partition.html#text-based-partition-table Configuration + CONFIG_TXTABLE_PARTITION=y The backup text partition table + CONFIG_TXTABLE_DEFAULT_PARTITION=1 nsh> cat /etc/txtable.txt TXTABLE0 data 0x100000 0 Update txtable at runtime dd if=/dev/zero of=/dev/txtable cat /etc/txtable.txt > /dev/txtable Runtime - Partition devices "data" and "txtable" were registered # /dev/data - The partition descirbed by txtable # /dev/txtable - Mapping to the last eraseblock of MTD nsh> ls -l /dev/ /dev: dr--r--r-- 0 adb0/ crw-rw-rw- 0 console frw-rw-rw- 1044480 data frw-rw-rw- 1048576 esp32s3flash c-w--w--w- 0 log crw-rw-rw- 0 null crw-rw-rw- 0 ptmx dr--r--r-- 0 pts/ brw-rw-rw- 1024 ram0 crw-rw-rw- 0 ttyS0 frw-rw-rw- 4096 txtable crw-rw-rw- 0 zero Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com> |
||
---|---|---|
.. | ||
esp32 | ||
esp32s2 | ||
esp32s3 |