platform/kernel/u-boot.git
4 years agosamsung: tizen_rpi: change rebootparam address 31/217931/1
Jaehoon Chung [Sun, 17 Nov 2019 23:52:42 +0000 (08:52 +0900)]
samsung: tizen_rpi: change rebootparam address

Change rebootparam address from 0x02700000 to 0x02100000.
0x02700000 is used as ramdisk_addr_r.

Change-Id: Iee69f582b44cbcf7cbcd9c29c5b2bd0efbaf349c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agorpi: tizen-boot: rpi4-32b; sync boot script with rpi3-32b 84/217484/1 accepted/tizen/unified/20191112.125059 submit/tizen/20191112.094942
Jaehoon Chung [Tue, 12 Nov 2019 05:35:18 +0000 (14:35 +0900)]
rpi: tizen-boot: rpi4-32b; sync boot script with rpi3-32b

Sync boot script with rpi3-32b.
It's fixed wrong statement and condition check.

Change-Id: I3179f1fa9909443bbe8b1711232396f042228877
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agorpi: tizen-boot: rpi3-32b: Enable custom network configuration 08/217408/1 accepted/tizen/unified/20191111.105607 submit/tizen/20191111.082427
Dongwoo Lee [Fri, 3 May 2019 06:08:01 +0000 (15:08 +0900)]
rpi: tizen-boot: rpi3-32b: Enable custom network configuration

To apply custom network configuration, this patch adds ip_opt to
bootcmd.

Fixes: 653d68709c27 ("rpi: tizen-boot: rpi3-32b: pass network arguments on flash mode")
Change-Id: I42d113f2c1591d62602128bc2e75a464d7cefebc
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agorpi: tizen-boot: rpi3-32b: support to enter the flash mode with command 07/217407/1
Seung-Woo Kim [Mon, 29 Apr 2019 06:25:36 +0000 (15:25 +0900)]
rpi: tizen-boot: rpi3-32b: support to enter the flash mode with command

Support to enter the flash mode with command.

- Refer to below command:
U-boot> run tfm

Note: this applies, to rpi3-32b from rpi3, the commit cf212f48a110
("config: tizen_rpi: support to enter the flash mode with command").

Change-Id: I3a801aed172557385abd8651c811708f1f27feec
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agorpi: tizen-boot: rpi3-32b: pass network arguments on flash mode 06/217406/1
Seung-Woo Kim [Mon, 29 Apr 2019 06:23:27 +0000 (15:23 +0900)]
rpi: tizen-boot: rpi3-32b: pass network arguments on flash mode

To setup network environment for flash manager, this patch makes
passing parameters such as 'ipaddr', 'netmask', and 'gateway' through
kernel bootcmd. Those parameters can be assigned by user-self before
using flash mode.

Note: this is applying below patches from rpi3 to rpi3-32b:
f6f75b5bb37d ("rpi: tizen-boot: rpi3: pass network arguments on flash mode")
e2e0f18b9f3e ("rpi: tizen-boot: rpi3: remove dhcp as default network configuration")

Change-Id: I8de2c8f26f0a5c276ac32e46a83d8fc71eb1e7fd
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agorpi: tizen-boot: rpi3-32b: fix to use setenv for bootmode 05/217405/1
Seung-Woo Kim [Mon, 29 Apr 2019 06:16:53 +0000 (15:16 +0900)]
rpi: tizen-boot: rpi3-32b: fix to use setenv for bootmode

Fix to use setenv for bootmode instead of assignment for remaining
part from the commit 5c008029d782 ("config: tizen_rpi: move env
values from boot script to tizen_rpi.h").

Change-Id: I2ae5d58706bc1e5a8c39ee2952bf3ca2355054ec
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoconfigs: rpi: remove lcd from console output 65/217365/2 accepted/tizen/unified/20191111.070008 accepted/tizen/unified/20191111.091228 submit/tizen/20191111.033315 submit/tizen/20191111.075256
Seung-Woo Kim [Mon, 11 Nov 2019 02:36:50 +0000 (11:36 +0900)]
configs: rpi: remove lcd from console output

From RPI3, log printing to lcd video console causes slow down of
uart rx getc called and fifo overrun occured from uart rx because
rpi3 mini uart has small h/w fifo. Remove lcd from console output.

It's changed from lcd to videoconsole.

Change-Id: I1d96ceab2ee796b4757032400c659fe40ab2f08d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agopackaging: u-boot: remove u-boot-tools package 32/217232/1
Seung-Woo Kim [Fri, 8 Nov 2019 01:48:55 +0000 (10:48 +0900)]
packaging: u-boot: remove u-boot-tools package

Remove u-boot-tools package in u-boot.spec. For armv7l, The
u-boot-tools rpm is also building from u-boot-rpi3-32b.spec, so
no need duplicated packaging.

Change-Id: I7280e3add4079c66e1c8340f739b067427e49a58
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agopackaging: u-boot-xu3: remove u-boot-tools package
Jaehoon Chung [Thu, 7 Nov 2019 21:28:25 +0000 (06:28 +0900)]
packaging: u-boot-xu3: remove u-boot-tools package

Remove u-boot-tools package in u-boot-xu3.spec.
u-boot-tools is also building from u-boot-rpi3-32b.spec.
So it's created duplicated rpm on download.tizen.org.
- u-boot-tools-2019.10-38.1.armv7l.rpm
- u-boot-tools-2019.10-39.1.armv7l.rpm

Change-Id: I5c1e83935d4c37f8bff3f2bcf53283b3a7cc116c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: rpi_4_32b_defconfig: enable memory fixup configuration 96/217196/2
Jaehoon Chung [Thu, 7 Nov 2019 09:56:22 +0000 (18:56 +0900)]
configs: rpi_4_32b_defconfig: enable memory fixup configuration

Enable Memory fixup configuration.
It's fixup memory during jump to kernel.

Change-Id: I94dd671cefcb97ef46272e97d9c8c0008e580064
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoboard: rpi: not read ram_size from device-tree 88/217188/1
Jaehoon Chung [Thu, 7 Nov 2019 09:02:20 +0000 (18:02 +0900)]
board: rpi: not read ram_size from device-tree

This patch is workaround to boot u-boot for tizen.
In future, it will be fixed.

Change-Id: Ic0d40dff1e61df2721f99f13bef5823fa08f5401
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agopackaging: rpi4-32: add rpi4 32bit spec file 67/217167/2
Jaehoon Chung [Thu, 7 Nov 2019 06:32:05 +0000 (15:32 +0900)]
packaging: rpi4-32: add rpi4 32bit spec file

Add rpi4 32bit spec file.

Change-Id: I5e2b18275d0e92ec2294f19cd0f56dffe412691d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: tizen: change from boardname to board_name 88/217088/1 accepted/tizen/unified/20191107.062134 submit/tizen/20191107.042334
Jaehoon Chung [Wed, 6 Nov 2019 07:25:20 +0000 (16:25 +0900)]
configs: tizen: change from boardname to board_name

In board/samsung/common/misc.c, it's set to board's name as board_name.
If it's used to boardname, it can't set to correct board's name.
This is caused the broken kernel booting on U3 board.

Change-Id: I3172254bd700309c3b8cd4420739ee214b411570
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: tizen: enable CONFIG_DISTRO_DEFAULT 87/217087/1
Jaehoon Chung [Wed, 6 Nov 2019 07:02:08 +0000 (16:02 +0900)]
configs: tizen: enable CONFIG_DISTRO_DEFAULT

Enable CONFIG_DISTRO_DEFAULT configuration.
When it's enabled, some configurations are enabled by default.

Change-Id: I16675f84c5285a1df6e88a9ba294e6cef3230fbd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agofdtdec: support multi device-tree when OF_SEPARATE is enabled 48/217048/1
Jaehoon Chung [Wed, 6 Nov 2019 01:49:14 +0000 (10:49 +0900)]
fdtdec: support multi device-tree when OF_SEPARATE is enabled

When CONFIG_OF_SEPARATE is enabled, it needs to call get_board_fdt() for
supporting multi device-tree.

Change-Id: I8345789b55eb7f55d0805e8f164552f72dc6d6ef
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: tizen_defconfig: update defconfig for exynos4 series 47/217047/1
Jaehoon Chung [Wed, 6 Nov 2019 01:48:37 +0000 (10:48 +0900)]
configs: tizen_defconfig: update defconfig for exynos4 series

tizen_defconfig is for trats2/u3 board - exynos4 series.
Update tizen_defconfig to use latest u-boot version.
Some configuratioins needs to move from include/configs/ to configs/.

Change-Id: I768687416577a0930596073091c92735821d829d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agommc: dw_mmc: increase timeout value in data_transfer function 89/216889/1
Jaehoon Chung [Mon, 4 Nov 2019 11:50:44 +0000 (20:50 +0900)]
mmc: dw_mmc: increase timeout value in data_transfer function

Increase timeout value in data_transfer function.
1000 value is  too short to transfer data.
When it's set to 1000, it's occurred "mmc write failed" during thor
download.

In future, it needs to fix correct value.

Change-Id: I3e18eb1480fbdb33c0f8732ce271d1445568379f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: odroid-xu3: disable ENV_VARS_UBOOT_RUNTIME_CONFIG 74/216874/1
Jaehoon Chung [Mon, 4 Nov 2019 07:57:53 +0000 (16:57 +0900)]
configs: odroid-xu3: disable ENV_VARS_UBOOT_RUNTIME_CONFIG

Current tizen didn't need to use ENV_ARS_UBOOT_RUNTIME_CONFIG.

Change-Id: Icba464eb48937410d643adb88e13ff995ce0a9e5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agopackaging: rpi3-32b: fix wrong build arguments 38/215538/1
Jaehoon Chung [Thu, 10 Oct 2019 08:23:57 +0000 (17:23 +0900)]
packaging: rpi3-32b: fix wrong build arguments

It's changed from env to envtools.
And enviroment's value is built-in.
(RPI3 is using uboot.env, not params.bin.)

Change-Id: Ib2f0839627f182086fcef540cdd3e370de2a3e82
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agopackaging: update version to 2019.10 and BuildRequires 22/215522/1
Jaehoon Chung [Thu, 10 Oct 2019 05:14:52 +0000 (14:14 +0900)]
packaging: update version to 2019.10 and BuildRequires

Update version to 2019.10 for using u-boot v2019.10.
And Latest u-boot is required upper version than gcc 6.0.
If using lower versioni than 6.0, it will be failed to build.

Change-Id: Id7587a1bab5997e8d0a9869c8bfe3b7af2930934
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agosamsung: tizen_rpi: fix dfu information to use THOR
Jaehoon Chung [Fri, 27 Sep 2019 10:14:21 +0000 (19:14 +0900)]
samsung: tizen_rpi: fix dfu information to use THOR

Fix dfu information to use THOR.

Change-Id: I9564871a46f02a2042c68f93476c3b9582a6744e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agorpi: add dfu functions to use thor
Jaehoon Chung [Fri, 27 Sep 2019 10:13:24 +0000 (19:13 +0900)]
rpi: add dfu functions to use thor

Add dfu functions to use thor.

Change-Id: Ia59960dc05c3680ccef5b6fdc9108bb0be249fb4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agosamsung: tizen_rpi: remove CONFIG_DFU_ALT_INFO
Jaehoon Chung [Mon, 23 Sep 2019 06:54:39 +0000 (15:54 +0900)]
samsung: tizen_rpi: remove CONFIG_DFU_ALT_INFO

Remove CONFIG_DFU_ALT_INFO for fixing build error.
It will be redefined in future.

Change-Id: I74fa2c6a92ebaee3de4f47edc71c23ddc0269e63
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfig: enable THOR download support on Raspberry Pi4 boards
Marek Szyprowski [Mon, 16 Sep 2019 11:31:06 +0000 (13:31 +0200)]
config: enable THOR download support on Raspberry Pi4 boards

Change-Id: Icd9091c5670653a551d05aaabf6cc5f1bf0243f6
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfig: enable DFU over USB on Raspberry Pi4 boards
Marek Szyprowski [Mon, 16 Sep 2019 10:37:31 +0000 (12:37 +0200)]
config: enable DFU over USB on Raspberry Pi4 boards

Enable support for DFU over USB. This requires to enable USB gadget,
DWC2 UDC OTG driver and DFU command.

Change-Id: I5487120ce86d1188c2b999a74e2112e754a18868
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agousb: dwc2_udc_otg: add bcm2835 SoC (Raspberry Pi4) support
Marek Szyprowski [Wed, 11 Sep 2019 12:18:05 +0000 (14:18 +0200)]
usb: dwc2_udc_otg: add bcm2835 SoC (Raspberry Pi4) support

Broadcom 2835 SoC requires special conversion of physical memory addresses
for DMA purpose, so add needed wrappers to dwc2_udc_otg driver. Also extend
the list of compatible devices with 'brcm,bcm2835-usb' entry. This allows
to use USB gadget drivers (i.e. DFU) on Raspberry Pi4 boards.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Change-Id: Ib6fdd2257880b7b9094f85599b5582871242fded
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agodfu: mmc: remove file size limit for io operations
Marek Szyprowski [Tue, 24 Sep 2019 12:37:24 +0000 (14:37 +0200)]
dfu: mmc: remove file size limit for io operations

Add support for operations on files larger than
CONFIG_SYS_DFU_MAX_FILE_SIZE. The buffered io mechanism is still used for
aggregating io requests, so for files up to CONFIG_SYS_DFU_MAX_FILE_SIZE
nothing is changed and they will be handled in a single filesystem call.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ifa43e9aafcd04dd7f83eec45014337f24858ec2e

5 years agodfu: mmc: rearrange the code
Marek Szyprowski [Mon, 23 Sep 2019 10:34:19 +0000 (12:34 +0200)]
dfu: mmc: rearrange the code

Rename functions for bufferred file io operations to make them easier to
understand. Also add missing file offset argument to them (currently
unused). All this is a preparation to remove predefined file size limit
(CONFIG_SYS_DFU_MAX_FILE_SIZE) for DFU read/write operations.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I79743545198dcae21b4e02793fdb8837f43c7be5

5 years agofat: write: fix broken write at non-zero file offset
Marek Szyprowski [Tue, 24 Sep 2019 08:50:34 +0000 (10:50 +0200)]
fat: write: fix broken write at non-zero file offset

Handling of the start file offset was broken in the current code. Although
the code skipped the needed clusters, it then tried to continue write with
current cluster set to EOF, what caused assertion. It also lacked adjusting
filesize in case of writing at the end of file and adjusting in-cluster
offset for partial overwrite.

This patch fixes all those issues.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I24cf908407ef951920291e560db28e603799ae77

5 years agofat: write: fix broken write to fragmented files
Marek Szyprowski [Fri, 13 Sep 2019 11:54:08 +0000 (13:54 +0200)]
fat: write: fix broken write to fragmented files

The code for handing file overwrite incorrectly assumed that the file on
disk is always contiguous. This resulted in corrupting disk structure
every time when write to existing fragmented file happened. Fix this
by adding proper check for cluster discontinuity and adjust chunk size
on each partial write.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Change-Id: Ic32563cd9e1fc34efd153d94ecd34de4de80e8b2
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agosamsung: tizen_rpi: fix wrong bootargs parameter
Jaehoon Chung [Mon, 16 Sep 2019 11:33:02 +0000 (20:33 +0900)]
samsung: tizen_rpi: fix wrong bootargs parameter

It needs to add whitespace between vc_mem size and vc_mem base.

Change-Id: Iecc5885427d0678da4960f6f40e5368fd92a286d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoboard: rpi: add tizen boot script for rpi4
Jaehoon Chung [Mon, 16 Sep 2019 02:06:59 +0000 (11:06 +0900)]
board: rpi: add tizen boot script for rpi4

Add tizen boot script for rpi4 32bit.

Change-Id: Ib497cebb6dc3ef62ecd7164c886cd3e41f5e848c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agospl: atf: call bl31_entry function before jump to u-boot
Jaehoon Chung [Mon, 16 Sep 2019 01:09:02 +0000 (10:09 +0900)]
spl: atf: call bl31_entry function before jump to u-boot

Call bl31_entry function before jump to u-boot in board_init_r.
This patch is added because of Dignsys's ATF patches.
In future, if find generic solution with fit-images node, will be
reverted.

Change-Id: I2a506207674aed8180d542a659d389c479d13b63
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agosamsung: tizen_rpi: change kernel and bootparam loading address
Jaehoon Chung [Tue, 10 Sep 2019 10:11:13 +0000 (19:11 +0900)]
samsung: tizen_rpi: change  kernel and bootparam loading address

Change kernel and bootparam loading address.
ramdisk/script/fdt address are changed at latest mainline.
So tizen kernel loading address also needs to change.

As comment, rebootparam address is ramdisk_addr_r.
But 0x3a62b000 is not ramdisk_addr_r.
Fixed to rebootparam_addr as correct ramdisk_addr_r.

Change-Id: I5fc5aadbc5ffe94e7917eb5e41370937ea48850b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: odroid_xu3: remove obsolete OdroidXU3-lite workaround
Marek Szyprowski [Wed, 14 Aug 2019 08:00:33 +0000 (10:00 +0200)]
configs: odroid_xu3: remove obsolete OdroidXU3-lite workaround

All Tizen Exynos Linux kernels (v4.14 and even older v4.1) support
OdroidXU3-lite board and provides proper dtb file for it, so this
workaround is no longer needed. It may even cause overheating issues,
because 'real' XU3 board uses higher CPU frequencies, which are no
available on the 'lite' board.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I203ed164741e3281a8923a979e8e077905fb681f

5 years agopackaging: rpi3: separate rpi3 spec file for 32bit
Jaehoon Chung [Mon, 8 Jul 2019 23:43:56 +0000 (08:43 +0900)]
packaging: rpi3: separate rpi3 spec file for 32bit

Separate rpi3 spec file for 32bit.
QB system can't parse the macro like %ifarch and %define.
This patch is for building aarch64 architecture on QB system.

Change-Id: Ia81bd81bf439feea2baf2de7dfeed8840a7ff683
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agosamsung: tizen_rpi: change loglevel from 7 to 4
Jaehoon Chung [Mon, 24 Jun 2019 02:03:52 +0000 (11:03 +0900)]
samsung: tizen_rpi: change loglevel from 7 to 4

Change logelvel from 7 to 4.
If someone want to see full log, change loglevel on u-boot console.
Refer to below command on u-boot
- edit opts
After changing loglevel, enter "saveenv" command.

Change-Id: I9044e70d1f064922e7a9f255ef2db63e158864fb
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoscripts: tizen: update script version information
Jaehoon Chung [Fri, 17 May 2019 01:08:39 +0000 (10:08 +0900)]
scripts: tizen: update script version information

Update script version information to check latest version.
It's helpful to debug script problem.

Change-Id: I4cfc5293cbbf8a3d75b516b547d71cb02c5fa089
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoserial: bcm283x_mu: Refactor RX buffer
Dongwoo Lee [Mon, 13 May 2019 07:33:18 +0000 (16:33 +0900)]
serial: bcm283x_mu: Refactor RX buffer

This patch changes maximum count of reading rx fifo by following
emprical test, and applies circular queue to buffer.

Change-Id: Id498ea9c0c22014f00af2b45ad64ad4c6e69a021
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years ago serial: bcm283x_mu: Support RX buffer
Dongwoo Lee [Wed, 8 May 2019 12:03:47 +0000 (21:03 +0900)]
 serial: bcm283x_mu: Support RX buffer

 Since mini uart has very small rx fifo, writing long string can
 cause overrun. To prevent this, this patch appiles buffer for rx
 process.

Change-Id: Ic5bd37875567fe51eb5491b8867f39c1a78de6b9
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agorpi3: move SPL_TEXT_BASE into rpi_3_defconfig
Jaehoon Chung [Mon, 5 Aug 2019 10:09:38 +0000 (19:09 +0900)]
rpi3: move SPL_TEXT_BASE into rpi_3_defconfig

Move SPL_TEXT_BASE into rpi_3_defconfig.
And enable SPL_FS_FAT config to fix build error.

Change-Id: Ibecd91813d2a85c5c970a124882d217af81c7dfe
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: tizen: enable CONFIG_BOARD_TPYES
Jaehoon Chung [Mon, 5 Aug 2019 07:02:55 +0000 (16:02 +0900)]
configs: tizen: enable CONFIG_BOARD_TPYES

Enable CONFIG_BOARD_TYPES.

Change-Id: Id9d5c7685ef7b852bf6c9c173e45a17fb03d350c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoboard: samsung: add set_board_revision()
Jaehoon Chung [Mon, 5 Aug 2019 07:00:00 +0000 (16:00 +0900)]
board: samsung: add set_board_revision()

Add set_board_revision() function.
When build with tizen_defconfig, it can't refer to set_board_revision().
This function is taken from odroid.c.

Change-Id: I84897de5077860c0a1c81ad60e289e6cc8dcd05a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: rpi: enable MMC_BCM2835 configuration
Jaehoon Chung [Thu, 14 Mar 2019 08:14:27 +0000 (17:14 +0900)]
configs: rpi: enable MMC_BCM2835 configuration

Enable MMC_BCM2835 configuration.

Change-Id: Ic5cd05df99fc86157efd686ec6f5f69fd090ec72
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: samsung: tizen_rpi: change SPL_ATF_TEXT_BASE to 0x08400000
Jaehoon Chung [Tue, 5 Mar 2019 07:02:05 +0000 (16:02 +0900)]
configs: samsung: tizen_rpi: change SPL_ATF_TEXT_BASE to 0x08400000

Change SPL_ATF_TEXT_BASE form 0x8000 to 0x08400000.
In fit_spl_atf.its, it was defined to 0x08400000.

Change-Id: I4aa13f329ed61930f779f2b179fe8200073b9919
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: samsung: tizen_rpi: add CONFIG_SPL_ATF_TEXT_BASE
Jaehoon Chung [Tue, 5 Mar 2019 02:14:17 +0000 (11:14 +0900)]
configs: samsung: tizen_rpi: add CONFIG_SPL_ATF_TEXT_BASE

Add CONFIG_SPL_ATF_TEXT_BASE as 0x8000.

Change-Id: I01c7488e81b0d27d9e35d86ff2910e531201ca75
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfig: samsung: tizen_rpi: remove redefined configuratins
Jaehoon Chung [Sun, 3 Mar 2019 23:30:09 +0000 (08:30 +0900)]
config: samsung: tizen_rpi: remove redefined configuratins

Remove redefined configurations.
It was already defined in rpi header.

Change-Id: I3a5fc90b5f8176ab723dfce53a9c67e0cceab18b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agorpi: tizen-boot: rpi3: remove unnecessary comment
Jaehoon Chung [Tue, 26 Feb 2019 06:45:25 +0000 (15:45 +0900)]
rpi: tizen-boot: rpi3: remove unnecessary comment

Remove unnecessary comment.

Change-Id: I8eebe6b7e24101556ee444d0cebc75edb0d8e454
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfig: tizen_rpi: move some bootarg values to tizen_rpi header
Jaehoon Chung [Mon, 25 Feb 2019 05:01:16 +0000 (14:01 +0900)]
config: tizen_rpi: move some bootarg values to tizen_rpi header

Some bootargs values can be located to tizen_rpi header.
Because it's used same value in script of rpi3 and rpi3 32b.

Change-Id: I73d2d473d624f2ffa37f1fe0ed959ff098bb9247
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfig: tizen_rpi: support to enter the flash mode with command
Jaehoon Chung [Fri, 22 Feb 2019 08:08:23 +0000 (17:08 +0900)]
config: tizen_rpi: support to enter the flash mode with command

Support to enter the flash mode with command.

- Refer to below command:
U-boot> run tfm

Change-Id: Ie5835573cdefb3ccfe3b67d3d20a4e301672251c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfig: tizen_rpi: move env values from boot script to tizen_rpi.h
Jaehoon Chung [Fri, 22 Feb 2019 05:57:54 +0000 (14:57 +0900)]
config: tizen_rpi: move env values from boot script to tizen_rpi.h

Some environment values are used with same value.
It can be moved to tizen_rpi header.

Change-Id: I679491fc03e0381df94025044e80e476f0953db2
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: rpi: move from rpi to tizen_rpi about tizen specific config
Jaehoon Chung [Wed, 20 Feb 2019 05:43:35 +0000 (14:43 +0900)]
configs: rpi: move from rpi to tizen_rpi about tizen specific config

Tizen specific configs can be located to tizen_rpi header.
It's more easier to maintain config relevant to tizen.

Change-Id: I6aff98fd9cc4ed1d812ba217c655ce5e0ea59035
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfig: tizen_rpi: add tizen_rpi header file for tizen
Jaehoon Chung [Tue, 19 Feb 2019 05:21:20 +0000 (14:21 +0900)]
config: tizen_rpi: add tizen_rpi header file for tizen

Add the tizen_rpi header file for tizen.
It can be included tizen specific configuration for rpi boards.
Someone wants to change loglevel, follow the below command :

U-Boot> edit opts
edit : loglevel=7

- Change the loglevel value what you want.

Change-Id: I60157dd380a447ce1757921810e0b942be3d2843
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agorpi: tizen-boot: rpi3: remove dhcp as default network configuration
Dongwoo Lee [Fri, 1 Feb 2019 04:44:54 +0000 (13:44 +0900)]
rpi: tizen-boot: rpi3: remove dhcp as default network configuration

If there is no ip setup on environmental variable, dhcp is used as
default. But, in this case, if dhcp server is not set on connected
network neither, kernel waits dhcp server for a long time (about 3
minutes). So this patch removes dhcp option. After this, tfm handles
unconfigured network.

Change-Id: I513503d2ba81b2342c42967fc1b8cb74f17ce215
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agorpi: tizen-boot: rpi3: pass network arguments on flash mode
Dongwoo Lee [Wed, 12 Dec 2018 08:19:40 +0000 (17:19 +0900)]
rpi: tizen-boot: rpi3: pass network arguments on flash mode

To setup network environment for flash manager, this patch makes
passing parameters such as 'ipaddr', 'netmask', and 'gateway' through
kernel bootcmd.Those parameters can be assigned by user-self before
using flash mode.

Change-Id: Ifda261598978b4cc985fe43e2e612fd58c49fdd1
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agosamsung: platform_boot: increase space for kernel from 8MiB to 16MiB
Jaehoon Chung [Mon, 17 Dec 2018 22:57:02 +0000 (07:57 +0900)]
samsung: platform_boot: increase space for kernel from 8MiB to 16MiB

This patch is based on "samsung: common: increase space for kernel from
8MiB to 16MiB".
Tizen is using platform_boot header file, not autocmd.cmd.

Change-Id: I5d245a51bf975d4a1ca51f6dbf6dba1ab8ef72fd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agosamsung: common: increase space for kernel from 8MiB to 16MiB
Marek Szyprowski [Thu, 13 Dec 2018 12:53:08 +0000 (13:53 +0100)]
samsung: common: increase space for kernel from 8MiB to 16MiB

v4.14 kernel for Odroid easily exceeds 8MiB, thus loading kernel with the
default configuration corrupts previously loaded dtb. Increase ${fdtaddr}
to 0x41000000 to avoid this issue, what gives about 16MiB space for kernel.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I33e897d259f4428602fdd476db3cc0adf700f33c

5 years agopackaging: added a comment how to build with gbs for rpi3
Jaehoon Chung [Mon, 12 Nov 2018 02:27:09 +0000 (11:27 +0900)]
packaging: added a comment how to build with gbs for rpi3

Added a comment how to build with gbs for rpi3.
If there is no comment for this, it's difficult to know how to make
u-boot image with gbs system.
(There is dependent on arm-trusted-firmware-rpi3 repository.)

Change-Id: Iee14253dd011c171104273d7285fff969e68e077
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoscripts: sd_fusing_xu4: remove not necessary tmp variable and comment
Seung-Woo Kim [Fri, 5 Oct 2018 08:14:51 +0000 (17:14 +0900)]
scripts: sd_fusing_xu4: remove not necessary tmp variable and comment

Remove not necessary tmp variable and comment.

Note: it is partial revert of the commit e560d71f0d64 ("scripts:
odroid-xu4: add ramdisk.img flashing support") to flash ramdisk.img
at the last time. Almost all of revert is done with the commit
de355221bf93 ("scripts: sd_fusing_xu4: add the ramdisk partition")
but there was remaining variable and comment.

Change-Id: I1b28fa8ab5852fefa1d83b68b498e89ddafe5660
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoscripts: sd_fusing_xu4: add the ramdisk partition
Jaehoon Chung [Mon, 1 Oct 2018 04:05:49 +0000 (13:05 +0900)]
scripts: sd_fusing_xu4: add the ramdisk partition

Add the ramdisk partition as number 7.

Change-Id: Ie3a833bbe85fe27e0f751a426e09f8e4616fd09b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoboard: samsung: exynos5-dt: modify the get_dfu_alt_system information
Jaehoon Chung [Mon, 1 Oct 2018 04:00:43 +0000 (13:00 +0900)]
board: samsung: exynos5-dt: modify the get_dfu_alt_system information

If there is a partition7, set to dfu_alt_system_2.
Otherwise, just use the dfu_alt_system.
(It's relevant to thor download.)

- change from getenv() to env_get().

Change-Id: I1ff7b5a6c97ad7eed2b6cd489260cfdc902c2a73
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfig: odroid-xu3: add dfu_alt_system information version 2
Jaehoon Chung [Mon, 1 Oct 2018 03:55:57 +0000 (12:55 +0900)]
config: odroid-xu3: add dfu_alt_system information version 2

Add the dfu_alt_system information version 2.
It's used to flash a ramdisk.img at partition 7.
If there is no partition 7, it will load from mmcbootpart as mmcblk0p1.

Change-Id: I2830a950ab87e80c66e4d5dc134c12523011252e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoscripts: tizen: change modules parition size as 32MB
Seung-Woo Kim [Fri, 21 Sep 2018 07:59:42 +0000 (16:59 +0900)]
scripts: tizen: change modules parition size as 32MB

Currently, odroid boot image has 20MB modules.img and exact 20MB
modules partition size causes thor flash failure because it is in
extended parition. Change modules partition size as 32MB.

Change-Id: I1c383f359acf3d415c823ff991901a55e647dfd6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agorpi: tizen-boot: rpi3/rpi3-32b: add dwc_otg option like raspbian cmdline
Seung-Woo Kim [Thu, 20 Sep 2018 06:50:03 +0000 (15:50 +0900)]
rpi: tizen-boot: rpi3/rpi3-32b: add dwc_otg option like raspbian cmdline

From raspbian cmdline.txt, from kernel related otpion, there is
dwc_otg.lpm_enable=0 which is not in Tizen u-boot booting script.
Add dwc_otg option line raspbian.

Change-Id: I37a723f63bae288f9d9d3e0b88adca01398f3c22
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoconfig: rpi3: update dtb file names in dfu_alt_info
Seung-Woo Kim [Wed, 12 Sep 2018 04:28:26 +0000 (13:28 +0900)]
config: rpi3: update dtb file names in dfu_alt_info

There are wrong dtb file names. Update the wrong dtb file names
and add rpi 3 b plus model dtb.

Change-Id: I61f8833c08443ad8514b6f3bd785653baf609960
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agorpi: tizen-boot: rpi3/rpi3-32b: set dt filename by its model
Seung-Woo Kim [Mon, 3 Sep 2018 02:48:13 +0000 (11:48 +0900)]
rpi: tizen-boot: rpi3/rpi3-32b: set dt filename by its model

To identify rpi3 b model and rpi3 b+ model, set dt filename by
its model.

Note: Tizen uses raspbian vendor kernel, so raspbian dt name is
used instead of mainline file name set by booting.

Change-Id: I84dc4a38e5f21527912749eee28d784245123340
Reference: 7fe77226aa29 ("rpi: Add identifier for the new RPi3 B+")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agorpi: tizen-boot: rpi2: Add boot param for support flash mode
Seung-Woo Kim [Thu, 10 May 2018 04:13:00 +0000 (13:13 +0900)]
rpi: tizen-boot: rpi2: Add boot param for support flash mode

This patch adds support for flash bootmode. If boot-param.bin is
set to 'dwnl', bootmode will be set to flash to invoke flash-init.

Change-Id: I17bda3435176c992d9b457bec14f5aded804f0dc
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agorpi: tizen-boot: rpi3-32b: Add boot param for support flash mode
Seung-Woo Kim [Thu, 10 May 2018 04:13:00 +0000 (13:13 +0900)]
rpi: tizen-boot: rpi3-32b: Add boot param for support flash mode

This patch adds support for flash bootmode. If boot-param.bin is
set to 'dwnl', bootmode will be set to flash to invoke flash-init.

Change-Id: I41955d2b2dd08edd23897df4e458ca8f59eaf9a5
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agorpi: tizen-boot: Add boot parameter for support flash mode
Dongwoo Lee [Thu, 5 Apr 2018 05:40:01 +0000 (14:40 +0900)]
rpi: tizen-boot: Add boot parameter for support flash mode

This patch adds support for flash bootmode. If boot-param.bin is set
to 'dwnl', bootmode will be set to flash to invoke flash-init.

Change-Id: I5fe1554c4ad431f6275c0118d25a36e1f3a8ffc4
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agorpi: tizen-boot: rpi2: set console in cmdline as u-boot environment
Seung-Woo Kim [Tue, 8 May 2018 05:41:32 +0000 (14:41 +0900)]
rpi: tizen-boot: rpi2: set console in cmdline as u-boot environment

The console in cmdline will be used by kernel as printk console
and tizen-boot script always sets console with UART device. Set
console in cmdline as u-boot environment value console and set
default uart if nothing is set.

Change-Id: I36f58c0532e0a10efb7844c14caeb21258c9b792
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agorpi: tizen-boot: rpi3: set console in cmdline as u-boot environment
Seung-Woo Kim [Tue, 8 May 2018 05:39:09 +0000 (14:39 +0900)]
rpi: tizen-boot: rpi3: set console in cmdline as u-boot environment

The console in cmdline will be used by kernel as printk console
and tizen-boot script always sets console with UART device. Set
console in cmdline as u-boot environment value console and set
default uart if nothing is set.

Change-Id: I0d2743d445de8c8cf4bd43600fbc8c28a07cd0ea
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agopackaging: spec: update u-boot version to v2019.01
Jaehoon Chung [Mon, 25 Feb 2019 10:57:16 +0000 (19:57 +0900)]
packaging: spec: update u-boot version to v2019.01

Update u-boot version to v2019.01.
- This branch is based on sandbox/jaehoon/rebase-v2018.03.

Change-Id: I100e24eaa361f61b66d3b81e6529e9790c6786b4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agousb: gadget: f_thor: fix wrong type format
Jaehoon Chung [Mon, 25 Feb 2019 10:38:09 +0000 (19:38 +0900)]
usb: gadget: f_thor: fix wrong type format

Fix wrong type format about buidling wanring.

Change-Id: I161651ffa9427611ef4e095bebca095d6bbf153d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: rpi3: remove redfined configuration
Jaehoon Chung [Thu, 21 Feb 2019 11:05:45 +0000 (20:05 +0900)]
configs: rpi3: remove redfined configuration

Remove redefined configuration.

Change-Id: If74ca366e22290714ade37763f93a39544aa4ee1
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: rpi3: move CONFIG_SPL_DRIVERS_MISC_SUPPORT option
Seung-Woo Kim [Mon, 8 Oct 2018 09:08:18 +0000 (18:08 +0900)]
configs: rpi3: move CONFIG_SPL_DRIVERS_MISC_SUPPORT option

Move CONFIG_SPL_DRIVERS_MISC_SUPPORT option configs/rpi_3_defconfig
because the option is not in scripts/config_whitelist.txt.

Change-Id: Ia883f5521430a915943dbf00c8043cea6deec1ad
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoconfigs: rpi3: enable CONFIG_SPL_ATF configuration
Jaehoon Chung [Fri, 29 Jun 2018 09:35:42 +0000 (18:35 +0900)]
configs: rpi3: enable CONFIG_SPL_ATF configuration

Enable CONFIG_SPL_ATF config and defined ATF_TEXT_BASE in configs/rpi.h.

Change-Id: I24f2115b6386232fb53eb105dcbeffd3495fb55e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agogpio: bcm2835: remove the unnecessary CONFIG_SPL_BUILD ifdef
Jaehoon Chung [Fri, 29 Jun 2018 06:44:38 +0000 (15:44 +0900)]
gpio: bcm2835: remove the unnecessary CONFIG_SPL_BUILD ifdef

Remove the unnecessary CONFIG_SPL_BUILD ifdef.

Change-Id: I6509cecadf17e1daa9c938a4611a1a703cffb373
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoserial: bcm283x: remove the CONFIG_SPL_BUILD ifdef
Jaehoon Chung [Fri, 29 Jun 2018 06:35:12 +0000 (15:35 +0900)]
serial: bcm283x: remove the CONFIG_SPL_BUILD ifdef

Remove the CONFIG_SPL_BUILD ifdef to use the pinctrl.

Change-Id: I0685b7fbd15896e991bdb3c68e79554bde67c57f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: rpi3: enable the SPL_PINCTRL config
Jaehoon Chung [Fri, 29 Jun 2018 05:58:10 +0000 (14:58 +0900)]
configs: rpi3: enable the SPL_PINCTRL config

Enable the SPL_PINCTRL configuration to control the pinctrl.

Change-Id: Ie1dfb37c3d27b33f894521dd2ae5907f78bcccdb
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: rpi3: move the SPL_BOARD_INIT into defconfig
Jaehoon Chung [Fri, 29 Jun 2018 05:28:07 +0000 (14:28 +0900)]
configs: rpi3: move the SPL_BOARD_INIT into defconfig

Move the SPL_BOARD_INIT configuration into defconfig.

Change-Id: I81b10c1224a0725b78d478bd252a1a9f8735532a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agocmd: add missing line breaks for pr_err()
Seung-Woo Kim [Mon, 4 Jun 2018 07:04:51 +0000 (16:04 +0900)]
cmd: add missing line breaks for pr_err()

After the commit 9b643e312d52 ("treewide: replace with error() with
pr_err()"), there are some pr_err() with no line break. Add missing
line breaks.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
[sw0312.kim: cherry-pick from mainline to fix error log]

Change-Id: I8aa616cb4c1e6d4ab250ba89cb75214f33488a6f

5 years agogadget: f_thor: Fix memory leaks of usb request and its buffer
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: fix conflict about int_ep from thor_eps_setup()]

Change-Id: I606d039d53847d0e0850c5bcbceca451bdbb1c02

5 years agopackaging: change from 'env' to 'envtools' for building envtool
Jaehoon Chung [Tue, 8 May 2018 10:57:15 +0000 (19:57 +0900)]
packaging: change from 'env' to 'envtools' for building envtool

Change a name from "env" to "envtools" for building envtools.
(Fix the compile error during obs/gbs system.)

Change-Id: I5717142528d88993134f1219dba2bb0a7e928efe
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agopackaging: change from env_common to built-in for generating param.bin
Jaehoon Chung [Tue, 8 May 2018 10:09:20 +0000 (19:09 +0900)]
packaging: change from env_common to built-in for generating param.bin

environemnt codes had moved to env directory from common.
It's changed to get the default environment from build-in.o.

Change-Id: I15f8c0115fab426ed35547e0063d3361385d1712
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: tizen: remove the unused configurations
Jaehoon Chung [Tue, 8 May 2018 02:28:06 +0000 (11:28 +0900)]
configs: tizen: remove the unused configurations

Remove the unused configurations.
(CONFIG_UHB_HCI is replaced to CONFIG_USB_EHCI_HCD.)

Change-Id: I132d04517193544523230429dd6d373725ea32f2
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agorpi3: fix the spl build error
Seung-Woo Kim [Tue, 8 May 2018 02:09:20 +0000 (11:09 +0900)]
rpi3: fix the spl build error

Fix the spl build error.
This is a workaround for building a rpi3 spl image.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agopackaging: change the version infomation from 2017.03 to 2018.03
Jaehoon Chung [Thu, 3 May 2018 12:09:10 +0000 (21:09 +0900)]
packaging: change the version infomation from 2017.03 to 2018.03

Upadte the U-boot version information to v2018.03.

Change-Id: I357b173a68f80b9879e2e9acc9c665df30e7e9d9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: rpi: remove the CONFIG_SPL_FRAMEWORK
Jaehoon Chung [Thu, 3 May 2018 11:56:46 +0000 (20:56 +0900)]
configs: rpi: remove the CONFIG_SPL_FRAMEWORK

Remove the CONFIG_SPL_FRAMEWORK config in include/configs/rpi.h.

Change-Id: Iff3f2740ddaaa4be16766e66cea29eca140dee02
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agocmd: nfsdown: support the nfsdown when CONFIG_BLK is enabled
Jaehoon Chung [Thu, 3 May 2018 11:54:22 +0000 (20:54 +0900)]
cmd: nfsdown: support the nfsdown when CONFIG_BLK is enabled

If CONFIG_BLK is enabled, it means that device driver is using the
driver-model.

Change-Id: I235deb6208c558a6584560e1638d05f93ac795aa
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoRevert "bootstage: Require timer_get_boot_us() to be defined"
Jaehoon Chung [Thu, 3 May 2018 07:22:20 +0000 (16:22 +0900)]
Revert "bootstage: Require timer_get_boot_us() to be defined"

This reverts commit c87dc38d8f860710f5f624d9dae6cefded285b8d.
(This revert is workaround.)

Change-Id: I8febf78aa41f1124775359278380fbb35d9dcc4b

5 years agoconfigs: remove the duplicated configurations
Jaehoon Chung [Wed, 2 May 2018 11:16:24 +0000 (20:16 +0900)]
configs: remove the duplicated configurations

Remove the duplicated configurations.
It needs to define the CONGIT_SYS_TEXT_BASE in configs/tizen_defconfig.

Change-Id: I77137e03580020e211d3286fac8d8da6f82829b0
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: tizen: enable the CONFIG_USB_EHCI_HCD config
Jaehoon Chung [Thu, 3 May 2018 04:05:48 +0000 (13:05 +0900)]
configs: tizen: enable the CONFIG_USB_EHCI_HCD config

Enable the CONFIG_USB_EHCI_HCD config.

Change-Id: Id51d97fac39a180eebc871f57a04dc8a71795afc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoboard: samsung: fix the compile error with tizen_defconfig
Jaehoon Chung [Thu, 3 May 2018 02:41:52 +0000 (11:41 +0900)]
board: samsung: fix the compile error with tizen_defconfig

Fix the compile error during rebase on v2018.03.

Change-Id: I6207c86b495cb064591bd6d9dec8a0ef1ef527e9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfigs: rpi_3: enable the CMD_TIME configuration
Jaehoon Chung [Mon, 12 Feb 2018 06:08:18 +0000 (15:08 +0900)]
configs: rpi_3: enable the CMD_TIME configuration

To check the time, enable the CMD_TIME configuration.

Change-Id: I4be99bf8b311bf55e6ecf1d74e8d67f47bea8847
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoconfig: rpi3: enable the configurations relevant to NFSDOWN
Jaehoon Chung [Mon, 12 Feb 2018 05:47:19 +0000 (14:47 +0900)]
config: rpi3: enable the configurations relevant to NFSDOWN

Enable the configurations relevant to nfsdown command for rpi3.

Change-Id: Ic050057e75f4e92b1507ca84c642ba3c798ba6fc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agocmd: nfsdown: add the update_image_names for rpi3
Jaehoon Chung [Mon, 12 Feb 2018 05:48:28 +0000 (14:48 +0900)]
cmd: nfsdown: add the update_image_names for rpi3

RPi3 has the names of different file with other exynos boards.
Add the update_image_names for rpi3.

Change-Id: I133f8eb65279629b912aab3715101b46cbf16b4d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agorpi: tizen-boot: add rpi2 script
Seung-Woo Kim [Tue, 23 Jan 2018 01:34:57 +0000 (10:34 +0900)]
rpi: tizen-boot: add rpi2 script

Add rpi2 tizen-boot script.

For rpi2, serial console is different from rpi3.

Change-Id: I4548468a3c052361b389be0fb6bdee72187b5e33
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agorpi: tizen-boot: add rpi3 32bit script
Seung-Woo Kim [Tue, 23 Jan 2018 01:31:45 +0000 (10:31 +0900)]
rpi: tizen-boot: add rpi3 32bit script

Add rpi3 32bit tizen-boot script.

For 32bit, kernel dt image should be loaded to $fdt_addr instead of
$fdt_addr_r and kernel image name is zImage instead of Image. Also,
boot command should be bootz instead of booti.

Change-Id: Ia7a942837dd7a9ed398567f82aa89a81784a7591
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agorpi: tizen-boot: Rename tizen-boot script for rpi3
Seung-Woo Kim [Tue, 23 Jan 2018 01:24:23 +0000 (10:24 +0900)]
rpi: tizen-boot: Rename tizen-boot script for rpi3

The tizen-boot script is for rpi3 64bit mode. Rename the script for
rpi3 to support other rpi board family.

Change-Id: Ic05c2bf94deb9381460c0de4e4a31a31c8f615b6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agorpi: tizen-boot: add note about kernel size limitation.
Seung-Woo Kim [Mon, 15 Jan 2018 07:48:21 +0000 (16:48 +0900)]
rpi: tizen-boot: add note about kernel size limitation.

There is kernel size limitation to support ramdisk. Add note
about the size limitation.

Change-Id: I77366008ee2a3649b9d9c366c756206784c240cb
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>