Ivan [Tue, 14 Mar 2017 13:58:20 +0000 (22:58 +0900)]
s5j/serial: cleaned serial driver code
UART code is cleaned and arranged in accordance with requirements.
Change-Id: Ia7c6c6f2f4dd73dad77f12640041b3c732e1b8cf
Signed-off-by: Ivan <ivan.galkin@samsung.com>
Heesub Shin [Tue, 14 Mar 2017 08:57:50 +0000 (17:57 +0900)]
s5j/boot: remove unnecessary include
There is no point in including board-specific headers. Moreover, it is
not necessary to do so.
Change-Id: I3af8d9a8369d5552e4907018c8ee9d6ffacab6ee
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Tue, 14 Mar 2017 08:24:32 +0000 (17:24 +0900)]
armv7-r: do not allocate MPU region manually
MPU region configurations are specific to chipset or boards. This means
that the number of regions supported or how to configure each region
depends on the chipset or board. In other words, common OS layer should
not assume which region would have a specific usage. For this reasons,
current implementation of MPU is completely wrong and broken.
As a preparation step for correcting it, this commit fixes the code that
manually allocates MPU region identifiers. mpu_allocregion() should be
used instead. This change might break the protected build, but it was
already broken and malfunctioning by itself. So, this commit does not
introduce any harm or cause any functional differences at all, though it
seems to alter quite a lot.
It also removes redundant calls to mpu_control().
Change-Id: I747a87c566f671ad198c3e20a97e9f929cb45eb5
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Tue, 14 Mar 2017 08:17:04 +0000 (17:17 +0900)]
armv7-r: bring back the declaration of mpu_allocregion()
mpu_allocregion() seems to have been deleted (or intentionally) deleted.
Its definition is still in armv7-r/arm_mpu.c and we need it. This commit
brings it back.
Change-Id: I404b8ec0a016151db2bc7651b85ae97a17a8f295
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Tue, 14 Mar 2017 08:14:33 +0000 (17:14 +0900)]
s5j: assume CONFIG_ARCH_LOWVECTORS=n always
S5J always uses the high vector. So, we do not need to consider the case
of CONFIG_ARCH_LOWVECTORS=y. This commit removes unnecessary codes for
it.
Change-Id: If48c987f82c372a32a8b03103d9a042e020848bf
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Junyeon Lee [Tue, 14 Mar 2017 04:58:46 +0000 (13:58 +0900)]
sidk_s5jt200: update SSS firmware
This commit updates the SSS firmware to the latest version released at
Dec 30, 2016.
Key features
. Acceleration
- RSA, ECDSA digital signature sign/verification
- AES encrypt, decrypt and several hash, hmac algorithm
- generate and calcaulate DH, ECDH parameters
. etc
- generate true random number
- encrypt and decrypt data based on PUF
Change-Id: I4007f6374ed121dbcb84e233e09b5ffa0bcf301b
Signed-off-by: Junyeon Lee <junyeon2.lee@samsung.com>
Junyeon Lee [Tue, 14 Mar 2017 04:43:52 +0000 (13:43 +0900)]
s5j/sss: add static library and header files
This commit adds driver and header files for SSS released at Dec 30,
2016.
Change-Id: I69dcc5045528aee1b27069e5250393da703104d8
Signed-off-by: Junyeon Lee <junyeon2.lee@samsung.com>
EunBong Song [Tue, 14 Mar 2017 04:29:37 +0000 (13:29 +0900)]
sidk_s5jt200: fix compilation error s5jt200_tash.c
This patch fixes a compilation error caused when CONFIG_S5J_SFLASH=n.
Change-Id: I8d7c331f371f306f1d15ca514752af67723b6783
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Heesub Shin [Tue, 14 Mar 2017 03:31:10 +0000 (12:31 +0900)]
armv7-r/mpu: remove mpu_show_regioninfo()
mpu_show_regioninfo() shows MPU configurations for debugging purpose.
Though it might be useful and provide meaningful information to BSP
developers, there are already another tools for them to examine MPU
settings. To normal users, it only increases binary footprint almost
half kilobyte.
Here is footprint comparison with this commit:
text data bss dec filename
Before 2568 0 5 2573 arm_assert.c
After 2148 0 5 2153 arm_assert.c
Let's drop it.
Change-Id: Ia20e92f7380c2d56516f1b229836e08354d9c5ea
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Tue, 14 Mar 2017 02:44:37 +0000 (11:44 +0900)]
armv7-r/mpu: remove unnecessary ifdef
'armv7-r/mpu.h' is included only when CONFIG_ARCH_CORTEXR4=y. So, it is
always CONFIG_ARCH_CORTEXR4 is defined and we do not need to check or
have codes for the opposite case.
Change-Id: Ia5a46127e187a9b7b0ccf09cf0618443b47d80bf
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Tue, 14 Mar 2017 02:34:51 +0000 (11:34 +0900)]
armv7-r/mpu: clean up inconsistent indentations
Fix inconsistent indentation in mpu.h for better readability. This
commit does not introduce any functional differences.
Change-Id: Ic9209c9e187c2a1153bc9c058f29c776c4ed6109
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
EunBong Song [Mon, 13 Mar 2017 10:05:44 +0000 (19:05 +0900)]
s5j: remove private definition of errno
Remove private errno definition in s5j_types.h. This patch also changes
s5j gpio driver to use common errno header.
Change-Id: Ia6413332081b21d428520037d24fcc8515e7ac40
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Heesub Shin [Mon, 13 Mar 2017 08:27:02 +0000 (17:27 +0900)]
sidk_s5jt200: remove unnecessary outputs in linker script
Now that the s5j/pwrcal driver has been simplified, some outputs in
.data section can be eliminated. .wlbt section also can be removed as it
is not in use. This commit also fixes indentations.
Change-Id: I92a4fb2c9568f9974d6ce73f8b965866e9acf473
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
EunBong Song [Mon, 13 Mar 2017 04:01:10 +0000 (13:01 +0900)]
sidk_s5jt200: calibrate CONFIG_BOARD_LOOPSPERMSEC
According to my experiment, CONFIG_BOARD_LOOPSPERMSEC should have 29100,
which is an accurate value for the current configuration of
ARTIK-051/053 evaluation board at this time.
Change-Id: Ie76b340611db99ce759a07ad8e52d08aa76b8a08
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 13 Mar 2017 02:46:28 +0000 (11:46 +0900)]
sidk_s5jt200: optimize for minimum code size
This commit changes the optimization level and linker options for
reducing binary footprint for 'hello_with_tash' configuration.
Change-Id: I87279b54ee1c8df63e1d00be98d3f94921b0984d
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 13 Mar 2017 01:59:33 +0000 (10:59 +0900)]
s5j/gpio: fix compilation error when CONFIG_SCHED_WORKQUEUE=n
When CONFIG_SCHED_WORKQUEUE is not enabled, gpio driver should not use
work queue function. If not, compilation fails.
Change-Id: I2f98874107f0ca2289066850da29d3dec28f371e
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Ivan [Mon, 13 Mar 2017 11:27:55 +0000 (20:27 +0900)]
s5j/wifi: add static libraries of pre-release 1.01
Added wifi libraries to provide wireless functionality.
This commit adds library files for the wifi subsystem on s5jt200 in a
pre-release version of 1.01. This will fix some linker issues for the
slsiwifi app.
Signed-off-by: Ivan <ivan.galkin@samsung.com>
Signed-off-by: Kim Schulz <k.schulz@samsung.com>
[Shin: merged commits from Ivan's and Schulz into a single commit]
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Ivan [Mon, 13 Mar 2017 10:44:32 +0000 (19:44 +0900)]
s5j/efuse: add s5j_efuse_get_mac_addr()
To get WLAN driver work, we need to implement s5j_efuse_get_mac_addr()
which reads MAC address from OTP area. This commit can be reverted
after the WLAN driver can read it by itself.
Change-Id: Ida4dcc32c57605f2df33fb68d6b2bf5223b2f83d
Signed-off-by: Ivan <ivan.galkin@samsung.com>
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Jin-Seong Kim [Wed, 23 Nov 2016 08:25:54 +0000 (17:25 +0900)]
lwip/dhcps: fix to prevent assertion when duplicated start
This commit fixes:
- duplicated dhcps_start function causes dereference of freed
dhcps_pcb, so invalid pointer can be dereferenced
- when dhcps_pcb exists, call udp_new function to allocate dhcps_pcb
newly on udp_pcb linked list
how to test
1) start Wi-Fi AP mode (softap)
2) dhcps start
3) another dhcps start (duplicated start dhcp server)
4) join Wi-Fi device to the softap and run dhcp client
Change-Id: Id5b4fc51576dfe99f401c1590ac1e7074b849757
Signed-off-by: jseong82.kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Wed, 21 Dec 2016 02:37:32 +0000 (11:37 +0900)]
lwip/dhcp: change de-initialization value of netmask
Netmask of IP_ADDR_ANY is 0.0.0.0, it causes wrong netif assignment due
to wrong ip address comparsion with 0.0.0.0 netmask. ip_route may not
work properly with netmask 0.0.0.0.
Change-Id: I57a0f514e5e7ba58d94d6feb37c0f9f96a016709
Signed-off-by: jseong82.kim <jseong82.kim@samsung.com>
Changsoon Kim [Wed, 30 Nov 2016 16:43:45 +0000 (01:43 +0900)]
lwip/dhcp: clear IP address information when dhcp_stop
It fixed to clear IP address, gateway, netmask infomation in dhcp_stop.
Change-Id: I16364415dd5f88ac63676acec2427784af015459
Signed-off-by: Changsoon Kim <cs0424.kim@samsung.com>
EunBong Song [Fri, 25 Nov 2016 05:13:25 +0000 (14:13 +0900)]
lwip/dhcps: fix improper use of inet_addr()
Change-Id: Ic639d704ac83aea2d16265f6c01862df7ef8e3a6
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Heesub Shin [Mon, 13 Mar 2017 01:06:49 +0000 (10:06 +0900)]
build: sidk_s5jt200: do not put binary header manually
This commit simplifies the build script. Instead of putting the
placeholder for NS2 header into the raw binary, we can do the same thing
with the linker scripts more easily.
This removes a Kconfig entry, CONFIG_DISABLE_MAKING_BINARY_HEADER also.
It is replaced by CONFIG_SAMSUNG_NS2.
Change-Id: I86d057e85f8bfce415c492decb670a7bb6c36df0
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 13 Mar 2017 00:52:50 +0000 (09:52 +0900)]
build: s5j: introduce a new kconfig, CONFIG_SAMSUNG_NS2
Bootloader of S5J platform requires the raw binary to have SHA256
checksum and some magic numbers at the first 32bytes of the binary.
Second stage boot loaders checks it to verify the integrity.
This commit introduces a new Kconfig entry, CONFIG_SAMSUNG_NS2, and a
small python script for putting SHA256 checksum into the header.
Change-Id: I95b24d97094b2c9c87ee1b30a6fb7883fed9fc64
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 13 Mar 2017 00:22:32 +0000 (09:22 +0900)]
build: do not build OTA binaries
Current build scripts creates additional output binaries when OTA is
enabled. This behavior is completely wrong, because it applies only to
S5J. In addition, now that the S5J has dropped to support FOTA, there is
no point in doing that.
Change-Id: I41fbdf7611abfad4bf597144253d91ab7260fe8a
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 13 Mar 2017 00:20:56 +0000 (09:20 +0900)]
s5j: remove FOTA remnants
Now that no boards based on s5j support OTA, s5j has no reason to
support FOTA. Let's remove all remnants for FOTA in S5J.
Change-Id: I323ff009672ce620524649b2fe8069ba16043c1b
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 13 Mar 2017 00:17:40 +0000 (09:17 +0900)]
sidk_s5jt200: drop to support FOTA
Current implementation of FOTA support is broken. It should be
redesigned to meet BL2 requirements. Let's drop it. This commit removes
all board-level considerations for supporting OTA. As no configurations
depend on the OTA at this moment, it will not cause any harm.
Change-Id: Ic8e5fcdcbef69dcb36ec1141e9f20b2075b5f593
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 11 Mar 2017 08:30:00 +0000 (17:30 +0900)]
sidk_s5jt200: remove unused variables in linker scripts
Now that we no longer need to have a special section for GPIO, it is
safe to remove .gpio_bank_start and .gpio_bank_end in linker scripts.
Change-Id: I3401e8287159b1e8df2b70edfd5fec13ec9bfaa9
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 11 Mar 2017 08:21:13 +0000 (17:21 +0900)]
s5j/gpio: do not place s5jt200_gpio_bank[] on a special section
There is no point in putting the array s5jt200_gpio_bank[] into a
special section for it. Though I do not know any historic background, it
looks very redundant, dirty and inconsistent. Not only that, this makes
us to define some variables in linker script in all target boards that
are based on S5J platform. This is very annoying and has no benefit to
do so.
Change-Id: Idd41b1944491fbf0c3d158a2cfeec7fbd8c094ca
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 11 Mar 2017 08:06:04 +0000 (17:06 +0900)]
s5j/gpio: remove gpio_status()
This commit removes unnecessary GPIO function, gpio_status().
Note that there still exist other functions not in use and we need to
remove them also in order to simplify the BSP layer further. Removing
gpio_status() here is fixing very small part of it. We will fix them all
later. This is just a preparation step for simplifying linker scripts
that have unnecessary linker variables in section definition.
Change-Id: Id11613ff12abed6f9d73fca64c71ec15ac9798f4
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 11 Mar 2017 06:53:08 +0000 (15:53 +0900)]
sidk_s5jt200: remove ld_s5jt200.script
The linker script, ld_s5jt200.script, is not in use. So, it is OK to
remove it from our repository.
Change-Id: I39be6b8487a0db7608c8757ba59958543ca9d6ad
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 11 Mar 2017 08:43:34 +0000 (17:43 +0900)]
sidk_s5jt200: clean up Make.defs files
CONFIG_BOOT_RUNFROMFLASH is always set to 'y' for all S5J platforms.
Change-Id: I0ff35e49b279e6327378678ae1bc4cdcef051375
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 11 Mar 2017 08:38:39 +0000 (17:38 +0900)]
s5j: remove redundant code for booting from non-flash
Given that we always boot from flash, we do not need to consider the
cases of CONFIG_BOOT_RUNFROMFLASH=n. Let's remove them.
Change-Id: I2e2aba487ee7f61bfe0c51dab6e4cc1133ec79a7
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Ivan [Thu, 9 Mar 2017 13:50:11 +0000 (22:50 +0900)]
s5j/mct: fix coding style issues
To follow naming rules and code style MCT code was modified.
Change-Id: I8ccb8eaa4eb480dde9c013dd5c247b24a829d3ca
Signed-off-by: Ivan <ivan.galkin@samsung.com>
Jihoon Park [Thu, 9 Mar 2017 06:24:12 +0000 (15:24 +0900)]
s5j/pwrcal: tidy up pwrcal framework, suitable for S5JT200
S5JT200 doesn't use dfs, gate function on pwrcal platform, evan pll is
non chagned its value during working. To fit with this small system,
pwrcal trashes lot of function except clock enable, and clock set/get
rate for S5JT200 system.
The clock display function needs lot of sub function. For size reduction
work, s5jt200_tash.c will not refer clock display function as well.
Fixes:
d144ec33("s5jt200/pwrcal: tidy up a bitRemove S5JT200 directory, dfs functions")
Change-Id: Icea1752ed3fc6b05398dcaa153268f4a1fee3862
Signed-off-by: Jihoon Park <jh6186.park@samsung.com>
Jihoon Park [Thu, 9 Mar 2017 07:26:28 +0000 (16:26 +0900)]
sidk_s5jt200: enable GC of unsed input sections
There are static fucntions not in use or referenced by others. In order
to reduce the size of .text, this commit changes the default build
option, specifying the linker to drop the unused input sections.
Change-Id: I945ddc24c7c56600ac9bc1c81253bfe4d40e83e9
Signed-off-by: Jihoon Park <jh6186.park@samsung.com>
Jihoon Park [Wed, 8 Mar 2017 09:00:56 +0000 (18:00 +0900)]
sidk_s5jt200: add a new config sidk_tash_wlan
sidk_s5jt200_wlan config is added, TizenRT 1.0 doesn't have enough
files because migration job is still wokring, after migration full
configuration will be enabled from swr master branch.
Change-Id: I3b387deaddf31679b395d0c24c06edf8fa06af27
Signed-off-by: jh6186.park <jh6186.park@samsung.com>
EunBong Song [Fri, 17 Mar 2017 07:48:33 +0000 (16:48 +0900)]
net/lwip: disable SLIP for sidk_s5jt200
sidk_s5jt200 does not need to support SLIP function. So disable SLIP
function for sidk_s5jt200.
Change-Id: I80527814fce3de8d0951c93475a7e5be3d6a166c
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Fri, 10 Mar 2017 06:04:26 +0000 (15:04 +0900)]
drivers/net: remove legacy NuttX SLIP driver
NuttX SLIP driver at os/drivers/net/slip.c is obsoleted. So, remove
this. SLIP is now supported by os/net/lwip/src/netif/slipif.c.
Change-Id: I799f26991e83fdf70b5761c4fbc239c7f593bc3f
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 15 Mar 2017 04:09:09 +0000 (13:09 +0900)]
drivers/net: remove legacy NuttX uIP based network device drivers
This patch removes all network device drivers which is based on NuttX uIP.
These drivers are not integrated with LwIP and does not work.
Change-Id: Ia7334ffc56ebd6aed83623ce928ed5a49565eeb6
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 15 Mar 2017 02:05:22 +0000 (11:05 +0900)]
drivers/net: remove skeleton driver
os/drivers/net/skeleton.c is a skeleton for Nuttx legacy ethernet
driver and this does not work in TizenRT because it uses LwIP as a
network stack. This can confuse network driver developers. So, remove
this.
Change-Id: If8cd2ea6ec1b28654d75a3915a8bff5510c0052b
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Fri, 10 Mar 2017 05:07:24 +0000 (14:07 +0900)]
net: Kconfig: remove NET_ETH_TCP_RECVWNDO
NET_ETH_TCP_RECVWNDO is legacy Nuttx uIP feature and not used anymore.
So this should be removed.
Change-Id: Ie793316d317a7ca747817802db58acd725d583b8
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 15 Mar 2017 02:20:07 +0000 (11:20 +0900)]
net: remove CONFIG_NET_ICMP and CONFIG_NET_ICMPv6
CONFIG_NET_ICMP and CONFIG_NET_ICMPv6 are legacy NuttX uIP features.
Let's remove this.
Change-Id: If70b49e5f6e363c4715a7d99359ba2818f5e27d8
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 15 Mar 2017 01:52:57 +0000 (10:52 +0900)]
net: remove CONFIG_NET_UDP
CONFIG_NET_UDP is a Nuttx legacy feature and not supported anymore.
This patch removes all codes related CONFIG_NET_UDP.
Change-Id: Ife7134ad434eac0dd01bf4938a17e89aa643ae31
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 15 Mar 2017 01:38:34 +0000 (10:38 +0900)]
net: remove CONFIG_NET_STATISTICS
CONFIG_NET_STATISTICS is a Nuttx legacy feature and not supported anymore.
This patch removes all codes related CONFIG_NET_STATISTICS.
Change-Id: Ic1241cf6c5e649e56c4d89ad794e6a07b2f1b2ad
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 15 Mar 2017 01:13:47 +0000 (10:13 +0900)]
net: remove CONFIG_NET_TCPURGDATA
CONFIG_NET_TCPURGDATA is a Nuttx legacy feature and not supported anymore.
Change-Id: I9955b0c4c9e7002039d64dc23aea2c72f6c0fe9f
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 13 Mar 2017 11:47:30 +0000 (20:47 +0900)]
net: remove CONFIG_NET_TCP
CONFIG_NET_TCP is a Nuttx legacy feature and not supported anymore.
Let's remove all codes which are related CONFIG_NET_TCP.
Change-Id: I2817d27336bd979ff330159d42dab922157f90ae
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 15 Mar 2017 01:58:00 +0000 (10:58 +0900)]
net: remove Nuttx legacy UDP checksum functions
udp_ipv4_chksum and udp_ipv6_chksum is only declared in header file.
There is no implementation and also not used anymore. Let's remove this.
Change-Id: I32ab21a5613bb5dc63ddcd3093e65b288e5b2202
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Tue, 14 Mar 2017 04:31:17 +0000 (13:31 +0900)]
net: remove netiob.h
netiob.h was from NuttX uIP and is currently not in use. Let's remove
it.
Change-Id: Ib3c917b6ab6db551500ab8b6bba14fb2e50a5efb
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 13 Mar 2017 11:35:48 +0000 (20:35 +0900)]
net: remove to support CONFIG_NET_SENDFILE
CONFIG_NET_SENDFILE is a legacy feature from NutX and not supported
any more. Let's remove all codes which are related CONFIG_NET_SENDFILE.
Change-Id: I6deb2d7d2aa91a51096af61f0d055433900b006d
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 13 Mar 2017 02:40:47 +0000 (11:40 +0900)]
apps: hello: simplify hello world example
'hello world' is an example for showing minimum binary footprint. As
sleep() goes with signaling and scheduling functions which are a little
bit heavy, using it in this example increases the footprint and is
inappropriate.
Change-Id: I4140bd6393f89762182fc1f883fad86b112de154
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 13 Mar 2017 02:26:40 +0000 (11:26 +0900)]
apps/system: compile fs_getpath.c only when CONFIG_FS_CMDS=y
If CONFIG_FS_CMDS is disabled, Compilation fails on fs_getpath.c. So,
fs_getpath.c should be compiled only when CONFIG_FS_CMDS is enabled.
Change-Id: I7c1340e3527d608924701b1e7caf977fad0b613b
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 16 Mar 2017 03:59:39 +0000 (12:59 +0900)]
fs/aio: remove legacy NuttX uIP based AIO
AIO_HAVE_PSOCK is a legacy NuttX uIP feature and not supported anymore.
Let's remove this.
Change-Id: Ie058dcbb95493732c7cb4eddb45d9b8288274779
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Mon, 13 Mar 2017 02:06:14 +0000 (11:06 +0900)]
mqueue: fix compilation error when CONFIG_DISABLE_MQUEUE=y
This patch fixes compilation error when CONFIG_DISABLE_MQUEUE is
enabled.
In file included from group/group_leave.c:71:0:
./mqueue/mqueue.h:73:5: error: "CONFIG_MQ_MAXMSGSIZE" is not defined [-Werror=undef]
#if CONFIG_MQ_MAXMSGSIZE > 0
^
cc1: all warnings being treated as errors
Change-Id: I351fef2a2b4cf46caa54871c7170cf89bddc5abe
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Heesub Shin [Mon, 20 Mar 2017 07:25:53 +0000 (16:25 +0900)]
fs/smartfs: add to check if already formatted
Before formatting a volume, check if it is already formatted and then
skip, when 'force' is not true.
Change-Id: I6965b693005fc360e9977cc1fa79cdce29f30d04
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 20 Mar 2017 07:01:55 +0000 (16:01 +0900)]
fs/smartfs: revert changes by samsung
mksmartfs() accepts a boolean value that specifies how to behave when
the volume is already formatted, to prevent it from being damaged.
However, the way of checking whether the volume is formatted or not is
completely wrong. I never understand what the hell they thought when
they had done this.
Change-Id: Ic778c4ee66c0e66f3b50d97f02113f48117e82bf
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
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