profile/common/platform/kernel/u-boot-artik7.git
7 years agoconfigs: artik530_raptor: fix crashed env
Seung-Woo Kim [Thu, 26 Oct 2017 09:45:44 +0000 (18:45 +0900)]
configs: artik530_raptor: fix crashed env

There ware two adjacent terminating characters, "\0" in
CONFIG_EXTRA_ENV_SETTINGS, so extracting env was crashed.
Fix the crashed env by using just one terminationg character.

Fixes: 4079a389a810 ("configs: artik530_raptor: fix wrong consoleon/consoleoff commands")
Change-Id: Ia5ac94972ef80afd5821322e6c5c10f2c64f1a27
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoconfigs: artik530_raptor: support the booting ramdisk-recovery image
Jaehoon Chung [Thu, 19 Oct 2017 03:38:06 +0000 (12:38 +0900)]
configs: artik530_raptor: support the booting ramdisk-recovery image

If bootmode is recovery and there is a ramdisk-recovery.img, then it can
be booted to ramdisk-recovery mode.
This patch is for booting ramdisk-recovery image.

Change-Id: Ie2357be45b2a17b214736b50689c207a7d8204b2
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoconfigs: artik710_raptor: add default dfu environments
Seung-Woo Kim [Fri, 20 Oct 2017 12:46:30 +0000 (21:46 +0900)]
configs: artik710_raptor: add default dfu environments

Add default dfu environments with the first usb interface, mmc
storage, and the first mmc insterface to use thordown command
without parameters.

Change-Id: I5e65ae08882d7e6cb5a45180267eb88521fcbb93
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoconfigs: artik530_raptor: add default dfu environments
Seung-Woo Kim [Fri, 20 Oct 2017 12:43:50 +0000 (21:43 +0900)]
configs: artik530_raptor: add default dfu environments

Add default dfu environments with the first usb interface, mmc
storage, and the first mmc insterface to use thordown command
without parameters.

Change-Id: If6ecf2d2b74545084b2fe8d18628a4f60d81f619
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agothor:cmd: get the default command arguments from environment
Przemyslaw Marczak [Thu, 12 Jun 2014 08:20:59 +0000 (10:20 +0200)]
thor:cmd: get the default command arguments from environment

This change adds support to getting the default DFU cmd line
arguments from the environment.

DFU and THOR uses the same command line arguments,
so the DFU command environment setup can be used also with THOR.

Change-Id: I2e0984c909147c13191f6d6646d094c9f02c392a
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
[sw0312.kim: backport the commit c72d99621f57 from platform/kernel/u-boot.git
 - change filename to common/cmd_thordown.c]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoconfigs: artik710_raptor: fix wrong consoleon/consoleoff commands
Seung-Woo Kim [Fri, 20 Oct 2017 11:23:17 +0000 (20:23 +0900)]
configs: artik710_raptor: fix wrong consoleon/consoleoff commands

From env, consoleon and consoneoff commands are defined with "='
when using setenv, so those commands can not be run. Fix wrong
consoleon and consoleoff commands by using proper setenv command.

Change-Id: Ib43be038998cefdb37813d6f375d31ad1ace2f8d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoconfigs: artik530_raptor: fix wrong consoleon/consoleoff commands
Seung-Woo Kim [Fri, 20 Oct 2017 11:20:48 +0000 (20:20 +0900)]
configs: artik530_raptor: fix wrong consoleon/consoleoff commands

From env, consoleon and consoneoff commands are defined with "='
when using setenv, so those commands can not be run. Fix wrong
consoleon and consoleoff commands by using proper setenv command.

Change-Id: Iee70839587ee6fac65656150950099d1673ab7ba
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoconfigs: artik710_raptor: add the ramdisk-recovery in dfu list
Jaehoon Chung [Wed, 18 Oct 2017 08:36:18 +0000 (17:36 +0900)]
configs: artik710_raptor: add the ramdisk-recovery in dfu list

To flash ramdisk-recovery with thor, add the ramdisk-recovery in dfu list.

Change-Id: I57eb63ebbcb148d2647e185a2b70b37bf408973d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoconfigs: artik530_raptor: add the ramdisk-recovery in dfu list
Jaehoon Chung [Wed, 18 Oct 2017 08:33:22 +0000 (17:33 +0900)]
configs: artik530_raptor: add the ramdisk-recovery in dfu list

To flash ramdisk-recovery with thor, add the ramdisk-recovery in dfu list.

Change-Id: I4eb308ec2d52a2cab1ecb77b492edd95bcd2fd25
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoartik530: set the booting device in environemnt value
Jaehoon Chung [Wed, 27 Sep 2017 06:06:10 +0000 (15:06 +0900)]
artik530: set the booting device in environemnt value

set_booting_device shoud be set dynamically after checking OM pin.
eMMC boot - bootdev = mmcblk0 (rootdev = 0)
SD boot   - bootdev = mmcblk1 (rootdev = 1)

The 'bootdev' env variable should be passed to kernel side after including
it in cmdline.

Change-Id: Ib24351a87050d11bac39b26269f152e05acd4426
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoconfigs: artik710_raptor: fix to boot with ramdisk if existing
Seung-Woo Kim [Mon, 11 Sep 2017 05:31:04 +0000 (14:31 +0900)]
configs: artik710_raptor: fix to boot with ramdisk if existing

The ramdisk file is only loaded and not used booting rootfs. So fix
to boot with ramdisk if existing.

Change-Id: I5fc4f5405a417b3208ddf93df5e897362e0bcaf1
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoconfigs: artik530_raptor: fix to boot with ramdisk if existing
Seung-Woo Kim [Mon, 11 Sep 2017 05:27:44 +0000 (14:27 +0900)]
configs: artik530_raptor: fix to boot with ramdisk if existing

The ramdisk file is only loaded and not used booting rootfs. So fix
to boot with ramdisk if existing.

Change-Id: I117369e1c7ec94642bd0248e54d5f7f43ddc04fa
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agopackaging: artik: support the artik530s for tizen
Jaehoon Chung [Thu, 31 Aug 2017 11:15:12 +0000 (20:15 +0900)]
packaging: artik: support the artik530s for tizen

ARTIK530S is supported the signing bootloader and TEXT_BASE is changed.
Added the prebuilt codesigner image and modified spec file.

config file is also changed from artikXXX_raptor_config to
artikXXX_raptor_legacy_config.
artikxxx_raptor_config is provided OTA feature.
But it doesn't need to enable yet. (Use the lecagy config files.)

Support the artik530s for tizen.

Change-Id: I61e09f0f5a4cc075c466f179a42456d3925f4d51
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agopackaging: artik530: fix typo
jino.cho [Fri, 7 Apr 2017 06:55:58 +0000 (15:55 +0900)]
packaging: artik530: fix typo

Target board was not booting because of this typo.

Change-Id: I6610c9d70aebf8e185b75ccc6045e1b99b7f316a
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoartik530_raptor: configs: add raw ramdisk booting
jino.cho [Tue, 28 Feb 2017 08:44:06 +0000 (17:44 +0900)]
artik530_raptor: configs: add raw ramdisk booting

This patch adds to support raw ramdisk image.

 - enable CONFIG_SUPPORT_RAW_INITRD
 - add "ramdisk.img" in the CONFIG_DFU_ALT list

Change-Id: I79ddb3bc142f155e2ce1c493d024b363d6e9c381
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoartik710_raptor: configs: add raw ramdisk booting
jino.cho [Tue, 28 Feb 2017 08:38:40 +0000 (17:38 +0900)]
artik710_raptor: configs: add raw ramdisk booting

This patch adds to support raw ramdisk image.

 - enable CONFIG_SUPPORT_RAW_INITRD
 - add "ramdisk.img" in the CONFIG_DFU_ALT list

Change-Id: I58773dddb590476c9ee354c2af11086c941df780
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoartik530_raptor: configs: modify dfu list for tizen
jino.cho [Thu, 9 Feb 2017 08:46:53 +0000 (17:46 +0900)]
artik530_raptor: configs: modify dfu list for tizen

This patch adds 'system-data' and 'user' partitions in the dfu_alt_info.

Change-Id: I3ef7b913c438ea7d24d2db984708c6019f27e7be
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agof_thor: fixes 32byte limit of a file name length
jino.cho [Wed, 11 Jan 2017 02:38:42 +0000 (11:38 +0900)]
f_thor: fixes 32byte limit of a file name length

The str_data, a member of rqt_box structure, have 5 arrays of 32 byte in
length. Currently, a file name is limited to 32 bytes because the code
considers using just one array of the str_data for a file name. But, the
lthor can send a file name that is grater than 32 bytes. Whether it is a bug
or not, we have to transfer a long name file in this project. So, this
commit allows to send a file with a file name length of 64 - 1 bytes
temporarily. Since the rqt_box structure is __packed type, str_data has
contiguous memory and does not cause memory problems.

Change-Id: Id7380ffc5bfb398cf4049e584561943a0d1349e7
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agoartik710_raptor: configs: modify dfu list for tizen
jino.cho [Wed, 11 Jan 2017 02:36:22 +0000 (11:36 +0900)]
artik710_raptor: configs: modify dfu list for tizen

This patch adds 'system-data' and 'user' partitions and removes unused
file list in the dfu_alt_info.

Change-Id: I266ba3d877ef1e70ed2d5b9cec95fb60c5b8821b
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agopackaging: add artik530 tizen build
jino.cho [Mon, 7 Nov 2016 06:43:21 +0000 (15:43 +0900)]
packaging: add artik530 tizen build

This patch supports tizen rpmbuild for artik530 and modify artik710
build.

Change-Id: I33fbb92284b69eb1c85f2f3274bfdbf63e0e7c66
Signed-off-by: jino.cho <jino.cho@samsung.com>
7 years agopackaging: add artik710 tizen build
jinocho00 [Wed, 3 Aug 2016 02:19:47 +0000 (11:19 +0900)]
packaging: add artik710 tizen build

This patch supports tizen rpmbuild for artik710.

Change-Id: Iba62269fc38b3a2e88b582fcca83171ba4d86f50
Signed-off-by: jinocho00 <jino.cho@samsung.com>
7 years agoarm: s5p6818: set pad functions for debug console
Chanho Park [Tue, 6 Feb 2018 11:53:28 +0000 (20:53 +0900)]
arm: s5p6818: set pad functions for debug console

This patch adds to initialize gpio pad functions according to debug
console serial IDs. Actually, the debug console has been initialized
from bl1 stage. However, to change the bl1 binary only for the debug
console seemed to be not necessary. For a developer who want to use
a different debug console IDs, we also initialize the GPIO pad
functions in the u-boot stage.

Change-Id: I61da0f1192d4ce55f135ae68cd56a31869ac5266
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agoartik305: configs: add UART4 base address
Chanho Park [Tue, 6 Feb 2018 11:23:05 +0000 (20:23 +0900)]
artik305: configs: add UART4 base address

This patch adds the UART4 base address for the artik305. The s5p4418
SoC has five uart ports and the UART4 has been exposed in the GPIO
header. It can be possible to make the UART4 is one of the debug
console of u-boot.

Change-Id: I7856e952a383260f662b41e16a3b51c19b8832ad
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agoartik533: configs: add UART4 base address
Chanho Park [Tue, 6 Feb 2018 11:22:40 +0000 (20:22 +0900)]
artik533: configs: add UART4 base address

This patch adds the UART4 base address for the artik533. The s5p4418
SoC has five uart ports and the UART4 has been exposed in the GPIO
header. It can be possible to make the UART4 is one of the debug
console of u-boot.

Change-Id: I87d08bce7c7f642da724dbbb9f99d4e13a745c0e
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agoartik530: configs: add UART4 base address
Chanho Park [Tue, 6 Feb 2018 11:18:54 +0000 (20:18 +0900)]
artik530: configs: add UART4 base address

This patch adds the UART4 base address for the artik530. The s5p4418
SoC has five uart ports and the UART4 has been exposed in the GPIO
header. It can be possible to make the UART4 is one of the debug
console of u-boot.

Change-Id: I8158cdeeaff52841508f6067214770f143dbfb40
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agoarmv7/s5p4418: set pad functions for debug console
Chanho Park [Mon, 29 Jan 2018 12:07:41 +0000 (21:07 +0900)]
armv7/s5p4418: set pad functions for debug console

This patch adds to initialize gpio pad functions according to debug
console serial IDs. Actually, the debug console has been initialized
from bl1 stage. However, to change the bl1 binary only for the debug
console seemed to be not necessary. For a developer who want to use
a different debug console IDs, we also initialize the GPIO pad
functions in the u-boot stage.

Change-Id: Iac1c7dd0e75f4ca1f2b88978c0ecb5c8739a8486
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agoupdate README.md according to artik530 u-boot change
Chanho Park [Thu, 29 Jun 2017 02:23:40 +0000 (11:23 +0900)]
update README.md according to artik530 u-boot change

This patch updates the README.md file according to artik530 u-boot
changes such as partition and text base changes.

Change-Id: Ic4f7d1deee5ec64c0c836db31efe10858796435b
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agoupdate README.md for artik530 github source release
Chanho Park [Mon, 6 Feb 2017 04:56:05 +0000 (13:56 +0900)]
update README.md for artik530 github source release

Change-Id: Iad088570c2eac3b550ac311673b59ae3426d0709
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agoREADME: install device-tree-compiler package
Chanho Park [Wed, 4 Jan 2017 10:31:47 +0000 (19:31 +0900)]
README: install device-tree-compiler package

This patch adds device-tree-compiler package installation
for dtc.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agoadd README.md for artik710
Chanho Park [Thu, 24 Nov 2016 12:01:02 +0000 (21:01 +0900)]
add README.md for artik710

This patch adds README.md markdown file for github documentation.

Change-Id: I98f85a6e6f47b84a5f33ab37721f03f6254e3020
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agoboard: nexell: mac: change the year offset of A305s model
Sooman Jeong [Fri, 19 Jan 2018 01:13:26 +0000 (10:13 +0900)]
board: nexell: mac: change the year offset of A305s model

This patch changes the year offset of A305s from 2017 to 2018
for generating ethernet MAC address.
Since we didn't produce this model on 2017, we should change
this offset to 2018 to prevent waste of address space.

Change-Id: Iaabf956adb131923bc3ba3c7db9f9cec2e86b5c9
Signed-off-by: Sooman Jeong <sm5.jeong@samsung.com>
7 years agommc: dw_mmc: nexell: use snprintf function
Chanho Park [Wed, 10 Jan 2018 05:37:48 +0000 (14:37 +0900)]
mmc: dw_mmc: nexell: use snprintf function

This patch converts the sprintf function to the snprintf function to
detect buffer overflow.

Change-Id: Ic962a5f9e36cab11de83d4e1887bf74129358dd4
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agocommon: sd_recovery: use snprintf function
Chanho Park [Wed, 10 Jan 2018 05:32:57 +0000 (14:32 +0900)]
common: sd_recovery: use snprintf function

This patch converts the sprintf function to the snprintf function to
check buffer overflow.

Change-Id: I88be367c92802bac02ee084320218cf5b7f025bb
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agocommon: sd_recovery: use strlcpy instead of strcpy
Chanho Park [Wed, 10 Jan 2018 05:21:24 +0000 (14:21 +0900)]
common: sd_recovery: use strlcpy instead of strcpy

This patch converts the strcpy function to strlcpy to prevent buffer
overflow.

Change-Id: Id3d053806b89f76e13eede858d90ee47b8d37c0a
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agocommon: ext4_img_write: use snprintf function
Chanho Park [Wed, 10 Jan 2018 05:07:26 +0000 (14:07 +0900)]
common: ext4_img_write: use snprintf function

This patch converts the sprintf function to the snprintf function to
check buffer overflow.

Change-Id: I063a231da95d1897e9060ba776f20386b0c6a802
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agoarm: nexell: return -EINVAL if there is no argument
Chanho Park [Wed, 10 Jan 2018 04:25:25 +0000 (13:25 +0900)]
arm: nexell: return -EINVAL if there is no argument

This patch fixes a potential error by checking the static analysis
tool. If the 'id' has NULL value, the str will have also the NULL value
so it could be faulty of strncmp comparison.

Change-Id: I31db77f63c38daaa85a7214012396ca2a1dd5440
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agofastboot: reduce fastboot chunk size
Jaewon Kim [Tue, 9 Jan 2018 06:13:21 +0000 (15:13 +0900)]
fastboot: reduce fastboot chunk size

The Windows fastboot utility will fail if the time exceeded
during one chunk processed. So, this patch reduce chunk size.

Change-Id: I845004642239ad1f86e8dcd3ce5858999a3b2c85
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoartik: configs: add explicit type conversion
Jaewon Kim [Tue, 9 Jan 2018 06:55:15 +0000 (15:55 +0900)]
artik: configs: add explicit type conversion

This patch add explicit type conversion to prevent integer overflow.

Change-Id: Ib5b596b4d83d2f36f126345269dc94019e5cc394
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agousb: dwc2-otg: remove unused variable
Masahiro Yamada [Wed, 14 Dec 2016 05:30:12 +0000 (14:30 +0900)]
usb: dwc2-otg: remove unused variable

GCC 6.1 complains about this.

drivers/usb/gadget/dwc2_udc_otg.c:72:19: warning: 'driver_desc'
defined but not used [-Wunused-const-variable=]
 static const char driver_desc[] = DRIVER_DESC;
                   ^~~~~~~~~~~

Change-Id: I5daecf50e2cef6a4a785091f847d8a39199e299b
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
7 years agoboard: artik533: fix sensorid check
Jaewon Kim [Fri, 29 Dec 2017 05:26:18 +0000 (14:26 +0900)]
board: artik533: fix sensorid check

This patch fixes to check sensorid on ARTIK533 Raptor board.

Change-Id: I16929c1acddeaf17dacc60b2757d1df7712429a2
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoartik533: compy: support indicator LED
Jaewon Kim [Wed, 6 Dec 2017 10:44:00 +0000 (19:44 +0900)]
artik533: compy: support indicator LED

This patch turns off indicator LED during booting.
And sends board type information on bootargs.

Change-Id: I9fdb0c97953b595b53ff49a9d6f9ba494dc17712
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoartik533: configs: support compy board
Jaewon Kim [Tue, 31 Oct 2017 08:46:42 +0000 (17:46 +0900)]
artik533: configs: support compy board

This patch checks the board_type and loads the device-tree
for the compy board.
The compy board uses the same bootloader and kernel,
and the device-tree is separate.

Change-Id: I0b3c6026f571547c741dd6218400d117737d2338
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoboard: artik533: compy: support new board
Jaewon Kim [Tue, 31 Oct 2017 08:31:03 +0000 (17:31 +0900)]
board: artik533: compy: support new board

This patch supports new artik533 module based compy board.
It checks gpio and setup board_type env for compy.

Change-Id: I6c418a83cb9bc5a6b2c5a50b4768a5425fb4f2b1
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agodts: artik: remove sub board name
Jaewon Kim [Fri, 27 Oct 2017 10:45:07 +0000 (19:45 +0900)]
dts: artik: remove sub board name

Sub board name has been removed because there is no change of bootloader
even if sub board is changed.

Change-Id: I0236094a355630523d2f22590fb5eebef7ae1e85
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoarmv7/s5p4418: remove conflicting register access
Dongil Park [Wed, 15 Nov 2017 05:47:11 +0000 (14:47 +0900)]
armv7/s5p4418: remove conflicting register access

This patch removes conflicting register access which can make a wrong
cold booting. Currently alive scratch register used for both resume
signature and checking boot sequence but it can cause the conflict.
We should remove this codes which using alive scratch register for
checking boot sequence to avoid scratch register corruption.

Change-Id: I67e509a909b25a095629d7f8a4f5d63849f8958a
Signed-off-by: Dongil Park <dongil01.park@samsung.com>
7 years agoartik305: configs: add SELinux enable parameter
Sowon Na [Wed, 23 Aug 2017 05:51:25 +0000 (14:51 +0900)]
artik305: configs: add SELinux enable parameter

This patch adds "selinux=1" boot parameter. It can enable SELinux but
it will be not enabled by default and it could be enabled from yocto
configuration.

Change-Id: If410bd6fc00bf9bc2f522f81d1dc1c7cb6d9dfd9
Signed-off-by: Sowon Na <sowon.na@samsung.com>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agoboard: nexell: mac: change board type
Jaewon Kim [Thu, 7 Sep 2017 08:21:07 +0000 (17:21 +0900)]
board: nexell: mac: change board type

Artik533 and Artik305 model have changed to security-enhanced model.

Change-Id: I5234b8b26f59923885a30f79ea898bf1a9d00d7c
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoext4: Fix handling of sparse files
Stefan Brüns [Sat, 5 Nov 2016 21:17:14 +0000 (22:17 +0100)]
ext4: Fix handling of sparse files

A sparse file may have regions not mapped by any extents, at the start
or at the end of the file, or anywhere between, thus not finding a
matching extent region is never an error.

Found by python filesystem tests.

[This patch committed to flash image that filled with zero]
Committed-by: Jaewon Kim <jaewon02.kim@samsung.com>
Change-Id: Icb45dccd6dfbdbd45166b1e4006dd392e55c36b4
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
7 years agoartik533: configs: modify the u-boot text-base
Dongil Park [Thu, 27 Jul 2017 07:53:40 +0000 (16:53 +0900)]
artik533: configs: modify the u-boot text-base

This patch changes the base address as memory size changes,
and has modified the text base where u-boot works.

Change-Id: I51c702bd6f64a532cc206615da533b4a00825398

7 years agoartik533: configs: add drm_panel args
Jaewon Kim [Wed, 5 Jul 2017 06:02:25 +0000 (15:02 +0900)]
artik533: configs: add drm_panel args

This patch restore deleted args "drm_panel".
If DRM config enabled in kernel, it checks continuously.

Change-Id: I4527d6b6e423b5f6268a69f0894184d21b43f7df
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoartik533_raptor: configs: use artik530 shell prompt
Chanho Park [Mon, 3 Jul 2017 08:03:03 +0000 (17:03 +0900)]
artik533_raptor: configs: use artik530 shell prompt

This patch changes the shell prompt of the artik533_raptor to
"artik530#" to keep the compatibility with artik530.

Change-Id: I186159f3bd3c114131c7176e643ee584ae93634c
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agocommon: sd_recovery: remove ununsed function
Jaewon Kim [Thu, 29 Jun 2017 07:04:59 +0000 (16:04 +0900)]
common: sd_recovery: remove ununsed function

This patch removes unused function.
'sdcard_mmc_check_part_table' is no longer called.

Change-Id: Id29997518baecf0e25e9c2e3f598d7ef7e3bf726
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoartik530: configs: enable board type check
Jaewon Kim [Wed, 28 Jun 2017 12:41:51 +0000 (21:41 +0900)]
artik530: configs: enable board type check

This patch enables board type check function for artik530 series board.

Change-Id: I92a85ed8000ac382a353365d770fb97641ec3c57
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoboard: artik530_raptor: adds board type check
Jaewon Kim [Wed, 28 Jun 2017 11:04:29 +0000 (20:04 +0900)]
board: artik530_raptor: adds board type check

This patch adds board type check function to distinguish artik530 and artik533.

Change-Id: I2a5c85ea2b532a1f7877363f729ac9449a56c1ed
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoartik533_raptor: configs: add new config
Jaewon Kim [Wed, 28 Jun 2017 09:33:14 +0000 (18:33 +0900)]
artik533_raptor: configs: add new config

This patch adds new defconfig file to support new artik533 board.

Change-Id: I5d2263b972be3960566acb86eb11f27da1d981cc
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoartik533: configs: initial board support
Jaewon Kim [Wed, 28 Jun 2017 09:32:08 +0000 (18:32 +0900)]
artik533: configs: initial board support

This patch adds new board config file to support Artik533 raptor board.

Change-Id: If7e8be9644dfca104201cc4ac082e4144f9a3643
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agodts: artik533: add new artik533 dts file
Jaewon Kim [Wed, 28 Jun 2017 09:29:05 +0000 (18:29 +0900)]
dts: artik533: add new artik533 dts file

This patch adds s5p4418 based artik533 raptor dts file.
Artik533 board is very similary to Artik530 board.

Change-Id: I6a46f8f450d570abf56963c9d2d09b4be1f3a01c
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agodts: s5p4418: add artik common dtsi
Jaewon Kim [Wed, 28 Jun 2017 09:25:38 +0000 (18:25 +0900)]
dts: s5p4418: add artik common dtsi

This patch adds "s5p4418-artik530-raptor-common.dtsi" common dtsi file
to support derived model.

Change-Id: Ic3d4c5d05e5416052ec59e17dd406af9e6b9b295
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agocommon: sd_recovery: partitioning every recovery
Jaewon Kim [Mon, 26 Jun 2017 12:28:02 +0000 (21:28 +0900)]
common: sd_recovery: partitioning every recovery

This patch partitions when encountering the fisrt fs partition.
In lagacy code, when there is a difference between the partition
of mmc and sdcard, newly partitioned.
In this case, It ignores previous partition.

Change-Id: I9081f2068c52fc5ff1af4f3a7215ed516d6e15af
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
7 years agoartik305: configs: clear local variable after load_fdt
Chanho Park [Thu, 22 Jun 2017 07:21:24 +0000 (16:21 +0900)]
artik305: configs: clear local variable after load_fdt

This patch clears local variables such as success, number and loop of
load_fdt command to avoid invalid environment corruption. After
execution "run load_fdt" command on the u-boot shell, it will keep the
local variables. When a user run "saveenv" command in the situation,
it will cause invalid fdt load due to dirty local variables.

Change-Id: Id65262c5d06beabfcc640c62d66d99a7a8b835f0
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agoartik530: configs: clear local variable after load_fdt
Chanho Park [Thu, 22 Jun 2017 07:21:00 +0000 (16:21 +0900)]
artik530: configs: clear local variable after load_fdt

This patch clears local variables such as success, number and loop of
load_fdt command to avoid invalid environment corruption. After
execution "run load_fdt" command on the u-boot shell, it will keep the
local variables. When a user run "saveenv" command in the situation,
it will cause invalid fdt load due to dirty local variables.

Change-Id: I3ac80a85101c1de7babbe43c0c1fa8ff5ede804a
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
7 years agoartik710: configs: clear local variable after load_fdt
Chanho Park [Thu, 22 Jun 2017 07:16:54 +0000 (16:16 +0900)]
artik710: configs: clear local variable after load_fdt

This patch clears local variables such as success, number and loop of
load_fdt command to avoid invalid environment corruption. After
execution "run load_fdt" command on the u-boot shell, it will keep the
local variables. When a user run "saveenv" command in the situation,
it will cause invalid fdt load due to dirty local variables.

Change-Id: I1788167e087a00001785015a952743db8d502c79
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoboard: nexell: artik305: remove unused variable
Jaewon Kim [Mon, 19 Jun 2017 14:39:30 +0000 (23:39 +0900)]
board: nexell: artik305: remove unused variable

This patch removes unused variable to avoid build warning.

Change-Id: Ib0810cfd30fda52185d7498b0ff3f8572afe5655
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoartik305_raptor: configs: add new config
Jaewon Kim [Mon, 19 Jun 2017 12:26:30 +0000 (21:26 +0900)]
artik305_raptor: configs: add new config

This patch adds new defconfig file to support new artik305 board.

Change-Id: I622c2a8237a6667e71e697c4bb78ac0329c5e977
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agodts: s5p4418: artik305_raptor: add new dts for artik305
Jaewon Kim [Mon, 19 Jun 2017 12:23:15 +0000 (21:23 +0900)]
dts: s5p4418: artik305_raptor: add new dts for artik305

This patch adds s5p4418 based artik305 raptor dts file.
Artik305 board is very similar to Artik530.

Change-Id: I763d83161389021a9ebfa9212e3bae84f34bd055
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoartik305_raptor: configs: initial board supports
Jaewon Kim [Mon, 19 Jun 2017 12:20:27 +0000 (21:20 +0900)]
artik305_raptor: configs: initial board supports

This patch adds new board config file to support Artik305 raptor board.

Change-Id: I3557ce967aabd99487bc59a032619546a1fbf7a5
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoboard: nexell: artik305: Add support new board
Jaewon Kim [Mon, 19 Jun 2017 12:15:56 +0000 (21:15 +0900)]
board: nexell: artik305: Add support new board

This patch adds support for Nexell S5p4418 based Artik305 board.
Artik305 board is very similar to Artik530.

Change-Id: Ia0e496d4cb91b53443eb36ee41c2a87b9d537e6c
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agommc: dw_mmc: nexell: increase gpio strength for mmc
Jaewon Kim [Fri, 16 Jun 2017 08:04:10 +0000 (17:04 +0900)]
mmc: dw_mmc: nexell: increase gpio strength for mmc

When GPIO strength value is default, some SDCard is not recongnized.
So, This patch increases gpio strength for mmc.

Change-Id: Ib73582f1bfe368ad674209d8ecd225db6761e17c
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoboard: nexell: mac: add new board type
Jaewon Kim [Mon, 12 Jun 2017 11:00:46 +0000 (20:00 +0900)]
board: nexell: mac: add new board type

This patch adds new ARTIK533 and ARTIK305 board type.
And update correct OUI mac address.

Change-Id: Ie1a70eea4fc56c70604979046d8c9c190f4b7282
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoboard: artik530_raptor: enable MAC generator feature
Jaewon Kim [Wed, 24 May 2017 07:24:24 +0000 (16:24 +0900)]
board: artik530_raptor: enable MAC generator feature

This patch enables MAC generator feature for artik530_raptor board.

Change-Id: I12141758351a217683690dc13072566e07dc3896
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoboard: artik710_raptor: enable MAC generator feature
Jaewon Kim [Tue, 23 May 2017 08:12:35 +0000 (17:12 +0900)]
board: artik710_raptor: enable MAC generator feature

This patch enables MAC generator feature for artik710_raptor board.

Change-Id: I3919e09fc88db1635c582095421d8e58ae91b4a2
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoboard: nexell: add MAC Generator feature
Jaewon Kim [Tue, 23 May 2017 08:10:39 +0000 (17:10 +0900)]
board: nexell: add MAC Generator feature

This patch adds MAC generator feature.
MAC generated using artik unique serial number.

Change-Id: I6ff56c53c7f916c8d1ef3827a954e78908393492
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoboard: nexell: gather nexell soc in same vendor folder
Jaewon Kim [Fri, 19 May 2017 10:18:56 +0000 (19:18 +0900)]
board: nexell: gather nexell soc in same vendor folder

This patch gathers splitted nexell soc board
in same nexell vendor folder to avoid code duplication.

Change-Id: I4aef78fa320e02313cff84a8a0f567c95cab7e6f
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoartik710_raptor: configs: fix wrong defined incormation
Jaewon Kim [Tue, 23 May 2017 04:31:40 +0000 (13:31 +0900)]
artik710_raptor: configs: fix wrong defined incormation

'CONFIG_FLAG_INFO_ADDR' variable should defined
when ARTIK_OTA feature is enabled.

Change-Id: I0fe2761feacd535b78789138df10361d53179d3b
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoartik530_raptor: configs: add FLAG address
Jaewon Kim [Tue, 23 May 2017 01:19:18 +0000 (10:19 +0900)]
artik530_raptor: configs: add FLAG address

This patch adds CONFIG_FLAG_INFO_ADDR define
to remove dependency of driver.

Change-Id: I8cb015b80d5c6ee21aa3264fa9318823527bee42
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoarm: nexell: fix type casting warning
Jaewon Kim [Thu, 18 May 2017 07:03:35 +0000 (16:03 +0900)]
arm: nexell: fix type casting warning

Compile Warning Message
- cast from pointer to integer of different size [-Wpointer-to-int-cast]

This patch adds (uintptr_t) type casting
to change pointer variable to u32.

Change-Id: I9424b826d7818830e3c86612cfbcd82775238d44
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoartik710_raptor: configs: add sdboot dfu information
Chanho Park [Mon, 15 May 2017 02:05:36 +0000 (11:05 +0900)]
artik710_raptor: configs: add sdboot dfu information

This patch adds sdboot partition information for dfu downloading.

Change-Id: Idcb1f08435b4a0f63f5f2835e26b7ac341824612
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoartik710_raptor: configs: determine dfu_alt_info on runtime
Chanho Park [Mon, 15 May 2017 02:00:58 +0000 (11:00 +0900)]
artik710_raptor: configs: determine dfu_alt_info on runtime

This patch changes CONFIG_DFU_ALT information to evaluate them on
runtime. During running the dfu command, the information will be
evaluated by $bootpart, $modulespart and $rootpart variables.

Change-Id: I240cb4013eaecb70a6475581d7e039d2127aac4e
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoboard: artik710_raptor: override set_dfu_alt_info
Chanho Park [Mon, 15 May 2017 01:59:21 +0000 (10:59 +0900)]
board: artik710_raptor: override set_dfu_alt_info

This patch defines set_dfu_alt_info to evaluate the environment
variables on runtime. Typically, the dfu_alt_info can be determined
statically on compile time. To convert the values on runtime, the
setenv command can evaluate the variables.

Change-Id: I9b1f5b9ae6f54b687456469162beb30e9f84b055
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoartik710_raptor: configs: promote ota configuration
Jaewon Kim [Mon, 15 May 2017 02:05:14 +0000 (11:05 +0900)]
artik710_raptor: configs: promote ota configuration

This patch sets the ota configuration as default of artik710 raptor
board. The original configurations have been moved to
artik710_raptor_legacy_defconfig.

Change-Id: I3e325ca5e19b329632e29d42a355d415d312bf18
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agocommon: usb_down: fix usb download for secure
DeokJin Lee [Mon, 8 May 2017 08:12:22 +0000 (17:12 +0900)]
common: usb_down: fix usb download for secure

The settings associated with the secure feature are not
configurable in non-secure mode. When doing usb down, you
should use smc call for tie-off setting.

Change-Id: Ib908bbedd39da5ddd303f6e9e18e7a2414d1b314
Signed-off-by: DeokJin Lee <truevirtue@nexell.co.kr>
8 years agoartik710_raptor: configs: add new config file for ota
Jaewon Kim [Tue, 2 May 2017 08:57:47 +0000 (17:57 +0900)]
artik710_raptor: configs: add new config file for ota

This patch adds new config file.
This config file enables CONFIG_ARTIK_OTA feature.

Change-Id: I9e50e7518b511a91a87a251eb2b696fdd0d853fc
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoartik710_raptor: configs: enable update check
Jaewon Kim [Tue, 2 May 2017 08:54:58 +0000 (17:54 +0900)]
artik710_raptor: configs: enable update check

This patch enables update check feature to support OTA(Over The Air).
If updated partition failed to booting, this patch changes booting partition
to backuped boot partition.

Change-Id: Iea70fe32de6da239d5e934ca64a99d580dc99ae8
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoboard: artik710_raptor: add update check feature for ota
Jaewon Kim [Tue, 2 May 2017 06:59:46 +0000 (15:59 +0900)]
board: artik710_raptor: add update check feature for ota

This patch adds update check feature to support OTA(Over the Air).
This feature checks booting state information in FLAG partition.
If booting failed on updated partition,
partition changes to backuped boot partition.

Change-Id: I18591e409fcaae8024082119ca5fc07e37790955
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoartik530_raptor: configs: promote ota configuration
Chanho Park [Tue, 25 Apr 2017 01:45:17 +0000 (10:45 +0900)]
artik530_raptor: configs: promote ota configuration

This patch sets the ota configuration as default of artik530 raptor
board. The original configurations have been moved to
artik530_raptor_legacy_defconfig.

Change-Id: I61feef91485df31ac18398d758f4d4ee0f6d47ec
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoartik530_raptor: configs: add sdboot dfu information
Chanho Park [Tue, 25 Apr 2017 00:56:25 +0000 (09:56 +0900)]
artik530_raptor: configs: add sdboot dfu information

This patch adds sdboot partition information for dfu downloading.

Change-Id: Ie517897ca592536b238fabf7f1091203a2944f9f
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoartik530_raptor: configs: determine dfu_alt_info on runtime
Chanho Park [Mon, 24 Apr 2017 13:42:18 +0000 (22:42 +0900)]
artik530_raptor: configs: determine dfu_alt_info on runtime

This patch changes CONFIG_DFU_ALT information to evaluate them on
runtime. During running the dfu command, the information will be
evaluated by $bootpart, $modulespart and $rootpart variables.

Change-Id: I34c3cc381702ccd64754cfaed6a37bae65eeb1a6
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoboard: artik530_raptor: override set_dfu_alt_info
Chanho Park [Mon, 24 Apr 2017 13:37:31 +0000 (22:37 +0900)]
board: artik530_raptor: override set_dfu_alt_info

Thie patch defines set_dfu_alt_info to evaluate the environment
variables on runtime. Typically, the dfu_alt_info can be determined
statically on compile time. To convert the values on runtime, the
setenv command can evaluate the variables.

Change-Id: Icad4d64c7250f748a99b6a8d296a557ab27e4bbb
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoboard: artik530_raptor: ota: write modulesboot env
Chanho Park [Mon, 24 Apr 2017 12:32:11 +0000 (21:32 +0900)]
board: artik530_raptor: ota: write modulesboot env

This patch supports to write the modulesboot environment variable for
ota update.

Change-Id: Ia76c83d211616973daa3422a8caaf8cef67f16ba
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoboard: artik530_raptor: factor out update_partition_env
Chanho Park [Mon, 24 Apr 2017 12:17:39 +0000 (21:17 +0900)]
board: artik530_raptor: factor out update_partition_env

This patch factors out duplicate codes from ota codes of artik530.

Change-Id: I71cabd52f8dff216176e32668454a913a7e93e56
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoartik530: configs: add modulespart env
Chanho Park [Mon, 24 Apr 2017 12:07:21 +0000 (21:07 +0900)]
artik530: configs: add modulespart env

This patch adds "modulespart" environment variable on artik530
configurations. It will be used to detect modules partition number by
ota update.

Change-Id: I15e7652756c43d6bd47d8c301298039dbb371d84
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoartik530_raptor: configs: add new config file for ota
Jaewon Kim [Wed, 29 Mar 2017 10:05:53 +0000 (19:05 +0900)]
artik530_raptor: configs: add new config file for ota

This patch adds new config file.
This config file enables CONFIG_ARTIK_OTA feature.

Change-Id: I528fd626276a115d681c6be225761c30edc0be3b
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoartik530_raptor: configs: enable update check
Jaewon Kim [Wed, 29 Mar 2017 01:40:18 +0000 (10:40 +0900)]
artik530_raptor: configs: enable update check

This patch enables update check feature to support OTA(Over The Air).
If updated partition failed to booting, this patch changes booting partition
to backuped boot partition.

Change-Id: I04987f1c3766d5062aa55ff29ed88bf8b3a67358
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoboard: artik530_raptor: add update check feature for ota
Jaewon Kim [Wed, 29 Mar 2017 01:22:34 +0000 (10:22 +0900)]
board: artik530_raptor: add update check feature for ota

This patch adds update check feature to support OTA(Over the Air).
This feature checks booting state information in FLAG partition.
If booting failed on updated partition,
partition changes to backuped boot partition.

Change-Id: Id6484f0d5307f15b36f9f23e03d424a3e8d3feb5
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agocommon: sd_recovery: increase maximum partition number
Jaewon Kim [Fri, 18 Nov 2016 09:46:39 +0000 (18:46 +0900)]
common: sd_recovery: increase maximum partition number

This patch increase maximum partition number
to support platform with many partitions.

Change-Id: I0eeb11e0624e9a77af369aa765ec3a81c87a7630
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
8 years agoarmv7: s5p4418: move elf section before bss_start
Chanho Park [Wed, 29 Mar 2017 09:33:00 +0000 (18:33 +0900)]
armv7: s5p4418: move elf section before bss_start

This patch moves dyn* sections which can be used by
diagnostic tool before bss_start to avoid overlap bss
section.

Change-Id: I1876625a90dd04f91a195173ceec81380ab141ae
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoRevert "armv7: s5p4418: make _end compiler-generated"
Chanho Park [Wed, 29 Mar 2017 01:32:00 +0000 (10:32 +0900)]
Revert "armv7: s5p4418: make _end compiler-generated"

This reverts commit 3b010ab774413480a4fb98ff42db3b7a1d697a62
because it cannot boot from u-boot.

Change-Id: I1fdbdf83838629fbc21c03f8fec42c60e4260b8f
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoarmv7: s5p4418: make _end compiler-generated
Chanho Park [Tue, 28 Mar 2017 14:38:13 +0000 (23:38 +0900)]
armv7: s5p4418: make _end compiler-generated

This patch fixes compilation error when we use yocto gcc 6.2.
The dynsym area can be overrapped from bss area. This patch
generates bss end mark by compiler.
Actually, it has been already fixed in arch/arm/cpu/u-boot.lds.

d0b5d9: arm: make _end compiler-generated

This prevents references to _end from generating absolute
relocation records.

This change is binary invariant for ARM targets.

Change-Id: Iea4001a6199c675186e9ef335f4c0c74282e63b0
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agousb: host: ehci: samsung: fix wrong register value
Hyunseok Jung [Thu, 2 Mar 2017 05:32:31 +0000 (14:32 +0900)]
usb: host: ehci: samsung: fix wrong register value

This patch fixes wrong register value.
HOST_SS_FLADJ_VAL_HOST register controls the length
of the frame and affects SOF.

Change-Id: I7d4597cf558349c35c6c8451f3b2be91eb973cb8
Signed-off-by: Hyunseok Jung <hsjung@nexell.co.kr>
8 years agomach/nexell: fix mismatch of usb tieoff list between s5p4418 and s5p6818
Hyunseok Jung [Thu, 23 Feb 2017 08:16:44 +0000 (17:16 +0900)]
mach/nexell: fix mismatch of usb tieoff list between s5p4418 and s5p6818

This patch fix mismatch of usb tieoff list between s5p4418 and s5p6818.
and fix build fail of artik710 by this.

Change-Id: I214fe4bac1d9382a1bbba29c733715ae9d3d91c4
Signed-off-by: Hyunseok Jung <hsjung@nexell.co.kr>