Skip to content

Commit

Permalink
README: modify content for romfs
Browse files Browse the repository at this point in the history
1. Make links to new boards, artik053s and artik055s
2. Modify incorrect information on board-specific steps
3. Modify title from pre-confition to prerequisites
  • Loading branch information
sunghan-chang committed Nov 24, 2017
1 parent c365f57 commit f5fe9d5
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 95 deletions.
41 changes: 13 additions & 28 deletions build/configs/artik053/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,42 +193,27 @@ U-Boot 2017

## 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 resize the rom partition,
you must modify partition_map.cfg matching the sizes in ARTIK053_FLASH_PART_LIST.
Before executing below board-specific steps, execute [generic steps](../../../tools/fs/README_ROMFS.md), step 1 and step 2.

3. Modify partition configs
3. Modify partition configs and enable the automount config through *menuconfig*
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
1. Split user partition size from (1400) to (1000, 400) in ARTIK05X_FLASH_PART_LIST
```bash
Board Selection -> change values at Flash partition size list (in KBytes)
Hardware Configuration -> Board Selection -> change values at Flash partition size list (in KBytes)
```
2. Append "romfs" at next of *smartfs* to ARTIK053_FLASH_PART_TYPE
2. Append "romfs" at next of *smartfs* to ARTIK05X_FLASH_PART_TYPE
```bash
Board Selection -> append string at Flash partition type list
Hardware Configuration -> Board Selection -> append string at Flash partition type list
```
3. Append "rom" at next of *user* to ARTIK053_FLASH_PART_NAME
3. Append "rom" at next of *user* to ARTIK05X_FLASH_PART_NAME
```bash
Board Selection -> append string at FLash partition name list
Hardware Configuration -> Board Selection -> append string at FLash partition name list
```
4. Build Tizen RT
5. Prepare ROM image
```bash
sh $TIZENRT_BASEDIR/../tools/fs/mkromfsimg.sh
```
6. Modify partition map to *$TIZENRT_BASEDIR/../build/configs/artik053/tools/openocd/partition_map.cfg*
```bash
user { "USER R/W" 0x04620000 0x000FA000 0 }
rom { "ROM FS" 0x0471A000 0x00064000 0 }
```
7. Program a ROM image
```bash
flash_write rom ../bin/romfs.img; \
```
8. Mount on device
```bash
mount -t romfs /dev/smart4rom9 /rom
```
4. Enable the audomount config for romfs
```bash
Hardware Configuration -> Board Selection -> Automount partitions -> Automount romfs partiton to y
```
4. Build Tizen RT and flash a binary [using download script](#using-download-script)

## Configuration Sets

Expand Down
41 changes: 13 additions & 28 deletions build/configs/artik053s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,42 +193,27 @@ U-Boot 2017

## 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 resize the rom partition,
you must modify partition_map.cfg matching the sizes in ARTIK053_FLASH_PART_LIST.
Before executing below board-specific steps, execute [generic steps](../../../tools/fs/README_ROMFS.md), step 1 and step 2.

3. Modify partition configs
3. Modify partition configs and enable the automount config through *menuconfig*
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
1. Split user partition size from (1400) to (1000, 400) in ARTIK05X_FLASH_PART_LIST
```bash
Board Selection -> change values at Flash partition size list (in KBytes)
Hardware Configuration -> Board Selection -> change values at Flash partition size list (in KBytes)
```
2. Append "romfs" at next of *smartfs* to ARTIK053_FLASH_PART_TYPE
2. Append "romfs" at next of *smartfs* to ARTIK05X_FLASH_PART_TYPE
```bash
Board Selection -> append string at Flash partition type list
Hardware Configuration -> Board Selection -> append string at Flash partition type list
```
3. Append "rom" at next of *user* to ARTIK053_FLASH_PART_NAME
3. Append "rom" at next of *user* to ARTIK05X_FLASH_PART_NAME
```bash
Board Selection -> append string at FLash partition name list
Hardware Configuration -> Board Selection -> append string at FLash partition name list
```
4. Build Tizen RT
5. Prepare ROM image
```bash
sh $TIZENRT_BASEDIR/../tools/fs/mkromfsimg.sh
```
6. Modify partition map to *$TIZENRT_BASEDIR/../build/configs/artik053/tools/openocd/partition_map.cfg*
```bash
user { "USER R/W" 0x04620000 0x000FA000 0 }
rom { "ROM FS" 0x0471A000 0x00064000 0 }
```
7. Program a ROM image
```bash
flash_write rom ../bin/romfs.img; \
```
8. Mount on device
```bash
mount -t romfs /dev/smart4rom9 /rom
```
4. Enable the audomount config for romfs
```bash
Hardware Configuration -> Board Selection -> Automount partitions -> Automount romfs partiton to y
````
4. Build Tizen RT and flash a binary [using download script](#using-download-script)
## Configuration Sets
Expand Down
41 changes: 13 additions & 28 deletions build/configs/artik055s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,39 +199,24 @@ U-Boot 2017

## 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 resize the rom partition,
you must modify partition_map.cfg matching the sizes in ARTIK053_FLASH_PART_LIST.
Before executing below board-specific steps, execute [generic steps](../../../tools/fs/README_ROMFS.md), step 1 and step 2.

3. Modify partition configs
3. Modify partition configs and enable the automount config through *menuconfig*
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
1. Split user partition size from (1400) to (1000, 400) in ARTIK05X_FLASH_PART_LIST
```bash
Board Selection -> change values at Flash partition size list (in KBytes)
Hardware Configuration -> Board Selection -> change values at Flash partition size list (in KBytes)
```
2. Append "romfs" at next of *smartfs* to ARTIK053_FLASH_PART_TYPE
2. Append "romfs" at next of *smartfs* to ARTIK05X_FLASH_PART_TYPE
```bash
Board Selection -> append string at Flash partition type list
Hardware Configuration -> Board Selection -> append string at Flash partition type list
```
3. Append "rom" at next of *user* to ARTIK053_FLASH_PART_NAME
3. Append "rom" at next of *user* to ARTIK05X_FLASH_PART_NAME
```bash
Board Selection -> append string at FLash partition name list
Hardware Configuration -> Board Selection -> append string at FLash partition name list
```
4. Build Tizen RT
5. Prepare ROM image
```bash
sh $TIZENRT_BASEDIR/../tools/fs/mkromfsimg.sh
```
6. Modify partition map to *$TIZENRT_BASEDIR/../build/configs/artik053/tools/openocd/partition_map.cfg*
```bash
user { "USER R/W" 0x04620000 0x000FA000 0 }
rom { "ROM FS" 0x0471A000 0x00064000 0 }
```
7. Program a ROM image
```bash
flash_write rom ../bin/romfs.img; \
```
8. Mount on device
```bash
mount -t romfs /dev/smart4rom9 /rom
```
4. Enable the audomount config for romfs
```bash
Hardware Configuration -> Board Selection -> Automount partitions -> Automount romfs partiton to y
````
4. Build Tizen RT and flash a binary [using download script](#using-download-script)
8 changes: 4 additions & 4 deletions build/configs/sidk_s5jt200/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,19 @@ Before executing below steps, execute [generic steps](../../../tools/fs/README_R
where romfs device is a ftl mtd block device and romfs filesystem will be mounted on ftl mtd device "/dev/mtdblockX"
1. Split last partition size to (256, 256) in SIDK_S5JT200_FLASH_PART_LIST
```bash
Board Selection -> change values at Flash partition size list (in KBytes)
Hardware Configuration -> Board Selection -> change values at Flash partition size list (in KBytes)
```
2. Append "romfs," at end to SIDK_S5JT200_FLASH_PART_TYPE
```bash
Board Selection -> append string at Flash partition type list
Hardware Configuration -> Board Selection -> append string at Flash partition type list
```
3. Append "rom," at end to SIDK_S5JT200_FLASH_PART_NAME
```bash
Board Selection -> append string at FLash partition name list
Hardware Configuration -> Board Selection -> append string at FLash partition name list
```
4. Enable auto-mount config.
```bash
Board Selection -> Automount partitions -> Automount ROM read only partition to y
Hardware Configuration -> Board Selection -> Automount partitions -> Automount ROM read only partition to y
```

After above two steps, build Tizen RT and program a Tizen RT binary through above [method](#how-to-program-a-binary).
Expand Down
8 changes: 4 additions & 4 deletions docs/HowToUseROMFS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ There are two parts to use ROMFS, generic and board specific.
## 1. Generic

This part supports making ROMFS image.
Please find it at [README](../tools/fs/README_ROMFS.md)
Please find it at [README](../tools/fs/README_ROMFS.md).

## 2. Board Specific

This part supports making partition for ROMFS and programming a ROMFS image.
Please find it at each README.


ARTIK053 [[Details]](../build/configs/artik053/README.md#romfs)

ARTIK053 [[Details]](../build/configs/artik053/README.md#romfs)
ARTIK053S [[Details]](../build/configs/artik053s/README.md#romfs)
ARTIK055S [[Details]](../build/configs/artik055s/README.md#romfs)
SIDK_S5JT200 [[Details]](../build/configs/sidk_s5jt200/README.md#romfs)

7 changes: 4 additions & 3 deletions tools/fs/README_ROMFS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Contents for ROMFS

### Pre-condition
### Prerequisites
```bash
sudo apt-get install genromfs
```
Expand All @@ -21,7 +21,8 @@ File Systems -> ROMFS to y

After these two steps, board specific steps should be executed.

ARTIK053 [[Details]](../../build/configs/artik053/README.md#romfs)

ARTIK053 [[Details]](../../build/configs/artik053/README.md#romfs)
ARTIK053S [[Details]](../../build/configs/artik053s/README.md#romfs)
ARTIK055S [[Details]](../../build/configs/artik055s/README.md#romfs)
SIDK_S5JT200 [[Details]](../../build/configs/sidk_s5jt200/README.md#romfs)

0 comments on commit f5fe9d5

Please sign in to comment.