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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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
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
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Jaehoon Chung [Thu, 11 Jan 2018 04:54:20 +0000 (13:54 +0900)]
rpi: tizen-boot: change the kernel loading address
Tizen kernel image can be over than 16MB.
It should be overlapped with other image address.
To avoid this behavior, change to 0x02d00000 from 0x01000000.
Change-Id: I8cf142c55d6afedd1186f58181251df39d1e9cc5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Thu, 11 Jan 2018 03:51:51 +0000 (12:51 +0900)]
scripts: tizen: call sync before umount
After writing files on mounted directory, umount can fail with busy
state. Call sync before umount to clear the busy state instead of
sleep.
Change-Id: I7985ab3688a64b072c9a992957acdf124f925a34
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 9 Jan 2018 05:39:57 +0000 (14:39 +0900)]
rpi: tizen-boot: Add earlycon option to bootargs
Add earlycon option to show early uart message. Also, remove
unnecessary earlyprintk option in bootargs.
Change-Id: Ie0d88914b7ee5bbd2bf7a67db37b772b1a937454
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Jaehoon Chung [Mon, 6 Nov 2017 10:41:58 +0000 (19:41 +0900)]
arm: bcm283x: bcm283x-board-spl: display the SPL version
Remove the unuseful log message.
Instead, display the SPL version for providing the build information.
Change-Id: Ibe877ec03fb73a5c0027c3db579344d839d19acc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Seung-Woo Kim [Fri, 3 Nov 2017 09:33:39 +0000 (18:33 +0900)]
spl: serial_bcm283x: remove unnecessary gpio setting
The config.txt has enable_uart=1 option, so bootcode.bin will set
register to enable uart, so spl of rpi3 does not need to set uart
register. Remove the unnecessary setting to remove garbage in uart
rx.
This fixes unexpected hang-up on u-boot prompt without connection
uart to serial console.
Change-Id: I813b4304e434c0f3d51d06078b38d09adb7b993d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Thu, 2 Nov 2017 07:08:18 +0000 (16:08 +0900)]
Revert "spl: serial_bcm283x: set GPIO before enabling uart to remove rx"
This reverts commit
d1dac2248ae24ba833069679734f966f0e481b5a.
The commit fixes hang on u-boot console with serial connection, but
it blocks all serial rx communication, so it is not possible to send
any command via uart. So reverting it and the original issue will be
handled later.
Change-Id: I216375c8bbfcbd47b960182bfcd79d452d32e1f8
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
r.tyminski [Mon, 30 Oct 2017 11:56:18 +0000 (12:56 +0100)]
spl: serial_bcm283x: set GPIO before enabling uart to remove rx
There was some garbage on uart input during boot, so if uart wasn't
connected, we end up in u-boot command line.
Set GPIO before enabling uart to remove uart Rx setup and this makes
SPL use only Tx.
Note: Chip documentation warns that order of commands is important.
Change-Id: I896d8b719c7b9170ad481767f8b27835d81f4af1
Signed-off-by: Rafal Tyminski <r.tyminski@partner.samsung.com>
[sw0312.kim: adjust commit-msg]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Seung-Woo Kim [Tue, 17 Oct 2017 10:12:15 +0000 (19:12 +0900)]
configs: odroid_xu3: add missing CONFIG_MMC_DEFAULT_DEV
For dfu/thordown command, default mmc device number should be set
as CONFIG_MMC_DEFAULT_DEV. Add the missing CONFIG_MMC_DEFAULT_DEV.
Note: before this patch, CONFIG_MMC_DEFAULT_DEV string itself is
used for parsing mmc device number and anyway it was parsed as 0.
Change-Id: I233c59f810acf37ace57abed99f30c1897595d2b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Marek Szyprowski [Fri, 29 Sep 2017 11:49:31 +0000 (13:49 +0200)]
configs: odroid-xu3: remove bootstage support
Bootstage slows down boot and sometimes shows message "bootstage: Failed
to add to device tree", which confuses users.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I1134f440d006506ab9fbdc4cbc1cddb61eb31c6c
Łukasz Stelmach [Mon, 16 Oct 2017 08:43:12 +0000 (10:43 +0200)]
rpi: support flashing an image of the INFORM partition
Change-Id: I3a48b84454eccc1b5382f47930d40fd55f67ac6d
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Tue, 10 Oct 2017 11:11:54 +0000 (13:11 +0200)]
rpi: Read the value of RSTS register
RSTS register allows passing information from OS too bootloader upon
reboot.
Change-Id: I2fa04fa0e63e5c81f78901c06ca8884f7e89f8e8
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Thu, 21 Sep 2017 08:20:38 +0000 (10:20 +0200)]
rpi: tizen-boot: enable runtime customisation of bootargs with ${opts}
Facilitate development of kernel and low level system components, by
making it easier for developers to add kernel command line arguments
via the ${opts} u-boot environment variable.
Change-Id: I4883cc5d29e4edaaa9ed17a3801808672ad66661
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>