## ROMFS
Before executing below steps, execute [generic steps](../../../tools/fs/README_ROMFS.md), step 1 and step 2.
-When you use artik053/iotivity config, you can execute only step 4.
-But note that if you want to change the size of ROMFS partition, you have to modify sizes in partition_map_romfs.cfg matching the sizes in ARTIK053_FLASH_PART_LIST.
+When you use artik053/iotivity config, you can execute only step 4. But note that if you want to resize the rom partition,
+you must modify partition_map.cfg matching the sizes in ARTIK053_FLASH_PART_LIST.
-3. Modify partition configs.
+3. Modify partition configs
Below steps creates ROMFS partition with size 400KB at next of user partition.
1. Split user partition size from (1400) to (1000, 400) in ARTIK053_FLASH_PART_LIST
```bash
```
7. Program a ROM image
```bash
- flash_write rom ../bin/rom.img; \
+ flash_write rom ../bin/romfs.img; \
```
8. Mount on device
```bash
flash_write os ../../../../output/bin/tinyara_head.bin; \
flash_write rom ../../../../output/bin/romfs.img; \
exit'
- rm ${ROMFS_FLASHING_CFG}
else
${OPENOCD_BIN_PATH}/openocd -f artik053.cfg -c ' \
flash_write bl1 ../../bin/bl1.bin; \
flash_write os ../../../../output/bin/tinyara_head.bin; \
exit'
fi
+ rm ${ROMFS_FLASHING_CFG}
popd
;;
#
# Partition Map for ROMFS
# NOTE:
-# The total size of user and rom partitions should be 1400KB. In this file, they are set to 1000KB and 400KB for each.
-# If you want to change the sizes of them, check if they are matching ARTIK053_FLASH_PART_LIST in menuconfig.
+# The total size of user and rom partitions should be 1400KB. They are set to 1000KB and 400KB for each in this file.
+# If you want to resize the rom partition, you must modify this partition_list matching the sizes in ARTIK053_FLASH_PART_LIST.
# Name Description Start address Size RO
set partition_list {
bl1 { "BL1" 0x04000000 0x00004000 0 }
# Contents for ROMFS
+### Pre-condition
+```bash
+sudo apt-get install genromfs
+```
+### Steps
1. Enable ROMFS config through menuconfig at *os* folder.
```bash
cd $TIZENRT_BASEDIR