Łukasz Stelmach [Tue, 3 Oct 2023 18:51:22 +0000 (20:51 +0200)]
WIP make sfdisk wipe file system signatures
Change-Id: I6a7b7a9a376893892800b0ff117bb2a53273435c
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Tue, 3 Oct 2023 18:41:24 +0000 (20:41 +0200)]
WIP Confirm formatting and writing images
Change-Id: I228acfa32416df6a8d48e12a9f6473d4deb763b1
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Tue, 3 Oct 2023 15:50:19 +0000 (17:50 +0200)]
WIP match loop5p5 from instead of loop5 from loop5p1
Change-Id: I9796e8abf7b8999f4ceefd34f365aa3f6bb4d1e9
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Tue, 3 Oct 2023 10:58:08 +0000 (12:58 +0200)]
WIP fix string formatting
Change-Id: Ica585b5572374d94492ebb22c38383c63decc198
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Tue, 3 Oct 2023 10:52:59 +0000 (12:52 +0200)]
WIP don't exit if removing partitions fail, it fails on empty media
Change-Id: I2740dc5ede600e5e5c20c3da288f6c1308469a4f
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Tue, 3 Oct 2023 10:51:46 +0000 (12:51 +0200)]
WIP avoid checking patch version of sfdiks, some version don't have it
Change-Id: I6d65b5f5643db41c11e7dfaf59e91fa25c917838
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Tue, 3 Oct 2023 10:50:35 +0000 (12:50 +0200)]
WIP fix debuginfo format for non-color outputs
Change-Id: I893092f6b8c93f233ab06bd3e566dbb7d078afc2
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Mon, 2 Oct 2023 19:48:00 +0000 (21:48 +0200)]
WIP unmount partitions
Change-Id: I80270de45ef871f0be3cd6cef27ef61cedc66111
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Mon, 2 Oct 2023 19:39:22 +0000 (21:39 +0200)]
WIP fix timestamp formatting
Change-Id: I601d6ef627aff2e498abf57dbc6bc10aa852690a
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Mon, 2 Oct 2023 18:22:47 +0000 (20:22 +0200)]
WIP add --debug
Change-Id: Ie2894d371fbc956f07dbd71632a2f8ed2921b674
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Mon, 2 Oct 2023 17:38:41 +0000 (19:38 +0200)]
WIP use one -b to add one or more binaries
Change-Id: I573d9939c302ff5df303fb9eee3b3bb2d82ab7d2
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Mon, 2 Oct 2023 09:50:45 +0000 (11:50 +0200)]
WIP: log full command line of sd_fusing.py
Change-Id: I90abf70a6475a3c8eab85e5cb7df7531c42cc688
Łukasz Stelmach [Mon, 2 Oct 2023 09:31:50 +0000 (11:31 +0200)]
WIP: strip directory name to find partition number by image name
Change-Id: Iea2d1a11c33df23db1596349a928d92ca0c6e7b0
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Mon, 2 Oct 2023 09:22:26 +0000 (11:22 +0200)]
WIP: Introduce DebugFormatter printing file/line info
Change-Id: I02cc584ea03768543b67dac71db6f6add79e5ff2
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Mon, 2 Oct 2023 09:12:44 +0000 (11:12 +0200)]
WIP: log all calls to external processes
Change-Id: I56145d2a247bc417a4623b150eaed42713f8dcec
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Tue, 26 Sep 2023 16:01:16 +0000 (18:01 +0200)]
WIP: coloured logins
Change-Id: I1068c64025a549c4ad430ab77d3913b1a8e8b33e
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Thu, 21 Sep 2023 20:01:43 +0000 (22:01 +0200)]
WIP: build a super partition image
Change-Id: I7899e21faecc7c5d70b2792b31ad056a52801cb4
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Wed, 20 Sep 2023 18:37:48 +0000 (20:37 +0200)]
WIP: make filesystem and initialize parameters
Change-Id: If3437aae60097cfefca505292b0674dbc8178ea2
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Wed, 20 Sep 2023 07:11:06 +0000 (09:11 +0200)]
WIP: RPi4 w/ dm-linera
Change-Id: I1b1c08a5ccffe10598f9a3866d32aa0a45a11ada
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Tue, 19 Sep 2023 15:27:28 +0000 (17:27 +0200)]
WIP: RPi3 RPi4
Change-Id: I88d9cc80e3cecfd694acbb6595cde66e2eb3771d
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Tue, 19 Sep 2023 15:02:40 +0000 (17:02 +0200)]
WIP: better check if any binaries were given
Change-Id: I67158c03381e6f2459b31211ec84fcd0423dd60e
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Tue, 19 Sep 2023 15:01:00 +0000 (17:01 +0200)]
WIP: report problems with sfdisk(8)
Change-Id: If69109b1d814f490c2650b6e1573ac77bf02649a
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Tue, 19 Sep 2023 15:00:09 +0000 (17:00 +0200)]
WIP: report an error when an image already exist
Change-Id: I3c4f2d45f42340f265bd2e4747a511ad52b1550f
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Mon, 18 Sep 2023 19:31:30 +0000 (21:31 +0200)]
WIP: sd_fusing_py
Change-Id: I7de043e5da6e40aaa99c646b89be3f1ffd43cb7f
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Łukasz Stelmach [Mon, 4 Sep 2023 10:23:12 +0000 (12:23 +0200)]
WIP: rewrite single sd_fusing.py
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>
Seung-Woo Kim [Fri, 11 Aug 2023 06:59:12 +0000 (15:59 +0900)]
eeprom: starfive: set eth0 mac address properly
fdt_fixup_ethernet() sets eth0 mac address from ethaddr. Set
ethaddr to environment instead of eth0addr.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Ref: https://patchwork.ozlabs.org/project/uboot/patch/
20230811071225.22142-1-sw0312.kim@samsung.com/
[sw0312.kim: apply after upstream posting]
Change-Id: I024862c529c3b6004207cd0531a875c1d18d35d1
Simon Glass [Thu, 10 Nov 2022 02:14:39 +0000 (19:14 -0700)]
image: Correct strncpy() warning with image_set_name()
gcc 12 seems to warn on strncpy() as a matter of course. Rewrite the code
a different way to do the same thing, to avoid the warning.
Signed-off-by: Simon Glass <sjg@chromium.org>
[sw0312.kim: cherry-pick upstream commit
88ff7cb1c8bb4 to remove gcc-13 build warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Idda3d015e81fd39d33de1cfc13cc19f78404a5a1
Heinrich Schuchardt [Wed, 31 Aug 2022 19:13:40 +0000 (21:13 +0200)]
lib: rsa: fix padding_pss_verify
Check the that the hash length is shorter than the message length. This
avoids:
./tools/../lib/rsa/rsa-verify.c:275:11: warning:
‘*db’ may be used uninitialized [-Wmaybe-uninitialized]
275 | db[0] &= 0xff >> leftmost_bits;
Fixes:
061daa0b61f0 ("rsa: add support of padding pss")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[sw0312.kim: backport upstream commit
0cd933bb4bd7 to remove build warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ia65f431ee3722af8b1f11b4e8e3033fc058df826
Ł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>
Yanhong Wang [Thu, 15 Jun 2023 09:36:50 +0000 (17:36 +0800)]
configs: starfive: Enable ID EEPROM configuration
Enabled ID_EEPROM and I2C configuration for StarFive VisionFive2 board.
Change-Id: Ic44b625094e8319b3eb92dcec514332cd57b658c
Origin: upstream, https://source.denx.de/u-boot/u-boot/-/commit/
99f3a43d1cbc9abe14839734bb35444c1633f836
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Reviewed-By: Leo Yu-Chi Linag <ycliang@andestech.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Yanhong Wang [Thu, 15 Jun 2023 09:36:49 +0000 (17:36 +0800)]
riscv: dts: starfive: Add support eeprom device tree node
Add support "atmel,24c04" eeprom for StarFive VisionFive2 board.
Change-Id: If09c2165bda50df9f57c1dc6b3a3efb57a098669
Origin: upstream, https://source.denx.de/u-boot/u-boot/-/commit/
3421a45fdaed3ae243ea5852bc22ba643c94fa9d
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Yanhong Wang [Thu, 15 Jun 2023 09:36:48 +0000 (17:36 +0800)]
eeprom: starfive: Enable ID EEPROM configuration
Enabled ID_EEPROM configuration for StarFive VisionFive2 board.
Change-Id: I5de89870aa0dd163b4708b0b3b7e4a5672a2a43b
Origin: upstream, https://source.denx.de/u-boot/u-boot/-/commit/
aea1bd95b61e5596000e2aa71b32b32801ac51d4
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
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>
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>
Hoegeun Kwon [Wed, 28 Jun 2023 08:01:42 +0000 (17:01 +0900)]
clk: starfive: pll: Fix to use postdiv1_mask
There is a problem that the rates of PLL0 and PLL1 are set incorrectly
because the postdiv1_mask value is incorrectly entered when setting
the pll clk reg. Modify postdiv1's mask value to be put correctly.
Change-Id: Ic2dcc1776313e8185af3ba938e2a980777b85950
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@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 04:06:26 +0000 (13:06 +0900)]
include: starfive-vifionfive: fix the prefix from CFG to CONFIG
This is caused by backporting.
Latest U-boot is uinsg CFG_EXTRA_ENV_SETTINGS, but v2022.10 is using
CONFIG_EXTRA_ENV_SETTINGS.
Change-Id: Ia42e9c9402cc1eedd4467cc20069e9a64d90e474
Signed-off-by: Jaehoon Chung <jh80.chung@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 [Tue, 2 May 2023 03:41:58 +0000 (12:41 +0900)]
RISC-V: dts: jh7110: Change from bootph-pre-ram to u-boot,dm-spl
Mainline is using bootph-pre-ram instead of u-boot,dm-spl.
So it needs to use u-boot,dm-spl in current u-boot version.
Otherwise, spl doesn't work fine.
Thia patch is for only v2022.10. In latest version, this patch doesn't
need.
Change-Id: Ib7258f3d1dd8c892581cd568d72a54a4d59d4521
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 04:00:11 +0000 (13:00 +0900)]
RISC-V: fix riscv64 extension isa problem
During building with tizen gcc, the below message is displayed.
[ 33s] arch/riscv/lib/cache.c:12: Error: unrecognized opcode `fence.i', extension `zifencei' required
[ 33s] make[1]: *** [scripts/Makefile.build:257: arch/riscv/lib/cache.o] Error 1
[ 33s] make[1]: *** Waiting for unfinished jobs....
[ 33s] CC common/miiphyutil.o
[ 34s] CC boot/image.o
[ 34s] CC boot/image-board.o
Older gcc doesn't support some isa extensions for riscv.
(Since GCC 11.1, it's supported.)
This patch is refered to below commit of linux-starfive repo.
commit
e6303a1c7cf531457aca1ff35f3d3ee38977eca2
Author: Marek Szulc <m.szulc3@samsung.com>
Date: Fri Aug 19 12:29:48 2022 +0200
riscv: fix riscv64 unrecognized opcode build error
Change-Id: Ib4f52134bad8d9f1971d4d8fb9f757d2fa9cfb1e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Heinrich Schuchardt [Wed, 12 Oct 2022 12:59:51 +0000 (14:59 +0200)]
riscv: support building double-float modules
The riscv32 toolchain for GCC-12 provided by kernel.org contains libgcc.a
compiled for double-float. To link to it we have to adjust how we build
U-Boot.
As U-Boot actually does not use floating point at all this should not
make a significant difference for the produced binaries.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
(cherry picked from commit
e67f34f778baabd76f2e0e645a409fed14d2d156)
Change-Id: I674fb274fa4c6c650f48c39ce92dde2e3e01d966
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Alexandre Ghiti [Mon, 3 Oct 2022 16:07:54 +0000 (18:07 +0200)]
riscv: Fix build against binutils 2.38
The following description is copied from the equivalent patch for the
Linux Kernel proposed by Aurelien Jarno:
>From version 2.38, binutils default to ISA spec version
20191213. This
means that the csr read/write (csrr*/csrw*) instructions and fence.i
instruction has separated from the `I` extension, become two standalone
extensions: Zicsr and Zifencei. As the kernel uses those instruction,
this causes the following build failure:
arch/riscv/cpu/mtrap.S: Assembler messages:
arch/riscv/cpu/mtrap.S:65: Error: unrecognized opcode `csrr a0,scause'
arch/riscv/cpu/mtrap.S:66: Error: unrecognized opcode `csrr a1,sepc'
arch/riscv/cpu/mtrap.S:67: Error: unrecognized opcode `csrr a2,stval'
arch/riscv/cpu/mtrap.S:70: Error: unrecognized opcode `csrw sepc,a0'
Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Christian Stewart <christian@paral.in>
Reviewed-by: Rick Chen <rick@andestech.com>
(cherry picked from commit
1dde977518f13824b847e23275001191139bc384)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: Ib87e31e43046af92ca986bfd6836a0e712c3b43f
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:34:31 +0000 (13:34 +0900)]
riscv: jh7110: Fix build error during backporting
Fix build error during backporting baed on latest version.
This patch is for only v2022.10.
Change-Id: I2dd22cdf1672d3c397c16f546d87496a15b7f61d
Signed-off-by: Jaehoon Chung <jh80.chung@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>
Yanhong Wang [Thu, 16 Mar 2023 02:53:32 +0000 (10:53 +0800)]
configs: starfive: add starfive_visionfive2_defconfig
This is the initial basic config for StarFive VisionFive v2 board. It
includes consol, Norflash, sdio, ddr etc.
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
0eff3bf17631889945c89918ea3b97f7c626aef0)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I100767a2e517dd1044bf63ca037ba29bf075a372
Yanhong Wang [Wed, 29 Mar 2023 03:42:23 +0000 (11:42 +0800)]
riscv: dts: jh7110: Add initial StarFive VisionFive v2 board device tree
Add initial device tree for StarFive VisionFive v2 board.
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
f2d52446bcce51b41809cd0756f49e555fcdc096)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I048a6026968e8bd3f90229e6dd3c889e8be1ab14
Yanhong Wang [Wed, 29 Mar 2023 03:42:22 +0000 (11:42 +0800)]
riscv: dts: jh7110: Add initial u-boot device tree
Add initial u-boot device tree for the JH7110 RISC-V SoC.
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
c04dfc7ac12ce1f7d95ef1fab811cee477954f08)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I5a1ef59a1899959c745bda1dfd10705c2e8befee
Yanhong Wang [Wed, 29 Mar 2023 03:42:21 +0000 (11:42 +0800)]
riscv: dts: jh7110: Add initial StarFive JH7110 device tree
Add initial device tree for the JH7110 RISC-V SoC.
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
9087a6ae79e24ecbb98e3376fe4ef42705f9dd0c)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: Ia9acd00f478e4837dcda647aae9dd972413d77dd
Yanhong Wang [Wed, 29 Mar 2023 03:42:20 +0000 (11:42 +0800)]
board: starfive: Add TARGET_STARFIVE_VISIONFIVE2 to Kconfig
Add board support for StarFive VisionFive v2.
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
331ad93c1279d0eeb971f4830ae88dc9c8202642)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I813fad89e5cdb4275b5c43e290fc84a2c1d0590e
Yanhong Wang [Wed, 29 Mar 2023 03:42:19 +0000 (11:42 +0800)]
board: starfive: Add Kconfig for StarFive VisionFive v2 Board
Add Kconfig to select the basic functions for StarFive VisionFive v2 Board.
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
6f902b85b6eeb283199ddcf8214a299ac6cf57be)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I089028e1904025696c8586119c139734a5f9c999
Yanhong Wang [Wed, 29 Mar 2023 03:42:18 +0000 (11:42 +0800)]
riscv: cpu: jh7110: Add Kconfig for StarFive JH7110 SoC
Add Kconfig to select the basic functions for StarFive JH7110 SoC.
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
2f5fad0b0ddcdab6deeeda94859bcd93605d1784)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I50b180379660daf904b55266f608fd626dfcdf77
Yanhong Wang [Wed, 29 Mar 2023 03:42:17 +0000 (11:42 +0800)]
board: starfive: add StarFive VisionFive v2 board support
Add board support for StarFive VisionFive v2.
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
5ecf9b0b8a756c7227ef17c67a870295060e2052)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I7ffda616a2e1e8575d458d6aa895aff155f15b43
Yanhong Wang [Wed, 29 Mar 2023 03:42:16 +0000 (11:42 +0800)]
ram: starfive: add ddr driver
Add driver for StarFive JH7110 to support ddr initialization in SPL.
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
60abbadfc0bb257733bde49658ab86275a269e2b)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I9cf02d4d9bcd80797c9bb6762d495e8d47275b51
Kuan Lim Lee [Wed, 29 Mar 2023 03:42:15 +0000 (11:42 +0800)]
pinctrl: starfive: Add StarFive JH7110 driver
Add pinctrl driver for StarFive JH7110 SoC.
Signed-off-by: Kuan Lim Lee <kuanlim.lee@linux.starfivetech.com>
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
732f01aabf53ae97aff9acb92a43c6b3838e6c92)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I8d4829142ac4a7ea0df7a9e2765c0350c7d9d368
Jianlong Huang [Wed, 29 Mar 2023 03:42:14 +0000 (11:42 +0800)]
dt-bindings: pinctrl: Add StarFive JH7110 pinctrl definitions
Add pinctrl definitions for StarFive JH7110 SoC.
Signed-off-by: Kuan Lim Lee <kuanlim.lee@linux.starfivetech.com>
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
d60f38493837d70a66cb9655169459d65dbe5fca)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I08ba8786cbb2de184976fa53ffe90d5c483f2045
Yanhong Wang [Wed, 29 Mar 2023 03:42:13 +0000 (11:42 +0800)]
clk: starfive: Add StarFive JH7110 clock driver
Add a DM clock driver for StarFive JH7110 SoC.
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
c13fe7c034fa2b616cc0223e20fd365afb36574a)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I5da4b9e6f498266749cf3a974f9be1e9ee797aaf
Yanhong Wang [Wed, 29 Mar 2023 03:42:12 +0000 (11:42 +0800)]
dt-bindings: clock: Add StarFive JH7110 clock definitions
Add all clock outputs for the StarFive JH7110 clock generator.
Change-Id: Ic2cb4c54eee48f7328b477ce4c18a5eddc7f00ed
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Acked-by: Sean Anderson <seanga2@gmail.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Yanhong Wang [Wed, 29 Mar 2023 03:42:11 +0000 (11:42 +0800)]
reset: starfive: jh7110: Add reset driver for StarFive JH7110 SoC
Add a DM reset driver for StarFive JH7110 SoC.
Note that the register base address of reset controller is the
same with the clock controller. Therefore, there is no device
tree node alone for reset driver.It binds device node in
the clock driver
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
d13de4faafbdb675515c57dcadf4a78205767ace)
Change-Id: I40c31ff4c26ada33b499fc6c1221a5f8c59c780e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Yanhong Wang [Wed, 29 Mar 2023 03:42:10 +0000 (11:42 +0800)]
dt-bindings: reset: Add StarFive JH7110 reset definitions
Add resets for the StarFive JH7110 system(SYS),system-top-group(STG) and
always-on(AON) reset controller.
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
c10483045e2de75a16d88aea8cceee42c91056d7)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: Iab53ba1b78d50a9208998b4292599aa5a627fac5
Yanhong Wang [Wed, 29 Mar 2023 03:42:09 +0000 (11:42 +0800)]
cache: starfive: Add StarFive JH7110 support
This adds support for the StarFive JH7110 SoC which also
feature this SiFive cache controller.
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
(cherry picked from commit
22c240273742befbf6791292dfdd6ebe63c2c09a)
Change-Id: Ia99bcd1c9dbdaacbf3a0390e388ef05f6d96db17
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>