Jaehoon Chung [Fri, 15 Feb 2019 11:26:00 +0000 (20:26 +0900)]
script: tizen: update the prebuilt image form snapshot
This prebuilt images are signed with snapshot nonsigned bootloader
image.
Change-Id: I2bd8d8991c6f867f9279fcffdb566d6e15856dff
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 15 Feb 2019 11:03:47 +0000 (20:03 +0900)]
script: tizen: update the prebuilt bootloader image
Update the prebuilt bootloader image with signing.
Change-Id: If2cecbfafdd412fe699de02f7ae1f43f29a048f8
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 13 Feb 2019 07:33:36 +0000 (16:33 +0900)]
configs: artik710_raptor: add env partition and loglevel
Add CONFIG_SYS_MMC_ENV_PART as 1 and loglevel as opts.
Change-Id: Ie3f33411c3f7662d9d3df67b4e7d29b249702913
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 13 Feb 2019 06:39:05 +0000 (15:39 +0900)]
configs: artik533_raptor: fix the wrong syntax about env value
Fix the wrong syntax about environment value.
Change-Id: Ib505ab88c0f5458e2609cc94c37f1476cd420ab2
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 12 Feb 2019 08:02:30 +0000 (17:02 +0900)]
configs: artik533_raptor: add loglevel as opts
Add loglevel=4 to opts.
Change-Id: I34ab96fde6f9fcbf06cfa753a96ab249ae73ca0d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 12 Feb 2019 08:01:07 +0000 (17:01 +0900)]
configs: artik533_raptor: fix the wrong environment value location
params.bin will be written to 0x1701 on mmc boot partition.
To switch partiion, add CONFIG_SYS_MMC_ENV_PART as 1.
Change-Id: I117827c02b870c3dc9f4aeb28d7f59bc74e8077f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 12 Feb 2019 07:36:56 +0000 (16:36 +0900)]
configs: artik530_raptor: add loglevel as opts.
Add logevel=4 to opts.
If someone wants to change loglevel, use opts value.
Change-Id: Id0ea30cce1d97d8410a4f29939bb102bfb625e03
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 12 Feb 2019 07:33:22 +0000 (16:33 +0900)]
configs: artik530_raptor: fix the wrong environment value location
params.bin will be written to 0x1701 on mmc boot partition.
To switch partition, add the CONFIG_SYS_MMC_ENV_PART as 1.
Change-Id: I12810391b1c49a27d3230f571727d0b91574e361
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 12 Feb 2019 03:44:39 +0000 (12:44 +0900)]
packaging: use the u-boot-dtb.bin instead of u-boot.bin
Use u-boot-dtb.bin instead of u-boot.bin.
Otherwise, it doesn't jump to bootloader.
Change-Id: Iadbac8c9c26815ede26975a2b6a71e58d7b362c0
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 29 Oct 2018 07:01:31 +0000 (16:01 +0900)]
scripts: tizen: artik530x: update the compressed file
Update the compressed file.
Change-Id: I7fde69a777fccc69935379dc7ec3cfb3523662be
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 26 Oct 2018 08:35:13 +0000 (17:35 +0900)]
scripts: tizen: ARTIK530x: Add the compressed file about migration
Add the compressed file about migration.
Developer can download this file at one time.
Change-Id: Ia2e70c4c65220fa21788a27558836903d14a23aa
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 26 Jul 2018 06:17:10 +0000 (15:17 +0900)]
scripts: tizen: artik530x: update partition map to increase user area
Update Partiton map to increase user area on artik530/530s/533s boards.
Partition size:
- ROOTFS : 2G -> 1G
- SYSTEM-DATA : 1G -> 1G
- USER : 600M -> 1.6G
Change-Id: I0dcd407a016811549f7c2d1326790f76a513e89e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Thu, 19 Jul 2018 05:34:36 +0000 (14:34 +0900)]
configs: artik533: define system and user partition number
Remove the hard-coding partition number.
Instead, define system and user partion number as config.
Change-Id: I7a72611ab369546709cb7a2a93c2ce29edcc5f1f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 18 Jul 2018 01:53:04 +0000 (10:53 +0900)]
scripts: tizen: artik533s: update images relevant to sd booting
Update images relevant to SD booting.
These prebuilt images are taken from ARTIK github.
(https://github.com/SamsungARTIK/boot-firmwares-artik533s)
Change-Id: Iad52606949a740eb1ac36bda3a62e7985e31ecae
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 26 Jun 2018 08:29:49 +0000 (17:29 +0900)]
scripts: tizen: artik533s: update the boot.img that added the compy dt
Add the boot.img that added the compy device-tree.
Update to latest zImage.
Change-Id: I00dfb87007b761f76ba97ff84c78a43ab2ac462a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Mon, 4 Jun 2018 06:30:30 +0000 (15:30 +0900)]
gadget: f_thor: fix hang-up with ctrl-c
After the commit
6aae84769a0b ("gadget: f_thor: Fix memory leaks of
usb request and its buffer"), there is hang-up with ctrl-c in some
udc. It is because req of out_ep is freed before out_ep is disabled.
Fix hang-up with ctrl-c by disabling ep before free req of the ep.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
[sw0312.kim: cherry-pick from mainline
- dwc2 case, it did not hang-up, but there is delay]
Change-Id: I123119e62b219d578fba1d42b7327d765424466c
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>
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>
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>
Dongil Park [Fri, 24 Aug 2018 05:47:27 +0000 (14:47 +0900)]
artik711s_raptor: configs: enable CONFIG_S5P6818_WATCHDOG
This patch enables CONFIG_S6P6818_WATCHDOG which kicks watchdog from
early stages when cpu initialized and disable watchdog when autoboot
aborted by user.
Change-Id: I7f887c04a80f8c9061fa42f41fb8c38a49a521b5
Signed-off-by: Dongil Park <dongil01.park@samsung.com>
Dongil Park [Fri, 24 Aug 2018 05:46:44 +0000 (14:46 +0900)]
autoboot.c: Disable watchdog when autoboot aborted
This patch disable watchdog when autoboot aborted by user.
Change-Id: I76699c9ca22123a49ebd3e9d5239301252bd53b9
Signed-off-by: Dongil Park <dongil01.park@samsung.com>
Dongil Park [Fri, 24 Aug 2018 05:42:34 +0000 (14:42 +0900)]
arm: nexell: add watchdog reset()
This patch adds watchdog_reset() for s5p6818. Watchdog should be
disabled when it needed. And Watchdog will be kicked when cpu
initialized.
Change-Id: I3e9232a250ab5517822db8c28f0091bd46bf52e2
Signed-off-by: Dongil Park <dongil01.park@samsung.com>
Sowon Na [Fri, 10 Aug 2018 01:00:01 +0000 (10:00 +0900)]
arm: dts: artik530: optimize shift of eMMC
This patch modifies drive_shift and sample_shift of eMMC.
The drive_shift can have from 0 to 3 values. The meanings of the
values are degree of the phase shifted clock.
0: 0 degree phase shifted clock
1: 90 degree phase shifted clock
2: 180 degree phase shifted clock
3: 270 degree phase shifted clock
In the same as drive_shift, the sample_shift can have values as 0
to 3. The meanings of values are also the same.
There are sometimes fastboot fail with some targets, and this patch
solves it.
Change-Id: Id375b393e045a1dde41c9321900571b37dc76953
Signed-off-by: Sowon Na <sowon.na@samsung.com>
Sowon Na [Fri, 10 Aug 2018 00:51:26 +0000 (09:51 +0900)]
arm: dts: artik710: optimize shift of eMMC
This patch modifies drive_shift and sample_shift of eMMC.
The drive_shift can have from 0 to 3 values. The meanings of the
values are degree of the phase shifted clock.
0: 0 degree phase shifted clock
1: 90 degree phase shifted clock
2: 180 degree phase shifted clock
3: 270 degree phase shifted clock
In the same as drive_shift, the sample_shift can have values as 0
to 3. The meanings of values are also the same.
There are sometimes fastboot fail with some targets, and this patch
solves it.
Change-Id: I05ccd615f032c7f65f52f293a2b3d9ba111d9bd3
Signed-off-by: Sowon Na <sowon.na@samsung.com>
Sowon Na [Fri, 10 Aug 2018 00:08:32 +0000 (09:08 +0900)]
arm: dts: artik711s: optimize shift of eMMC
This patch modifies drive_shift and sample_shift of eMMC.
The drive_shift can have from 0 to 3 values. The meanings of the
values are degree of the phase shifted clock.
0: 0 degree phase shifted clock
1: 90 degree phase shifted clock
2: 180 degree phase shifted clock
3: 270 degree phase shifted clock
In the same as drive_shift, the sample_shift can have values as 0
to 3. The meanings of values are also the same.
There are sometimes fastboot fail with some targets, and this patch
solves it.
Change-Id: I15164f8473fb52f5cc6aecc62602b016c0fcc117
Signed-off-by: Sowon Na <sowon.na@samsung.com>
Chanho Park [Wed, 11 Jul 2018 11:17:43 +0000 (20:17 +0900)]
board: nexell: artik-mac: omit confused characters
This patch changed ARTIK mac address generation mechanism according
to the ARTIK S/N changes. The 'O' and 'I' can be confused with 0 and 1.
So, the characters will not be used for the ARTIK serial number.
Change-Id: Ifda2a81889fd9210836ff58ad75f70b63aeaeefb
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Sowon Na [Thu, 12 Jul 2018 19:24:16 +0000 (04:24 +0900)]
arm: dts: artik710: modify shift of eMMC
This patch modifies drive_shift and sample_shift of eMMC.
The drive_shift can have values as 0 to 3. The value "0" means
degree 0, "1" means degree 90, "2" means degree 180 and "3" means
degree 270. In the same as drive_shift, the sample_shift can have
values as 0 to 3. The meanings of values are also the same.
There is sometimes eMMC read fail during booting, and it occured
because of end-bit error. This patch solves it.
Change-Id: I06e6a840df4ecac7d5c82e40b74ebc580b9027c0
Signed-off-by: Sowon Na <sowon.na@samsung.com>
Sowon Na [Thu, 12 Jul 2018 19:21:51 +0000 (04:21 +0900)]
arm: dts: artik711s: modify shift of eMMC
This patch modifies drive_shift and sample_shift of eMMC.
The drive_shift can have values as 0 to 3. The value "0" means
degree 0, "1" means degree 90, "2" means degree 180 and "3" means
degree 270. In the same as drive_shift, the sample_shift can have
values as 0 to 3. The meanings of values are also the same.
There is sometimes eMMC read fail during booting, and it occured
because of end-bit error. This patch solves it.
Change-Id: I3bd771db851e33da64c233a9ff369e2226deabec
Signed-off-by: Sowon Na <sowon.na@samsung.com>
Sowon Na [Wed, 11 Jul 2018 01:45:59 +0000 (10:45 +0900)]
arm: dts: artik530: modify shift of eMMC
This patch modifies drive_shift and sample_shift of eMMC.
The drive_shift can have values as 0 to 3. The value "0" means
degree 0, "1" means degree 90, "2" means degree 180 and "3" means
degree 270. In the same as drive_shift, the sample_shift can have
values as 0 to 3. The meanings of values are also the same.
There is sometimes eMMC read fail during booting, and it occured
because of end-bit error. This patch solves it.
Change-Id: I655453541154f2ef651a1f51bb00fd85e13687e9
Signed-off-by: Sowon Na <sowon.na@samsung.com>
Jaewon Kim [Fri, 29 Jun 2018 06:38:59 +0000 (15:38 +0900)]
arm: dts: artik530: increase clock freq for mmc
This patch increase clock freq to 100Mhz for mmc.
nexell sdmmc controller supports clock speeds up to 50Mhz.
And to make 50Mhz phase shifted clock, input clock should be 100Mhz.
Change-Id: I74549a9eef595e3164eff360776581a1411da4f3
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
Jaewon Kim [Fri, 29 Jun 2018 02:26:21 +0000 (11:26 +0900)]
arm: dts: artik710: increase clock freq for mmc
This patch increase clock freq to 100Mhz for mmc.
nexell sdmmc controller supports clock speeds up to 50Mhz.
And to make 50Mhz phase shifted clock, input clock should be 100Mhz.
Change-Id: Ia62148a369568527846d8de9cb62dde2a1d3283e
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
Jaewon Kim [Fri, 29 Jun 2018 02:20:21 +0000 (11:20 +0900)]
arm: dts: artik711s: increase clock freq for mmc
This patch increase clock freq to 100Mhz for mmc.
nexell sdmmc controller supports clock speeds up to 50Mhz.
And to make 50Mhz phase shifted clock, input clock should be 100Mhz.
Change-Id: Id8ccfdf4169bb18b8087ebab21705b8ede32352f
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
Sungwoo Park [Tue, 19 Jun 2018 13:05:09 +0000 (22:05 +0900)]
artik: configs: Change fastboot download buffer size
This patch changes fastboot download buffer size to fix problem that
fastboot downloaded data breaks u-boot code memory.
Change-Id: I07e38f0c93acdaf70330f9f4c5f3d89710356de0
Signed-off-by: Sungwoo Park <swpark@nexell.co.kr>
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
Sungwoo Park [Fri, 24 Mar 2017 01:01:52 +0000 (10:01 +0900)]
common: ext4_img_write: Fix bug in writing large file
This patch fixes up bug that large file size of more than 32MB written
by write_raw_chunk is broken.
This issue is fixed by copying data from download buffer to temporary
buffer and write by WRITE_SECTOR size(32MB).
Change-Id: I045122c2d63e69ffded8a0e250e0b93a84110aa9
Signed-off-by: Sungwoo Park <swpark@nexell.co.kr>
Signed-off-by: Youngbok Park <ybpark@nexell.co.kr>
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
Heesub Shin [Wed, 18 Apr 2018 09:08:37 +0000 (18:08 +0900)]
artik53x,artik305: make dtb separated from u-boot.bin
Now that the DTB corruption issue has been resolved, it is okay to use
CONFIG_OF_SEPARATE=y which is U-BOOT default. So, let's remove
CONFIG_OF_EMBED from all the remaining configurations.
README.md is also amended to reflect this change.
Change-Id: I46a7a5dd21f1ad7de3cdb33bcb0c92aec0719687
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Chanho Park [Wed, 18 Apr 2018 11:12:20 +0000 (20:12 +0900)]
artik711s_raptor: configs: enable OF_BOARD_SETUP
This patch enables CONFIG_OF_BOARD_SETUP to fix up fdt blob during
boot-up.
Change-Id: I9531aeee7bf494964c6290c69fde0b3997769583
Signed-off-by: Chanho Park <chanho61.park@samsung.com>