Nikolai Merinov [Wed, 13 Feb 2019 11:54:44 +0000 (14:54 +0300)]
Use GCC for compilation
Nikolai Merinov [Wed, 13 Feb 2019 11:39:48 +0000 (14:39 +0300)]
Pass system CC to makefile
Nikolai Merinov [Wed, 13 Feb 2019 11:35:07 +0000 (14:35 +0300)]
Use system CC for HOSTCC
Jaehoon Chung [Thu, 31 May 2018 07:51:21 +0000 (16:51 +0900)]
scripts: tizen: artik533s: update the bootloader.img and params.bin
Update the prebuilt images about bootloader and params.bin file.
It's for supporting the eagleye artik530s board.
Change-Id: Ibd4eee5f1c0a1224a43f2c65821e7318e652b3c6
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 31 May 2018 02:10:56 +0000 (11:10 +0900)]
configs: artik533_raptor: add the compy board in dfu_alt
To support the compy board, add the compy board in dfu_alt.
It's to download the devicetree file with thor tool.
Change-Id: I9446b72bb7fd9688c184ffe63f3feecf5ad90751
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Fri, 25 May 2018 05:21:01 +0000 (14:21 +0900)]
gadget: f_thor: Fix memory leaks of usb request and its buffer
There are memory leaks of usb request and its buffer for ep0,
in_ep, and out ep. Fix memory leaks of usb request and its buffer.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
[sw0312.kim: backport from mainline commit to fix memory leak issue in thordown]
Change-Id: I90ed1995f8ec227aae7a1c67e304d55ae71a25eb
Seung-Woo Kim [Wed, 4 Apr 2018 07:55:49 +0000 (16:55 +0900)]
configs: artik533_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: I383186758f23be422a1d1df149c144973a20b341
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Tue, 27 Mar 2018 04:53:42 +0000 (13:53 +0900)]
packaging: artik530: add the artik533s packaging
Add the artik533s packaging.
*NOTE
- ARTIK533S is using the diffrent configuration with ARTIK530S.
- ARTIK530S : artik530_raptor_legacy_defconfig
- ARTIK533S : artik533_raptor_defconfig
- If someone wants to build artik533s, needs to change a config name.
- This is packaging just the prebuilt image.
Change-Id: Ib0faae5540d25545174c4b2726ca8346bbea3ff7
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 27 Mar 2018 02:04:31 +0000 (11:04 +0900)]
scripts: tizen: artik533s: add the prebuilt image for os_3.2.0
Add the prebuilt image about artik533s os_3.2.0.
ARTIK533S is the ARTIK530S model with 1GB RAM.
Note:
- ARTIK530S - 512MB RAM
- ARTIK533S - ARTIK530S with 1GB RAM
Change-Id: Ia77c6c8e29be566914acd7c213ad0e0e19278856
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 26 Mar 2018 08:15:59 +0000 (17:15 +0900)]
configs: artik533_raptor_defconfig: disable CONFIG_ARTIK_OTA
Disable CONFIG_ARTIK_OTA.
Tizen doesn't provide the ota feature.
(If it needs to support this feature in Tizen, it will enable this
configuration in future.)
Change-Id: I47218199ac15b616b09c8ddbc1dde862b97460c6
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 26 Mar 2018 06:48:53 +0000 (15:48 +0900)]
configs: artik533_raptor: enable the signature configuration
Enable the CONFIG_SIG for checking the tizen specific signature.
Change-Id: Ifbadbc4b62dc02ef12ffd1f85188802d334555a6
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 26 Mar 2018 06:38:18 +0000 (15:38 +0900)]
configs: artik533_raptor: add the ramdisk booting for tizen
Add the ramdisk booting for tizen specific ramdisk image.
Change-Id: I7d5445b854cfe9e2b8cf889622e6f75df6fb95de
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 26 Mar 2018 05:22:50 +0000 (14:22 +0900)]
configs: artik533_raptor: update the dfu list for tizen
Update the dfu list for tizen specific image.
Change-Id: I73234937f6a92785b7b4be28ade4fccf48bdd736
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 26 Mar 2018 04:00:14 +0000 (13:00 +0900)]
tools: mkimage_signed: add the artik533 board support
Add the support artik533 board with mkimage_signed.sh for Tizen.
(ARTIK533 is an artik530 board with 1GB RAM.)
Change-Id: Idbe35c5e64e4edee7c1d83715f9fe30c96732f68
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 11 Jan 2018 05:53:18 +0000 (14:53 +0900)]
script: tizen: artik530: add the boot.img for tizen
Add the boot.img for tizen os_3.0.0.
Change-Id: I5c7cc9f1ffc13c63473933e483a70f78ee030e22
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Thu, 7 Dec 2017 03:19:13 +0000 (12:19 +0900)]
script: tizen: artik530/710: update wrong url in README files
In the README files, there were wrong url links. Update the urls.
Change-Id: I38bdb9f1d771b22fa19c684c52f410e77facee25
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Wed, 6 Dec 2017 10:15:37 +0000 (19:15 +0900)]
packaging: update the spec file for packaging non-singed image
It needs to sign the bootloader image since OS_3.0.0.
Include the nonsigned-xxxx.img in rpm packages.
Modify the spec file to release the prebuilt image about each boards.
Change-Id: Id7fe5a794b0526ba25a16a427c02763244f8de8d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 6 Dec 2017 10:02:35 +0000 (19:02 +0900)]
script: tizen: artik530s: add the boot.img for tizen
Add the boot.img for tizen.
Change-Id: Id6afa4600a60d51184f6af10dc65e43c3b316c20
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 6 Dec 2017 05:19:22 +0000 (14:19 +0900)]
script: tizen: artik530: update the bootloader.img
Update the bootloader.img as latest version.
Change-Id: I2ce84fb01f114d7aa24fc20bf450ae910602218e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 6 Dec 2017 05:02:21 +0000 (14:02 +0900)]
script: tizen: artik710: add the prebuilt image for os_3.0.0
To update the OS_3.0.0, add the prebuilt image.
Read the READM.A710_os_3.0.0.
Change-Id: Ie8b245eec5080918bc4e8658eee3f516baad6372
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 6 Dec 2017 04:26:01 +0000 (13:26 +0900)]
script: tizen: artik710s: add the prebuilt image for tizen
ARTIK710S is introduced since OS_3.0.0.
It needs to migrate to tizen specific image from DS version.
This patch is for providing the tizen specific images.
Read the README.A710S_os_3.0.0.
Change-Id: I412e0e695f19dc80b3bdc111d7455d664f9ba368
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 23 Nov 2017 05:42:51 +0000 (14:42 +0900)]
script: tizen: artik710: add the prebuilt image for os_2.0.0
Current ARTIK710 tizen is using the DS release version 2.0.0.
Because this is not the latest version, some boards need to downgrade to
os_2.0.0.
This patch is for provide the downgrading.
*Usage:
-Target side:
artik710# fastboot 0
-Host side:
$./flash_boot_for_tizen.sh
This is for only Tizen Platform.
**** NOTE: This is not ARTIK710S ****
Change-Id: I97f13171749a89ac394321c5b7f85fb7b90c11f9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 5 Dec 2017 10:17:24 +0000 (19:17 +0900)]
scripts: tizen: artik530s: add the prebuilt image for os_3.0.0
Add the prebuilt image to migrate to OS_3.0.0 on ARTIK530S target.
Change-Id: I1071d7f8be6b34fc5438970bc13497c966ee0a5c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 4 Dec 2017 11:15:00 +0000 (20:15 +0900)]
script: tizen: artik530: update the prebuilt image about os_1.0.0
Update the prebuilt image about os_1.0.0.
This image is supported the checking tizen specific signature.
Change-Id: Iec0c2134216861a3d7f23d3088138765e8aade2d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 4 Dec 2017 10:44:33 +0000 (19:44 +0900)]
artik710: set the booting device in environment value
set_booting_device should 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: I7c2bf0caf45e1dfe53a8e1ee0e611f13099baf09
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 4 Dec 2017 09:34:34 +0000 (18:34 +0900)]
configs: artik710_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 or fota mode.
Change-Id: I2e331a558bca84b39942753e552073475464e370
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 4 Dec 2017 09:32:48 +0000 (18:32 +0900)]
artik710: check the ALIVESCRATCH7 register to determine reboot mode
Check the ALIVESCRATCH7 register to determine reboot mode
(download/fota/recovery).
Change-Id: I2a045eb7fbeaea5b3b7306ecdafb3148bd4ae3cf
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 4 Dec 2017 10:58:21 +0000 (19:58 +0900)]
artik530: modify how to read the boot device
It's changed the reading boot device.
- Refer to below:
commit
6d2fdb585eb2 "board: artik530_ratpor: modify read boot device"
Change-Id: I1148ce2bc7b8498f2c9672697ddb36193da6cb60
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 30 Nov 2017 07:19:20 +0000 (16:19 +0900)]
scripts: tizen: artik530: add the prebuilt image for os_3.0.0
ARTIK has released A530_OS_3.0.0.
In ordoer to use the OS_3.0.0, tizen needs to migrate to OS_3.0.0
images.
*Usage:
-Target side:
artik530# fastboot 0
-Host side:
$./flash_boot_for_tizen.sh
This is for only Tizen platform.
Change-Id: I62c6a3bd5d414e36a8b050a13f5226ee27f5812f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 27 Nov 2017 04:24:10 +0000 (13:24 +0900)]
artik: update to os_3.0.0 according to Artik release verion
OS_3.0.0 is difference with low version.
ARTIK530 is changed the nexell header size from 512bytes to 1K.
Signature OS version also needs to change to os_3.0.0.
Change-Id: Iba7c3d66d93678dad53d988d0c0047bb691ce4e9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 24 Nov 2017 01:35:59 +0000 (10:35 +0900)]
tools: mkimage_signed: remove the version as defined the hard-cording
Remove the version information as defined the hard-coding.
Just use the version information of argument.
Change-Id: I4067bcd560cedc2f9e9bb46c8bc33482ea5a85f2
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 24 Nov 2017 01:30:09 +0000 (10:30 +0900)]
packaging: artik7: add the os_version information
Add the os_version information as 2.0.0.
it's used the argument about mkimage_signed script.
Change-Id: Ie2e1c04b3ded2d6db50dd224b768d78c65f8f93f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 24 Nov 2017 01:25:18 +0000 (10:25 +0900)]
packaging: artik530: add the os_version information
Add the os_version information as 1.0.0.
It is used the argument about mkimage_signed script.
Change-Id: Idc4cbd9289d18dbf157f78f90f97d1f48b129192
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 24 Nov 2017 01:17:50 +0000 (10:17 +0900)]
tools: mkimage_signed: use the version information that passed by argument
If version information changed, it needs to modify the script everytime.
It's too difficult that developer should knows the version information.
It's just changed to use the version information that passed by
argument.
Change-Id: I8e87b25557859ad731a3ed667fe52906205ecc5a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 23 Nov 2017 09:58:22 +0000 (18:58 +0900)]
tools: mkimage_signed: change the variable name to sig-version
sig-product doesn't clarify what it means.
It changes the name from sig-product to sig-version.
Also fixed the minor things.
Change-Id: Ida4c379dff0958d01e86738b67022534f150bcaa
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 22 Nov 2017 11:20:20 +0000 (20:20 +0900)]
configs: artik710: enable the signature configuration
Enable the CONFIG_SIG for checking the tizen specific signature.
Change-Id: I603a91167237fda22196e002f39fde05d9b3ecc5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 22 Nov 2017 11:17:56 +0000 (20:17 +0900)]
packaging: artik7: sign the u-boot.bin with mkimage_signed script
Signed the u-boot.bin with mkimage_signed script.
The tizen specific signature header should be added.
Change-Id: Ic9bdbda079cc98dee5031794c2a21f20e4c06b4b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 22 Nov 2017 11:14:17 +0000 (20:14 +0900)]
tools: mkimage_signed: add the artik710 version as 2.0.0
Current ARTIK7 version is A710_OS_2.0.0.
To check the os version, set the sig-product as 2.0.0.
It needs to remain the 1120byte for generating fip-nonsecure.img.
- Nexell header (1K) + FIP header (96bytes) = 1120byte
Change-Id: Icc214310bd68ae51eb2a49c62806982c19e07e78
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 22 Nov 2017 11:11:53 +0000 (20:11 +0900)]
misc: sig_header: support the artik710 board
Add the bootloader name about "fip-nonsecure.img" as artik710
bootloader.
Change-Id: Ia04380a0e49b3e1f29e4e7974b70ea30cd6d3b9a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 21 Nov 2017 11:26:47 +0000 (20:26 +0900)]
configs: artik530_raptor: enable the signature configuration
Enable the CONFIG_SIG for checking the tizen specific signature.
Change-Id: If1b07f031ecb34fd88c7efc7a022268d392fec9d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 21 Nov 2017 11:24:48 +0000 (20:24 +0900)]
packaging: artik530: sign the u-boot.bin with mkimage_singed script
Signed the u-boot.bin with mkimage_signed script.
The tizen specific signature header should be added.
Change-Id: I1d8f2df947e45155ef2739ddbce906ab410372d7
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 21 Nov 2017 11:08:09 +0000 (20:08 +0900)]
tools: mkimage_signed: add the artik530 version as 1.0.0
Current ARTIK version is A530_OS_1.0.0.
To check the os version, set the sig-product as 1.0.0.
Nexell generates its own signature header with 512bytes.
It needs to remain the 512bytes for generating bootloader.img
Change-Id: Iaa7e3c6e4824f6853db64f2041456e104f767853
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 22 Nov 2017 06:46:52 +0000 (15:46 +0900)]
misc: sig_header: support the artik530 board
Add the bootloader name about "bootloader.img" as artik530 bootloader.
ARTIK530 board has its own nexell header, so it needs to calculate the
extra size.
This patch is to avoid the risk that the wrong OS version of bootloader
is flashed.
Change-Id: I50d816f135543f897bc012519e8e8cd744b0f012
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 20 Nov 2017 06:09:37 +0000 (15:09 +0900)]
misc: sig_header: add the checking board signature
This patch is based on Inha's patch.
Refer to commit
dae47ef49af9
"gadged: thor: add board signatrue check when download 'u-boot-mmc.bin"
Changed from orignal version:
- Moved the location from samsung board directory to misc driver directory
First version added by:
Signed-off-by: Inha Song <ideal.song@samsung.com>
Upgrade:
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Change-Id: Ia63fe8fd71b8c26ce20507e8126183ab4c55644c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 13 Nov 2017 06:44:27 +0000 (15:44 +0900)]
tools: mkimage_signed: Add artik boards support
This patch is for supporting artik boards with mkimage_signed.sh
Change-Id: I798980ef31b288883288803728fbc356ff7d29f9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Przemyslaw Marczak [Thu, 10 Apr 2014 13:03:40 +0000 (15:03 +0200)]
tools: add script: mkimage_signed.sh for sign u-boot binary
This script appends given binary image by signature header.
Script takes two arguments:
- @arg1: binary name
- @arg2: config name
Script usage:
./mkimage_signed.sh binary.img config_name
e.g.:
./mkimage_signed.sh u-boot-dtb.bin trats2_config
Sign header is stored on last 512 bytes of input binary.
Maximum imput binary size is 1MB - 512 Bytes =
1048064 Bytes.
The maximum size is limited by first bootloader (s-boot).
Now it is configured to load exactly 2048 blocks (1MB).
Current u-boot-dtb.bin size for trats2 is less than 600 KBytes,
so the size limit should not be an issue.
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
tool:mkimage_signed: add tizen_defconfig support
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
tool: mkimage_signed: Add odroid-xu3_defconfig support
This patch add odroid-xu3_defconfig for Odroid XU3 board.
Signed-off-by: Inha Song <ideal.song@samsung.com>
[jh80.chung: Cherry-pick from u-boot of tizen tree to use mkimage_singed.sh]
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I7463fc47dd85c08a508ec76ead60bc4479b805b3
Jaehoon Chung [Fri, 10 Nov 2017 06:16:03 +0000 (15:16 +0900)]
script: tizen: artik530: add the prebuilt image for os_1.0.0
Current Tizen is used the DS release version 1.0.0.
This version is too old, so some boards need to downgrade to os_1.0.0.
This patch is for providing the downgrading.
*Usage:
-Target side:
artik530# fastboot 0
-Host side:
$./flash_boot_for_tizen.sh
This is for only Tizen Platform.
Change-Id: Ia39f8d2e962936eee67b639ee0512019c04060d4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 8 Nov 2017 08:00:36 +0000 (17:00 +0900)]
configs: artik710_raptor: fix the dfu list issue
Remove the unnecessary dfu list.
Also there is not defined about modulespart. Add the variable of modulespart.
Change-Id: I567805d7797de3f10647fc043858da8ace430ca0
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
eunggu kim [Tue, 7 Nov 2017 05:37:51 +0000 (14:37 +0900)]
packaging : provide nexell tool for build image file for artik710
provide nexell tool for build image file for artik710.
Change-Id: Id0590c334c587c0fd644a1d9d789ab5f5f49d7ea
Signed-off-by: eunggu kim <egukim@dignsys.com>
Jaehoon Chung [Tue, 24 Oct 2017 10:51:34 +0000 (19:51 +0900)]
artik530: check the ALIVESCRATCH7 register to determine reboot mode
If kernel sets the reboot mode at ALIVESCRATCH7 register, bootloader
should check it to enter proper mode (e.g., download/fota/recovery).
Check the ALIVESCRATCH7 register to determine reboot mode.
Change-Id: Ia30f562f9c2fd8c07c27df53299171e8721bccc5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Junghoon Kim [Thu, 2 Nov 2017 04:41:00 +0000 (13:41 +0900)]
configs: artik530_raptor: support fota bootmode
Support fota bootmode in the booting script.
Change-Id: Ie9e87e0223394173cc025f32e76997a189ad3f23
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Junghoon Kim [Wed, 1 Nov 2017 07:59:42 +0000 (16:59 +0900)]
configs: artik530_raptor: increase the ramdisk size upon recovery booting
To support ramdisk-recovery booting, the ramdisk size should also be
fixed properly.
Increase the ramdisk size as 12 MB upon recovery booting.
Change-Id: I1f4f80cb37063bcb693c69c575c5bf6a11e4f2a5
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
Seung-Woo Kim [Thu, 26 Oct 2017 09:50:51 +0000 (18:50 +0900)]
configs: artik710_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: 13e7938507b1 ("configs: artik710_raptor: fix wrong consoleon/consoleoff commands")
Change-Id: I3c1cd40079dc653495764d1e76b5a2af5a5d12df
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>