From: chaehee.hong Date: Thu, 14 Sep 2017 07:49:14 +0000 (+0900) Subject: Update artik053 download file and README for ROMFS (related commit: fa2cd4c) X-Git-Tag: 1.1_Public_Release~178^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c8eb1ebc3f8fe4e6391243df10863e32f3afbf3;p=rtos%2Ftinyara.git Update artik053 download file and README for ROMFS (related commit: fa2cd4c) --- diff --git a/build/configs/artik053/README.md b/build/configs/artik053/README.md index 0bbc7a9..10fd5f5 100644 --- a/build/configs/artik053/README.md +++ b/build/configs/artik053/README.md @@ -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 diff --git a/build/configs/artik053/artik053_download.sh b/build/configs/artik053/artik053_download.sh index cde9ded..c3be9c9 100755 --- a/build/configs/artik053/artik053_download.sh +++ b/build/configs/artik053/artik053_download.sh @@ -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 ;; diff --git a/build/configs/artik053/tools/openocd/partition_map.cfg b/build/configs/artik053/tools/openocd/partition_map.cfg index c173bab..319f1ce 100644 --- a/build/configs/artik053/tools/openocd/partition_map.cfg +++ b/build/configs/artik053/tools/openocd/partition_map.cfg @@ -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 } diff --git a/tools/fs/README_ROMFS.md b/tools/fs/README_ROMFS.md index 6063ee4..53a33c4 100644 --- a/tools/fs/README_ROMFS.md +++ b/tools/fs/README_ROMFS.md @@ -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