From: Bin Meng
Use the generic board_init_f() provided by the RISC-V library codes.
Signed-off-by: Bin Meng
---
board/sifive/fu540/spl.c | 19 +--
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/board/sifive/fu540/spl.c b/board/sifive/fu540/spl.c
index 55325cf..3
From: Bin Meng
This option was enabled during the earlier U-Boot porting time. Now
we already have the OTP driver in place and the unique MAC address
is read from the OTP, there is no need to turn on this option.
Signed-off-by: Bin Meng
---
board/sifive/fu540/Kconfig | 1 -
1 file changed, 1
From: Bin Meng
spl_soc_init() seems to be a better name, as all SPL functions
names start from the spl_ prefix.
Signed-off-by: Bin Meng
---
arch/riscv/cpu/fu540/spl.c | 2 +-
arch/riscv/include/asm/arch-fu540/spl.h | 2 +-
board/sifive/fu540/spl.c| 2 +-
3 files c
From: Bin Meng
It's better to keep all SPL related functions in the same spl.c.
Signed-off-by: Bin Meng
---
board/sifive/fu540/fu540.c | 33 -
board/sifive/fu540/spl.c | 33 -
2 files changed, 32 insertions(+), 34 deletions(-)
From: Bin Meng
All FU540 driver related options should be in the SoC level Kconfig.
Signed-off-by: Bin Meng
---
arch/riscv/cpu/fu540/Kconfig | 22 ++
board/sifive/fu540/Kconfig | 22 --
2 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/
From: Bin Meng
The generic SPL version of board_init_f() should give a call to
board specific codes to initialize board in the SPL phase.
Signed-off-by: Bin Meng
---
arch/riscv/include/asm/spl.h | 7 +++
arch/riscv/lib/spl.c | 9 +
2 files changed, 16 insertions(+)
diff -
Hi Vignesh,
On 03/07/20 1:04 pm, Vignesh Raghavendra wrote:
> Hi,
>
> On 02/07/20 1:32 pm, Faiz Abbas wrote:
>
> [...]
>> int am6_spl_early_init(void)
>
> Can this be static or do you intend to use this outside of this func file?
Fixed this in v2.
>
>> +{
>> +int ret;
>> +#if CONFIG_VAL(S
Enable configs to facilitate booting from USB Mass Storage devices
as well as USB peripheral boot
Signed-off-by: Faiz Abbas
---
configs/am65x_evm_a53_defconfig | 10 ++
include/configs/am65x_evm.h | 2 ++
2 files changed, 12 insertions(+)
diff --git a/configs/am65x_evm_a53_defconfi
Because of space constraints, create a new USB defconfig for R5 to
faciliate booting in USB peripheral (DFU) bootmode
Signed-off-by: Faiz Abbas
---
configs/am65x_evm_r5_usbdfu_defconfig | 120 ++
1 file changed, 120 insertions(+)
create mode 100644 configs/am65x_evm_r5_u
Add offset and environment related configs used for booting
from DFU.
Signed-off-by: Faiz Abbas
---
include/configs/am65x_evm.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/configs/am65x_evm.h b/include/configs/am65x_evm.h
index 19d861d402..902b5ba398 100644
---
Add nodes for USB0 in SPL to enable USB host boot mode
Signed-off-by: Faiz Abbas
---
arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 27
1 file changed, 27 insertions(+)
diff --git a/arch/arm/dts/k3-am654-base-board-u-boot.dtsi
b/arch/arm/dts/k3-am654-base-board-u-boot.dtsi
Because of space constraints, create a new USB defconfig for R5 to
faciliate booting from USB mass storage devices
Signed-off-by: Faiz Abbas
---
configs/am65x_evm_r5_usbmsc_defconfig | 119 ++
1 file changed, 119 insertions(+)
create mode 100644 configs/am65x_evm_r5_usbm
Add USB0 nodes and set them to host mode to support USB host and
peripheral boot modes
Signed-off-by: Faiz Abbas
---
arch/arm/dts/k3-am654-r5-base-board.dts | 35 +
1 file changed, 35 insertions(+)
diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts
b/arch/arm/dts/k3-a
Add support for identifying USB host and device boot modes
Signed-off-by: Faiz Abbas
---
arch/arm/mach-k3/am6_init.c | 5 +
arch/arm/mach-k3/include/mach/am6_hardware.h | 2 ++
arch/arm/mach-k3/include/mach/am6_spl.h | 3 ++-
3 files changed, 9 insertions(+), 1 deletion
U-boot only supports either USB host or device mode for a node at a
time in dts. To support both host and dfu bootmodes, set "peripheral"
as the default dr_mode but fixup property to "host" if host bootmode
is detected.
This needs to happen before the dwc3 generic layer binds the usb device
to a h
Add support for loading system firmware from a USB mass storage device
Signed-off-by: Faiz Abbas
---
arch/arm/mach-k3/sysfw-loader.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/mach-k3/sysfw-loader.c b/arch/arm/mach-k3/sysfw-loader.c
index 513be09c68..0ebd8c56a7 100
Gate mmc related system related configurations with DM_MMC to avoid build
errors when MMC is not enabled
Signed-off-by: Faiz Abbas
---
arch/arm/mach-k3/am6_init.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-k3/am6_init.c b/arch/arm/mach-k3/am6_init.c
ind
In order to be able to use things like file system drivers early on in
SPL (before relocation) in a memory-constrained environment when DDR is
not yet available we cannot use the simple malloc scheme which does not
implement the freeing of previously allocated memory blocks. To address
this issue g
usb_init() may be called multiple times for fetching multiple images
from SPL. Skip reinitializing USB if its already been done
Signed-off-by: Faiz Abbas
---
common/spl/spl_usb.c | 11 ---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/common/spl/spl_usb.c b/common/spl/spl
The following patches add support for USB mass storage and USB dfu
bootmodes on am654x-idk.
Because of space constrains and the size of the USB stack,
there are two different usbmsc and usbdfu defconfigs for building R5 SPL.
Fitting both of these into one defconfig requires some changes in the
USB
Create a new API spl_usb_load() that takes the filename as a parameter
instead of taking the default U-boot PAYLOAD_NAME
Signed-off-by: Faiz Abbas
---
common/spl/spl_usb.c | 20 +---
include/spl.h| 14 ++
2 files changed, 27 insertions(+), 7 deletions(-)
diff
This is a utility mainly for test purpose.
mkeficapsule -f: create a test capsule file for FIT image firmware
Having said that, you will be able to customize the code to fit
your specific requirements for your platform.
Signed-off-by: AKASHI Takahiro
---
tools/Makefile | 3 +
tools/mk
In this commit, a very simple firmware management protocol driver
is implemented. It will take a binary image in a capsule file and
apply the data using dfu backend storage drivers via dfu_write_by_alt()
interface.
So "dfu_alt_info" variable should be properly set to specify a device
and location
"efidebug capsule" is more or less a debugging utility.
efidebug capsule update: invoke UpdateCapsule against data on memory
efidebug capsule show: show a capsule header
efidebug capsule result: dump a capsule result variable
Signed-off-by: AKASHI Takahiro
---
cmd/efidebug.c | 235
The test can run on sandbox build and it attempts to execute a firmware
update via a capsule-on-disk, using a FIT image capsule,
CONFIG_EFI_CAPSULE_FIT.
To run this test successfully, you need configure U-Boot specifically;
See test_capsule_firmware.py for requirements, and hence it won't run
on T
The test can run on sandbox build and it attempts to execute a firmware
update via a capsule-on-disk, using a raw image capsule,
CONFIG_EFI_CAPSULE_RAW.
To run this test successfully, you need configure U-Boot specifically;
See test_capsule_firmware.py for requirements, and hence it won't run
on T
Capsule data can be loaded into the system either via UpdateCapsule
runtime service or files on a file system (of boot device).
The latter case is called "capsules on disk", and actual updates will
take place at the next boot time.
In this commit, we will support capsule on disk mechanism.
Please
Memory range capsule gives us a way to notify that some memory regions
should be left untouched across the next reset.
See UEFI specification, section 8.5.3.
Since how we should handle this kind of capsule is totally up to
the system, no implementation will be added in this commit.
Signed-off-by:
This function is a variant of dfu_write_by_name() and takes a DFU alt
setting number for dfu configuration.
It will be utilised to implement UEFI capsule management protocol for
raw image in a later commit.
Signed-off-by: AKASHI Takahiro
---
drivers/dfu/dfu_alt.c | 47 ++
A capsule tagged with the guid, EFI_FIRMWARE_MANAGEMENT_CAPSULE_ID_GUID,
is handled as a firmware update object.
What efi_update_capsule() basically does is to load any firmware management
protocol (or fmp) drivers contained in a capsule, find out an appropriate
fmp driver and then invoke its set_i
In this commit, a very simple firmware management protocol driver
is implemented. It will take a common FIT image firmware in a capsule
file and apply the data using dfu backend storage drivers via
update_fit() interface.
So "dfu_alt_info" variable should be properly set to specify a device
and lo
In this commit, skeleton functions for capsule-related API's are
added under CONFIG_EFI_UPDATE_CAPSULE configuration.
Detailed implementation for a specific capsule type will be added
in the succeeding patches.
Signed-off-by: AKASHI Takahiro
---
include/efi_api.h| 12 +++
include/ef
This variable will be utilized to enumerate all dfu entities
for UEFI capsule firmware update in a later commit.
Signed-off-by: AKASHI Takahiro
---
drivers/dfu/dfu.c | 2 +-
include/dfu.h | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/d
This function will be used from several places in UEFI subsystem
to generate some specific form of utf-16 variable name.
For example, L"Capsule0001"
Signed-off-by: AKASHI Takahiro
---
include/efi_loader.h | 3 +++
lib/efi_loader/efi_setup.c | 30 ++
2 files cha
If this option, CONFIG_EFI_SETUP_EARLY, is enabled, the initialisation
of UEFI subsystem will be done as part of U-Boot initialisation.
Please note that this option won't be enabled explicitly by users,
instead, should be enabled implicitly by other configuration options.
Specifically, this featu
The main purpose of this patch is to separate a generic interface for
updating firmware using DFU drivers from "auto-update" via tftp.
This function will also be used in implementing UEFI capsule update
in a later commit.
Signed-off-by: AKASHI Takahiro
---
common/Kconfig | 14 +
co
Summary
===
'UpdateCapsule' is one of runtime services defined in UEFI specification
and its aim is to allow a caller (OS) to pass information to the firmware,
i.e. U-Boot. This is mostly used to update firmware binary on devices by
instructions from OS.
While 'UpdateCapsule' is a runtime serv
The range of an addressable pointer can go beyond 'integer'.
So change the argument type to a void pointer.
Signed-off-by: AKASHI Takahiro
Reviewed-by: Heinrich Schuchardt
---
common/update.c | 3 ++-
drivers/dfu/dfu_alt.c | 6 +++---
include/dfu.h | 4 ++--
3 files changed, 7 ins
This function is essentially independent from tffp, and will also be
utilised in implementing UEFI capsule update in a later commit.
So just give it a more generic name.
In addition, a new configuration option, CONFIG_DFU_ALT, was introduced
so that the file will be compiled with different options,
> From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de]
> Sent: Saturday, August 01, 2020 11:16 PM
> To: Rick Jian-Zhi Chen(陳建志)
> Cc: Simon Glass; Bin Meng; Sean Anderson; u-boot@lists.denx.de; Heinrich
> Schuchardt
> Subject: [PATCH v2 1/1] riscv: additional crash information
>
> If an exception
Hi Tom,
This PR includes the following x86 changes for v2020.10:
- ApolloLake: add u64 parameters support for FSP2 bindings
- ApolloLake: add missing parameters to support full configuration of
the latest FSP
MR6 release
- Append appropriate suffixes in various assembly codes
Azure results: PASS
Hi Atish,
On Thu, Jul 30, 2020 at 5:43 AM Atish Patra wrote:
>
> Hi,
> The latest master (423e08cb7701 (origin/master, origin/HEAD) Merge
> branch '2020-07-28-misc-soc-improvements') seems to be broken for
> HiFive Unleashed.
>
> It already has Bin's fix for unleashed.
>
> a0018fc8209c riscv: Mak
On Sat, Aug 1, 2020 at 11:16 PM Heinrich Schuchardt wrote:
>
> If an exception occurs, the relocated program counter and return address
> are required for an analysis.
>
> With this patch you get:
>
> => exception undefined
>
> Unhandled exception: Illegal instruction
> EPC: 80
於 2020年8月3日 週一 上午11:05寫道:
>
>
>
> -Original Message-
> From: Sagar Kadam [mailto:sagar.ka...@sifive.com]
> Sent: Friday, July 31, 2020 9:15 PM
> To: u-boot@lists.denx.de
> Cc: Rick Jian-Zhi Chen(陳建志); Paul Walmsley ( Sifive); pal...@dabbelt.com;
> anup.pa...@wdc.com; atish.pa...@wdc.com;
On Wed, Jul 29, 2020 at 1:02 AM Heinrich Schuchardt wrote:
>
> readl() and writel() expect void *. Do not pass an integer value.
>
> Remove unused include include asm/arch/timer.h.
two include ?
>
> Signed-off-by: Heinrich Schuchardt
> ---
> The driver is needed for the timers of the Kendryte K
On Tue, Jul 28, 2020 at 11:52 PM Heinrich Schuchardt wrote:
>
> The kendryte PLL code uses nop as barrier. The macro is not defined for
> the sandbox on x86 but is defined on RISC-V.
Is this kendryte PLL driver built for Sandbox?
>
> Signed-off-by: Heinrich Schuchardt
> ---
> include/kendryte/
Hi Marty,
On Fri, 31 Jul 2020 at 12:30, Simon Glass wrote:
>
> Hi Marty,
>
> On Fri, 31 Jul 2020 at 05:19, Marty E. Plummer wrote:
> >
> > On Tue, Jul 28, 2020 at 12:58:30PM -0600, Simon Glass wrote:
> > > Hi Marty,
> > >
> > > On Tue, 21 Jul 2020 at 21:07, Marty E. Plummer
> > > wrote:
> > >
Hi Matthew,
On Sun, 2 Aug 2020 at 20:17, Matthew Grochowalski wrote:
>
> Hello,
>
> Reading
> https://chromium.googlesource.com/chromiumos/docs/+/master/developer_mode.md,
> it appears U-Boot should work as an alternate firmware on new ARM
> Chromebooks.
>
> Trying on my Duet (Kukui/Krane), this
On Sat, Aug 1, 2020 at 8:27 AM Bin Meng wrote:
>
> On Tue, Jul 28, 2020 at 5:56 PM Andy Shevchenko
> wrote:
> >
> > Assembler is not happy:
> >
> > arch/x86/cpu/call32.S: Assembler messages:
> > arch/x86/cpu/call32.S:36: Warning: no instruction mnemonic suffix given and
> > no register operands;
On Sat, Aug 1, 2020 at 8:26 AM Bin Meng wrote:
>
> On Tue, Jul 28, 2020 at 5:56 PM Andy Shevchenko
> wrote:
> >
> > Assembler is not happy:
> >
> > arch/x86/cpu/sipi_vector.S: Assembler messages:
> > arch/x86/cpu/sipi_vector.S:134: Warning: no instruction mnemonic suffix
> > given and no registe
On Sun, Jul 26, 2020 at 10:54 PM Simon Glass wrote:
>
> On Wed, 22 Jul 2020 at 01:29, Bernhard Messerklinger
> wrote:
> >
> > Add FSP_UINT64 read support as preparation for FSP-M and FSP-S parameter
> > update.
> >
> > Signed-off-by: Bernhard Messerklinger
> >
> > ---
> >
> > arch/x86/cpu/apol
On Sun, Jul 26, 2020 at 10:54 PM Simon Glass wrote:
>
> On Wed, 22 Jul 2020 at 01:29, Bernhard Messerklinger
> wrote:
> >
> > Add missing parameters to support full configuration of the latest FSP
> > MR6 release.
> >
> > Signed-off-by: Bernhard Messerklinger
> >
> > ---
> >
> > arch/x86/cpu/a
On Tue, Jul 21, 2020 at 8:37 PM Bin Meng wrote:
>
> On Tue, Jul 21, 2020 at 7:01 PM Wolfgang Wallner
> wrote:
> >
> > Fix some typos in arch/x86/include/asm/irq.h.
> >
> > Signed-off-by: Wolfgang Wallner
> >
> > ---
> >
> > arch/x86/include/asm/irq.h | 6 +++---
> > 1 file changed, 3 insertions
Move this out of the common header and include it only where needed.
Signed-off-by: Simon Glass
---
arch/arm/lib/gic-v3-its.c | 1 +
arch/arm/mach-imx/imx8/fdt.c | 1 +
arch/arm/mach-k3/common.c | 1 +
arch/arm/
This header always included by the build system (see UBOOTINCLUDE) except
when building tools, so is unnecessary. Drop it and update the
documentation in the common.h header.
Tools generally should not make use of the board config, but a few do.
Update the Atmel pmecc tool to cope with this.
Sign
This file still includes the auto-generated config.h header. Add a comment
as to why, to help guide further work.
Signed-off-by: Simon Glass
---
include/common.h | 8
scripts/Makefile.autoconf | 19 +++
2 files changed, 23 insertions(+), 4 deletions(-)
diff -
At present common.h is used by the build system when calculating
dependencies. Move it out into a separate file so we can drop the
env_internal.h inclusion from common.
Signed-off-by: Simon Glass
---
arch/nds32/lib/asm-offsets.c | 1 +
include/common.h | 5 -
include/deps_inte
Move this out of the common header and include it only where needed.
Signed-off-by: Simon Glass
---
api/api.c | 1 +
board/CZ.NIC/turris_mox/turris_mox.c| 1 +
common/lcd_console.c| 1 +
common/log.c
Move this out of the common header and include it only where needed.
Signed-off-by: Simon Glass
---
api/api.c| 1 +
arch/arm/mach-at91/arm920t/clock.c | 1 +
arch/arm/mach-at91/arm926ejs/clock.c | 1 +
arch/arm/mach-at91/clock.c
Fix the code style used for some time functions.
Signed-off-by: Simon Glass
---
arch/arm/cpu/arm920t/imx/timer.c | 2 +-
arch/arm/cpu/sa1100/timer.c | 2 +-
arch/microblaze/cpu/timer.c | 2 +-
arch/powerpc/lib/interrupts.c| 2 +-
arch/powerpc/lib/time.c | 5 +++--
bo
Move this out of the common header and include it only where needed.
Signed-off-by: Simon Glass
---
arch/arm/cpu/armv7/s5p-common/cpu_info.c | 1 +
arch/arm/mach-at91/arm926ejs/eflash.c | 1 +
arch/arm/mach-imx/hab.c | 1 +
arch/powerpc/cpu/mpc85xx/cpu.c
Enable these extra PCI ethernet devices, so they can be tested in CI.
Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
---
configs/r2dplus_defconfig | 4
1 file changed, 4 insertions(+)
diff --git a/configs/r2dplus_defconfig b/configs/r2dplus_defconfig
index fb873a8863..a2d666ebd6 100644
Switch r2dplus to DM and DT probing for serial and clock.
Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
---
configs/r2dplus_defconfig | 5 -
include/configs/r2dplus.h | 1 -
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/configs/r2dplus_defconfig b/configs/r2dplus_defconf
Add simple DT and clock bindings to r2dplus DT to permit U-Boot
to bind the SCIF driver via DT probing instead of hard-coded
config options.
Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
---
arch/sh/dts/sh7751-r2dplus.dts | 23 +++
1 file changed, 23 insertions(+)
diff -
Add another flag to the DM core which could be assigned to drivers and
which makes those drivers call their remove callbacks last, just before
booting OS and after all the other drivers finished with their remove
callbacks. This is necessary for things like clock drivers, where the
other drivers mi
The gd->malloc_base must be set before the C runtime if the MALLOC_F_LEN
is non-zero, otherwise we hit assertion in dlmalloc.c initf_malloc(). So
set it.
Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
---
arch/sh/lib/start.S | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --g
The ethernet on r2dplus is on PCI bus, enumerate the PCI early
to get the ethernet operational.
Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
---
configs/r2dplus_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/r2dplus_defconfig b/configs/r2dplus_defconfig
index 9e6331
Enable DM ethernet support for the board, now that rtl8139 is converted.
Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
---
configs/r2dplus_defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/r2dplus_defconfig b/configs/r2dplus_defconfig
index 5263123694..9e6
The Cfp for topic proposals for RISC-V micro conference is open now. The
deadline is 15th August.
Here is the announcement.
https://www.linuxplumbersconf.org/blog/2020/risc-v-microconference-accepted-into-2020-linux-plumbers-conference/
FYI: The Linux plumbers event will be virtual this year. Mor
> On Aug 1, 2020, at 10:55 AM, Wolfgang Denk wrote:
>
>
> Dear Tom,
>
> In message <20200731185425.GK6965@bill-the-cat> you wrote:
>>
>> Which particular area are you worried about currently? I believe we've
>> had another good sized removal of PowerPC platforms and everything
>> that's le
70 matches
Mail list logo