platform/kernel/u-boot.git
4 years agospl: atf: cast NULL to uintptr_t explictly 26/221626/1 accepted/tizen/unified/20200108.131627 submit/tizen/20200107.060950
Seung-Woo Kim [Mon, 6 Jan 2020 09:46:08 +0000 (18:46 +0900)]
spl: atf: cast NULL to uintptr_t explictly

The bl31_entry() requires uintptr_t for its 3rd argument but NULL
is used calling the function. Cast it explictly to avoid
int-conversion build warning.

Change-Id: I0033c1bdcb9e115745ecec67950487cb85aeaba2
Fixes: d332415fe82f ("spl: atf: call bl31_entry function before jump to u-boot")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agolib: errno: avoid error format-overflow 25/221625/1
Heinrich Schuchardt [Sun, 6 Oct 2019 11:58:57 +0000 (13:58 +0200)]
lib: errno: avoid error format-overflow

In cmd/regulator.c an error occurs with GCC 9.2.1 if CONFIG_ERRNO_STR is
not defined:

cmd/regulator.c: In function ‘failure’:
cmd/regulator.c:20:2: error: ‘%s’ directive argument is null
[-Werror=format-overflow=]
   20 |  printf("Error: %d (%s)\n", ret, errno_str(ret));
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘constraint’,
    inlined from ‘constraint’ at cmd/regulator.c:111:12:
cmd/regulator.c:115:3: error: ‘%s’ directive argument is null
[-Werror=format-overflow=]
  115 |   printf(" %s (err: %d)\n", errno_str(val), val);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

errno_str() should return a valid string instead of NULL if
CONFIG_ERRNO_STR is not defined.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
[sw0312.kim: cherry-pick mainline commit f279e1d9167f to remove gcc 9 build warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ib7819bfd2bb93bd44801229c5fce8f4c511765c5

4 years agoconfigs: rpi_4_32b_defconfig: enable btrfs config 05/220505/1 accepted/tizen/unified/20191219.143702 submit/tizen/20191219.051336
Jaehoon Chung [Thu, 19 Dec 2019 04:25:19 +0000 (13:25 +0900)]
configs: rpi_4_32b_defconfig: enable btrfs config

Enable btrfs configuration to support BTRFS on u-boot.

Change-Id: I883ab759f48724bb6bac6804d95f58a2b07b1ab5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agoconfigs: rpi_4_32b_defconfig: enable UMS configuration 88/220488/3
Jaehoon Chung [Thu, 19 Dec 2019 00:53:45 +0000 (09:53 +0900)]
configs: rpi_4_32b_defconfig: enable UMS configuration

Enable UMS configuration.
It can be used to usb-mass storage.
Usage: U-Boot> ums 0 mmc 0
- Then you can see block device node on your local host.

It's useful to flash or format for using Tizen.

Change-Id: Ic3a27a69a03d05691f60e764990d33d8bfef2275
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agosamsung: tizen_rpi: fix typo about boot.scr.uimg 87/220487/3
Jaehoon Chung [Thu, 19 Dec 2019 00:44:18 +0000 (09:44 +0900)]
samsung: tizen_rpi: fix typo about boot.scr.uimg

Fix typo about boot.scr.uimg.
- s/boot.src.uimg/boot.scr.uimg

Change-Id: I656f8f856cc918ca0239e12a709662269f6c10c9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agousb: dwc2: fix possible alignment issues 27/220427/2
Simon Goldschmidt [Thu, 21 Nov 2019 21:15:23 +0000 (22:15 +0100)]
usb: dwc2: fix possible alignment issues

Since upgrading to gcc9, warnings are issued:
"taking address of packed member of ‘...’ may result in an unaligned
pointer value"

Fix this by converting dwc2_fifo_read to use unaligned access since packed
structures may be on an unaligned address, depending on USB hardware.

Change-Id: I4d86812b06e8c16f3e1cc8fdbe03f26653ecdac5
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agousb: composite: fix possible alignment issues 26/220426/2
Simon Goldschmidt [Thu, 21 Nov 2019 21:15:22 +0000 (22:15 +0100)]
usb: composite: fix possible alignment issues

Since upgrading to gcc9, warnings are issued:
"taking address of packed member of ‘...’ may result in an unaligned
pointer value"

Fix this by converting two functions to use unaligned access since packed
structures may be on an unaligned address, depending on USB hardware.

Change-Id: I3dd21a85f104b68b0af8af08425133f258758e56
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agousb: composite: add BOS descriptor support to composite framework 25/220425/2
T Karthik Reddy [Mon, 14 Oct 2019 12:52:50 +0000 (14:52 +0200)]
usb: composite: add BOS descriptor support to composite framework

To add usb-3.0 support to peripheral device add BOS & SS capability
descriptors to gadget composite framework.

Change-Id: I34fde7525fd88b69eff7d6456b247d0d00ae1821
Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agoconfigs: tizen_rpi: add bcm2711-rpi-4-b.dtb in dfu information 43/220243/1
Jaehoon Chung [Mon, 16 Dec 2019 10:30:31 +0000 (19:30 +0900)]
configs: tizen_rpi: add bcm2711-rpi-4-b.dtb in dfu information

Add bcm2711-rpi-4-b.dtb in dfu information.
It's used when thor command is run.

Change-Id: I55c0397647457af94301007763b5732a28d20d42
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agoARM: defconfig: Fix 32bit config for RPi4 05/220205/1 accepted/tizen/unified/20191216.222255 submit/tizen/20191216.054629
Matthias Brugger [Thu, 5 Dec 2019 17:53:15 +0000 (18:53 +0100)]
ARM: defconfig: Fix 32bit config for RPi4

The rpi_4_32b_defconfig states that only one DRAM bank is present. This
leads to a wrong configuration of the available DRAM. Fix this by
setting the DRAM bank config accordingly.

Fixes: 193279d784 ("RPI: Add defconfigs for rpi4 (32/64)")

Change-Id: I067ba66d80f636d6a56dfb7a14e3ee8da78829d4
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
4 years agorpi: Enable DRAM bank initialization on arm64 04/220204/1
Matthias Brugger [Thu, 5 Dec 2019 17:53:14 +0000 (18:53 +0100)]
rpi: Enable DRAM bank initialization on arm64

Up to now we only update the DRAM banks when we are define
CONFIG_BCM2711. But our one binary approach uses a config that supports
BCM2837 and BCM2711. As a result we only see one gibibyte of RAM on
Raspberry Pi 4, even if it has more RAM.
Fix this by calling dram_init_banksize.

Fixes: 5694090670 ("ARM: defconfig: add unified config for RPi3 and RPi4")

Change-Id: Id7f3fec63777360d4536b836d98ad77f4b3a5a4e
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
4 years agorpi: fix dram bank initialization 03/220203/1
Matthias Brugger [Thu, 5 Dec 2019 17:53:13 +0000 (18:53 +0100)]
rpi: fix dram bank initialization

To update the dram bank information from device-tree we use
fdtdec_decode_ram_size() which expectes the the size-cells and
address-cells to be defined in the memory node. For normal system RAM
these values are defined in the root node. When the values differ from
the default values defined in the spec, we can end up with wrong RAM
bank information.

Switch to the "standard" way to update the RAM bank information to
avoid this.

Fixes: 9de5b89e4c ("rpi4: enable dram bank initialization")

Change-Id: I5c6148bf322d46aaff7e425b9ba9e3f84eef6f09
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
4 years agoboard: rpi: remove unnecessary #ifdef CONFIG_NO_TIZEN 02/220202/1
Jaehoon Chung [Mon, 16 Dec 2019 04:24:00 +0000 (13:24 +0900)]
board: rpi: remove unnecessary #ifdef CONFIG_NO_TIZEN

Remove #ifdef CONFIG_NO_TIZEN comment.

Change-Id: I0d125b66bc40f22f4a88ab7a41bfedeb5570ce4a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agoARM: bcm283x: Set memory map at run-time 62/219662/1 accepted/tizen/unified/20191212.123635 submit/tizen/20191212.015755
Matthias Brugger [Tue, 19 Nov 2019 15:01:05 +0000 (16:01 +0100)]
ARM: bcm283x: Set memory map at run-time

For bcm283x based on arm64 we also have to change the mm_region.
Add assign this in mach_cpu_init() so we can create now one binary
for RPi3 and RPi4.

Change-Id: Ie81a14eaf99d114524cf2225f57706228613e43b
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
4 years agoARM: bcm283x: Set rpi_bcm283x_base at run-time 61/219661/1
Matthias Brugger [Tue, 19 Nov 2019 15:01:04 +0000 (16:01 +0100)]
ARM: bcm283x: Set rpi_bcm283x_base at run-time

As part of the effort to create one binary for several bcm83x SoCs
we read the IO base address from device-tree.

Change-Id: I9816b3576a4fd6637bbf11bb6aeb6fa3bb8de456
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
4 years agoARM: bcm283x: Move BCM283x_BASE to a global variable 60/219660/1
Matthias Brugger [Tue, 19 Nov 2019 15:01:03 +0000 (16:01 +0100)]
ARM: bcm283x: Move BCM283x_BASE to a global variable

We move the per SOC define BCM283x_BASE to a global variable.
This is a first step to provide a single binary for several bcm283x
SoCs.

Change-Id: If32915d693b26e9d3ddbbddbcac004140623afd0
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
4 years agorpi: push fw_dtb_pointer in the .data section 59/219659/1
Matthias Brugger [Tue, 19 Nov 2019 15:01:02 +0000 (16:01 +0100)]
rpi: push fw_dtb_pointer in the .data section

The fw_dtb_pointer was defined in the assembly code, which makes him
live in section .text_rest
Put that's not necessary, we can push the variable in the .data section.

This will prevent relocation errors like:
board/raspberrypi/rpi/rpi.c:317:(.text.board_get_usable_ram_top+0x8):
relocation truncated to fit: R_AARCH64_LDST64_ABS_LO12_NC against symbol
`fw_dtb_pointer' defined in .text section in board/raspberrypi/rpi/built-in.o

Change-Id: I16e0ca281c9dc9871d5fb9af23ddfc29f57e8f63
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
4 years agodrivers: bcm283x: Set pre-location flag for OF_BOARD 58/219658/1
Matthias Brugger [Fri, 8 Nov 2019 13:49:48 +0000 (14:49 +0100)]
drivers: bcm283x: Set pre-location flag for OF_BOARD

U-Boot support on Raspberry Pi 4 relies on the device-tree
provided by the firmware. The blob does not contain the
U-Boot specific pre-loc-rel properties. The result is, that
the U-Boot banner is not printed.

We fix this by setting the DM_FLAG_PRE_RELOC flag in the driver,
if we rely on a device-tree provided by the firmware.

Change-Id: I7b9d5958ba00643e1feb17a570d748f80e6e660a
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
4 years agoarm: dts: bcm283x: Rename U-Boot file 57/219657/1
Matthias Brugger [Fri, 8 Nov 2019 13:49:47 +0000 (14:49 +0100)]
arm: dts: bcm283x: Rename U-Boot file

Rename the file bcm283x-uboot.dtsi so that it get
automatically include through the scripts/Makefile.lib
using $(CONFIG_SYS_SOC))-u-boot.dtsi

Without this uarts and pincontroller miss the property dm-pre-reloc
and the first call to bcm283x_mu_serial_ofdata_to_platdata() fails
as the pins are not set correctly.
As a result the U-Boot banner isn't shown on boot.

Before commmit
143256b353 ("fdt: update bcm283x device tree sources to Linux 5.1-rc6 state")
we included bcm283x-uboot.dtsi directly in the device-tree file.
Which got deleted by the metioned commit.
This is a much robuster solution.

Change-Id: Ife219ee0a0b24cb4a677d826b002f93946cc4ac4
Reported-by: Tom Rini <trini@konsulko.com>
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Tested-by: Tom Rini <trini@konsulko.com> [RPi 3, 32b and 64b modes]
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
4 years agofdt: fix bcm283x dm-pre-reloc definitions 56/219656/1
Matthias Brugger [Fri, 8 Nov 2019 13:49:46 +0000 (14:49 +0100)]
fdt: fix bcm283x dm-pre-reloc definitions

In commmit
143256b353 ("fdt: update bcm283x device tree sources to Linux 5.1-rc6 state")
we deleted the label for the node soc from bcm283x.dtsi

As we don't need to add the property dm-pre-reloc to the soc node,
we can delete it from bcm283x-uboot.dtsi

Change-Id: I9ad615435e0c600a35df151e5cfde03d0abbcb95
Tested-by: Tom Rini <trini@konsulko.com> [RPi 3, 32b and 64b modes]
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
4 years agopinctrl: bcm283x: Add compatible for RPi4 55/219655/1
Matthias Brugger [Wed, 6 Nov 2019 14:28:25 +0000 (15:28 +0100)]
pinctrl: bcm283x: Add compatible for RPi4

The Raspberry Pi 4 upstream kernel device tree instroduces
a new compatible for the pinctroller. Add this to the driver
so that we can boot with the upstream kernel DT.

Change-Id: I650d150a37df0ebf654eed2bd289aa7b8a9ae807
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
4 years agoinclude: samsung: tizen_rpi: separate vc_mem base/size value 30/219430/1
Jaehoon Chung [Thu, 5 Dec 2019 00:28:35 +0000 (09:28 +0900)]
include: samsung: tizen_rpi: separate vc_mem base/size value

Separate vc_mem base/size value according to target.
RPI4 and RPI3 have different value about vc_mem base and size.

This value has been taken from raspbian kernel image.

Change-Id: I95274e2acab9e3ef6af90759d2141428b82f86a8
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agoscripts: tizen: sd_fusing: increase minor version information 66/218766/1
Jaehoon Chung [Thu, 28 Nov 2019 04:02:17 +0000 (13:02 +0900)]
scripts: tizen: sd_fusing: increase minor version information

Increase minor version information from 1.0. to 1.1.

Change-Id: I15612f6ecb73d77c58e5690e542d8e51af41257a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agommc: exynos_dw_mmc: add tizen specific bind codes 11/218011/1 accepted/tizen/unified/20191118.234504 submit/tizen/20191118.215102
Jaehoon Chung [Mon, 18 Nov 2019 11:32:11 +0000 (20:32 +0900)]
mmc: exynos_dw_mmc: add tizen specific bind codes

Add tizen specific bind codes.
Device number is defined according to boot from SD or eMMC.

Change-Id: I05876b0600d2e19e2642fd46742183d0d8cbe5c4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agosamsung: odroid: add CONFIG_TIZEN_XU3 config 10/218010/1
Jaehoon Chung [Mon, 18 Nov 2019 11:22:55 +0000 (20:22 +0900)]
samsung: odroid: add CONFIG_TIZEN_XU3 config

Add CONFIG_TIZEN_XU3 configuration.
And enable it to boot tizen specific boot.

Change-Id: I98c533a0d044ebc017fb59a00d98c32ef6af2047
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 years agoscripts: tizen: sd_fusing_xu4: Fix start position of extended partitions 68/217968/1
Seung-Woo Kim [Mon, 18 Nov 2019 05:45:46 +0000 (14:45 +0900)]
scripts: tizen: sd_fusing_xu4: Fix start position of extended partitions

Older version sfdisk than 2.26 does not align the start and end
of partitions to block, and it breaks the size of paritions less
than requested. Fix start position of extended partitions by
calculation to guarantee the requested size.

Change-Id: I2e5a6c72550f71f213c2d7352b537c1b12d13670
Ref: http://man7.org/linux/man-pages/man8/sfdisk.8.html
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
4 years agoscripts: tizen: sd_fusing_rpi3: Fix start position of extended partitions 02/217902/2
Seung-Woo Kim [Fri, 15 Nov 2019 10:46:40 +0000 (19:46 +0900)]
scripts: tizen: sd_fusing_rpi3: Fix start position of extended partitions

Older version sfdisk than 2.26 does not align the start and end
of partitions to block, and it breaks the size of paritions less
than requested. Fix start position of extended partitions by
calculation to guarantee the requested size.

Change-Id: I6d5bae06e4cd871075259d406d349c4ac63fab40
Ref: http://man7.org/linux/man-pages/man8/sfdisk.8.html
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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

4 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

4 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

4 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>
4 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>
4 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>
4 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>
4 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>
4 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

4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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

4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>