platform/kernel/u-boot.git
5 weeks agotizen: bootscript: remove usb boot related workaround 68/308368/1 accepted/tizen/unified/20240327.064201 accepted/tizen/unified/x/20240401.142404
Marek Szyprowski [Fri, 22 Mar 2024 08:53:51 +0000 (09:53 +0100)]
tizen: bootscript: remove usb boot related workaround

Once rootfs block device retry loop has been added to init script, this
workaround is no longer needed.

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

5 weeks agotizen: bootscript: Use set bootmode also for cpio initramfs 05/308305/2 accepted/tizen/unified/20240322.174326 accepted/tizen/unified/x/20240326.073311
Seung-Woo Kim [Thu, 21 Mar 2024 05:00:53 +0000 (14:00 +0900)]
tizen: bootscript: Use set bootmode also for cpio initramfs

When using initramfs, bootmode should be used as it is set,
instead of 'normal'. So, also for cpio initramfs case, use set
bootmode.
Also, adjust script flow to check ramdisk/initramfs only once.

Change-Id: Iac90ee47a8e9f8a89fdd812f7b78bc5f43048198
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 weeks agoscripts: tizen: sd_fusing.py: Display an information during flashing 88/307988/2 accepted/tizen/unified/20240319.020727 accepted/tizen/unified/x/20240320.055302
Jaehoon Chung [Fri, 15 Mar 2024 04:26:09 +0000 (13:26 +0900)]
scripts: tizen: sd_fusing.py: Display an information during flashing

Display an information during flashing.
Developer can see what script is doing.

Change-Id: Id6ffd67b885f623f8778db9a51e7606a7896c71a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 weeks agoRevert "samsung: tizen_rpi: Add container partition in GPT_PARTS_DEFAULT" 87/307987/1
Jaehoon Chung [Fri, 15 Mar 2024 00:39:50 +0000 (09:39 +0900)]
Revert "samsung: tizen_rpi: Add container partition in GPT_PARTS_DEFAULT"

This reverts commit f398a318d7d49bf21055f9b5f4bc40d6ccedd1ec.
AoT partitoin is not used by default. So it doesn't need to add
container partiton in GPT_PARTS_DEFAULT.

Change-Id: Ia63c0f52b5fc347623ff1d23d15b1538882bd70f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 weeks agotizen: bootscript: add support for loading initramfs from ramdisk partition 78/306978/5
Marek Szyprowski [Fri, 1 Mar 2024 10:14:52 +0000 (11:14 +0100)]
tizen: bootscript: add support for loading initramfs from ramdisk partition

If initrd-style ramdisk is not detected (no filesystem nor /sbin/init
file found), then check ramdisk partition for the gzip magic value and if
detected, load it as initramfs image.

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

6 weeks agotizen: rpi: add support for RPi5 console 71/307171/2 accepted/tizen/unified/20240315.111201 accepted/tizen/unified/20240315.155124 accepted/tizen/unified/x/20240319.055506
Marek Szyprowski [Tue, 5 Mar 2024 13:56:21 +0000 (14:56 +0100)]
tizen: rpi: add support for RPi5 console

RPi5 board uses different drivers for the serial console than RPi4, so
the kernel's console parameter has to be adjusted depending on the
detected board and its configuration.

On RPi5 there are 2 serial ports available for debug messages:

1. Dedicated debug UART port. Used by firmware and u-boot
unconditionally. It is instantiated as /dev/ttyAMA10. By default it is
also used for kernel's earlycon and serial console.

2. Standard UART available on GPIO14 & GPIO15 lines (pins 8 & 10 on the
40-pin header, like on the RPi4). This can be enabled by adding
"dtoverlay=uart0-pi5" line to "config.txt" on "boot" partition. It is
instantiated as /dev/ttyAMA0. It can be used only for the standard Linux
kernel console and serial login.

Change-Id: I34aa978148fb593f5f88d3ed6471c8c3c7a74a38
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
6 weeks agoconfigs: tizen_rpi_4: enable options needed for RPi5 support 70/307170/2
Marek Szyprowski [Tue, 5 Mar 2024 12:28:49 +0000 (13:28 +0100)]
configs: tizen_rpi_4: enable options needed for RPi5 support

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

6 weeks agommc: bcmstb: Add support for bcm2712 SD controller 69/307169/2
Ivan T. Ivanov [Tue, 23 Jan 2024 08:07:57 +0000 (10:07 +0200)]
mmc: bcmstb: Add support for bcm2712 SD controller

Make sure that core SDHCI accessors are used and add
device specific card detection initialization, which
is borrowed from vendor Linux driver code.

Tested-by: Jens Maus <mail@jens-maus.de>
Tested-by: Darko Alavanja <darko.alavanja@konsulko.com>
Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
[backport of the commit 10127cdbab64831175a56c782d34183ac57358b7 from mainline]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: If66eedd51c77b59dc8c97543419897e32258d4d1

6 weeks agorpi5: Use devicetree to retrieve board revision 68/307168/2
Ivan T. Ivanov [Tue, 23 Jan 2024 08:07:55 +0000 (10:07 +0200)]
rpi5: Use devicetree to retrieve board revision

Firmware on RPi5 return error on board revision query
through firmware interface, but on the other hand it fills
"linux,revision" in "system" node, so use it to detect board
revision.

system {
linux,revision = <0xc04170>;
linux,serial = <0x6cf44e80 0x3c533ede>;
};

Reviewed-by: Matthias Brugger <mbrugger@suse.com>
Tested-by: Jens Maus <mail@jens-maus.de>
Tested-by: Darko Alavanja <darko.alavanja@konsulko.com>
Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
[backport of the commit 08a5b4bd6cc14ad999a2d9a389f8b8b9dcea1682 from mainline]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I9e5a1698456f03891ea0fb0c375f5386e8f447be

6 weeks agorpi5: Use devicetree as alternative way to read IO base addresses 67/307167/2
Dmitry Malkin [Tue, 23 Jan 2024 08:07:54 +0000 (10:07 +0200)]
rpi5: Use devicetree as alternative way to read IO base addresses

MBOX and Watchdog on RPi5/bcm2712 have a different base IO offsets.
Find them via devicetree blob passed by bootloader.

Signed-off-by: Dmitry Malkin <dmitry@bedrocksystems.com>
Reviewed-by: Matthias Brugger <mbrugger@suse.com>
Tested-by: Jens Maus <mail@jens-maus.de>
Tested-by: Darko Alavanja <darko.alavanja@konsulko.com>
Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
[backport of the commit 60878e753c3d37ddc974c0de9da643850df175b6 from mainline]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I4c674196a08176b649f325cd777c5f01adad1380

6 weeks agorpi5: add initial memory map for bcm2712 66/307166/2
Dmitry Malkin [Tue, 23 Jan 2024 08:07:53 +0000 (10:07 +0200)]
rpi5: add initial memory map for bcm2712

This includes:
* 1GB of RAM (from 4GB or 8GB total)
* AXI ranges (main peripherals)

When HDMI cable is plugged in at boot time firmware will
insert "simple-framebuffer" device into devicetree and will
shrink first memory region to 0x3f800000UL. Board setup then
will properly reserve framebuffer region.

When no HDMI cable is plugged in the size of the region will
be 0x3fc00000UL.

Signed-off-by: Dmitry Malkin <dmitry@bedrocksystems.com>
Tested-by: Jens Maus <mail@jens-maus.de>
Tested-by: Darko Alavanja <darko.alavanja@konsulko.com>
Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
[backport of the commit a5a27eafc422b7a57de904b73152fc9a860c7640 from mainline]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I2b0bbf11932c5d44a8a0fe41b3464f9575c6c4dc

7 weeks agoscripts: tizen: sd_fusing.py: Separate the VF2 from RV64 06/307506/1
Jaehoon Chung [Mon, 11 Mar 2024 09:24:21 +0000 (18:24 +0900)]
scripts: tizen: sd_fusing.py: Separate the VF2 from RV64

VisionFive2 needs to flash the u-boot-spl.bin.normal.out.
Separate the VF2 from RV64.

Change-Id: I19cef42d61131c6907daef2a8d791106673264c1
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 weeks agoscripts: tizen: Remove sd_fusing shell scripts 84/307384/1
Jaehoon Chung [Fri, 8 Mar 2024 00:30:01 +0000 (09:30 +0900)]
scripts: tizen: Remove sd_fusing shell scripts

Remove sd_fusing shell scripts. Instead, use sd_fusing.py script.
We don't support shell script anymore.

Change-Id: I4915893a0aeaaed46f0b0dcb40eb546f85c8fed0
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 months agotizen: bootscript: vf2: Support booting from nvme 58/306458/2
Tymoteusz Wenerski [Wed, 21 Feb 2024 12:34:15 +0000 (13:34 +0100)]
tizen: bootscript: vf2: Support booting from nvme

Support booting from nvme with valid rootpart number.

Change-Id: Ibbb5b3c3c66caa7ce112ff2ddd593a9ca90a995d
Signed-off-by: Tymoteusz Wenerski <t.wenerski@partner.samsung.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2 months agotizen: rpi: enable 'memory' cgroup by default 89/306689/1
Marek Szyprowski [Mon, 26 Feb 2024 07:47:53 +0000 (08:47 +0100)]
tizen: rpi: enable 'memory' cgroup by default

The 'memory' cgroup is required for Tizen, but since kernel's commit
"cgroup: Disable cgroup "memory" by default" it is disabled in RPi vendor
kernels.

Enable it directly from command line to avoid the need of patching vendor
kernels.

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

3 months agoscripts: tizen: sd_fusing.py: Add Rpi4AoT partition map 93/304193/1
Jaehoon Chung [Fri, 12 Jan 2024 00:55:25 +0000 (09:55 +0900)]
scripts: tizen: sd_fusing.py: Add Rpi4AoT partition map

Add Rpi4Aot Partition map to support an AoT on RPi4.

Change-Id: I6ab6b1d51408c01cb2e219cc6f4699eb849f130e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
3 months agosamsung: tizen_rpi: Add container partition in GPT_PARTS_DEFAULT 79/304079/4
Jaehoon Chung [Wed, 10 Jan 2024 01:17:05 +0000 (10:17 +0900)]
samsung: tizen_rpi: Add container partition in GPT_PARTS_DEFAULT

Add container partition in GPT_PARTS_DEFAULT and DFU_ALT_SYSTEM.

Change-Id: I7f19453d84ee8f295be41c903f778a0dbee064f7
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
3 months agoscripts: tizen: sd_fusing_rpi4: Add container images partitions 78/304078/4
Jaehoon Chung [Wed, 10 Jan 2024 00:58:45 +0000 (09:58 +0900)]
scripts: tizen: sd_fusing_rpi4: Add container images partitions

Add containers images partitions for supporting AoT.
It will be applied to sd_fusing.py in future.
Until applying this into sd_fusing.py, this script can be using.

NOTE: sd_fusing shell script was deprecated. This script will be
removed.

Change-Id: I35b6aaa12fd68941f832513f7513d22b994b0455
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
3 months agoconfigs: meson64: Remove the duplicated defined ENV_SETTING 44/304044/1 accepted/tizen_unified_riscv accepted/tizen/unified/20240110.154144 accepted/tizen/unified/riscv/20240110.052257
Jaehoon Chung [Tue, 9 Jan 2024 09:31:56 +0000 (18:31 +0900)]
configs: meson64: Remove the duplicated defined ENV_SETTING

Remove the duplicated defined ENV_SETTING.
It's caused by not created correct 0-format.cmd file.

Change-Id: Ia5df7c8c3840368f5c952c29caf3dbe00d28b6bf
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
3 months agoscripts: Add InitParams about RV64 38/303538/1
Jaehoon Chung [Tue, 2 Jan 2024 01:40:55 +0000 (10:40 +0900)]
scripts: Add InitParams about RV64

Add InitParams about RV64(Visionfive2 board).
It will be created reboot-param.bin and reboot-param.info.

Change-Id: I282d974e777b5caea50353eb3ccc8922099f6d0c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
3 months agoscripts: Change a class name from RpiInitParams to InitParams 37/303537/1
Jaehoon Chung [Tue, 2 Jan 2024 01:28:02 +0000 (10:28 +0900)]
scripts: Change a class name from RpiInitParams to InitParams

InitParams can be also used for other targets, not only Rpi.
So the Rpi prefix can be removed.

Change-Id: I6b55056cddb8aef2fa582a9e40565423319904fe
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 months agoconfigs: Enable CONFIG_SPL_DM_SEQ_ALIAS 93/303393/1 accepted/tizen/unified/20231227.170504 accepted/tizen/unified/riscv/20231227.105107
Jaehoon Chung [Wed, 27 Dec 2023 03:34:36 +0000 (12:34 +0900)]
configs: Enable CONFIG_SPL_DM_SEQ_ALIAS

Enable CONFIG_SPL_DM_SEQ_ALIAS configuration to use alias on SPL side.

Change-Id: Ibce270d2f96a51ffae577e82a05ffa242fa50734
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
4 months agoi2c: designware_i2c: adjust timing calculation 92/303392/1
Heinrich Schuchardt [Fri, 13 Oct 2023 13:09:39 +0000 (15:09 +0200)]
i2c: designware_i2c: adjust timing calculation

In SPL probing of the designware_i2c device on the StarFive VisionFive 2
board fails with

    dw_i2c: mode 0, ic_clk 1000000, speed 100000,
    period 10 rise 1 fall 1 tlow 5 thigh 4 spk 0
    dw_i2c: bad counts. hcnt = -4 lcnt = 4
    device_probe: i2c@12050000 failed to probe -22

When changing the offset for the high phase from 7 to 3 the device is
probed correctly. This now matches the value from the Linux driver.

Without this fix the memory size of the StarFive VisionFive 2 board cannot
be read from EEPROM.

Fixes: e71b6f6622d6 ("i2c: designware_i2c: Rewrite timing calculation")

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
[cherry picked from mainline commit 35e8007ef382cb1f0523a9106fbc8d4d4404cb27]
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: Iebbce724f9db2102ec2743dbf749352013c8e400

5 months agoscripts: support x86 emulator images for QEMU 46/301846/2 accepted/tizen/unified/20231211.095412 accepted/tizen/unified/riscv/20231215.050220
Łukasz Stelmach [Fri, 24 Nov 2023 10:59:45 +0000 (11:59 +0100)]
scripts: support x86 emulator images for QEMU

Change-Id: I24261d9dbc2926e1d0b7b39402269a09b48dd82b
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
5 months agoscripts: add support for "swap" filesystem type 45/301845/2
Łukasz Stelmach [Fri, 24 Nov 2023 10:55:12 +0000 (11:55 +0100)]
scripts: add support for "swap" filesystem type

Run mkswap(8) for partitions with have their fstype set to "swap". x86
emulator images require swap partition to be present.

Change-Id: Ia8e9be666f1f2c587396b8e11bf515d02370a2ad
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
5 months agoscripts: support targets without the user partiton 44/301844/2
Łukasz Stelmach [Fri, 24 Nov 2023 10:50:48 +0000 (11:50 +0100)]
scripts: support targets without the user partiton

x86 emulator images do not ship user partition. Therefore
there is no point in doing all the size calculations required
for other targets.

Change-Id: Ia59156c653695cc9067e9f971a7b4dcaa8af9d71
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
5 months agoriscv: dts: jh7110: Add pmu for opensbi 51/301351/4 accepted/tizen/unified/riscv/20231123.095154
Hoegeun Kwon [Wed, 1 Nov 2023 10:34:29 +0000 (19:34 +0900)]
riscv: dts: jh7110: Add pmu for opensbi

Add pmu dts node for opensbi used.

Refer to Mainline Kernel:
[https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/riscv/boot/dts/starfive/jh7110.dtsi?h=v6.7-rc2#n1100]

Change-Id: I171649219a90f75ad98d88ffe382f7ffd00d1bd7
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
5 months agoriscv: dts: starfive: pmic: add axp15060 pmic node 50/301350/4
Hoegeun Kwon [Wed, 1 Nov 2023 10:30:42 +0000 (19:30 +0900)]
riscv: dts: starfive: pmic: add axp15060 pmic node

Add an axp15060 pmic dts node for opensbi power managment used.

Refer to Mainline Kernel:
[https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi?h=v6.7-rc2#n189]

Change-Id: Icfcdb134a3d752126d629040e2861ee5bd3fa5b3
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
5 months agoscripts: tizen: sd_fusing_rpi4.sh: Fix minor typos in message 01/301501/1
Jacek Kryszyn [Fri, 17 Nov 2023 04:18:11 +0000 (13:18 +0900)]
scripts: tizen: sd_fusing_rpi4.sh: Fix minor typos in message

Fix minor typos in usage and information message.

Change-Id: I1cf4521ff45f211eebb28d7f7cbf50fc2606439f
Signed-off-by: Jacek Kryszyn <j.kryszyn@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 months agoscripts: Fix to not skip some option parameters for rpi4 fusing script 08/300908/1 tizen-next accepted/tizen/unified/20231106.171643 accepted/tizen/unified/riscv/20231108.043228
SangYoun Kwak [Thu, 2 Nov 2023 07:22:08 +0000 (16:22 +0900)]
scripts: Fix to not skip some option parameters for rpi4 fusing script

The option '--update' can take no argument or one argument('b') but its
parsing script does 'shift' even it takes no argument.
It is fixed by doing 'shift' only if there is a valid argument('b').

The option '--skip-resize' takes no argument but the parsing script
does 'shift'.
It is fixed by removing 'shift'.

Change-Id: Iaf40a86ca7999eb8d0da22e0c14e384fb0cb4826
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
5 months agocmd: meson: sm: Add a reboot reason for Tizen 40/300740/2
Jaehoon Chung [Wed, 1 Nov 2023 11:51:38 +0000 (20:51 +0900)]
cmd: meson: sm: Add a reboot reason for Tizen

sm command is moved from arch/arm/mach-meson/sm.c to cmd/meson/sm.c
Add a reboot reason for Tizen.
- fota / download

Change-Id: I434b282f70c7132fe835426341a47cf507d923cf
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 months agousb: dwc3-meson-g12a: Use regulator_set_enable_if_allowed 39/300739/2
Jaehoon Chung [Wed, 1 Nov 2023 10:55:05 +0000 (19:55 +0900)]
usb: dwc3-meson-g12a: Use regulator_set_enable_if_allowed

Some meson targets are using a fixed regulator about usb.
It's always returning to EALREADY, so driver doesn't init fine.
To prevent this problem, use the regulator_set_enable_if_allowed
instead of regulator_set_enable.

Fixes: 4fcba5d556b ("regulator: implement basic reference counter")

Change-Id: I39dea7b3a36dc2ba5c9c2d3487142e7e2fbe0f16
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 months agodts: meson-sm1-odroid-c4-u-boot: add linux-event-codes about button 18/300718/1
Jaehoon Chung [Tue, 31 Oct 2023 09:54:10 +0000 (18:54 +0900)]
dts: meson-sm1-odroid-c4-u-boot: add linux-event-codes about button

Add a property of linux-event-code about button.
Fixed the below message during booting.

"Checking PowerKey button state (for THOR download mode): Button 'PowerKey' not found (err=-22)"

Change-Id: I96bc91ce936754513059ff7b219c6714874e2bca
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 months agoscripts: tizen: sd_fusing_*.sh: Change a message to notcie 54/300654/1
Jaehoon Chung [Fri, 27 Oct 2023 06:26:46 +0000 (15:26 +0900)]
scripts: tizen: sd_fusing_*.sh: Change a message to notcie

These scripts will be deprecated in future.
Chnage an information message from "Warning" to "Notice".
These scripts can be still using.

Change-Id: I4cc1c56fc326cc7eb056b02ddf62167ac784443d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoconfigs: tizen: Enable VIDEO_MESON config about amlogic boards 43/300543/1
Jaehoon Chung [Fri, 27 Oct 2023 01:39:14 +0000 (10:39 +0900)]
configs: tizen: Enable VIDEO_MESON config about amlogic boards

CONFIG_DM_VIDEO was changed to CONFIG_VIDEO.
It needs to enable CONFIG_VIDEO / CONFIG_VIDEO_MESON again.

Change-Id: I096fb411c0a15e3616104ab476bfe396932f6fd1
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoconfigs: tizen: enable CONFIG_DM_USB_GADGET about amlogic boards 39/300539/1
Jaehoon Chung [Fri, 27 Oct 2023 01:01:31 +0000 (10:01 +0900)]
configs: tizen: enable CONFIG_DM_USB_GADGET about amlogic boards

Enable CONFIG_DM_USB_GADGET about amlogic boards.

Change-Id: If74ca88cbbf1b8efb1dcac3be35876346b0a0877
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoRevert "serial: bcm283x_mu: Support RX buffer" 39/300439/1
Jaehoon Chung [Wed, 25 Oct 2023 01:50:43 +0000 (10:50 +0900)]
Revert "serial: bcm283x_mu: Support RX buffer"

This reverts commit b84e5e2a9016f05470b2c9f1bb55617b065d5387.

Change-Id: I6d590f4cd0ff23986952743fbc85168b7f847aad
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoRevert "serial: bcm283x_mu: Refactor RX buffer" 38/300438/1
Jaehoon Chung [Wed, 25 Oct 2023 01:48:17 +0000 (10:48 +0900)]
Revert "serial: bcm283x_mu: Refactor RX buffer"

This reverts commit 8b4dad3bbef994712eb767172fe1f9660ad9504d.

Change-Id: Ic7b1fcf83aba4c770fe3a9824f9e9892f7fa6b3f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoconfigs: tizen_starfive_visionfive2: Update config file 52/300152/3
Jaehoon Chung [Tue, 17 Oct 2023 10:12:54 +0000 (19:12 +0900)]
configs: tizen_starfive_visionfive2: Update config file

Update config file according to update the version.

Change-Id: Ib5c55110cd8db1f0f7eb71cca0d24d37830dffe5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoconfigs: tizen_rpi_4: Enable Video configuration 51/300151/3
Jaehoon Chung [Tue, 17 Oct 2023 06:30:25 +0000 (15:30 +0900)]
configs: tizen_rpi_4: Enable Video configuration

During upgrade to v2023.10, DM_VIDEO is changed to VIDEO.

Change-Id: Iad6a2a72d7022578af37b98308bae684ff97c48b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoscripts: add --partition-size feat to sd_fusing.py 87/300287/1
Leonid [Fri, 13 Oct 2023 07:18:40 +0000 (09:18 +0200)]
scripts: add --partition-size feat to sd_fusing.py

The idea is to alter partition sizes via
overriding part_table prior to SdFusingTarget.__init__
to avoid hardcoding it every time you need such a change.

Implemented in SdFusingTarget.apply_partition_sizes

Currently only called (and tested) for RV64 target

Change-Id: Ia070359b47b9c3bfbbdb7881ddf43fb16d2df4a3
Signed-off-by: Leonid <l.sawin@samsung.com>
(cherry picked from commit 304aa532036b5c81553787dfcb33dc6376ad6e91)

6 months agopackaging: Change u-boot version from 2022.10 to 2023.10.
Jaehoon Chung [Fri, 28 Jul 2023 04:55:01 +0000 (13:55 +0900)]
packaging: Change u-boot version from 2022.10 to 2023.10.

Change u-boot version from 2022.10 to 2023.10.

Change-Id: I5b521f3e702d6b55fb91de9786df8acab2abf4db
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoscripts: add deprecation message to sd_fusing_*.sh shell scripts
Łukasz Stelmach [Thu, 5 Oct 2023 08:52:53 +0000 (10:52 +0200)]
scripts: add deprecation message to sd_fusing_*.sh shell scripts

Change-Id: Id97c0c19f50bcaed18aadb64ce8f0d66e8bad126
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agoscripts: generate binaries and binaries_b dictionaries
Łukasz Stelmach [Wed, 4 Oct 2023 09:17:43 +0000 (11:17 +0200)]
scripts: generate binaries and binaries_b dictionaries

Read image filenames from the part_table and automatically
associate them with appropriate partitions. Adding or
removing partitions doesn't require manual and error-prone
changes to binaries and binaries_b dictionaries.

Change-Id: Ib1cff8cb75af8a6f6c4af6f487545c643d61f438
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agoscripts: rewrite fusing scirpts in python
Łukasz Stelmach [Mon, 4 Sep 2023 10:23:12 +0000 (12:23 +0200)]
scripts: rewrite fusing scirpts in python

Replace target specific shell fusing scirpts with a single extensible
Python script. To add a new target add a new class inheriting from
SdFusingTarget or SdFusingTargetAB and provide necessary information
in the part_table class variable.

Change-Id: I98cc732d78a8e71b423bc7ec42c1a6a890ffb41b
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agotizen: rpi4: remove hardcoded partition numbers
Marek Szyprowski [Fri, 1 Sep 2023 15:24:25 +0000 (17:24 +0200)]
tizen: rpi4: remove hardcoded partition numbers

GPT partition layout already provides names for all partitions, so if
possible, use them instead of the hardcoded numbers in boot script.

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

6 months agotizen: bootscript: vf2: Set eth0 ip addr only for flash boot mode
Seung-Woo Kim [Wed, 30 Aug 2023 06:35:00 +0000 (15:35 +0900)]
tizen: bootscript: vf2: Set eth0 ip addr only for flash boot mode

The visionfive2 board has two ethernet interfaces and setting
ipaddr without intercace, it tries all interface for all enabled
autoconfiguration protocol. Sometimes, this causes boot hang to
get recv from an ethernet interface for an autoconfiguration
protocol. To remove the possible boot hang, set only eth0 ip addr
for flash boot mode.

Refer "ip=" part of below kernel doc:
  https://git.tizen.org/cgit/platform/kernel/linux-starfive/tree/Documentation/admin-guide/nfs/nfsroot.rst?h=tizen

Change-Id: Ia927d2e64945ef9cc48685e4640c9f366898eb6e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 months agoscripts: tizen: update the version of fusing scripts
Jaehoon Chung [Mon, 28 Aug 2023 11:21:05 +0000 (20:21 +0900)]
scripts: tizen: update the version of fusing scripts

Update the version of fusing scripts.

Change-Id: I6f7ee616bf0aac3137ff6fc51a9ab468406b8ffb
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoscripts: Add support for cereating images for use with QEMU.
Łukasz Stelmach [Thu, 24 Aug 2023 10:05:04 +0000 (12:05 +0200)]
scripts: Add support for cereating images for use with QEMU.

Using the loopback driver the script can create, partition and record
Tizen onto a disk image (a regular file) that can be used to run Tizen
in QEMU.

Change-Id: I819f10899c0e4c4532fe7c65e9e00b43b69a4a04
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agoscripts: Do not complain about using loopback devices
Łukasz Stelmach [Thu, 10 Aug 2023 19:41:28 +0000 (21:41 +0200)]
scripts: Do not complain about using loopback devices

Change-Id: Iaf2b561e8ad9f269ba75fbb1f9a5ab6e35f0f081
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agoscripts: Improve UI
Łukasz Stelmach [Thu, 10 Aug 2023 16:15:23 +0000 (18:15 +0200)]
scripts: Improve UI

Do not print newline after prompts for user interaction.

Reword some messages.

Change-Id: I53da243519860be91ef2cf1e240f084394982726
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agotizen: bootscript: vf2: Support ramdisk-recovery booting
Seung-Woo Kim [Tue, 22 Aug 2023 02:31:27 +0000 (11:31 +0900)]
tizen: bootscript: vf2: Support ramdisk-recovery booting

Support ramdisk-recovery booting with valid part number.

Change-Id: I023bffed1dd4a53445b0998a0915272a2bf6f4d1
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 months agoqemu-riscv64_smode: Load custom envitonment if possible
Łukasz Stelmach [Wed, 2 Aug 2023 13:08:30 +0000 (15:08 +0200)]
qemu-riscv64_smode: Load custom envitonment if possible

Check if loadbootenv and importbootenv environment variables are available
and use them to load additional environment variables.

Change-Id: I4e85a6a248cb6e1b5314771fda2e0f9df406417a
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agotizen: bootscript: Select FDT file for VF2
Łukasz Stelmach [Wed, 9 Aug 2023 21:01:37 +0000 (23:01 +0200)]
tizen: bootscript: Select FDT file for VF2

Select FDT file for VisionFive2 board depending on the revision of
the board.

Change-Id: I05bf589572000937451bb94510f3f67755e425e9
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agosetexpr: Silence some diagnostic messages
Łukasz Stelmach [Wed, 9 Aug 2023 20:30:05 +0000 (22:30 +0200)]
setexpr: Silence some diagnostic messages

Neither successful match nor lack thereof should be considered an
extraordinary situation. Thus, neither require printing a message.

Change-Id: If42450a68224cdb5f630b98ca6c8df413806cfa3
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agoconfigs: tizen_starfive_visionfive2: Enable ID EEPROM configuration
Łukasz Stelmach [Thu, 10 Aug 2023 08:57:47 +0000 (10:57 +0200)]
configs: tizen_starfive_visionfive2: Enable ID EEPROM configuration

Enabled ID_EEPROM and I2C configuration for StarFive VisionFive2 board.

Change-Id: Id63b7166acf2a336d6d3f2a8d6b41675adb63a0a
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agoconfigs: Align QEMU config with VF2
Łukasz Stelmach [Tue, 8 Aug 2023 17:26:48 +0000 (19:26 +0200)]
configs: Align QEMU config with VF2

Adjust platform independent configuration options in S-Mode QEMU defconfig
to match the configuration for VF2.

Change-Id: I1ed1a813e60a470955fba89fbaf5e7c16c9ad159
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agoconfigs: Enable environment configs for QEMU
Łukasz Stelmach [Tue, 8 Aug 2023 16:08:27 +0000 (18:08 +0200)]
configs: Enable environment configs for QEMU

Enable environment configs to use uboot.env file in FAT filesystem.

Change-Id: Ic19ac7e6552700038e35ba93f4d3c0736ec00776
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agoconfigs: Adjust environemnt on QEMU
Łukasz Stelmach [Tue, 8 Aug 2023 10:11:31 +0000 (12:11 +0200)]
configs: Adjust environemnt on QEMU

Check if loadbootenv and importbootenv environment variables are available
and use them to load additional environment variables.

Set CONFIG_BOOTCOMMAND in QEMU Tizen defconfig.

Change-Id: I12e45fca58d26edfc4e1287fe8d73a22ec4e136f
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agoconfigs: Add tizen_qemu-riscv64 defconfigs
Łukasz Stelmach [Tue, 8 Aug 2023 10:05:17 +0000 (12:05 +0200)]
configs: Add tizen_qemu-riscv64 defconfigs

Add tizen_qemu-riscv64_defconfig and tizen_qemu-riscv64_smode_defconfig
files. They will be used for Tizen.

Change-Id: I640f25ac97c15f56a2078bd0d1c827493eecd296
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agoconfigs: tizen_starfive_visionfive2: Load custom envitonment if possible
Łukasz Stelmach [Wed, 2 Aug 2023 13:10:47 +0000 (15:10 +0200)]
configs: tizen_starfive_visionfive2: Load custom envitonment if possible

Check if loadbootenv and importbootenv environment variables are available
and use them to load additional environment variables.

Change-Id: I667783263575de8421df852a9921f5c938620409
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agopackaging: install boot.scr.uimg for QEMU
Łukasz Stelmach [Wed, 26 Jul 2023 10:15:21 +0000 (12:15 +0200)]
packaging: install boot.scr.uimg for QEMU

Change-Id: I487eabf16f67d56dc71bcda45a54a33325117eaa
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agosamsung: tizen_riscv: add dedicated bootcmd for Tizen
Łukasz Stelmach [Wed, 2 Aug 2023 13:14:13 +0000 (15:14 +0200)]
samsung: tizen_riscv: add dedicated bootcmd for Tizen

Compile in bootcmd and other scripts previously in uEnv.txt

The default value of bootcmd environment variable cannot be overriden
in platform specific header files. It needs to be set in .config.

Change-Id: I1c5430895911fc9a499f79a6e9575ed2ad4e833f
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agotizen: bootscript: Adapt the script to work u-boot boot device/partition detection
Łukasz Stelmach [Wed, 2 Aug 2023 07:49:35 +0000 (09:49 +0200)]
tizen: bootscript: Adapt the script to work u-boot boot device/partition detection

Make the bootscript work properly when called by the upstream
distro_bootcmd script.

Change-Id: Iad38fdfdb7a6d10cd27924458fa9d23911a607db
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agosamsung: tizen_riscv: Reorganise environment defaults for RISC-V
Łukasz Stelmach [Wed, 2 Aug 2023 07:26:29 +0000 (09:26 +0200)]
samsung: tizen_riscv: Reorganise environment defaults for RISC-V

Rename, reorganize and use the default envitonment settings in the header
file for both VisionFive2 and QEMU targets.

Change-Id: Ic6ab2c5b2dc146d232a54eab6727afce845c1353
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agotizen: bootscript: add virtio support
Łukasz Stelmach [Fri, 4 Aug 2023 12:59:25 +0000 (14:59 +0200)]
tizen: bootscript: add virtio support

Recognize virtio0 as a valid boot device (target) and
set other necessary variables accordingly.

Change-Id: Ia6afb47713074da7382c62f6d65da7bd27a80f7e
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agotizen: bootscript: rename environment variables
Łukasz Stelmach [Wed, 26 Jul 2023 10:12:51 +0000 (12:12 +0200)]
tizen: bootscript: rename environment variables

The script shall be used in QEMU with virtio storage, so we better rename
variables to avoid confusion.

Change-Id: I17c32390b19287113d78ac9e95c45d5d6590ae04
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agotizen: bootscript: remove uEnv.txt from VisionFive2 package
Łukasz Stelmach [Thu, 3 Aug 2023 05:38:05 +0000 (07:38 +0200)]
tizen: bootscript: remove uEnv.txt from VisionFive2 package

The file isn't loaded automatically and all the information it contains
are in the default environment compiled from appropriate header files.

Change-Id: I569bd0657c3246dc6bf50117b5d7567a557dbd68
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agoRISCV: dts: jh7110-starifive-visionfive-2: Add a gpio-restart node
Jaehoon Chung [Mon, 31 Jul 2023 23:25:20 +0000 (08:25 +0900)]
RISCV: dts: jh7110-starifive-visionfive-2: Add a  gpio-restart node

Add a gpio-restart node to do reset.
Before applied this patch, System Reset Extension doesn't appear with
sbi command.

OpenSBI 1.3
Machine:
  Vendor ID 489
  Architecture ID 8000000000000007
  Implementation ID 4210427
Extensions:
  sbi_set_timer
  sbi_console_putchar
...[snip]...
  IPI Extension
  RFENCE Extension
  Hart State Management Extension
  Performance Monitoring Unit Extension

After applied this patch, System Reset Extension is supported from SBI.

OpenSBI 1.3
Machine:
  Vendor ID 489
  Architecture ID 8000000000000007
  Implementation ID 4210427
Extensions:
  sbi_set_timer
  sbi_console_putchar
...[snip]...
  IPI Extension
  RFENCE Extension
  Hart State Management Extension
  System Reset Extension
  Performance Monitoring Unit Extension

Change-Id: Idf298b22ff2fb728ddade59befa741718e9c2466
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agolibtizen: Remove the including lcd header
Jaehoon Chung [Fri, 28 Jul 2023 01:56:49 +0000 (10:56 +0900)]
libtizen: Remove the including lcd header

Remove the including lcd header.
lcd header was removed since v2023.01.

Change-Id: I47121000f1c23d00832a255c57c8ecd326ed9b5d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoconfigs: tizen: Enable TEXT_BASE value in config
Jaehoon Chung [Fri, 28 Jul 2023 01:45:46 +0000 (10:45 +0900)]
configs: tizen: Enable TEXT_BASE value in config

Enable TEXT_BASE value in config.
It's changed from SYS_TEXT_BASE to TEXT_BASE.

Change-Id: Id4a679eb2010f6e6180c6622567f2fb53bf93b73
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agotizen: bootscript: vf2-uEnv: Fix the address of environment variables
Hoegeun Kwon [Wed, 26 Jul 2023 09:02:12 +0000 (18:02 +0900)]
tizen: bootscript: vf2-uEnv: Fix the address of environment variables

Fix the overlapping address with the address used as cma. The cma is
used from 0x80000000.

Change-Id: I631215ba4cd34cddfd821f69d4f1f08b7b649b92
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
6 months agotizen: bootscript: vf2-uEnv: Fix to load wrong fdt file
Jaehoon Chung [Wed, 26 Jul 2023 01:20:21 +0000 (10:20 +0900)]
tizen: bootscript: vf2-uEnv: Fix to load wrong fdt file

During boot from pre-built u-boot, boot script is using the prebuilt's
environment. fdtfile is starfive/starfive-visionfive2.dtb.
To fix this problem, update fdtfile in uEnv.txt.

Change-Id: I53d8af046b7a7406944906ab6ecea7580d4f192d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoscripts: fix filtering of lsblk output for loopback devices
Łukasz Stelmach [Tue, 25 Jul 2023 11:04:52 +0000 (13:04 +0200)]
scripts: fix filtering of lsblk output for loopback devices

The "loop" pattern needs to be anchored at with "^" too.

Change-Id: I22c122595bd3266b53401b6824f201e5addb1023
Fixes: cc2ad962242 ("scripts: sd_fusing_rpi4: support formatting loop devices")
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agopackaging: u-boot*: Upgrade build required openssl version from 1.1 to 3
Seung-Woo Kim [Mon, 3 Jul 2023 02:20:58 +0000 (11:20 +0900)]
packaging: u-boot*: Upgrade build required openssl version from 1.1 to 3

Openssl 1.1.1 is supported until September 2023, so Tizen 8.0
upgrades Openssl 3.0.x. To meet this, change build required
openssl version. Also, required with pkgconfig.

Change-Id: Ifffd9c57db94e4d8dbe2c3179118ea3dec3703c5
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
6 months agotizen: bootscripts: vf2: remove console=tty0 from cmdline
Jaehoon Chung [Tue, 27 Jun 2023 10:05:15 +0000 (19:05 +0900)]
tizen: bootscripts: vf2: remove console=tty0 from cmdline

Remove console=tty0 from cmdline.
When it's using, kernel message is displayed to vidconsole.

Change-Id: I6b294037773a78e32908f035695b47285031d9c8
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agopackaging: u-boot-visionfive2: Add uEnv.txt file
Jaehoon Chung [Thu, 15 Jun 2023 02:18:58 +0000 (11:18 +0900)]
packaging: u-boot-visionfive2: Add uEnv.txt file

Add uEnv.txt file to use an enviornment variable when booting from
preflashed u-boot.

Change-Id: I267d0a9d695c1f17f37ec82cc8e3b1205d9e0b8b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agosamsung: tizen_visionfive2: Change logevel from 4 to 7
Jaehoon Chung [Mon, 12 Jun 2023 01:05:31 +0000 (10:05 +0900)]
samsung: tizen_visionfive2: Change logevel from 4 to 7

Change loglevel from 4 to 7.
Because Visionfive2 is developing now, it needs to check debug message.
If it's more stable than now, it will be changed to 4 again.

Change-Id: I8d94058d954e61273e8a1481b1b71f5d67459965
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agotizen: bootscript: vf2: Support a ramdisk booting
Jaehoon Chung [Fri, 9 Jun 2023 00:03:44 +0000 (09:03 +0900)]
tizen: bootscript: vf2: Support a ramdisk booting

Support a ramdisk booting.
It will not mount a ramdisk partition directly.
Instead, it will be loading ramdisk image to ram area.

Change-Id: Iec0f3863d42b54405a55171aead0da97a0ad8d7d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoconfigs: tizen_starfive_visionfive2: Update configurations
Jaehoon Chung [Thu, 8 Jun 2023 23:25:22 +0000 (08:25 +0900)]
configs: tizen_starfive_visionfive2: Update configurations

Update configurations.
- Enable CMD_SBI and SYSRESET
- Change Prompt from "Starfive #" to "VisionFive2> "

Change-Id: I240ebaf2793f4f9614f3fe423c0afe24ece28b7c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agopackaging: u-boot-visionfive2: Add visionfive2 boot script
Jaehoon Chung [Wed, 7 Jun 2023 07:19:45 +0000 (16:19 +0900)]
packaging: u-boot-visionfive2: Add visionfive2 boot script

Add visionfive2 boot script for Tizen.

Change-Id: I113423e6b19d3d1bd41689ce1a8535ab32be3d86
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoinclude: starfive-visionfive2: Add tizen environment into starfive-visionfive2 header
Jaehoon Chung [Wed, 7 Jun 2023 05:20:32 +0000 (14:20 +0900)]
include: starfive-visionfive2: Add tizen environment into starfive-visionfive2 header

Add tizen environment into starfive-visionfive2 haeder.
Tizen specific environment value will be added in
include/samsung/tizen_visionfvie2.h

Change-Id: I142780cf59f35f909d49f90fcb243420e61750e5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoconfigs: tizen_starfive_visionfive2: Change the device-tree path
Jaehoon Chung [Wed, 7 Jun 2023 05:19:19 +0000 (14:19 +0900)]
configs: tizen_starfive_visionfive2: Change the device-tree path

Change the device-tree path to root dir from starfive dir.

Change-Id: I0548d4910f4cfa7808e2d3a3cb71961e5b8f7d39
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agotizen: bootscript: Add visionfive2 bootscript and env file
Jaehoon Chung [Fri, 2 Jun 2023 07:29:36 +0000 (16:29 +0900)]
tizen: bootscript: Add visionfive2 bootscript and env file

Add visionfive2 bootscript and uEnv.txt file.
tizen-boot-vf2-uEnv.txt file will be used when booting from pre-flashed u-boot.

Custom U-boot will not be used tizen-boot-vf2-uEnv.txt file.
Instead, Custom u-boot will be using the generated uboot.env.

Change-Id: Ic4d2542ddd3d7312f0367c733618f8be6926fef3
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agosamsung: Add tizen_visionfive2 header
Jaehoon Chung [Fri, 2 Jun 2023 08:27:13 +0000 (17:27 +0900)]
samsung: Add tizen_visionfive2 header

Add tizen_visionfive2 header file to use tizen speicific environments.

Change-Id: Ideb153007d7351ecc5e4ddffade424f1d2f253db
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agopackaging: Add u-boot-qemu-riscv64 spec file
Łukasz Stelmach [Fri, 26 May 2023 17:44:32 +0000 (19:44 +0200)]
packaging: Add u-boot-qemu-riscv64 spec file

Change-Id: Idf0402efaf70974b09760732a29769afd8b713e7
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 months agoconfigs: tizen_starfive_visionfive2: Enable environment configs
Jaehoon Chung [Fri, 2 Jun 2023 03:59:34 +0000 (12:59 +0900)]
configs: tizen_starfive_visionfive2: Enable environment configs

Enable environment configs to use uboot.env file in FAT filesystem.

Change-Id: I9f6877ec810eed31ebfb9b65e71318a868cc31b7
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agopackaging: Add u-boot-visionfive2 spec file
Jaehoon Chung [Tue, 2 May 2023 04:09:13 +0000 (13:09 +0900)]
packaging: Add u-boot-visionfive2 spec file

Add u-boot-visionfive2 spec file.

Change-Id: I2d3f0fb2c3865779299a3ba2a3e03ae626d5e6eb
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoscripts: tizen: sd_fusing_rpi3/4: update print_logo
Jaehoon Chung [Mon, 22 May 2023 10:04:26 +0000 (19:04 +0900)]
scripts: tizen: sd_fusing_rpi3/4: update print_logo

To prevent a confusion, update print_logo more clarify.

Change-Id: I85f6f17168b399878d865ed4f491265452aed123
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoscripts: tizen: sf_fusing_vf2: add u-boot.itb to flash u-boot
Jaehoon Chung [Fri, 28 Apr 2023 06:49:44 +0000 (15:49 +0900)]
scripts: tizen: sf_fusing_vf2: add u-boot.itb to flash u-boot

Mainline u-boot is using u-boot.itb instead ob u-boot.img.
To flash correct u-boot image, add u-boot.itb in table.

Change-Id: I4ffe88d97b151e847475c489a2fe85ea7850bf22
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agotools: starfive: Add spl_tool of starfive
Jaehoon Chung [Fri, 28 Apr 2023 00:50:16 +0000 (09:50 +0900)]
tools: starfive: Add spl_tool of starfive

To build visionfive2 board, it needs to use spl_tool of starfive.
This files are taken from below git repo.
URL: https://github.com/starfive-tech/Tools/tree/master/spl_tool

Refer to doc/board/starfive/visionfive2.rst in u-boot repo.

Change-Id: I8e5d8e11dc5f49d84edb32979372062603f4a13c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agotizen: rpi4: Fix slot check
Marek Pikuła [Fri, 28 Apr 2023 11:26:42 +0000 (13:26 +0200)]
tizen: rpi4: Fix slot check

Change-Id: I0b1ff3ef5a90ff2d43d54bb3559266c28e95eae4
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
6 months agoconfigs: Add tizen_starfive_visionfive2 defconfig
Jaehoon Chung [Tue, 25 Apr 2023 04:31:51 +0000 (13:31 +0900)]
configs: Add tizen_starfive_visionfive2 defconfig

Add tizen_starfive_visionfive2 defconfig file.
It will be used for Tizen. To maintain orignal defconfig, create a
defconfig to use tizen.

Change-Id: I361b79fb1a7c6dd2319d25a62b31ca153e26c666
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoscripts: sd_fusing_vf2: Support to flash u-boot and spl image
Jaehoon Chung [Thu, 6 Apr 2023 07:36:37 +0000 (16:36 +0900)]
scripts: sd_fusing_vf2: Support to flash u-boot and spl image

Support to flash u-boot and spl image with script.
- u-boot + opensbi : u-boot.img
- spl : u-boot-sp.bin.normal.out

It can be changed to other name in future.
If change image names, it will be changed.

Change-Id: Iba4337f9591b339c37a1207848794b92da56542a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoscripts: tizen: Add a fusing script for Visionfive2
Jaehoon Chung [Fri, 10 Mar 2023 03:48:19 +0000 (12:48 +0900)]
scripts: tizen: Add a fusing script for Visionfive2

Add a fusing script for visionFive2.
This script is for SD-Card.

Change-Id: If895466dbc8f72b86b77c5807247475c1cb63d1a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoscripts: sd_fusing_rpi3: Update sd_fusing_rpi3 version
Jaehoon Chung [Thu, 2 Mar 2023 06:33:18 +0000 (15:33 +0900)]
scripts: sd_fusing_rpi3: Update sd_fusing_rpi3 version

Update sd_fusing_rpi3 version from 2.2.2 to 2.3.0.

Change-Id: I3deb33e134e28e3031c84ef9b41a58bc0eb283c6
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoscripts: sd_fusing_rpi3: support the latest sfdisk version
Jaehoon Chung [Thu, 2 Mar 2023 05:14:01 +0000 (14:14 +0900)]
scripts: sd_fusing_rpi3: support the latest sfdisk version

In Ubunut 22.04, sfdisk version is 2.37.2 by default.
Before applied this patch, script is failed with messsage of "No space
left...".
It seems that It's caused about wrong start offset.
If sfdisk version is upper than 2.37, remove the start offset.

Change-Id: Ic6ecf839e48024cc68b051f1f05e6b4fc56332da
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoscripts: sd_fusing_rpi4: support formatting loop devices
Marek Pikuła [Wed, 18 Jan 2023 15:57:27 +0000 (16:57 +0100)]
scripts: sd_fusing_rpi4: support formatting loop devices

Change-Id: Ic6384281104ed710552119f9910cfca95ddf9a21
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
6 months agoconfigs: tizen_rpi_4: disable USB_XHCI_PCI config
Jaehoon Chung [Fri, 13 Jan 2023 01:50:23 +0000 (10:50 +0900)]
configs: tizen_rpi_4: disable USB_XHCI_PCI config

Disable USB_XHCI_PCI config for usb hub on RPI4.
There is a problem on 8GiB RPi4 with 32bit image.
In future, it will be re-enabled after fixing a problem.

Change-Id: Ibd042fcd8d7a919f0d462cfdc91494413d800cae
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
6 months agoconfig: tizen_rpi: Add bootargs for hdmi
Hoegeun Kwon [Fri, 18 Nov 2022 06:39:46 +0000 (15:39 +0900)]
config: tizen_rpi: Add bootargs for hdmi

Add bootargs required for hdmi operation. Adding this bootargs can
solve the FHD timeout issue with rpi4 hdmi-0.

Change-Id: Ic438198c68fdbb6665b27ce0333f085bec792a1c
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>