sunghan [Mon, 8 May 2017 12:11:41 +0000 (21:11 +0900)]
fix a failure on download script for artik053
Variables are not delivered to cfg file. It makes error on download.
sunghan [Mon, 8 May 2017 10:43:38 +0000 (19:43 +0900)]
modify download script for new structure of openocd in sidk_s5jt200
sunghan [Mon, 8 May 2017 10:04:38 +0000 (19:04 +0900)]
fix violations of coding style
refer Tizen C coding style at
https://wiki.tizen.org/wiki/Native_Platform_Coding_Idiom_and_Style_Guide#C_Coding_Style
Heesub Shin [Sat, 6 May 2017 09:46:20 +0000 (18:46 +0900)]
artik053: sidk_s5jt200: set CONFIG_BOARDCTL_RESET=y
Change-Id: I2ec2d4577f840edc53ce82ea646597dd36af4acb
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Junhwan Park [Sat, 6 May 2017 09:26:27 +0000 (18:26 +0900)]
s5j: add to support board_reset()
board_reset() is an interface which is called by boardctl() when the
BOARDIOC_RESET is requested. This commit adds an implementation of it.
Change-Id: I45c569a034ab189f7c2e76ef264b28a8136dee5e
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Heesub Shin [Sat, 6 May 2017 09:21:31 +0000 (18:21 +0900)]
artik053: sidk_s5jt200: add to support boardctl()
When CONFIG_LIB_BOARDCTL=y, let's build boardctl.c to support
boardctl().
Change-Id: Ifde0e94a0b7f5ac0fbe519bd11fa7eac583deee6
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 6 May 2017 09:15:53 +0000 (18:15 +0900)]
tash: add to support reboot command
This commit adds 'reboot' command which calls boardctl() with
BOARDIOC_RESET, so that the board resets. It is enabled only when
CONFIG_BOARDCTL_RESET=y.
Change-Id: Id6ecae937c1c965a39f96f09fd1883e84027f213
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 6 May 2017 09:02:34 +0000 (18:02 +0900)]
arch: add missing arch-specific kconfig entries
As a preparation step for supporting boardctl() feature, we need to add
some kconfig entries for indicating whether or not the architecture can
provide those capabilities.
Change-Id: I65d603b166216e47a04323d36a0dca941fcbfae4
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 6 May 2017 08:58:00 +0000 (17:58 +0900)]
arch: add missing boardctl()
In TizenRT, boardctl() is missing. Without it, there is no way to
support shutdown, reboot, or any other board-specific control. So, this
commit copies boardctl.c, IOCTL definitions and several Kconfig entries
from NuttX, which were deleted in TizenRT.
Change-Id: I8cbd27faa6cbfc12b65d6cba7f9c57237c81853f
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Junhwan Park [Thu, 4 May 2017 05:16:51 +0000 (14:16 +0900)]
examples/sensorbd_demo: fix gpio loopback test
Since we reworked the entire GPIO layer, 'sensorbd gpio' command have
been broken. This commit fixed it.
Change-Id: Ic04a800fc2bebd7991db8d1d8daf197ef367bb3e
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Wed, 3 May 2017 00:16:10 +0000 (09:16 +0900)]
examples/mqtt_test: add missing parameter
Insufficient string parameters have been added.
Change-Id: I37eefe24c3fb9771663ada9a77ff69af4e2343ec
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Wed, 3 May 2017 00:11:15 +0000 (09:11 +0900)]
examples/sensorbd_demo: add missing parameter
Insufficient string parameters have been added.
Change-Id: Iaa365f0f11f3a74869e0079fd224c356f08e1ac4
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
EunBong Song [Tue, 2 May 2017 07:59:26 +0000 (16:59 +0900)]
pthread: Fix compilation error on pthread_cond_wait
This patch fixes compilation error when CONFIG_CANCELLATION_POINTS and
CONFIG_PTHREAD_MUTEX_UNSAFE are enabled.
Change-Id: I4b0cfda0ff054568b29aae1c1560c7442da37887
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Tue, 2 May 2017 07:57:57 +0000 (16:57 +0900)]
pthread: Add logic to disable cancellation points within the OS
This is useful when an internal OS function that is NOT a cancellation
point calls an OS function which is a cancellation point. In that case,
irrecoverable states may states may occur if the cancellation is within
the OS.
All credits should go to Juha Niskanen who wrote the original commit.
Change-Id: Iaedfdcf921f4859f049d590e47ab136cb0a0b699
Signed-off-by: Juha Niskanen (Haltian) <juha.niskanen@haltian.com>
[Song: backported
b4747286 from Nuttx]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Tue, 2 May 2017 07:14:34 +0000 (16:14 +0900)]
external/wakaama : minor patch to support TLS connection to artikcloud
This commit is minor patch to support TLS connection to artikcloud
- set cipher suite to all and auth_mode 0 (not verify)
Change-Id: I3f52693884d95ab831d9d2ae8a66e61eaf740d30
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
EunBong Song [Tue, 2 May 2017 04:39:05 +0000 (13:39 +0900)]
testcase: prevent function name pollution
change wait() and signal() to static function for preventing
function name pollution.
Change-Id: Iad38057fda77ae01c46bf507c919b65939a1a444
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Tue, 2 May 2017 02:39:04 +0000 (11:39 +0900)]
testcase: add missing socket close
This patch adds missing socket close in network testcases.
Change-Id: I0841430f375e36c25ca7068c0b73682aed1a3f71
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Tue, 2 May 2017 02:25:27 +0000 (11:25 +0900)]
testcase: add missing socket close
This patch adds missing socket close in network testcases.
Change-Id: I4c70ff23c99a8e0290901aeb46264072aed342c7
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Heesub Shin [Thu, 4 May 2017 13:20:36 +0000 (22:20 +0900)]
artik053: export the OTA partition as /dev/mtdblock7
Now that the BCH driver and the block proxy are added, exporting the OTA
partition as /dev/mtdblock7 and accessing it using POSIX file i/o APIs
are possible. It will be very helpful when we are implementing OTA
downloaders.
Change-Id: Iba6e7a2e6aabb3819289d1c6768b6b40959e1f3b
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 4 May 2017 13:06:42 +0000 (22:06 +0900)]
fs: add to support block proxy
open() has been extended. You can now open block drivers and access them
just as you can character drivers. For example, you can hexdump a block
device.
Change-Id: I70db3eb0e452fcb04ed9fde1a5b4a53f4f5a0898
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Shin: backported
84a5f826c from NuttX]
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 4 May 2017 12:58:27 +0000 (21:58 +0900)]
drivers: add BCH device driver
BCH device driver allows us to access the block device as if it is a
character device. It is very helpful when we implement OTA downloader.
All credits should go to many other contributors who wrote the original
commits for NuttX.
Change-Id: I368d963e6e58d810f5fdc0cdc48279521453ac18
[Shin: backported from NuttX]
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Thu, 4 May 2017 13:26:25 +0000 (22:26 +0900)]
artik053: update bl2 image
BL2 image is updated to support OTA update and factory reset.
Change-Id: I349ec8c25b217b38fcf5d58a0428d48852f26583
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Mon, 1 May 2017 10:31:42 +0000 (19:31 +0900)]
s5j/serial: rework lower-half serial driver
This commit rewrites the lower-half serial driver in completely new in
order to clean up unnecessary code lines for better readability and
maintainability. As a result, binary footprints reduces as following:
text data bss dec hex filename
Before 2306 248 1024 3578 dfa s5j_serial.o
After 1254 240 1024 2518 9d6 s5j_serial.o
Change-Id: I4d7c45268dd24fb0da7d95ada1503c0b5c5c9574
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Tue, 2 May 2017 12:10:52 +0000 (21:10 +0900)]
s5j/serial: s/UARTDBG/UART4/g
It is very confusing that the Debug UART is sometimes referred to as
UART4 and sometimes UARTDBG. Given that the user manual of S5JT200
calls it as UART4, this commit replaces all occurrences of UARTDBG with
UART4 for better consistency.
Change-Id: I55be6a4b04357ed84eadfb9b573f10f908394b41
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 29 Apr 2017 09:30:31 +0000 (18:30 +0900)]
s5j: tidy up macro definitions of SFR base
Fixes trivial misalignment of macro definitions for better readability
and consistency. In addition, constants that are not in use or
dereferenced are also removed. This commit does not introduce any
functional differences and should not.
Change-Id: I8c3b0f8b51624c722e25e0068664d347da0cac20
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 29 Apr 2017 09:20:35 +0000 (18:20 +0900)]
s5j/sflash: clean up and simplify logic
Serial flash driver is using hard-coded constants. Now that the SFR
addresses and their biefield are defined in chip/s5jt200_sflash.h, we
can clean up a little bit by removing those constants and simplify the
internal logics for better readability.
Change-Id: Ifda7048bbcf58abd1a619a23fcc60d13d0cfe3e0
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 29 Apr 2017 09:16:30 +0000 (18:16 +0900)]
s5j/sflash: fix trivial coding style issues
As a preparation step before amending sflash driver further, we need to
fix trivial violations to the TizenRT coding style guideline.
Change-Id: Ic0563046615a0df9e92c3eae79dc6b67066940a8
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 29 Apr 2017 09:18:36 +0000 (18:18 +0900)]
s5j/sflash: add register definitions
This commit adds SFR addresses and bitfield definitions for SFLASH
controller of S5JT200. This will allow us to eliminate hard-coded
constants from sflash driver implementation.
Change-Id: I36124090a1ded44eb238007ec78a431aed03869c
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Sat, 29 Apr 2017 07:59:55 +0000 (16:59 +0900)]
s5j/serial: clean up macro definitions for SFR base
To follow convention, S5J_ prefix is needed at macro definitions for
UART base addresses. This commit also removes redundant macros.
Change-Id: I2716b758e6f34c63b4f89e27194619aade152ae0
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Junyeon LEE [Fri, 28 Apr 2017 19:03:27 +0000 (04:03 +0900)]
examples/tls: support pre-shared key in examples
This commit supports pre-shared key authentication in tls examples.
Change-Id: I16c0c4be015f048294257689bb3b83e3cfcf46ee
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Fri, 28 Apr 2017 13:16:00 +0000 (22:16 +0900)]
external/wakaama: initiative TLS supporting version of lwm2m
This commit ports the lwm2m connection layer with mbedTLS.
Now that wakaama supports UDP, TCP, TLS connection.
Change-Id: I12c6a2e43b1776301674b05d50106d5f000410a2
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Jin-Seong Kim [Fri, 28 Apr 2017 05:48:55 +0000 (14:48 +0900)]
configs: enable dhcpd by default
This commit is to add dhcpd on artik053/nettest and sidk_s5jt200/sidk_tash_wlan
- to fully support Wi-Fi softAP functionality, dhcpd should be enabled
Change-Id: I589765a24f24ad40ce9cf19c15feb611b4e730c1
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Siwon Kang [Fri, 28 Apr 2017 04:30:52 +0000 (13:30 +0900)]
os/Kconfig: change shape of debug structure of WLAN in the Kconfig
This changes structure of debug flags of WLAN. The ERROR becomes subset
of WLAN_DEBUG. This modification also includes smarter if-condition and
depends-on check for enabling/disabling a certain config.
Change-Id: I5ce5f31eb9b1f3da26e2c7e2656d71bf2d5a5c5f
Signed-off-by: Siwon Kang <sw0809.kang@samsung.com>
Gregory Lemercier [Tue, 18 Apr 2017 15:53:43 +0000 (17:53 +0200)]
netutils/mdns: add support for exposing services
Add API to mDNS responder to expose some services through mDNS-SD.
Code has been copied from https://bitbucket.org/geekman/tinysvcmdns,
which seems to be the mDNS implementation NuttX based its support on.
Change-Id: I8930f3005eb35bec196173f760f62a1077c85797
Signed-off-by: Gregory Lemercier <g.lemercier@samsung.com>
EunBong Song [Thu, 27 Apr 2017 05:28:26 +0000 (14:28 +0900)]
apps/iperf: fix error of dumping 1st stat
Change-Id: I81872db1bb08daa57cdbc1ee308830d1a2448c4e
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 05:25:28 +0000 (14:25 +0900)]
apps/iperf: do not use linked list for stat info
commit id
c9dd4c5a disables malloc for each interval stat. And use one
static one structure for interval stat. So linked list does not need
for stat info. This patch changes for interval using signle pointer
instaed of linked list.
Change-Id: If30c0ad9d30ed7adf6e752dacd67a531333e5fda
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 05:17:14 +0000 (14:17 +0900)]
apps/iperf: add iperf_api semaphore on reporter callback
when iperf bi-directional test, freelist array value has been corrupted
due to simultaneous access on it.
- freelist array is used on __dtoa function called by snprintf
- it causes data abort during a long-run test
iperf reporter callback function is called by timer interrupt so,
to guarantee completion of it we've added semaphore on reporter callback
function.
Change-Id: Ib0549de6c850008eb825a6d484205c0b84725b6d
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 05:11:21 +0000 (14:11 +0900)]
apps/iperf: fixes memory leakage issue on iperf client
when iperf client is closed by exit(1) function at error case,
tash_cmdthread cannot run its free routine since TinzenRT exit function
delets task_pcb without considering memory.
to prevent memory leakage on iperf client error case, add patch as below
1) use return instead of exit function
2) free allocated memeory before exit cmdthread
Change-Id: I777967d26db33fc3c554d1b4ece832c195978d32
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 05:04:31 +0000 (14:04 +0900)]
apps/iperf: cleanup timer when test is terminated
Add missing cleanup timer when test is terminated.
Change-Id: I2a3d80348e942f4b2ffec9bdd6cf697c65826668
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 04:59:15 +0000 (13:59 +0900)]
apps/iperf: fix socket leak
iperf never close the iperf control socket.
Change-Id: Iad6fa4441501af956369539e5a06e3ec2555dded
Signed-off-by: Changsoon Kim <cs0424.kim@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 03:49:34 +0000 (12:49 +0900)]
apps/iperf: fix not displaying bandwidth in udp
This patch allows iperf to display bandwidth/transfer in udp rx.
Change-Id: I50378f7c6ae5da29cd5d82796b3e8ee25defba98
Signed-off-by: Byoungtae Cho <bt.cho@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 02:48:06 +0000 (11:48 +0900)]
apps/iperf: increase multisend count
Default iperf has multisend = 10, But our iperf is 1.
This causes low transmit rates.
Change-Id: I1cb592f4f10a4942325ad7fbf6c6e3361ee5297a
Signed-off-by: Byoungtae Cho <bt.cho@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 02:46:49 +0000 (11:46 +0900)]
apps/iperf: disable malloc each interval time
This patch removes memory-allocation each interval time. Iperf allocates
the memory to save their results each interval time. But RTOS has
constraint of memory usages.
Change-Id: I713d9144ca781f8af2879b64e1fd7f11bd65bd91
Signed-off-by: Byoungtae Cho <bt.cho@samsung.com>
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Parkjihoon [Thu, 27 Apr 2017 15:37:02 +0000 (00:37 +0900)]
sidk_s5jt200: cfg uses 0x04000000 address for FLASH access
There is no reason to use mirror address of FLASH, so use 0x04000000
address which is consistent with actual base address of each binary.
Change-Id: I964a910b6dc05baae63f53d22813e1aa851fe2a4
Signed-off-by: Jihoon Park <jh6186.park@samsung.com>
Bongryul Lee [Fri, 28 Apr 2017 16:01:04 +0000 (01:01 +0900)]
examples/sensorbd_demo: play a simpler scale instead of a melody
sensorbd_demo contains an example to show the PWM features S5J provides.
It generates pulse of various frequency to make a buzzer sound or
adjusts the brightness of light emitted by LEDs attached to it by
changing the duty cycle.
This commit changes frequencies and duty cycles for buzzer sound in the
sense that it would be better to play a simpler scale rather than to
play some melody.
Change-Id: Ie566ade9d52101a0feca700dc9a11f02fde5590c
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>
Bongryul Lee [Thu, 20 Apr 2017 11:56:46 +0000 (20:56 +0900)]
s5j/pwm: rework pwm lower-half driver
This commit rewrites PWM driver in completely new. Every code lines were
reviewed and then any redundant or unnecessary code lines have been
removed. This reduces binary footprints of PWM driver quite a lot as
following:
Before:
text data bss dec hex filename
1755 160 386 2301 8fd s5j_pwm.o
After:
text data bss dec hex filename
655 72 0 727 2d7 s5j_pwm.o
Change-Id: If2a4e46e47e4c2d7225abfa8419e1ccf76fb08a9
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>
Bongryul Lee [Thu, 20 Apr 2017 11:54:39 +0000 (20:54 +0900)]
drivers/pwm: update pwm upper-half driver
This commit updates the upper-half driver of PWM, synchronizing with the
latest version of NuttX. With this commit, supporting multi-channels is
added. All credits should go to many other contributors who wrote the
original patches for NuttX.
Change-Id: Iee6fae87cfbafc71c48766c434d8922a0f394024
Signed-off-by: Bongryul Lee <bongryul.lee@samsung.com>
Junhwan Park [Fri, 28 Apr 2017 09:20:35 +0000 (18:20 +0900)]
examples/sensorbd_demo: remove .o files at 'make clean'
The object files in the subdir were not deleted when the Makefile was
cleaned. This patch contains fixes for those bugs.
Change-Id: I9074ceef276b49cdc7c4071d6737fdbc990148c6
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Heesub Shin [Fri, 28 Apr 2017 09:27:12 +0000 (18:27 +0900)]
examples/sensorbd_demo: fix starterled test
Since we reworked the entire GPIO layer, 'sensorbd ledst' command have
been broken. This commit fixes it.
Change-Id: I2ca80ac611155a68d86acefceea61bfbf5146afc
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Fri, 28 Apr 2017 08:49:02 +0000 (17:49 +0900)]
artik053: sidk_s5jt200: do not override optimization level
The optimization level should be determined by .config. It should not be
redefined here. This commit fixes the issue that CONFIG_DEBUG_OPTLEVEL
is not working.
Change-Id: Ic52d2d4b37e44ce497519fc53e3593c9f96f882c
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Jin-Seong Kim [Wed, 26 Apr 2017 08:40:33 +0000 (17:40 +0900)]
external/wakaama: patch to support TCP connection on example
This commit is patch to support TCP connection on example
Change-Id: I08c41bede6520f449516ee06c99e97018ed70248
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Wed, 26 Apr 2017 08:57:36 +0000 (17:57 +0900)]
external/wakaama: wakaama core, add missed patch to support TCP/TLS as per RFC
This commit is adding missed patch to support TCP/TLS on wakaama
Change-Id: I18dd510dcb0d346e4acfaf92bc5f7ef0bc5ccfbb
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Wed, 26 Apr 2017 05:08:06 +0000 (14:08 +0900)]
external/wakaama: delete tinydtls files
This commit is patch to delete tinydtls files
- TizenRT will use mbedTLS library instead of tinydtls
so tinydtls files will not be used on TizenRT
Change-Id: I9e7857a12566a065e0d852845f6348d4a88a8fc6
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junhwan Park [Wed, 26 Apr 2017 08:09:46 +0000 (17:09 +0900)]
external/Kconfig: remove useless default statement
There is no need for 'default' statement for choice entries. This commit
suppresses warnings from kconfig-mconf.
Change-Id: I199b404ef543de7332496bd3afad2bef184ebfec
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
EunBong Song [Thu, 27 Apr 2017 02:04:48 +0000 (11:04 +0900)]
examples/eeprom_test: add missing Make.defs
This patch adds Make.defs file for eeprom_test.
Change-Id: I130ecdcf8c6bda9df2309f7ce302632683c6af25
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 00:34:21 +0000 (09:34 +0900)]
testcase: fix compilation errors in tc_net_ether.c
This patch fixes following compilation errors:
le_tc/network/tc_net_ether.c: In function 'tc_net_ether_ntoa_p':
le_tc/network/tc_net_ether.c:73:9: error: assignment makes pointer from integer without a cast [-Werror]
buffer = ether_ntoa((struct ether_addr *)sa->sa_data);
^
le_tc/network/tc_net_ether.c:54:12: error: unused variable 'intf' [-Werror=unused-variable]
FAR char *intf = "wl1";
^
cc1: all warnings being treated as errors
Change-Id: Ia5926c35f53dd411af2c8a365bbfa961b5b4e57d
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Thu, 27 Apr 2017 00:11:28 +0000 (09:11 +0900)]
testcase: remove dhcp server test from le_tc
dhcp server test in le_tc is a testcase for lwip dhcp server. TizenRT
does not support any more this. This should be re-implemented for
apps/netutils/dhcpd.
Change-Id: I9e33f317e7e48723f278bc1ac49a30e0cb040627
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:59:33 +0000 (08:59 +0900)]
testcase: fix a compilation error
This patch fixes following compilation error:
CC: le_tc/filesystem/fs_main.c
le_tc/filesystem/fs_main.c: In function 'fs_vfs_select_tc':
le_tc/filesystem/fs_main.c:1260:11: error: unused variable 'c' [-Werror=unused-variable]
int ret, c, errcnt;
^
cc1: all warnings being treated as errors
Change-Id: I98de16f27ed66905a6e217667fc819564277b89f
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:58:00 +0000 (08:58 +0900)]
apps/ramtron: fix a compilation error
This patch fixes following compilation error:
make[2]: Entering directory `/home/ebsong/tizenrt/apps/system/ramtron'
./ramtron.c:65:29: fatal error: tinyara/mtd/mtd.h: No such file or directory
#include <tinyara/mtd/mtd.h>
^
compilation terminated.
Change-Id: I8dc008f50766f58f6291191689314093df84d2da
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:56:25 +0000 (08:56 +0900)]
examples/proc_test: fix compilation error
This patch fixes following compilation errors:
make[2]: Entering directory `/home/ebsong/tizenrt/apps/examples/proc_test'
CC: proc_test_main.c
proc_test_main.c:301:5: error: function declaration isn't a prototype [-Werror=strict-prototypes]
int proc_uptime_test()
^
proc_test_main.c:323:5: error: function declaration isn't a prototype [-Werror=strict-prototypes]
int proc_version_test()
^
proc_test_main.c: In function 'proc_test_main':
proc_test_main.c:361:18: error: unused variable 'filesystem' [-Werror=unused-variable]
FAR const char *filesystem = NULL;
^
cc1: all warnings being treated as errors
Change-Id: I011224ee72aac4d04e30fd2ebeb73dc6ce99f3bd
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:54:27 +0000 (08:54 +0900)]
apps/poweroff: fix compilation errors
This patch fixes following compilation error:
make[2]: Entering directory `/home/ebsong/tizenrt/apps/system/poweroff'
./poweroff.c:57:30: fatal error: arch/board/power.h: No such file or directory
#include <arch/board/power.h>
^
compilation terminated.
Change-Id: I7cdf6e71071a286ab6de2e81ccc81218fc1b0f57
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:50:19 +0000 (08:50 +0900)]
common: get rid of assorted WICED-related debris
WICED is a legacy feature and not supported anymore.
Let's remove all related WICED.
Change-Id: I6ed3041b77cc102b74b21e754f84545831197eab
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:43:04 +0000 (08:43 +0900)]
libc/pthread: fix a compilation error
This patch fixes following compilation error:
CC: pthread/pthread_condattrsetclock.c
pthread/pthread_condattrsetclock.c:90:5: error: function declaration isn't a prototype [-Werror=strict-prototypes]
int pthread_condattr_setclock(attr, clock_id)
^
cc1: all warnings being treated as errors
make[1]: *** [bin/pthread_condattrsetclock.o] Error 1
make[1]: Leaving directory `/home/ebsong/tizenrt/lib/libc'
make: *** [libc/libc.a] Error 2
Change-Id: I1fdee78f5c3c3e2eaadaf9d7090e58794f890b64
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:27:47 +0000 (08:27 +0900)]
apps/netcmd: fix compilation errors when CONFIG_NETUTILS_TFTPC=y
This patch fixes following compilation errors:
netcmd.c: In function 'cmd_get':
netcmd.c:378:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char'
char newfilename[30];
^
netcmd.c:389:11: error: assignment makes pointer from integer without a cast [-Werror]
fullpath = get_fullpath(args.destpath);
^
netcmd.c:407:3: error: 'return' with no value, in function returning non-void [-Werror=return-type]
return;
^
netcmd.c:379:7: error: unused variable 'seek_wbuffer' [-Werror=unused-variable]
char seek_wbuffer[100];
^
netcmd.c:378:7: error: unused variable 'newfilename' [-Werror=unused-variable]
char newfilename[30];
^
netcmd.c:376:7: error: unused variable 'read_buffer' [-Werror=unused-variable]
char read_buffer[301];
^
netcmd.c:375:7: error: unused variable 'write_buffer' [-Werror=unused-variable]
char write_buffer[300];
^
Change-Id: I6fd0ed45f936d34b5425fb783c31da41739bb247
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:24:03 +0000 (08:24 +0900)]
netutils/tftpc: fix compilation errors
This patch fixes following compilation errors:
tftpc_packets.c: In function 'tftp_parseerrpacket':
tftpc_packets.c:229:14: error: unused variable 'errmsg' [-Werror=unused-variable]
const char *errmsg = (const char *)&buffer[4];
^
tftpc_packets.c:228:11: error: unused variable 'errcode' [-Werror=unused-variable]
uint16_t errcode = (uint16_t)buffer[2] << 8 | (uint16_t)buffer[3];
Change-Id: I4c63dd98a9c8da60556f5d5f2c5764aee7581e64
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 23:17:45 +0000 (08:17 +0900)]
netutils/ftpd: fix compilation errors
This patch fixes following compilation errors:
CC: ftpd.c
ftpd.c: In function 'ftpd_accept':
ftpd.c:770:6: error: unused variable 'ret' [-Werror=unused-variable]
int ret;
^
ftpd.c: In function 'ftpd_recv':
ftpd.c:791:6: error: unused variable 'status' [-Werror=unused-variable]
int status;
^
ftpd.c: In function 'ftpd_command_epsv':
ftpd.c:2748:4: error: 'else' without a previous 'if'
} else
^
Change-Id: I578f9f2e8cf0cd662b29fddf745e04f959bc25d7
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 12:38:01 +0000 (21:38 +0900)]
artik053: add three kinds of default configurations
This commit introduces three kinds of default configurations.
Change-Id: If5c9713459f47c521eb40683e3a95c5f31b0e821
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 12:13:08 +0000 (21:13 +0900)]
s5j/serial: fix compilation errors when UARTs are disabled
When CONFIG_S5J_UARTx is not set, compiler complains as following:
CC: chip/s5j_serial.c
chip/s5j_serial.c: In function 'up_setup':
chip/s5j_serial.c:1016:12: error: 'g_uart0priv' undeclared (first use in this function)
priv = &g_uart0priv;
^
chip/s5j_serial.c:1016:12: note: each undeclared identifier is reported only once for each function it appears in
chip/s5j_serial.c:1019:12: error: 'g_uart1priv' undeclared (first use in this function)
priv = &g_uart1priv;
^
chip/s5j_serial.c:1022:12: error: 'g_uart2priv' undeclared (first use in this function)
priv = &g_uart2priv;
^
chip/s5j_serial.c:1025:12: error: 'g_uart3priv' undeclared (first use in this function)
priv = &g_uart3priv;
^
Makefile:175: recipe for target 's5j_serial.o' failed
make[1]: *** [s5j_serial.o] Error 1
This commit fixes this.
Change-Id: Ifd56c89547071e1a96765e32cea984ac7234d181
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 11:52:54 +0000 (20:52 +0900)]
s5j/serial: wait until tx fifo gets empty when init
Characters printed out from eariler stage bootloader is not printed out
or printed in broken. This is because the UART is being initialized
while the Tx transmitter did not complete to send characters in FIFO. It
can be avoided if we can defer the initialization until Tx FIFO gets
empty.
Change-Id: I22bca475aec53cd222f5425417ab8c815fde8251
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 11:32:35 +0000 (20:32 +0900)]
s5j/Kconfig: remove knobs for the debug UART
Now that the debug UART is configured using CONFIG_UART4_XXX, we do not
need to have these Kconfig entries.
Change-Id: If3abb6209eb5f9ac0d15e5461e682e2a6814eb06
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 11:21:28 +0000 (20:21 +0900)]
s5j/serial: treat the debug UART as UART4
In addition to UART0-3, S5J has a special UART port for debugging
purpose. Though there is no reason to git it a special name, it is
called as UARTDBG. Treating it as UART4 simplifies other codes and looks
more consistent. For this reasons, this commit configures the debug UART
using CONFIG_UART4_XXX instead of using CONFIG_UARTDBG_XXX that is
redundantly defined in s5j/Kconfig.
Change-Id: I73cc71e779dc93070983d4d165d9e724b4febd3f
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 10:07:42 +0000 (19:07 +0900)]
s5j: drop to support S5J_DEBUG_BREAK
S5J_DEBUG_BREAK is a dirty hack that was invented to make the target
fall into the infinite loop at boot. It is convenient for us to be able
to hold the target before attaching the debugger. However, we can get
the same result in other various ways. It looks dirty. Let's drop it.
Change-Id: Ia5b30517c03571debd0432d1b24d43590d8d17ae
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 10:00:05 +0000 (19:00 +0900)]
s5j/Kconfig: reorganize hierarchy of Kconfig entries
To follow the convention that other BSPs are using, this commit
redefines several configuration knobs and reorganizes relationship
between them.
Change-Id: Ie0cbd5d6c861a221881322e0688621f66dcaf901
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Heesub Shin [Wed, 26 Apr 2017 07:29:46 +0000 (16:29 +0900)]
s5j/Kconfig: remove unnecessary Kconfig entries
We have so many legacy Kconfig entries that are not currently in use.
This makes us very confused. Let's remove them all.
Change-Id: Ic3ab07bd7d729b2ea8f9908bd7d29bf32bda943e
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Junyeon LEE [Wed, 26 Apr 2017 14:47:32 +0000 (23:47 +0900)]
external/wakaama: fix build error
This commit fixes build error in wakaama core.
Change-Id: I373f99e792dab1ad396c8ea6566b1199920041c9
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
EunBong Song [Wed, 26 Apr 2017 04:19:28 +0000 (13:19 +0900)]
net/lwip: use sem_tickwait() instead of sem_timedwait()
sem_tickwait() is a lighter version of sem_timedwait(). It's better to
use sem_tickwait() instead of sem_timedwait() for performance. In case
of loopback iperf test, bandwidth increases about 5%.
Change-Id: Idc8446cef7c7536f44cecb1d17058c1eeb42e179
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 04:15:10 +0000 (13:15 +0900)]
semaphore: Add sem_tickwait function
This patch adds sem_tickwait() function. This function is a lighter
is a lighter weight version of sem_timedwait().
All credits should go to Gregory Nutt who wrote the original commit.
Change-Id: I1af34d5f0bbdbb6eb4ded095b8fb1c61f04388f2
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
[Song: backported
12cbe147 from Nuttx]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Jin-Seong Kim [Wed, 19 Apr 2017 08:15:49 +0000 (17:15 +0900)]
external/wakaama: update core APIs to support TCP/TLS as per RFC
This commit is related to er-coap TCP/TLS support according to changes
of wakaama er-coap API, updates wakaama core APIs to support TCP/TLS
feature.
- lwm2m_context_t : added new member, coap_protocol_t protocol
- lwm2m_init2 function is newly added to intialize
coap protocol member in lwm2m_context_t
- transaction_new : added new argument, coap_protocol_t proto
- lwm2m_buffer_send : added new argument, coap_protocol_t proto
- core functions using coap_init_message, coap_parse_message
are updated
Change-Id: Icc7e3a7ac64e703255aafbab6c3f3d04dbb82cb4
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junhwan Park [Fri, 21 Apr 2017 04:06:26 +0000 (13:06 +0900)]
examples/workqueue: apply builtin in Makefile
I fixed examples/workqueue for builtin in Makefile.
Change-Id: I33420790afc02b9b46c390d61828e2a21e43679e
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Fri, 21 Apr 2017 04:05:25 +0000 (13:05 +0900)]
examples/kernel_sample: apply builtin in Makefile
I fixed examples/kernel_sample for builtin in Makefile.
Change-Id: If121a6aba69ef659e06a9f5ca47d2560251d4301
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Fri, 21 Apr 2017 04:02:58 +0000 (13:02 +0900)]
examples/hello: apply builtin in Makefile
I fixed examples/hello for builtin in Makefile
Change-Id: I26d450c4815b9a7b4e74055843a7890755a13a3f
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Wed, 19 Apr 2017 10:20:37 +0000 (19:20 +0900)]
examples/easysetup: add an application for easysetup
This patch includes an example application for easysetup.
Change-Id: Ic379a4d3c2e9600620926046e0b05ddf1bb7ac8f
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Wed, 19 Apr 2017 10:36:45 +0000 (19:36 +0900)]
examples/smart: add an application for smart
This patch includes an example application for smart.
Change-Id: Ifa16d049c8c491cd01cb861c5c599964574585d7
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
EunBong Song [Wed, 26 Apr 2017 02:09:24 +0000 (11:09 +0900)]
sidk_s5jt200: add a new defconfig, 'hello'
This patch adds 'hello' config for sidk_s5jt200. This includes only
configs needed for hello app, so this can be a reference minimum config
for sidk_s5jt200 board. Code footprint for this is ROM(36K bytes) and
RAM(4K bytes).
Change-Id: Ia50677bbacf4c8671eeac99d52bb01c0c4264e45
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 01:52:09 +0000 (10:52 +0900)]
s5j: fix a compilation error when CONFIG_S5J_PWM=n
This patch fixes compilation error when CONFIG_S5J_PWM is disabled.
Change-Id: Ice5d27d831f5f8ea382612f3ad087ca09f2be126
Signed-off-by: EunBong Song <eunb.song@samsung.com>
EunBong Song [Wed, 26 Apr 2017 01:21:12 +0000 (10:21 +0900)]
artik053: change optimization level from -O0 to -O2
This patch changes artik053's compiler optimization level to -O2.
Change-Id: I799a29f2cdf87cf80a0112b5afc47e1d14918a96
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Junyeon LEE [Tue, 25 Apr 2017 21:09:27 +0000 (06:09 +0900)]
s5j/sss: fix sss_ro_read() return value
This commit fixes the return value of sss_ro_read function.
Change-Id: I0a5c8b6476a35b9cca64597a7683db1f9362dc3a
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Tue, 25 Apr 2017 21:05:50 +0000 (06:05 +0900)]
artik053/defconfig: enable mtd ftl partition
Mtd ftl partition will be selected as a default for using sssro region.
Change-Id: Idfa2e0b7347f78632e389d75d262fed2d1f4c741
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Junyeon LEE [Tue, 25 Apr 2017 21:03:28 +0000 (06:03 +0900)]
artik053: add to handle ftl partition
This commit adds mtd ftl initialize routine in artik053_tash.c. When
partition type specified to "ftl", it is initialized by mtdftl device at
boot.
Change-Id: Icfeff198b4cafc6c62bdf256604b302b8aa9f1e6
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
EunBong Song [Tue, 25 Apr 2017 10:29:25 +0000 (19:29 +0900)]
semaphore: fix setting EINVAL in sem_post() and sem_wait()
This patch sets errno to EINVAL when sem argument is NULL in sem_post()
and sem_wait().
All credits should go to Paul A. Patience who wrote the original commit.
Change-Id: If51df37aefac2f1802f14e7c293d040e4c8d593b
Signed-off-by: Gregory Nutt <gnutt@nuttx.org>
Signed-off-by: Paul A. Patience <paul-a.patience@polymtl.ca>
[Song: backported
891113da from NuttX]
Signed-off-by: EunBong Song <eunb.song@samsung.com>
Junhwan Park [Tue, 25 Apr 2017 06:46:18 +0000 (15:46 +0900)]
examples/sensorbd_demo: fix typo
Usage spelling error was fixed.
Change-Id: I4746f7fa94b0aec4cf6d4acdb27b44f7ba1db1c3
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Junhwan Park [Tue, 25 Apr 2017 06:43:59 +0000 (15:43 +0900)]
examples/telnetd: fix telnetd daemon enable
If TELNETD is not enabled, example will not run.
Change-Id: Ib57340c81a631ba39db2847d9cf5dd4c0d7c1b1e
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Jin-Seong Kim [Wed, 19 Apr 2017 07:03:26 +0000 (16:03 +0900)]
external/wakaama: er-coap, add to support TCP/TLS as per the RFC
This commit is patch to support TCP/TLS on er-coap
RFC reference : https://tools.ietf.org/html/draft-ietf-core-coap-tcp-tls-02
- patch is available from https://github.com/artikcloud/artikcloud-lwm2m-c
- Author: Gregory Lemercier <g.lemercier@samsung.com>
Implementation required the following modifications:
- Passing the token as an argument to the registration frame
- Implementation of the "nibble" variable length header in CoAP
for TCP as detailed in the current draft of the specification.
Note that this might change later as the RFC undergoes changes
Change-Id: Id0a400d67edd28a2b9e8a9ccdace249fc11d1d2f
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Tue, 25 Apr 2017 05:50:25 +0000 (14:50 +0900)]
examples/dnsclient: add Make.defs to build application properly
This commit is to add Make.defs to build application properly
Change-Id: I81b6f6b83956921cef94084b81fabd42ee04ff02
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Mon, 24 Apr 2017 05:53:09 +0000 (14:53 +0900)]
netutils/dhcpd: add debug message for checking exceptional case
This commit is to add debug message for checking exceptional case
- checking all send messages
Change-Id: I98840b08e9ab07ad1ea31a660784d2e7a77b49ee
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junhwan Park [Tue, 25 Apr 2017 05:03:05 +0000 (14:03 +0900)]
s5j/gpio: fix incorrect pinmux configuration on UART3
The gpio pin settings of UART_3_TXD and UART_3_RXD are wrong.
GPP1_6 0x2 = UART_3_RXD
GPP1_7 0x2 = UART_3_TXD
Change-Id: I4d49479c59c96ed09febf23613b97663e7fffb04
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
Jin-Seong Kim [Tue, 25 Apr 2017 04:16:54 +0000 (13:16 +0900)]
external/wakaama: lwm2mserver, update to support TCP connection
This commit is patch to update to support TCP connection on lwm2mserver.
Change-Id: I8d7b8c1c0916914d2eed4f0bd7ea5ec4885f3f22
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Jin-Seong Kim [Wed, 19 Apr 2017 23:46:25 +0000 (08:46 +0900)]
external/wakaama: patch for connection APIs to support TCP/TLS
This commit is patch for connection APIs to support TCP/TLS
- according to updated connection APIs, client examples are updated
- patch is available from https://github.com/artikcloud/artikcloud-lwm2m-c
- Author: Gregory Lemercier <g.lemercier@samsung.com>
- RFC reference : https://tools.ietf.org/html/draft-ietf-core-coap-tcp-tls-02
Change-Id: Ieed3aab5d8b24d75975e0851952a54a3c66fa964
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
Junyeon LEE [Tue, 25 Apr 2017 04:37:50 +0000 (13:37 +0900)]
netutils/mqtt: fix a link error
This commit fixes link error by adding Make.defs.
LD: tinyara
/home/jun/tizenrt_sprint3/tizenrt/os/../build/output/libraries/libapps.a(netcmd.o): In function `.LANCHOR2':
netcmd.c:(.rodata.net_appcmds+0x1c): undefined reference to `mqtt_client_sub_main'
netcmd.c:(.rodata.net_appcmds+0x28): undefined reference to `mqtt_client_pub_main'
make[1]: *** [../build/output/bin/tinyara] Error 1
make[1]: Leaving directory `/home/jun/tizenrt_sprint3/tizenrt/os/arch/arm/src'
make: *** [pass2] Error 2
Change-Id: Ica952f718531f5138e1c3633db7d60f5b633f78d
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
Siwon Kang [Tue, 25 Apr 2017 02:04:11 +0000 (11:04 +0900)]
os/Kconfig: remove Kconfig entries for wifi demo apps
The demo app named slsidemo does not exist so the Kconfig entries for
them shall be left out.
Change-Id: I2eb76d83ce16f5677f85ee22049ba59da7669aaf
Signed-off-by: Siwon Kang <sw0809.kang@samsung.com>