Heesub Shin [Mon, 20 Mar 2017 06:32:26 +0000 (15:32 +0900)]
fs/smartfs: remove unnecessary #ifdef
Change-Id: I1d38ea9161a5878bd3041fa66d77743d54983f9c
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 18 Mar 2017 09:40:57 +0000 (18:40 +0900)]
fs/mtd: enumerate one partition entry at a time
part_procfs_read() tries to enumerate all partitions at a time when it
is requested to read its procfs node. This is problematic when the
caller did not provide enough output buffer. Though the buffer is not
overflowed, users can see only small part as much as it can put in the
buffer. If we enumerate only a single partition entry at a time, this
situation can be prevented, reading the node several times repeatedly.
This commit does not cause any functional differences except the change
of how many entries are enumerated at a time.
Change-Id: I8f152dbddc27caf192510a888422c0bba6a0e76c
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Wonsang Ryou [Fri, 24 Mar 2017 02:09:21 +0000 (11:09 +0900)]
fs/vfs: poll: fix resource leak and memory corruption
In case of poll() for multiple file descriptors, if 2nd fd's
poll_setup() fails after completing 1st fd's poll_setup(), poll()
returns error without releasing 1st fd's setup information. The 1st
fd's setup information will be garbage and can cause side effect such as
memory curruption.
Change-Id: I8bace85b3f8f59c01e3cd0f8888dc85f78739f49
[Ryou: backported from NuttX
157ac4fb and
48107bf0]
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
Heesub Shin [Sat, 18 Mar 2017 06:07:57 +0000 (15:07 +0900)]
mtd/progmem: fix incorrect target address calculation
progmem_read/write() is incorrectly calculating the target address,
expecting the offset argument is given in a block number. This is
completely wrong and as a result invalid flash region is accessed.
Byte-oriented read/write interfaces of mtd device accept the target
address in a byte offset, not a block number.
Change-Id: I6b3e731c48b707ecc8274b73723387fb92adf2aa
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 18 Mar 2017 05:53:50 +0000 (14:53 +0900)]
mtd/Kconfig: add missing Kconfig entry, MTD_PROGMEM
This commit adds a Kconfig entry, MTD_PROGMEM, which enables the progmem
that provides the upper-half implementation for on-chip flash memories.
Change-Id: Ic652ae92bb7ea1dff0c5a5e47c29394f177cce12
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
btheosam [Fri, 14 Apr 2017 08:55:09 +0000 (17:55 +0900)]
Merge pull request #45 from Samsung/shell
modify definition and config names for TASH
sunghan [Fri, 14 Apr 2017 08:35:45 +0000 (17:35 +0900)]
modify definition name for tash task
Because TASH is launched as a task, not thread, we had better change definition name.
sunghan [Fri, 14 Apr 2017 08:33:09 +0000 (17:33 +0900)]
fix wrong name of tash config on defconfig
CONFIG_TASH_CMDTHREAD_XXX was changed to CONFIG_TASH_CMDTASK_XXX.
sunghan-chang [Fri, 14 Apr 2017 08:23:01 +0000 (17:23 +0900)]
Merge pull request #43 from Samsung/kernel_tools
Fix bug in memstat tool
btheosam [Fri, 14 Apr 2017 08:15:23 +0000 (17:15 +0900)]
Merge pull request #42 from Samsung/apps_example
modify dependancies of examples, proc_test and hello_tash
btheosam [Fri, 14 Apr 2017 08:14:17 +0000 (17:14 +0900)]
Merge pull request #44 from Samsung/common_build
modify codes for programming on sidk_s5jt200
sunghan [Fri, 14 Apr 2017 08:12:12 +0000 (17:12 +0900)]
changes to check if Linux is 32-bit or 64-bit and use appropriate openocd binary for programming
There are two binaries for 32-bit and 64-bit. When we use "make download",
it should be checked and should be used appropriate binaray automatically.
sunghan [Thu, 13 Apr 2017 12:36:28 +0000 (21:36 +0900)]
add DOWNLOAD definition at Make.defs of sidk_s5jt200 for programming on make
It makes we can download a binary using "make download ALL" for sidk_s5jt200.
Chanhee [Thu, 13 Apr 2017 12:00:06 +0000 (21:00 +0900)]
Fix bug in memstat tool
text size is calculated incorrectly if more than one lib has objects of same name
sunghan-chang [Thu, 13 Apr 2017 09:06:18 +0000 (18:06 +0900)]
Merge pull request #41 from Samsung/fs_smartfs_journaling
Fix journaling bug
TaeJun Kwon [Thu, 13 Apr 2017 08:59:50 +0000 (17:59 +0900)]
Add transaction logging for chaining
There no Transaction Logging when chaining
TaeJun Kwon [Thu, 13 Apr 2017 08:54:48 +0000 (17:54 +0900)]
Allow mount even if restore failed.
Even if restore failed, clean journal area & execute bind when mount
sunghan [Thu, 13 Apr 2017 08:52:00 +0000 (17:52 +0900)]
modify dependancies of examples, proc_test and hello_tash
TASH for hello_tash and DISABLE_MOUNTPOINT, FS_PROCFS for proc_test are needed.
There is no meaningful operation without those configs.
TaeJun Kwon [Thu, 13 Apr 2017 08:49:27 +0000 (17:49 +0900)]
Fix journaling's restore bug
When logging area changed, wrong sector&offset returned, fixed it.
sunghan-chang [Thu, 13 Apr 2017 08:45:36 +0000 (17:45 +0900)]
Merge pull request #40 from Samsung/fs_smartfs_journaling
Execute Journal operation even if actual smartfs operation failed.
sunghan-chang [Thu, 13 Apr 2017 08:41:16 +0000 (17:41 +0900)]
Merge pull request #39 from Samsung/fs_common
Fix memory leak in fs_clean
TaeJun Kwon [Thu, 13 Apr 2017 08:39:25 +0000 (17:39 +0900)]
Execute Journal operation even if actual smartfs operation failed.
Journal transaction should be finished, once it created
TaeJun Kwon [Thu, 13 Apr 2017 08:30:28 +0000 (17:30 +0900)]
Fix memory leak in fs_clean
if smart_clean failed, inode never released
Juitem JoonWoo Kim [Thu, 13 Apr 2017 07:19:20 +0000 (16:19 +0900)]
Merge pull request #37 from Samsung/common_readme
modify README for examples
Juitem JoonWoo Kim [Thu, 13 Apr 2017 07:18:46 +0000 (16:18 +0900)]
Merge pull request #38 from Samsung/tools_version
modify version.sh
sunghan [Thu, 13 Apr 2017 05:23:56 +0000 (14:23 +0900)]
set BUILD variable to NA(Not Available) when there is no .git
If Tizen RT is tried to build without .git, below error is shown.
We should make Tizen RT can be built regardless of existing of .git.
No .version file found, creating one
GIT version information is not available
chmod: cannot access ‘.version’: No such file or directory
make: *** [/os/.version] Error 1
sunghan-chang [Thu, 13 Apr 2017 05:17:36 +0000 (14:17 +0900)]
Merge pull request #36 from Samsung/common_typo
Modify typing error in procfs
sunghan [Thu, 13 Apr 2017 05:15:41 +0000 (14:15 +0900)]
modify README for examples
split README for each example and add configs to use each example
Ahreum Jeong [Thu, 13 Apr 2017 05:13:51 +0000 (14:13 +0900)]
Modify typing error in procfs
Juitem JoonWoo Kim [Wed, 12 Apr 2017 06:32:57 +0000 (15:32 +0900)]
Merge pull request #35 from Samsung/common_readme
modify contents of libraries's README
sunghan [Wed, 12 Apr 2017 06:28:41 +0000 (15:28 +0900)]
modify contents of libraries's README
modify legacy explanations and add a method to add external libraries
sunghan-chang [Tue, 11 Apr 2017 04:24:37 +0000 (13:24 +0900)]
Merge pull request #34 from Samsung/common_build
Locate setenv.sh in os/tools
btheosam [Fri, 7 Apr 2017 09:21:17 +0000 (18:21 +0900)]
Merge pull request #32 from Samsung/common_typo
fix typo
lssgood [Fri, 7 Apr 2017 08:22:28 +0000 (17:22 +0900)]
Merge pull request #31 from Samsung/network_iotivity
Delete Iotivity apps
sunghan [Fri, 7 Apr 2017 07:33:08 +0000 (16:33 +0900)]
fix typo on up_udelay
Jaesik [Fri, 7 Apr 2017 06:33:12 +0000 (15:33 +0900)]
fix typo about invalid define name
change SIZEOF_MM_MALLOC_DEBUG_INO to SIZEOF_MM_MALLOC_DEBUG_INFO.
sunghan [Fri, 7 Apr 2017 06:06:35 +0000 (15:06 +0900)]
fix typo for environ
CONFIG_DISABLE_ENIVRON is a typo of CONFIG_DISABLE_ENVIRON.
Taejun-Kwon [Fri, 7 Apr 2017 05:26:27 +0000 (14:26 +0900)]
Merge pull request #30 from Samsung/common_readme
modify readme for tizen wiki and sidk_s5jt200
Heejin Kim [Fri, 7 Apr 2017 05:16:40 +0000 (22:16 -0700)]
Delete Iotivity apps
junmin kim [Thu, 6 Apr 2017 04:59:01 +0000 (21:59 -0700)]
Locate setenv.sh in os/tools
Add usage for setenv.sh. Remove default toolchain path
Juitem JoonWoo Kim [Wed, 5 Apr 2017 10:55:41 +0000 (19:55 +0900)]
Merge pull request #29 from Samsung/kernel_sem
remove unncessary codes
sunghan [Wed, 5 Apr 2017 10:31:17 +0000 (19:31 +0900)]
add README for sidk_s5jt200
sunghan [Wed, 5 Apr 2017 10:25:34 +0000 (19:25 +0900)]
modify the link for wiki to tizen.org and add the link of README for sidk_s5jt200
sunghan [Wed, 5 Apr 2017 06:34:53 +0000 (15:34 +0900)]
remove unncessary codes
CONFIG_TINYARA_DEBUG is not supported
sunghan-chang [Tue, 4 Apr 2017 11:54:16 +0000 (20:54 +0900)]
Merge pull request #28 from Samsung/kernel_pipe
fix typo on pipe_common
jc_.kim [Tue, 4 Apr 2017 10:39:30 +0000 (19:39 +0900)]
fix typo on pipe_common
btheosam [Tue, 4 Apr 2017 10:21:47 +0000 (19:21 +0900)]
Merge pull request #24 from Samsung/common_Kconfig
refactoring for Kconfig
sunghan [Tue, 4 Apr 2017 07:02:31 +0000 (16:02 +0900)]
change a title from "System Type" to "Chip Selection" for arch Kconfig
Under arch, we can select core and chip configurations.
"Chip Selection" is easier to understand and
we use "Board Selection" for board configurations.
sunghan [Tue, 4 Apr 2017 06:52:17 +0000 (15:52 +0900)]
add DEBUG condition to select debug configuration by default
DEBUG_MM_HEAPINFO can be enabled when DEBUG is enabled.
warning: (ENABLE_HEAPINFO) selects DEBUG_MM_HEAPINFO which has unmet direct dependencies (DEBUG)
Juitem JoonWoo Kim [Mon, 3 Apr 2017 08:33:55 +0000 (17:33 +0900)]
Merge pull request #27 from Samsung/fs_smartfs
Fix potential memory leakage
TaeJun Kwon [Mon, 3 Apr 2017 08:30:17 +0000 (17:30 +0900)]
Fix potential memory leakage
There are potential memory leakage in rmdir & unlink in smartfs
sunghan-chang [Mon, 3 Apr 2017 08:28:53 +0000 (17:28 +0900)]
Merge pull request #26 from Samsung/fs_smartfs
Fix lseek's bug in smartfs
TaeJun Kwon [Mon, 3 Apr 2017 08:11:11 +0000 (17:11 +0900)]
Fix lseek's bug in smartfs
lseek should set the file offset to the size of the file plus offset
Juitem JoonWoo Kim [Mon, 3 Apr 2017 07:39:42 +0000 (16:39 +0900)]
Merge pull request #25 from Samsung/fs_journaling
Modify Journaling structure to apply mtd partition
TaeJun Kwon [Mon, 3 Apr 2017 07:28:40 +0000 (16:28 +0900)]
Modify Journaling structure to apply mtd partition
Move journal manager into fs's private data and Disable journal area if there's not enough space.
sunghan [Mon, 3 Apr 2017 06:33:42 +0000 (15:33 +0900)]
remove folder path for configs
In Kconfig, configs folder is not used anymore.
sunghan [Mon, 3 Apr 2017 06:30:25 +0000 (15:30 +0900)]
move Kconfig for board configurations to arch
Board folder was moved to arch, not configs so that Kconfig should be at arch
btheosam [Mon, 3 Apr 2017 04:34:46 +0000 (13:34 +0900)]
Merge pull request #23 from Samsung/common_error
fix errors on distclean
sunghan-chang [Mon, 3 Apr 2017 04:16:12 +0000 (13:16 +0900)]
Merge pull request #20 from Samsung/kernel_heapinfo
modify the omitted about heapinfo_parse in mm_malloc and update the c…
jc_.kim [Mon, 3 Apr 2017 04:09:42 +0000 (13:09 +0900)]
modify the omitted about heapinfo_parse in mm_malloc
modified heapinfo_parse needs 3-params, but in mm_malloc, it is not updated
jc_.kim [Thu, 30 Mar 2017 06:52:59 +0000 (15:52 +0900)]
update the copyright year which modified
update the copyright year : 2016 to 2016-2017
sunghan [Fri, 31 Mar 2017 10:41:45 +0000 (19:41 +0900)]
fix errors on distclean
If distclean is excuted before configuring,
we can meet errors on pm, fs, logm and apps/platform like belows.
make[1]: Entering directory `/home/sunghan/Work/TinyAra/TizenRT/os/logm'
Makefile:19: /home/sunghan/Work/TinyAra/TizenRT/os/Make.defs: No such file or directory
make[1]: *** No rule to make target `/home/sunghan/Work/TinyAra/TizenRT/os/Make.defs'. Stop.
Taejun-Kwon [Fri, 31 Mar 2017 07:23:39 +0000 (16:23 +0900)]
Merge pull request #22 from Samsung/common_warnings
fix build error on procfs
sunghan [Fri, 31 Mar 2017 07:16:04 +0000 (16:16 +0900)]
fix build error on procfs
Some variables are only used when CONFIG_FS_PROCFS_EXCLUDE_PROCESS is disabled.
procfs/fs_procfs.c: In function 'procfs_opendir':
procfs/fs_procfs.c:439:13: error: unused variable 'flags' [-Werror=unused-variable]
irqstate_t flags;
^
procfs/fs_procfs.c: In function 'procfs_readdir':
procfs/fs_procfs.c:590:8: error: unused variable 'pid' [-Werror=unused-variable]
pid_t pid;
^
procfs/fs_procfs.c:589:13: error: unused variable 'flags' [-Werror=unused-variable]
irqstate_t flags;
^
procfs/fs_procfs.c:586:20: error: unused variable 'tcb' [-Werror=unused-variable]
FAR struct tcb_s *tcb;
Juitem JoonWoo Kim [Thu, 30 Mar 2017 12:44:40 +0000 (21:44 +0900)]
Merge pull request #21 from Samsung/common_typo
fix typo on pthread
sunghan [Thu, 30 Mar 2017 12:36:01 +0000 (21:36 +0900)]
fix typo on pthread
sunghan [Thu, 30 Mar 2017 06:01:33 +0000 (15:01 +0900)]
refactoring programming scripts for sidk_s5jt200
remove CR, spaces and codes
sunghan-chang [Thu, 30 Mar 2017 04:21:24 +0000 (13:21 +0900)]
Merge pull request #19 from Samsung/common_openocd
Return exit code 0 after using openocd script
junmin kim [Wed, 29 Mar 2017 12:13:33 +0000 (05:13 -0700)]
Return exit code 0 after using openocd script
Shutdown after catching halt
btheosam [Wed, 29 Mar 2017 10:53:53 +0000 (19:53 +0900)]
Merge pull request #18 from Samsung/common_flash_script
refactoring programming scripts for sidk_s5jt200
sunghan [Wed, 29 Mar 2017 10:31:54 +0000 (19:31 +0900)]
refactoring programming scripts for sidk_s5jt200
remove unnecessary codes and modify path of binary
sunghan-chang [Wed, 29 Mar 2017 06:15:35 +0000 (15:15 +0900)]
Merge pull request #17 from Samsung/kernel_heapinfo
add the feature to show the details per pid in heapinfo
jc_.kim [Wed, 29 Mar 2017 06:02:07 +0000 (15:02 +0900)]
add the feature to show the details per pid in heapinfo
in heapinfo, there are 4 options
i: initialize the heapinfo
a: show the all allocation details
p(#): show the specific pid allocation details
f: show the free list
sunghan-chang [Tue, 28 Mar 2017 08:37:03 +0000 (17:37 +0900)]
Merge pull request #14 from Samsung/common_make
Update App structure
jc_.kim [Tue, 28 Mar 2017 08:30:37 +0000 (17:30 +0900)]
fix the duplicated adding size in realloc
when failed to expand neighbor in realloc, try to malloc using wrong size
which is aligned with adding chunck size
sunghan-chang [Tue, 28 Mar 2017 08:15:35 +0000 (17:15 +0900)]
Merge pull request #15 from Samsung/kernel_debug
Fix build warning regarding define syntax in debug.h
junmin kim [Tue, 28 Mar 2017 05:09:31 +0000 (22:09 -0700)]
Use directory.mk for recursive dir makefiles
Update nuttx-7.17 app structure
Ahreum Jeong [Tue, 28 Mar 2017 06:28:41 +0000 (15:28 +0900)]
Fix build warning regarding define syntax in debug.h
junmin kim [Mon, 27 Mar 2017 13:12:13 +0000 (06:12 -0700)]
Autogenerate apps/Kconfig
Update nuttx-7.17 app structure
Juitem JoonWoo Kim [Mon, 27 Mar 2017 12:15:21 +0000 (21:15 +0900)]
Merge pull request #13 from Samsung/common_warnings
Common warnings
junmin kim [Mon, 27 Mar 2017 12:12:17 +0000 (05:12 -0700)]
Remove hardcoded directories in apps/Makefile
Update nuttx-7.11 app structure
junmin kim [Mon, 27 Mar 2017 11:20:22 +0000 (04:20 -0700)]
Make the full tree use wildcards make.defs
Update nuttx-7.17 app structure
sunghan [Mon, 27 Mar 2017 11:12:32 +0000 (20:12 +0900)]
fix menuconfig warning on Kconfig
add type of config
sunghan [Mon, 27 Mar 2017 11:09:56 +0000 (20:09 +0900)]
fix compilation warning on include
check whether it is defined or not, because __WORDSIZE can be undefined.
sunghan [Mon, 27 Mar 2017 11:07:10 +0000 (20:07 +0900)]
fix compilation warning on init
The pid variable is only used when TASH or User Workqueue is enabled.
btheosam [Mon, 27 Mar 2017 09:41:16 +0000 (18:41 +0900)]
Merge pull request #12 from Samsung/common_kconfig
Common kconfig
jc_.kim [Mon, 27 Mar 2017 01:43:10 +0000 (10:43 +0900)]
fix the typing error about fscmd in kconfig and defconfig
jc_.kim [Mon, 27 Mar 2017 01:25:21 +0000 (10:25 +0900)]
remove unnecessary config in apps Kconfig and Makefile
remove unnecessary if~endif in apps Kconfig and unnecessary configs in makefile
sunghan [Fri, 24 Mar 2017 10:39:22 +0000 (19:39 +0900)]
remove unused and wrong config
There are unnecessary if~endif, usused configs and wrong character
on lib and os except arch and net.
btheosam [Fri, 24 Mar 2017 10:20:42 +0000 (19:20 +0900)]
Merge pull request #11 from Samsung/README
modify README.md
sunghan [Fri, 24 Mar 2017 10:09:42 +0000 (19:09 +0900)]
modify README.md
The project name is changed to TizenRT
btheosam [Wed, 22 Mar 2017 08:16:59 +0000 (17:16 +0900)]
Merge pull request #8 from Samsung/common_type
remove duplicated type definition for uint
btheosam [Wed, 22 Mar 2017 08:15:40 +0000 (17:15 +0900)]
Merge pull request #9 from Samsung/kernel_config
remove unsupported configuration
sunghan [Wed, 22 Mar 2017 05:16:31 +0000 (14:16 +0900)]
remove unsupported configuration
latency and debug are not supported so that configurations are needed.
sunghan [Wed, 22 Mar 2017 05:03:44 +0000 (14:03 +0900)]
remove duplicated type definition for uint
It is at line 298 and 322 and it should be in __ASSEMBLY__.
jeongchanKim [Mon, 20 Mar 2017 06:15:26 +0000 (15:15 +0900)]
Merge pull request #5 from Samsung/kernel_stkmon
Expand to show the peak size of heap
jc_.kim [Mon, 20 Mar 2017 06:11:06 +0000 (15:11 +0900)]
Merge branch 'kernel_stkmon' of https://github.com/Samsung/TinyAra into kernel_stkmon
jc_.kim [Mon, 20 Mar 2017 06:03:14 +0000 (15:03 +0900)]
Merge branch 'kernel_stkmon' of https://github.com/Samsung/TinyAra into kernel_stkmon
Conflicts:
apps/system/utils/kdbg_stackmonitor.c
jc_.kim [Mon, 20 Mar 2017 06:03:14 +0000 (15:03 +0900)]
Merge branch 'kernel_stkmon' of https://github.com/Samsung/TinyAra into kernel_stkmon
Conflicts:
apps/system/utils/kdbg_stackmonitor.c
jc_.kim [Fri, 10 Mar 2017 05:11:46 +0000 (14:11 +0900)]
Expand to show the peak size of heap
When enable CONFIG_DEBUG_MM_HEAPINFO, stackmonitor can show the peak size of heap per thread