platform/kernel/u-boot.git
2 years agorpi3: create the tizen specific rpi3 defconfig 52/268652/1 accepted/tizen/unified/20220105.120701 submit/tizen/20220104.074547
Jaehoon Chung [Wed, 29 Dec 2021 00:52:43 +0000 (09:52 +0900)]
rpi3: create the tizen specific rpi3 defconfig

Create the tizen specific rpi3 defconfig.
rpi_3_32b_defconfig/rpi_3_defconfig are restored to orignal mainline
status.

Change-Id: Ibdbd65d61bb148c3fbf13cc5045b0753c6c60009
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agorpi4: create the tizen specific rpi4 defconfig 51/268651/1
Jaehoon Chung [Wed, 29 Dec 2021 00:45:17 +0000 (09:45 +0900)]
rpi4: create the tizen specific rpi4 defconfig

Create the tizen specific rpi4 defconfig.
rpi_4_32b_defconfig and rpi_4_defconfig are restored to original mainline
status.

Change-Id: I409581139df9ae8fa080512b017f03c994c47c02
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agopackaging: Add dtc file in u-boot-tools package accepted/tizen/unified/20211125.003800 submit/tizen/20211124.034848
Jaehoon Chung [Wed, 24 Nov 2021 03:46:49 +0000 (12:46 +0900)]
packaging: Add dtc file in u-boot-tools package

Add dtc file in u-boot-tools package.

Change-Id: I30ca2b7b868d7ad362a3f600da0141e895056f7b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agopackaging: add u-boot spec file to build on obs submit/tizen/20211124.023912
Jaehoon Chung [Wed, 24 Nov 2021 02:33:16 +0000 (11:33 +0900)]
packaging: add u-boot spec file to build on obs

Add u-boot spec file to build on obs system.
xu3 config file is used to build, but it's not used anywhere.

Change-Id: Idc898fe52393f53c33b7f14cb5ad3d69d9a5b025
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: rpi4: use fdt already preloaded by the firmware 24/266924/1 submit/tizen/20211123.233157
Marek Szyprowski [Mon, 22 Nov 2021 11:29:39 +0000 (12:29 +0100)]
tizen: rpi4: use fdt already preloaded by the firmware

RPi4's firmware loads dtb and performs some fixups depending on the board
hardware revision. Simply reuse the fdt preloaded by the firmware instead
of loading it again from disk.

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

2 years agotizen: amlogic: adjust echo parameters after v2021.10 rebase
Marek Szyprowski [Wed, 17 Nov 2021 09:32:02 +0000 (10:32 +0100)]
tizen: amlogic: adjust echo parameters after v2021.10 rebase

To print a line without linefeed character now one has to use '-n'
parameter instead of the custom '\c' string used in older uboot releases.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agotizen: amlogic: vim3: adjust MMC device numbers for Tizen
Marek Szyprowski [Wed, 17 Nov 2021 09:28:09 +0000 (10:28 +0100)]
tizen: amlogic: vim3: adjust MMC device numbers for Tizen

Adjust MMC device numbers for SD to #0 and eMMC to #1 to match other
Tizen boards and simplify boot scripts.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agotizen: update specs after v2021.10 rebase and cleanup
Marek Szyprowski [Tue, 16 Nov 2021 13:05:00 +0000 (14:05 +0100)]
tizen: update specs after v2021.10 rebase and cleanup

Local, outdated copy of the dtc in tools/dtc has been removed, so the
specs need to be adjusted for this.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agotizen: update build version to v2021.10
Marek Szyprowski [Tue, 16 Nov 2021 13:01:24 +0000 (14:01 +0100)]
tizen: update build version to v2021.10

Update specs files to the proper base version.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agotizen: fix params.bin generation after v2021.10 rebase
Marek Szyprowski [Tue, 16 Nov 2021 12:46:04 +0000 (13:46 +0100)]
tizen: fix params.bin generation after v2021.10 rebase

Use the script provided by the mainline u-boot to generate default
params.bin instead of open coding its generation.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agotizen: amlogic: defconfig: adjust symbols after v2021.10 rebase
Marek Szyprowski [Tue, 16 Nov 2021 11:43:56 +0000 (12:43 +0100)]
tizen: amlogic: defconfig: adjust symbols after v2021.10 rebase

Move DFU related symbols to defconfig as needed by v2021.10 release.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agoscripts: tizen: sd_fusing_rpi3: update the rpi3 script
Jaehoon Chung [Thu, 14 Oct 2021 23:11:37 +0000 (08:11 +0900)]
scripts: tizen: sd_fusing_rpi3: update the rpi3 script

To prevent wrong operation, check the result whether format is succeed
or not. If it's failed, exit this script.
And if there is already "mnt_tmp" directory, remove it to clear the
previous status.

It's changed the location to remove a partition table with dd command
with count is changed  from 16 to 32.
Because  it seems that partition table doesn't clear.

Change-Id: Id3eb739d5add8784d0f41eca8a7e4360a8a0dbfd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoscript: sd_fusing_rpi3: fix the version checking
Jaehoon Chung [Tue, 5 Oct 2021 09:49:25 +0000 (18:49 +0900)]
script: sd_fusing_rpi3: fix the version checking

Fix the version checking about supporting delete option.

Change-Id: I02d638fc30d0b8afd575ca14031a238185e3c2a8
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoscripts: tizen: sd_fusing_rpi: use delete option about newer sfdisk
Jaehoon Chung [Fri, 1 Oct 2021 03:09:25 +0000 (12:09 +0900)]
scripts: tizen: sd_fusing_rpi: use delete option about newer sfdisk

Use delete option before format.
It's more stable than using dd.

Change-Id: Ic77b543f49e7633027cbcf524c7c7a76a474d04e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoscripts: tizen: sd_fusing: increase a ramdisk size to 32M
Jaehoon Chung [Tue, 17 Aug 2021 04:40:32 +0000 (13:40 +0900)]
scripts: tizen: sd_fusing: increase a ramdisk size to 32M

Increase a ramdisk size to 32M.

Change-Id: I17e062efffd25fb28fd564c529eb853b15327176
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agosamsung: tizen_rpi: change a hal partition size in mbr_check
Jaehoon Chung [Fri, 13 Aug 2021 04:33:44 +0000 (13:33 +0900)]
samsung: tizen_rpi: change a hal partition size in mbr_check

Change a hal partition size in mbr_check.
It doesn't affect to check a real size, but it needs to share correct
information.

Change-Id: Iaa792f38c8fde924f6ad1179ed5949f1a2de0885
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoscript: tizen: sd_fusing_rpi3: increase a hal partition size to 256M
Jaehoon Chung [Thu, 12 Aug 2021 02:55:05 +0000 (11:55 +0900)]
script: tizen: sd_fusing_rpi3: increase a hal partition size to 256M

Increase a hal partition size from 64M to 256M.

Change-Id: I650f2a5f7d946a6d5b251d7c5682b78afa8dd78f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agosamsung: tizen_amlogic: fix wrong dfu_info
Jaehoon Chung [Thu, 10 Jun 2021 05:50:15 +0000 (14:50 +0900)]
samsung: tizen_amlogic: fix wrong dfu_info

Fix wrong dfu_info without ";".

Change-Id: Iefbb1ffb43ee10e17977935e16618f7fc353f34d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoscripts: tizen: sd_fusing: umount block part only when mounted
Seung-Woo Kim [Fri, 2 Apr 2021 02:28:48 +0000 (11:28 +0900)]
scripts: tizen: sd_fusing: umount block part only when mounted

The umount command is used without checking the block part is
really mounted. Umount part only when mounted.

The series for cleaning up fusing script is done, so bump up
minor version instead of sub version.

Change-Id: Ic665936838be4529973d63c6123db9a2c7acc7d7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing: Fix to check file existence
Seung-Woo Kim [Fri, 2 Apr 2021 02:14:04 +0000 (11:14 +0900)]
scripts: tizen: sd_fusing: Fix to check file existence

The script can be executed with absent file. Fix to check
file existence.

Change-Id: I2409c73a5dcf4ca011e029b2e3fca9525cd6026a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing: Fix error only with -b option
Seung-Woo Kim [Fri, 2 Apr 2021 01:55:52 +0000 (10:55 +0900)]
scripts: tizen: sd_fusing: Fix error only with -b option

If there is only -b option without real binary name, there was
error. Fix the error only with -b option.

Change-Id: I4affff4ae5f567b81601727f33161251db2457c3
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing: Adjust log print
Seung-Woo Kim [Wed, 31 Mar 2021 07:40:22 +0000 (16:40 +0900)]
scripts: tizen: sd_fusing: Adjust log print

Show with proper tab indent for partition table when formatting
and show default behavior from warnning about format.

Change-Id: I36aac38f40780cf936a450c8f083c5ec1f207e6c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing: Use array for partition information
Seung-Woo Kim [Tue, 30 Mar 2021 07:40:27 +0000 (16:40 +0900)]
scripts: tizen: sd_fusing: Use array for partition information

Use array for partition information to remove duplication.

Change-Id: I6a8c5e3921cda24dc075321dcd5383dfda64149b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing_rpi3.sh: Add flashing hal.img
Seung-Woo Kim [Wed, 31 Mar 2021 11:31:57 +0000 (20:31 +0900)]
scripts: tizen: sd_fusing_rpi3.sh: Add flashing hal.img

As like dfu information of tizen_rpi, add flashing hal.img.

Change-Id: Ibfc26456dd6bf3a56df25573b9fb7b5f05d38dee
Ref: commit 9809b292e7c3 ("samsung: tizen_rpi: add hal.img in dfu information")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing_rpi3.sh: Change variable name properly
Seung-Woo Kim [Tue, 30 Mar 2021 07:33:05 +0000 (16:33 +0900)]
scripts: tizen: sd_fusing_rpi3.sh: Change variable name properly

The variable names, COL and ROW are used crossly from meaning.
Change the variable name properly.

Change-Id: If0ea313d2a275baf2c23261b2145141d2d79c276
Ref: commit 5dacf71810d7 ("scripts: odroid-xu4: remove non-necessary FUSE struct")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoscripts: tizen: sd_fusing: Use only part type from block device for fusing
Seung-Woo Kim [Tue, 30 Mar 2021 02:14:30 +0000 (11:14 +0900)]
scripts: tizen: sd_fusing: Use only part type from block device for fusing

Current block device parsing result gives both disk and part
types of block device and this can break parsing 1st partition
for "mmcblk1" case. Use only part type from block device for
fusing when flashing partition image.

Change-Id: I0ca393fd5ecd26d77939f16c9c412d00d18cb912
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agopackaging: update u-boot git repository url
Jaehoon Chung [Mon, 1 Mar 2021 22:50:05 +0000 (07:50 +0900)]
packaging: update u-boot git repository url

Update u-boot git repository URL from git.denx.de
to source.denx.de.

Change-Id: Ib9645ae340d9d0c45546baa0bc819d2ca1a1e395
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoboard: amlogic: odroid: adjust runtime detection for Tizen
Marek Szyprowski [Wed, 3 Feb 2021 14:36:14 +0000 (15:36 +0100)]
board: amlogic: odroid: adjust runtime detection for Tizen

Adjust file paths of board runtime detection for specific Tizen usage.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agosamsung: tizen_amlogic: add support for optional mainline kernel boot
Marek Szyprowski [Wed, 3 Feb 2021 08:35:48 +0000 (09:35 +0100)]
samsung: tizen_amlogic: add support for optional mainline kernel boot

Add support for optional mainline Linux kernel and DTBs. This requires
adjusting DTB file nameand console kernel cmdline parameters.

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

2 years agosamsung: tizen_amlogic: Use only meson64_odroidn2.dtb for OdroidN2 boards
Marek Szyprowski [Fri, 5 Feb 2021 13:58:20 +0000 (14:58 +0100)]
samsung: tizen_amlogic: Use only meson64_odroidn2.dtb for OdroidN2 boards

Switch OdroidN2 board to use meson64_odroidn2.dtb. For Tizen, the DRM
subsystem is enabled for the all Amlogic boards, so there is no need to
have separate dtb with the DRM enabled for OdroidN2 board.

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

2 years agotizen: amlogic: remove obsolete TIZEN_AMLOGIC_USE_VENDOR_KERNEL option
Marek Szyprowski [Wed, 3 Feb 2021 07:20:23 +0000 (08:20 +0100)]
tizen: amlogic: remove obsolete TIZEN_AMLOGIC_USE_VENDOR_KERNEL option

After a fix to vendor kernel, the workaround enabled by the
TIZEN_AMLOGIC_USE_VENDOR_KERNEL option is no longer needed.

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

2 years agosamsung: tizen_amlogic: improve messages on boot
Marek Szyprowski [Wed, 3 Feb 2021 07:11:29 +0000 (08:11 +0100)]
samsung: tizen_amlogic: improve messages on boot

Show proper button name while checking THOR download mode and change
'reboot' to 'reboot reason' to make it clear what it is being checked.

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

2 years agorpi: use board_early_init_r to init PCI/USB and detect boot device
Marek Szyprowski [Fri, 29 Jan 2021 12:03:03 +0000 (13:03 +0100)]
rpi: use board_early_init_r to init PCI/USB and detect boot device

Move initialization of the PCI and the USB subsystems from the 'preboot'
command to the board's early_init_r() function and then try to detect a
boot device by accessing the MMC0 device. If it works, then set boot
device interface to 'mmc', if not, use 'usb'.

This allows the environment variales to be loaded from the proper
storage interface.

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

2 years agoenv: fat: allow to dynamically set storage interface
Marek Szyprowski [Fri, 29 Jan 2021 12:01:31 +0000 (13:01 +0100)]
env: fat: allow to dynamically set storage interface

Add support for setting the FAT env storage interface dynamically by
defining board's own env_fat_get_interface() function.

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

2 years agotizen: rpi: add temporary workaround for usb boot
Marek Szyprowski [Thu, 28 Jan 2021 10:08:57 +0000 (11:08 +0100)]
tizen: rpi: add temporary workaround for usb boot

rootfs on USB device requires a bit more time to initialize and it is
probed asynchronously. This might happen after the initramfs is mounted
and init started, so add 2 seconds delay in case of USB boot to let
initramfs to detect the rootfs.

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

2 years agotizen: rpi: move MBR check to tizen-boot-rpi{3,4}.scr
Marek Szyprowski [Thu, 28 Jan 2021 08:55:49 +0000 (09:55 +0100)]
tizen: rpi: move MBR check to tizen-boot-rpi{3,4}.scr

Move the MBR check to tizen-boot-rpi{3,4}.scr and adjust it to the
optional USB boot. User request is changed to 'Press ENTER to continue'
if verify fails to allow script continuation.

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

2 years agotizen: rpi: adjust commands to the optional usb boot
Marek Szyprowski [Wed, 27 Jan 2021 22:01:15 +0000 (23:01 +0100)]
tizen: rpi: adjust commands to the optional usb boot

Properly set and use $bootdev instead of mmc to support optional usb boot
in the future.

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

2 years agosamsung: tizen_amlogic: use 'reserved1' partition for HAL
Marek Szyprowski [Tue, 26 Jan 2021 11:11:59 +0000 (12:11 +0100)]
samsung: tizen_amlogic: use 'reserved1' partition for HAL

Use the 'reserved1' (64M) partition for the Tizen HAL partition image and
adjust the name of the remaining reserved partitions.

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

2 years agosamsung: tizen_rpi: check MBR partition layout from preboot
Marek Szyprowski [Fri, 22 Jan 2021 10:24:04 +0000 (11:24 +0100)]
samsung: tizen_rpi: check MBR partition layout from preboot

Verify if the MBR partition layout on SD card matches the one defined in
the bootloader.

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

2 years agosamsung: tizen_rpi: remove support for the obsolete files
Marek Szyprowski [Thu, 21 Jan 2021 15:21:11 +0000 (16:21 +0100)]
samsung: tizen_rpi: remove support for the obsolete files

Remove no longer used 'u-boot.img' and 'optee.bin' images from the 'boot'
partition and dfu_alt_info image list.

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

2 years agosamsung: tizen_rpi: make 'dfu_alt_info' static
Marek Szyprowski [Tue, 17 Nov 2020 10:16:28 +0000 (11:16 +0100)]
samsung: tizen_rpi: make 'dfu_alt_info' static

The data layout on the storage device is the same all the time for RPi3/4
boards and fully known during the compile time. Use this simple approach,
which is a bit more error proof for future changes. It also obsoletes the
custom code added to RPi boards.

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

2 years agosamsung: tizen_rpi: add support for the MBR command
Marek Szyprowski [Thu, 21 Jan 2021 14:52:05 +0000 (15:52 +0100)]
samsung: tizen_rpi: add support for the MBR command

Enable recently added 'mbr' command and define MBR partition table layout
based on the values from the current sd_fusing_rpi3.sh script.

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

2 years agoscripts: tizen: sd_fusing_rpi3: rename 'RESERVED1' to 'HAL'
Marek Szyprowski [Mon, 25 Jan 2021 08:48:31 +0000 (09:48 +0100)]
scripts: tizen: sd_fusing_rpi3: rename 'RESERVED1' to 'HAL'

10th partition is used for HAL partition image, so use that name instead
of the 'RESERVED1'.

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

2 years agoscripts: tizen: sd_fusing_rpi3: fix size of the RESERVED2 partition
Marek Szyprowski [Mon, 25 Jan 2021 08:42:32 +0000 (09:42 +0100)]
scripts: tizen: sd_fusing_rpi3: fix size of the RESERVED2 partition

Older version of sd_fusing_rpi3.sh script had a bug, which results in
reduced size of the RESERVED2 partition to 125.5M instead of 128M. Adjust
the size of the RESERVED2 partition to 125M after the fixing sd_fusing
script to avoid further confusion, especially with the upcoming MBR
layout validation in the u-boot.

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

2 years agoscripts: tizen: sd_fusing_rpi3: adjust extended partition size calculation
Marek Szyprowski [Fri, 22 Jan 2021 10:57:03 +0000 (11:57 +0100)]
scripts: tizen: sd_fusing_rpi3: adjust extended partition size calculation

With so many partitions defined (currently 11), the extended partition
has to be larger regardless the sfdisk tool version, otherwise, the last
partition will be smaller than the requested size.

Without this fix, fdisk from util-linux 2.33.1 creates the last partition
of 125,5M instead of 128M.

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

2 years agoscript: tizen: remove sd_fusing_amlogic script
Jaehoon Chung [Tue, 19 Jan 2021 04:45:11 +0000 (13:45 +0900)]
script: tizen: remove sd_fusing_amlogic script

Remove sd_fusing_amlogic script.
Insteade, use 0-format.cmd file that is created from build script.
- ./tizen/build-amlogic.sh all
- It will be created tar file under output directory
- There should be amlogic_format_bootloader.tar.gz
- Use its format_bootloader.tar.gz

Change-Id: I9ef4dceb71d0830ebb2f69380f38d3ff63213bd9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agosamsung: tizen_amlogic: increase system-data size to 1.3G
Jaehoon Chung [Tue, 19 Jan 2021 04:44:09 +0000 (13:44 +0900)]
samsung: tizen_amlogic: increase system-data size to 1.3G

Increase system-data size from 512M to 1.3G.

Change-Id: I39398a900260eca7fd96d232ea95dc348a593804
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoconfigs: rpi4: disable CONFIG_USB_KEYBOARD
Jaehoon Chung [Mon, 18 Jan 2021 09:18:16 +0000 (18:18 +0900)]
configs: rpi4: disable CONFIG_USB_KEYBOARD

It doesn't need to enable CONFIG_USB_KEYBOARD on Tizen.
- It needs to enable USB_KEYBOARD when grub mode is used.

Change-Id: I8c7572d6f903037a9367351422010f72306e252f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoboard: rpi: add print_archinfo to display arch information
Jaehoon Chung [Fri, 15 Jan 2021 04:27:34 +0000 (13:27 +0900)]
board: rpi: add print_archinfo to display arch information

Current U-boot doesn't display a message about which architecture is
used. So Developer is difficult to know it by intuition.
This patch is displaying to CPU information with CONFIG_SYS_CPU.
- In mainline, it's used to display cpuinfo with CONFIG_DISPLAY_CPUINFO.
  But PRI4 doesn't implement print_cpuinfo(). Instead, display a cpuinfo
  in get_board_rev about RPI4 boards.

In RPI4 case,

U-Boot 2020.10-drity (Jan 15 2021 - 13:24:55 +0900)

DARM:  3.9 GiB
RPI 4 Model B (0xc03111)
CPU: armv7

Change-Id: I485194baa965065f44bac966d014ccfb31b9da60
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agosamsung: tizen_rpi: add swiotlb value to 8192 on 32bit
Jaehoon Chung [Mon, 11 Jan 2021 07:36:57 +0000 (16:36 +0900)]
samsung: tizen_rpi: add swiotlb value to 8192 on 32bit

When 32bit kernel is booting, kernel is reserving memory for SWIOTLB about
64MB. It seems that doesn't need to use full size.
After set 'swiotlb=8192', SWIOTLB is reserved to 16MB.
Then it can save 48MB memory to use ZONE_DMA.

Change-Id: I1a1659cbff2120da755b14f1b373715bc10027c4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: support recovery and fota mode
Jaehoon Chung [Thu, 7 Jan 2021 07:54:47 +0000 (16:54 +0900)]
tizen: support recovery and fota mode

Support recovery and fota mode.
It will be entered to recovery or fota mode with value by passed
from reboot command.

Change-Id: Ia7d3c80de2fb28491e6cabfcfb37059e7325f259
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: bootscript: amlogic: support gpio power key for odroid-c4
Seung-Woo Kim [Wed, 6 Jan 2021 10:46:42 +0000 (19:46 +0900)]
tizen: bootscript: amlogic: support gpio power key for odroid-c4

With gpio button, odroid-c4 can support gpio power. Set gpio power
key with PIN_11 from kernel boot_args.

GPIO pins are connected for ELB060675 button as like below:
    - out : PIN_11
    - vcc : PIN_9 (ground)
    - gnd : Not used.

Change-Id: I3aac017fe4a699b8576100cf3ee025a82054ee2d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoARM: dts: meson: change from ACTIVE_HIGH to ACTIVE_LOW
Jaehoon Chung [Wed, 6 Jan 2021 10:33:57 +0000 (19:33 +0900)]
ARM: dts: meson: change from ACTIVE_HIGH to ACTIVE_LOW

Whne button doesn't connect, it's always high.
So it needs to fix its case.
In our button's case,
- out : PIN_11
- vcc : GND
- gnd : Not used.

Change-Id: Ic8cf0f5853045cf181ad3c1c53e14e0fceb73b41
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agosamsung: tizen_amlogic: fix build error about not defined BUTTON_LAEBL
Jaehoon Chung [Wed, 6 Jan 2021 08:20:35 +0000 (17:20 +0900)]
samsung: tizen_amlogic: fix build error about not defined BUTTON_LAEBL

Fix build error about not defined BUTTON_LABEL.

Change-Id: Ifdc916c56c82aaac129ca764d8d501f4c0edcb26
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoconfigs: odroid-c4: support a button download mode
Jaehoon Chung [Wed, 6 Jan 2021 05:10:03 +0000 (14:10 +0900)]
configs: odroid-c4: support a button download mode

Support a button download mode.
If button is pressed, it will be entered to thor mode.

Change-Id: I1c1a4b8ff0d5d8b9b10b277876109b69ce2f02f8
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agosamsung: tizen_amlogic: add button_label variable
Jaehoon Chung [Wed, 6 Jan 2021 05:08:36 +0000 (14:08 +0900)]
samsung: tizen_amlogic: add button_label variable

Add button_label variable to clarify button about each boards.
- KVIM3(L)  : Function
- Odroid-C4 : PowerKey

Change-Id: I7580cce0c580df14debbe40c48a70f5b6aa532bd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoARM: dts: meson: add gpio-keys node to use PowerKey
Jaehoon Chung [Wed, 6 Jan 2021 05:01:03 +0000 (14:01 +0900)]
ARM: dts: meson: add gpio-keys node to use PowerKey

Add gpio-keys node to use PowerKey.
PowerKey - GPIOX_3 <PIN_11>

Change-Id: I99dae986119d4dc355c02b114a318a727134374c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: bootscript: rpi3: fix booting issue on 32bit
Seung-Woo Kim [Wed, 6 Jan 2021 05:50:04 +0000 (14:50 +0900)]
tizen: bootscript: rpi3: fix booting issue on 32bit

For 32bit, it should use bootz, but there was typo. Fix the
booting issue on 32bit.

Change-Id: I98ab0cd8cd88f1998c5dd30d649cfc7c4cf0e495
Fixes: commit 01cd50f4c3af ("tizen: rpi: move bootscripts to tizen specific directory")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoconfigs: enable SQUASFS configurations
Jaehoon Chung [Tue, 5 Jan 2021 08:06:27 +0000 (17:06 +0900)]
configs: enable SQUASFS configurations

Enable SQUASHFS configuration about reference targets.
It will be used when checking ramdisk image.

Change-Id: I42adf176d352508836b202fecf81f83a09bafd66
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: rpi: move bootscripts to tizen specific directory
Jaehoon Chung [Thu, 31 Dec 2020 06:18:17 +0000 (15:18 +0900)]
tizen: rpi: move bootscripts to tizen specific directory

Move bootscripts from board/raspberrypi/rpi to tizen/bootscript/.
And combine to one script, because those are duplicated almost codes.

Change-Id: I2ee929bbcd6cb68566d441a272a1ba3d84beb100
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: bootscript: amlogic: support recovery mode
Jaehoon Chung [Mon, 28 Dec 2020 02:25:16 +0000 (11:25 +0900)]
tizen: bootscript: amlogic: support recovery mode

Support recovery mode.

Change-Id: Idf6dca45c0e3636c0579b674223e4af7c59d767f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: bootscript: amlogic: remove tizen specific kernel loading address
Jaehoon Chung [Mon, 28 Dec 2020 02:00:20 +0000 (11:00 +0900)]
tizen: bootscript: amlogic: remove tizen specific kernel loading address

Remove tizen specific kernel loading address.
When it's entered to recovery mode, "Synchronous Abort" is occurred.

Change-Id: I6ff3afc52299b12714a25bb83fe114467c007573
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: bootscript: amlogic: remove voutmode in bootargs
Jaehoon Chung [Mon, 28 Dec 2020 01:28:38 +0000 (10:28 +0900)]
tizen: bootscript: amlogic: remove voutmode in bootargs

Remove voutmode in bootargs.
If it's defined, it will be passed from boot_args.
- It's used in only odroid-n2/c4.

Change-Id: I112c4932c31b8e33cdb8c073712f443c5c88c1ac
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: script: ignore when no file in output directory
Seung-Woo Kim [Tue, 22 Dec 2020 01:51:15 +0000 (10:51 +0900)]
tizen: script: ignore when no file in output directory

The build output directory can have no file. Ignore when no file
in the output directory.

Change-Id: Ia2ce4c25f7f386915c2606a36d4ea66ca46747e3
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agotizen: move Function button check to separate env script
Marek Szyprowski [Mon, 21 Dec 2020 10:25:56 +0000 (11:25 +0100)]
tizen: move Function button check to separate env script

This will make CONFIG_PREBOOT a bit more readable and easier to
understand.

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

2 years agoconfigs: amlogic: check a reboot reason to enter download mode
Jaehoon Chung [Mon, 21 Dec 2020 05:06:57 +0000 (14:06 +0900)]
configs: amlogic: check a reboot reason to enter download mode

Check a reboot reason to enter download mode.
If reboot reason is download, it will be entered to download mode.

Change-Id: I9a2223962ad49a19a2b084711107dd23e6c17b95
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoARM: meson: add a reboot reason about DOWNLOAD
Jaehoon Chung [Mon, 21 Dec 2020 05:06:46 +0000 (14:06 +0900)]
ARM: meson: add a reboot reason about DOWNLOAD

Tizen is using "reboot download" as download mode.

Change-Id: Ia53d1605982957bc2388552e81c4d3cd99eac1e8
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: make version parsing insensitive to message tranlations
Łukasz Stelmach [Fri, 18 Dec 2020 19:11:50 +0000 (20:11 +0100)]
tizen: make version parsing insensitive to message tranlations

Localised versions of version messages present version number at different
positions. Matching numbers with grep(1) ensures that version number is
extracted properly regardles of the message format.

Change-Id: I6dd4bc476aaa43c1a736f269dc14910d8653b730
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2 years agotizen: vim3(l)_deconfig: enable THOR mode if Func button is pressed
Marek Szyprowski [Mon, 14 Dec 2020 07:33:30 +0000 (08:33 +0100)]
tizen: vim3(l)_deconfig: enable THOR mode if Func button is pressed

Extend the preboot script with a check of the Func button state. If it is
pressed, enter the THOR download mode.

Change-Id: Ic026c345078adbd9030b65e250b18afcc171553b
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2 years agotizen: script: fix wrong indent for case
Seung-Woo Kim [Fri, 18 Dec 2020 04:43:35 +0000 (13:43 +0900)]
tizen: script: fix wrong indent for case

There are unmet indent for case statement. Fix the wrong indent.

Change-Id: Iafb7e9586c5b401f481cef5afbc879c8f12f90e2
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agolib: tizen: fix build error with tizen_defconfig
Jaehoon Chung [Wed, 16 Dec 2020 04:33:24 +0000 (13:33 +0900)]
lib: tizen: fix build error with tizen_defconfig

Fix build error with tizen_defconfig.
tizen_defconfig doesn't support DM_VIDEO.

Change-Id: Ie86a45e97c8d8c4c70e13dfaba70f23b0bdccd93
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agosamsung: tizen_amlogic: update loglevel from 4 to 7
Jaehoon Chung [Tue, 15 Dec 2020 22:27:39 +0000 (07:27 +0900)]
samsung: tizen_amlogic: update loglevel from 4 to 7

Update loglevel from 4 to 7.
It's useful that can see more log message because of kernel isn't stable.
In future, it will be restore to 4.

Change-Id: I162b3a049acd1a6765b4c7f9e5ce610fce238e59
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: bootscript: amlogic: restore ${opts} support
Marek Szyprowski [Thu, 10 Dec 2020 13:55:46 +0000 (14:55 +0100)]
tizen: bootscript: amlogic: restore ${opts} support

After unification of the Amlogic based boards boot scripts, support for
appending ${opts} to kernel cmdline has been lost. Restore it to make the
kernel debugging easier.

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

2 years agosamsung: tizen_rpi: add hal.img in dfu information
Jaehoon Chung [Wed, 9 Dec 2020 10:33:04 +0000 (19:33 +0900)]
samsung: tizen_rpi: add hal.img in dfu information

Add hal.img in dfu information.
It's for just prepering to thor download.
- Avoid to fail thor protocol when hal image is created.

Change-Id: I78df372fc0bfa260d120c16c59a4b7bfd6fdddcf
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agomeson: add TIZEN_AMLOGIC_USE_VENDOR_KERNEL config
Jaehoon Chung [Wed, 9 Dec 2020 09:21:44 +0000 (18:21 +0900)]
meson: add TIZEN_AMLOGIC_USE_VENDOR_KERNEL config

Add TIZEN_AMLOGIC_USE_VENDOR_KERNEL config.
It's more claar than just using CONFIG_TIZEN.
If someone wants to use mainline kernel, just disable it.

Enable CONFIG_TIZEN_AMLOGIC_USE_VENDOR_KERNEL.
- odroid-{c4,n2}_defconfig
- khadas-{vim3,vim3l}_defconfig
Tizen is using each board's vendor kernel.

Change-Id: I2a11e3e08e58ced7ef286487044a1616ac3ac8f4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agolib: tizen: Add support for thor status notifications on video console
Sylwester Nawrocki [Tue, 8 Dec 2020 18:28:58 +0000 (19:28 +0100)]
lib: tizen: Add support for thor status notifications on video console

This patch implements thor flashing progress bar and status notifications
on graphics console.

Change-Id: Iba4945ae26358936de1e1847d0095f97e6ab3498
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2 years agothor: Add API for thor status notifications
Sylwester Nawrocki [Wed, 25 Nov 2020 17:54:28 +0000 (18:54 +0100)]
thor: Add API for thor status notifications

This patch adds an empty by default thor_status_notify() function which
can be reimplemented as required and which allows to add notifications
of thor status and flashing progress, e.g. on external monitor.

Change-Id: Ic1eaad7f3f5adbca404162b745a9287d5a9ae247
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2 years agopackaging: u-boot-amlogic: add a spec file for all amlogic boards
Jaehoon Chung [Mon, 7 Dec 2020 03:42:46 +0000 (12:42 +0900)]
packaging: u-boot-amlogic: add a spec file for all amlogic boards

Add a spec file for all amlogic boards.
- It will be provided u-boot-{n2,c4,vim3,vim3l} packages
- Remove each spec files

Change-Id: Ic4f8ab6f5608fbe8606fdc3cca591e53c7bdfe18
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoconfigs: put a space to sys prompt in odroid-{c4,n2}_defconfig and khadas-vim3(l...
Seung-Woo Kim [Mon, 7 Dec 2020 06:13:15 +0000 (15:13 +0900)]
configs: put a space to sys prompt in odroid-{c4,n2}_defconfig and khadas-vim3(l)_defconfig

Like all other targets, put a space to sys prompt.

Change-Id: Ie106f61406b686dfc7ec98079cb6adf96a7d6fff
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2 years agoconfigs: Enable options for splash image in odroid-{c4,n2}_defconfig
Marek Szyprowski [Tue, 1 Dec 2020 17:38:51 +0000 (18:38 +0100)]
configs: Enable options for splash image in odroid-{c4,n2}_defconfig

These options are needed for the splash image loading.

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

2 years agotizen: amlogic: Add hdmimode env variable
Sylwester Nawrocki [Wed, 2 Dec 2020 15:32:54 +0000 (16:32 +0100)]
tizen: amlogic: Add hdmimode env variable

The hdmimode variable set to "1080p60hz" value allows the HDMI driver
to switch to default full HD timings for QHD/UHD monitors and such
monitors can still be used in lower resolution mode.
This a workaround until proper support for QHD/UHD is implemented
in the VPU driver.
The new variable is also used in kernel bootargs.

Change-Id: Ib1b58ee9173fa380c1c79bf819b0ffaca1a6aab9
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2 years agovideo: meson: Add fallback to default timings for QHD/UHD monitors
Sylwester Nawrocki [Wed, 25 Nov 2020 19:13:55 +0000 (20:13 +0100)]
video: meson: Add fallback to default timings for QHD/UHD monitors

The HDMI driver currently supports only up to 1920x1200 resolutions
and QHD/UHD monitors might not specify detailed timings in EDID other
than those for their maximum resolution, even though they work with
lower resolutions like full HD. In such cases display_read_timings()
will fail breaking the video output driver initialization.

As a workaround fallback to full HD timings is added for QHD or UHD
monitors. The default timing will only be used when "hdmimode"
environment variable is set to "1080p60hz", otherwise the driver
switches to CVBS mode as before, when display timings are
unsupported/could not be read.

The proper solution would be to implement support for 2K/4K HDMI
modes, which are also not supported yet by driver in the kernel.

Change-Id: I407228392a6b1b6e8b0c55a6962235111df0c69c
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2 years agotizen: Add splash image file to the bootloader tar image
Sylwester Nawrocki [Wed, 2 Dec 2020 09:37:27 +0000 (10:37 +0100)]
tizen: Add splash image file to the bootloader tar image

Change-Id: Ie3e1f76a663eddb65887ec42c651dedbd6b07f81
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2 years agoconfigs: Enable options for splash image in khadas-vim3(l)_defconfig
Sylwester Nawrocki [Tue, 1 Dec 2020 17:38:51 +0000 (18:38 +0100)]
configs: Enable options for splash image in khadas-vim3(l)_defconfig

These options are needed for the splash image loading.

Change-Id: Ieeddd2e2d9ff6872297b9eb3f3d899702ee717a7
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2 years agotizen: amlogic: add CONFIG entries for splash image loading
Sylwester Nawrocki [Thu, 26 Nov 2020 16:42:18 +0000 (17:42 +0100)]
tizen: amlogic: add CONFIG entries for splash image loading

These options are needed for decompressing the logo image file
(gzipped BMP).

Change-Id: Ieb3c35adf5007e2f795f2cecc3cf365e7a40b629
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2 years agoconfigs: tizen_amlogic: Add environment variables for splash image
Sylwester Nawrocki [Thu, 26 Nov 2020 18:45:01 +0000 (19:45 +0100)]
configs: tizen_amlogic: Add environment variables for splash image

Set the splash file location, bmp image load address and logo position
on the display.

The compressed bitmap file should be installed on first mmc partition.

Change-Id: Ic1ce517460beaf318821f53ed3adbe6c41e091e8
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2 years agopackaging: u-boot-vim3(l): Add tizen logo bitmap file
Sylwester Nawrocki [Tue, 1 Dec 2020 17:37:40 +0000 (18:37 +0100)]
packaging: u-boot-vim3(l): Add tizen logo bitmap file

This image will be used as u-boot splash image.

Change-Id: I262cc2219435afc7c8f208ff39b2bf7cce6a636c
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2 years agotizen: enable support for formatting MBR partition layout during flashing
Marek Szyprowski [Thu, 26 Nov 2020 14:32:03 +0000 (15:32 +0100)]
tizen: enable support for formatting MBR partition layout during flashing

This is ensured by the following steps:
1. enable 'mbr' command and provide default partiton layout,
2. add support for formating block device from THOR downloaded script,
3. check MBR partition layout on boot and enter THOR mode if invalid
4. provide a script for formating MBR for THOR download

MBR partition layout is checked on boot if it mathes the one defined
during u-boot compilation. If not, set dfu_alt_info to the minimal safe
list and enter THOR download mode to flash the new, proper partition
layout and the complete Tizen image.

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

2 years agotizen: build-amlogic: add support for building images for all boards
Marek Szyprowski [Thu, 3 Dec 2020 16:49:23 +0000 (17:49 +0100)]
tizen: build-amlogic: add support for building images for all boards

Add 'all' target for build-amlogic.sh to build images for all supported
boards and pack them to the common amlogic_bootloader.tar.

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

2 years agotizen: bootscript: amlogic: use proper string comparison operator
Marek Szyprowski [Thu, 3 Dec 2020 16:24:30 +0000 (17:24 +0100)]
tizen: bootscript: amlogic: use proper string comparison operator

The proper string comparison operator for u-boot's test is '='.

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

2 years agotizen: limit boot to MMC0 and MMC1 devices
Marek Szyprowski [Thu, 3 Dec 2020 10:57:48 +0000 (11:57 +0100)]
tizen: limit boot to MMC0 and MMC1 devices

Other types of boot are not supported on Tizen, so disable generating
scripts and envs for them.

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

2 years agotizen: avoid doubled entries in params.bin
Marek Szyprowski [Thu, 3 Dec 2020 10:55:29 +0000 (11:55 +0100)]
tizen: avoid doubled entries in params.bin

Disable generating entries (re)defined in tizen_amlogic.h to avoid
confusing user, which one is valid.

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

2 years agotizen: remove generic params.bin and u-boot.bin
Marek Szyprowski [Tue, 1 Dec 2020 09:36:03 +0000 (10:36 +0100)]
tizen: remove generic params.bin and u-boot.bin

The generic entity params.bin is no longer functional, so remove it. Also
remove generic entity for the u-boot.bin to force user to use proper
board specific image.

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

2 years agotizen: sanitize file names for VIM3(l) boards
Marek Szyprowski [Mon, 30 Nov 2020 14:13:51 +0000 (15:13 +0100)]
tizen: sanitize file names for VIM3(l) boards

Use only the board name (vim3/vim3l) in file names (i.e. u-boot-vim3.bin)
like it is done for odroid boards (i.e. u-boot-c4.bin).

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

2 years agotizen: unify build script for all boards
Marek Szyprowski [Mon, 30 Nov 2020 13:14:04 +0000 (14:14 +0100)]
tizen: unify build script for all boards

Use the same build script for all Amlogic boards.

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

2 years agotizen: amlogic: change a params name to postfix of each board's name
Jaehoon Chung [Mon, 30 Nov 2020 03:33:22 +0000 (12:33 +0900)]
tizen: amlogic: change a params name to postfix of each board's name

Chagne a params.bin name to postfix of each board's name and location
to root directory.
Also changed the kernel directory from each boardname to kvim/odroid.

Change-Id: I0468f0894d7220cc55b64885c8c411f2c5340606
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agopackaging: amlogic: use one boot.scr.uimg script
Jaehoon Chung [Fri, 27 Nov 2020 08:24:22 +0000 (17:24 +0900)]
packaging: amlogic: use one boot.scr.uimg script

Use one boot.scr.uimg instead of each scsripts.
To prevent conflict, move to boot.scr.uimg after installed each script.
Also change the place of boot.scr.uimg in build script.

Change-Id: Ia7d0746062f6d548ae1fb36a7111d55d353a1545
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agotizen: bootscript: amlogic: calculate tizen_kernel_add_r with ramdisk's size
Jaehoon Chung [Fri, 27 Nov 2020 02:11:09 +0000 (11:11 +0900)]
tizen: bootscript: amlogic: calculate tizen_kernel_add_r with ramdisk's size

Calculate tizen_kernel_addr_r with ramdisk's size.
It cat be prevented to overwrite the images.

Change-Id: If766b514e40865c3a531c3ebbe75f6b7a6898b2a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoconfigs: enable CONFIG_SETEXPR config
Jaehoon Chung [Fri, 27 Nov 2020 02:11:03 +0000 (11:11 +0900)]
configs: enable CONFIG_SETEXPR config

Eanble CONFIG_SETEXPR configuration.

Change-Id: If1255fabae584b17e176fb7d8cbc0324ac2b3902
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agopackaging: u-boot-kvim3l: add kvim3l spec file
Jaehoon Chung [Thu, 26 Nov 2020 01:06:11 +0000 (10:06 +0900)]
packaging: u-boot-kvim3l: add kvim3l spec file

Add kvim3l spec file for khadas-vim3l.

Change-Id: Ie7ddaaab70a3218a81927ccef9953bdb41e4eb52
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>