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>
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>
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>
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>
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>
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>
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
Ł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>
Ł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>
Ł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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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)
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>
Ł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>
Ł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>
Ł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>
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
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>
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>
Ł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>
Ł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>
Ł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>
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>
Ł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>
Ł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>
Ł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>
Ł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>
Ł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>
Ł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>
Ł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>
Ł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>
Ł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>
Ł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>
Ł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>
Ł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>
Ł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>
Ł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>
Ł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>
Ł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>
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>
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>
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>
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>
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>
Ł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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Ł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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Jaehoon Chung [Fri, 11 Nov 2022 05:38:25 +0000 (14:38 +0900)]
packaging: remove u-boot-rpi3 spec files
Remove u-boot-rpi3 spec files.
Since Tizen-7.0, RPi3 board doesn't support anymore.
Change-Id: I2f085e9a06550e2f4217016a50c6c65b21ad9540
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 11 Nov 2022 05:29:37 +0000 (14:29 +0900)]
scripts: sd_fusing_rpi4: add skip-resize option
Add skip-resize option to test A/B update.
Change-Id: I7cea9f665b3f474987bb710994a639351389f5b4
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Tue, 8 Nov 2022 05:53:00 +0000 (14:53 +0900)]
packaging: move u-boot-tools from rpi3 to rpi4
Move u-boot-tools from rpi3 to rpi4.
RPi3 target was deprecated. To remove u-boot-rpi3 spec file, it needs to
move u-boot-tools package into rpi4.
Change-Id: I308af97d06e72e8809eb0194c001e631f915c416
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 17 Oct 2022 03:19:48 +0000 (12:19 +0900)]
configs: tizen-amlogic: sync orignal defconfig files
Sync orignal defconfig files.
- khadas-vim3/vim3l
- odroid-n2/c4
Change-Id: I513f1cc9afda87557aed712e58bc8bf0ca357dab
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 17 Oct 2022 02:43:34 +0000 (11:43 +0900)]
tizen: amlogic: move CONFIG_TIZEN into Kconfig
Move CONFIG_TIZEN into Kconfig.
When new config is added, it has to be in Kconfig.
Change-Id: Idaef847edc2bb87907d80dfdd16d622a0c5c27b6
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Mon, 17 Oct 2022 00:13:18 +0000 (09:13 +0900)]
configs: tizen_rpi: enable CONFIG_SYS_INIT_SP_ADDR
Enable CONFIG_SYS_INIT_SP_ADDR in rpi3/4 configuration.
Change-Id: Id4b4c269631fb58c1e24a431c6588ce9bcca43a2
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 12 Oct 2022 01:25:57 +0000 (10:25 +0900)]
scripts: sd_fusing_rpi4: add initialize_parameter function
Add initialize_parameter function to clear previous values.
When flash the image without format, its value is remaining with
previous value.
Change-Id: I59b684bfa4ba851325902d8f769ce0c2efe67d85
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Łukasz Stelmach [Thu, 29 Sep 2022 21:06:15 +0000 (23:06 +0200)]
scripts: Normalize device name
Make sure the DEVICE holds the the real name of the block device and
not one of symbolic links that can be found in /dev/disk/by-* directories.
Change-Id: I8b3416b5de6471a15ef46748d124dbfbf80df156
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Thu, 29 Sep 2022 19:46:44 +0000 (21:46 +0200)]
scripts: Fix broken message
Change-Id: I6e9f42ef3d3147927db99406e9fd4d1fea526d13
Fixes:
267186468d ("scripts: tizen: sd_fusing_rpi4: support A/B partition")
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Jaehoon Chung [Tue, 6 Sep 2022 02:20:16 +0000 (11:20 +0900)]
scripts: sd_fusing_rpi4: update version to 1.0.7
Since 1.0.7, partition-a/b-status.info is supported.
Change-Id: I2cce9a92c88a54d73f62e1e556c85219b90f0071
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 31 Aug 2022 22:53:30 +0000 (07:53 +0900)]
scripts: sd_fusing_rpi4: add the partition-a/b-status.info
Add the partition-a/b-status.info as "ok" by default.
It can be set to "ok", "failed" or "corrupted".
Change-Id: I10e749928ad27c96eb3adaf83d5dc8f636844150
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 17 Aug 2022 03:10:19 +0000 (12:10 +0900)]
scripts: sd_fusing_rpi4: change a value of partition-ab-cloned from 0 to 1
Change a value of partition-ab-cloned from 0 to 1 by default.
Change-Id: I0879b1d9c9b969ec0663439e04f8dd4b8150e77e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Marek Szyprowski [Tue, 16 Aug 2022 11:44:45 +0000 (13:44 +0200)]
fixup! rpi: use board_early_init_r to init PCI/USB and detect boot device
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Jaehoon Chung [Mon, 1 Aug 2022 03:35:30 +0000 (12:35 +0900)]
configs: amlogic: move CONFIG_SYS_MEM_TOP_HIDE to defconfig
Move CONFIG_SYS_MEM_TOP_HIDE to defconfig.
Change-Id: I99de23e4019d3a2fb5280d155e2c6119d930e9e7
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 29 Jul 2022 01:15:58 +0000 (10:15 +0900)]
configs: vim3/odroid: Update the missed configs about amlogic target
Update the missed configs about amlogic target.
Change-Id: Ibb531da60be971f17e0b56e20f8d476bec88d574
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Fri, 29 Jul 2022 01:09:18 +0000 (10:09 +0900)]
configs: tizen_rpi_3/4_defconfig: Update the missed configurations
Update the missed configurations.
After version is updated, some configurations has to be defined in
defconfig.
Change-Id: I992ba76585f6075d3c213c04ebbef1134b200f4c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>