Files
jerryscript/targets/tizenrt-artik053/romfs-1.1.patch
T
Akos Kiss da24727824 Add Travis CI jobs for build testing several targets (#2102)
Hitherto, code under the `targets` directory was not tested and so
its maintenance was sometimes speculative. This commit adds build
testing for several targets to prevent them from bit rotting.
Targets covered by this commit are: ESP8266, Mbed, Mbed OS 5,
NuttX, RIOT, Tizen RT, and Zephyr.

Some issues were revealed and fixed:
- ESP8266: added missing include for `uint32_t` typedef.
- Tizen RT: replaced missing `str_to_uint` with `strtol`.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
2017-11-16 13:29:23 +01:00

42 lines
1.6 KiB
Diff

diff --git a/apps/system/init/init.c b/apps/system/init/init.c
index 3aaa1860..815a9c11 100644
--- a/apps/system/init/init.c
+++ b/apps/system/init/init.c
@@ -139,6 +139,10 @@ int preapp_start(int argc, char *argv[])
}
#endif
+#ifdef CONFIG_FS_ROMFS
+ mount("/dev/smart4rom9", "/rom", "romfs", 0, NULL);
+#endif
+
#if defined(CONFIG_LIB_USRWORK) || defined(CONFIG_TASH)
error_out:
return pid;
diff --git a/build/configs/artik053/artik053_download.sh b/build/configs/artik053/artik053_download.sh
index 0fa4b9a3..a3178545 100755
--- a/build/configs/artik053/artik053_download.sh
+++ b/build/configs/artik053/artik053_download.sh
@@ -111,6 +111,7 @@ main()
flash_write sssfw ../../bin/sssfw.bin; \
flash_write wlanfw ../../bin/wlanfw.bin; \
flash_write os ../../../../output/bin/tinyara_head.bin; \
+ flash_write rom ../../../../output/bin/rom.img; \
exit' || finish_download 1
popd
diff --git a/build/configs/artik053/tools/openocd/partition_map.cfg b/build/configs/artik053/tools/openocd/partition_map.cfg
index c3abdeff..8dca6666 100644
--- a/build/configs/artik053/tools/openocd/partition_map.cfg
+++ b/build/configs/artik053/tools/openocd/partition_map.cfg
@@ -18,7 +18,8 @@ set partition_list {
os { "OS" 0x040C8000 0x00258000 0 }
factory { "Factory Reset" 0x04320000 0x00180000 0 }
ota { "OTA download" 0x044A0000 0x00180000 0 }
- user { "USER R/W" 0x04620000 0x0015E000 0 }
+ user { "USER R/W" 0x04620000 0x000FA000 0 }
+ rom { "ROM FS" 0x0471A000 0x00064000 0 }
nvram { "WiFi NVRAM" 0x0477E000 0x00002000 1 }
sssrw { "SSS R/W Key" 0x04780000 0x00080000 1 }
}