Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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
|
|
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>
|
|
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ib6613e118a4cfbbda309934f5f2da6012976a1cb
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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>
|
|
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>
|
|
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>
|
|
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
|
|
Add Rpi4Aot Partition map to support an AoT on RPi4.
Change-Id: I6ab6b1d51408c01cb2e219cc6f4699eb849f130e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Add container partition in GPT_PARTS_DEFAULT and DFU_ALT_SYSTEM.
Change-Id: I7f19453d84ee8f295be41c903f778a0dbee064f7
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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
|
|
Change-Id: I24261d9dbc2926e1d0b7b39402269a09b48dd82b
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Enable CONFIG_DM_USB_GADGET about amlogic boards.
Change-Id: If74ca88cbbf1b8efb1dcac3be35876346b0a0877
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
This reverts commit b84e5e2a9016f05470b2c9f1bb55617b065d5387.
Change-Id: I6d590f4cd0ff23986952743fbc85168b7f847aad
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
This reverts commit 8b4dad3bbef994712eb767172fe1f9660ad9504d.
Change-Id: Ic7b1fcf83aba4c770fe3a9824f9e9892f7fa6b3f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Update config file according to update the version.
Change-Id: Ib5c55110cd8db1f0f7eb71cca0d24d37830dffe5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
During upgrade to v2023.10, DM_VIDEO is changed to VIDEO.
Change-Id: Iad6a2a72d7022578af37b98308bae684ff97c48b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
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)
|
|
Change u-boot version from 2022.10 to 2023.10.
Change-Id: I5b521f3e702d6b55fb91de9786df8acab2abf4db
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Change-Id: Id97c0c19f50bcaed18aadb64ce8f0d66e8bad126
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
|
|
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>
|
|
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>
|
|
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
|
|
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>
|
|
Update the version of fusing scripts.
Change-Id: I6f7ee616bf0aac3137ff6fc51a9ab468406b8ffb
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
|
|
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>
|
|
Change-Id: Iaf2b561e8ad9f269ba75fbb1f9a5ab6e35f0f081
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
|
|
Do not print newline after prompts for user interaction.
Reword some messages.
Change-Id: I53da243519860be91ef2cf1e240f084394982726
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
|
|
Support ramdisk-recovery booting with valid part number.
Change-Id: I023bffed1dd4a53445b0998a0915272a2bf6f4d1
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
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>
|