Update artik053 download file and README for ROMFS (related commit: fa2cd4c)
authorchaehee.hong <chaehee.hong@samsung.com>
Thu, 14 Sep 2017 07:49:14 +0000 (16:49 +0900)
committerchaehee.hong <chaehee.hong@samsung.com>
Tue, 19 Sep 2017 07:07:10 +0000 (16:07 +0900)
build/configs/artik053/README.md
build/configs/artik053/artik053_download.sh
build/configs/artik053/tools/openocd/partition_map.cfg
tools/fs/README_ROMFS.md

index 0bbc7a9..10fd5f5 100644 (file)
@@ -94,10 +94,10 @@ openocd -f artik053.cfg -c ' \
 ## 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
@@ -123,7 +123,7 @@ But note that if you want to change the size of ROMFS partition, you have to mod
     ```
 7. Program a ROM image
     ```bash
-    flash_write rom ../bin/rom.img;    \
+    flash_write rom ../bin/romfs.img;    \
     ```
 8. Mount on device
     ```bash
index cde9ded..c3be9c9 100755 (executable)
@@ -89,7 +89,6 @@ main()
                                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;              \
@@ -99,6 +98,7 @@ main()
                                flash_write os ../../../../output/bin/tinyara_head.bin; \
                                exit'
                        fi
+                       rm ${ROMFS_FLASHING_CFG}
                        popd
                        ;;
 
index c173bab..319f1ce 100644 (file)
@@ -24,8 +24,8 @@ if { $romfs_partition_enable == 1 } {
 #
 # 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 }
index 6063ee4..53a33c4 100644 (file)
@@ -1,6 +1,11 @@
 
 # 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