Some platforms as described by EBBR specification may store images in
the FIRMWARE directory of the UEFI system partition(ESP). Add support
to boot from the EFI system partition if it is enabled for a platform.
Signed-off-by: Mayuresh Chitale
Reviewed-by: Heinrich Schuchardt
---
Changes in v3
If a disk has an EFI system partition (ESP) then it can be used to
locate the boot files. Add a function to find the ESP.
Signed-off-by: Mayuresh Chitale
Reviewed-by: Heinrich Schuchardt
---
Changes in v3:
- Fix part_get_esp signature and header in part.h
disk/part.c| 16
in case of ESP boot failure
Mayuresh Chitale (2):
part: Add a function to find ESP partition
spl: Add support for booting from ESP
common/spl/Kconfig | 8 ++
common/spl/spl_blk_fs.c | 60 ++---
common/spl/spl_fat.c| 34
On Wed, Jan 17, 2024 at 6:43 AM Sean Anderson wrote:
> On 1/16/24 07:36, Mayuresh Chitale wrote:
> > If a disk has an EFI system partition (ESP) then it can be used to
> > locate the boot files. Add a function to find the ESP.
> >
> > Signed-off-by: Mayuresh Chitale
On Tue, Jan 16, 2024 at 7:15 PM Heinrich Schuchardt <
heinrich.schucha...@canonical.com> wrote:
> On 16.01.24 13:36, Mayuresh Chitale wrote:
> > If a disk has an EFI system partition (ESP) then it can be used to
> > locate the boot files. Add a function to find the ES
On Tue, Jan 16, 2024 at 7:09 PM Heinrich Schuchardt
wrote:
> On 16.01.24 13:36, Mayuresh Chitale wrote:
> > Some platforms as described by EBBR specification may store images in
> > the FIRMWARE directory of the UEFI system partition(ESP). Add support
> > to boot from the
Some platforms as described by EBBR specification may store images in
the FIRMWARE directory of the UEFI system partition(ESP). Add support
to boot from the EFI system partition if it is enabled for a platform.
Signed-off-by: Mayuresh Chitale
---
common/spl/Kconfig | 8 +++
common/spl
If a disk has an EFI system partition (ESP) then it can be used to
locate the boot files. Add a function to find the ESP.
Signed-off-by: Mayuresh Chitale
Reviewed-by: Heinrich Schuchardt
---
disk/part.c| 16
include/part.h | 11 +++
2 files changed, 27 insertions
booting from ESP and fall back to the configured parition in
case of a failure.
Changes in v2:
- Rebase on latest next branch
- Enable SPL_ESP_BOOT by default
- For NVMe boot, remove fallback in case of ESP boot failure
Mayuresh Chitale (2):
part: Add a function to find ESP partition
spl: Add
'
fs/fs.o:(.data.rel.fstypes+0x150):
undefined reference to `smh_fs_write'
Fix the error by populating the semihosting entry in the fs_types array
only for non-SPL builds.
Signed-off-by: Mayuresh Chitale
---
Changes in v2:
- Use CONFIG_IS_ENABLED instead of CONFIG_SPL_BUILD
fs/fs.c | 2 +-
1 file
Fix the driver to use the dev_read_addr_size API to fetch the reg
property from the DT.
Signed-off-by: Mayuresh Chitale
---
drivers/pci/pcie_xilinx.c | 29 -
1 file changed, 12 insertions(+), 17 deletions(-)
diff --git a/drivers/pci/pcie_xilinx.c b/drivers/pci
The host bridge MMIO region is disabled by default due to which MMIO
accesses cause an exception. Fix it by setting the bridge enable bit.
This change is ported from the linux pcie-xilinx driver.
Signed-off-by: Mayuresh Chitale
Reviewed-by: Michal Simek
---
drivers/pci/pcie_xilinx.c | 8
This series fixes couple issues with the Xilinx PCIe host controller
driver.
Changes in v3:
- Add error checking and improve commit title of patch 1
- Rebase patch 2 on modified patch 1
Mayuresh Chitale (2):
pci: xilinx: Fix "reg" not found error
pci: xilinx: Enable MMIO region
d
This series makes the Xilinx XPS SPI driver compatible with the MMC_SPI
driver and also includes an enhacement from the corresponding Linux driver.
Changes in v2:
- Improve comment and add reviewed-by tag in patch 3
Mayuresh Chitale (3):
drivers: xilinx_spi: Use udevice in start_tranfer
If the fifo-size DT parameter is not provided then probe the
controller's fifo depth at runtime. This is ported from a patch
in the Linux Xilinx SPI driver.
Signed-off-by: Mayuresh Chitale
Reviewed-by: Michal Simek
Link:
https://lore.kernel.org/r/1422029330-10971-5-git-send-email-ricardo.riba
Add the xfer callback which is used by the MMC_SPI driver and generally by
the dm_spi_xfer callback.
Signed-off-by: Mayuresh Chitale
---
drivers/spi/xilinx_spi.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c
index
Modify start_transfer and related functions to take a udevice parameter
as input instead of spi_slave. This is needed so that start_transfer can
be used directly via the xfer callback. Also fix a compiler warning.
Signed-off-by: Mayuresh Chitale
---
drivers/spi/xilinx_spi.c | 32
; property.
Signed-off-by: Mayuresh Chitale
Reviewed-by: Michal Simek
---
Changes in v2:
Add Reviewed-by Tag.
drivers/net/xilinx_axi_emac.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c
index
The host bridge MMIO region is disabled by default due to which MMIO
accesses cause an exception. Fix it by setting the bridge enable bit.
This change is ported from the linux pcie-xilinx driver.
Signed-off-by: Mayuresh Chitale
Reviewed-by: Michal Simek
---
Changes in v2:
Add Reviewed
; property.
Signed-off-by: Mayuresh Chitale
Reviewed-by: Michal Simek
---
Changes in v2:
Add Reviewed-by Tag.
drivers/net/xilinx_axi_emac.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c
index
Fix the driver to use the dev_read_addr_size API to fetch the reg
property from the DT.
Signed-off-by: Mayuresh Chitale
---
Changes in v2:
- Remove global_data.h from include
- Use devm_ioremap instead of map_phsymem
drivers/pci/pcie_xilinx.c | 26 +-
1 file
If the fifo-size DT parameter is not provided then probe the
controller's fifo depth at runtime. This is ported from a patch
in the Linux Xilinx SPI driver.
Signed-off-by: Mayuresh Chitale
Link:
https://lore.kernel.org/r/1422029330-10971-5-git-send-email-ricardo.riba...@gmail.com
---
drivers
Add the xfer callback which is used by the MMC_SPI driver and generally by
the dm_spi_xfer callback.
Signed-off-by: Mayuresh Chitale
---
drivers/spi/xilinx_spi.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c
index
Modify start_transfer and related functions to take a udevice parameter
as input instead of spi_slave. This is needed so that start_transfer can
be used directly via the xfer callback. Also fix a compiler warning.
Signed-off-by: Mayuresh Chitale
---
drivers/spi/xilinx_spi.c | 32
This series makes the Xilinx XPS SPI driver compatible with the MMC_SPI
driver and also includes an enhacement from the corresponding Linux driver.
Mayuresh Chitale (3):
drivers: xilinx_spi: Use udevice in start_tranfer
drivers: xilinx_spi: Add xfer callback
drivers: xilinx_spi: Probe
The host bridge MMIO region is disabled by default due to which MMIO
accesses cause an exception. Fix it by setting the bridge enable bit.
This change is ported from the linux pcie-xilinx driver.
Signed-off-by: Mayuresh Chitale
---
drivers/pci/pcie_xilinx.c | 8
1 file changed, 8
; property.
Signed-off-by: Mayuresh Chitale
---
drivers/net/xilinx_axi_emac.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c
index 54f2232768..ef151ee51b 100644
--- a/drivers/net/xilinx_axi_emac.c
+++ b/d
Add the xfer callback which is used by the MMC_SPI driver and generally by
the dm_spi_xfer callback. Also probe the fifo_depth during init as is
done in the linux spi-xilinx driver and fix a compiler warning while at it.
Signed-off-by: Mayuresh Chitale
---
drivers/spi/xilinx_spi.c | 70
Fix the driver to use the dev_read_addr_size API to fetch the reg
property from the DT.
Signed-off-by: Mayuresh Chitale
---
drivers/pci/pcie_xilinx.c | 22 --
1 file changed, 8 insertions(+), 14 deletions(-)
diff --git a/drivers/pci/pcie_xilinx.c b/drivers/pci/pcie_xilinx.c
.
Signed-off-by: Mayuresh Chitale
---
arch/riscv/dts/binman.dtsi | 14 ++
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/arch/riscv/dts/binman.dtsi b/arch/riscv/dts/binman.dtsi
index 156cb00971..b448b2a712 100644
--- a/arch/riscv/dts/binman.dtsi
+++ b/arch/riscv/dts
'
fs/fs.o:(.data.rel.fstypes+0x150):
undefined reference to `smh_fs_write'
Fix the error by populating the semihosting entry in the fs_types array
only for non-SPL builds.
Reviewed-by: Heinrich Schuchardt
Signed-off-by: Mayuresh Chitale
---
fs/fs.c | 2 ++
1 file changed, 2 insertions(+)
diff
Some platforms as described by EBBR specification may store images in
the FIRMWARE directory of the UEFI system partition(ESP). Add support
to boot from the EFI system partition if it is enabled for a platform.
Signed-off-by: Mayuresh Chitale
---
common/spl/Kconfig | 7 +
common/spl
If a disk has an EFI system partition (ESP) then it can be used to
locate the boot files. Add a function to find the ESP.
Signed-off-by: Mayuresh Chitale
Reviewed-by: Heinrich Schuchardt
---
disk/part.c| 16
include/part.h | 10 ++
2 files changed, 26 insertions
/854ba0e68590102667b84a5ba4e0b076a3f5f2cb/source/chapter4-firmware-media.rst
The patches are also present in the branch below:
https://github.com/mdchitale/u-boot/tree/mchitale_spl_ebbr_v1
Mayuresh Chitale (2):
part: Add a function to find ESP partition
spl: Add support for booting from ESP
common/spl/Kconfig | 7
Add support to load the next stage image from an NVMe disk which may
be formatted as an EXT or FAT filesystem. Also protect the call to
env_get in blk_get_device_part_str with CONFIG_SPL_ENV_SUPPORT macro to
avoid link error when SPL_ENV_SUPPORT is not enabled.
Signed-off-by: Mayuresh Chitale
Enable NVME and PCI NVMe drivers for SPL builds. Also enable PCI_PNP
for SPL which is required to auto configure the PCIe devices.
Signed-off-by: Mayuresh Chitale
---
drivers/Makefile | 1 +
drivers/nvme/Makefile | 2 +-
drivers/pci/Kconfig | 6 ++
3 files changed, 8 insertions(+), 1
Add a generic API to support loading of SPL payload from any supported
filesystem on a given partition of a block device.
Signed-off-by: Mayuresh Chitale
---
common/spl/Kconfig | 1 +
common/spl/Makefile | 1 +
common/spl/spl_blk_fs.c | 134
Add kconfig options to enable NVME and PCI NVMe support in SPL
Signed-off-by: Mayuresh Chitale
Reviewed-by: Simon Glass
---
common/spl/Kconfig | 26 ++
1 file changed, 26 insertions(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 2c042ad306..94b13f7a7f
in v2:
- Rebase on v2023.07-rc1
- Use uclass ID for blk APIs
- Add support to load FIT images from ext filesystem
Mayuresh Chitale (5):
spl: Add Kconfig options for NVME
spl: blk: Support loading images from fs
nvme: pci: Enable for SPL
spl: Support loading a FIT from ext FS
common: spl
On Wed, May 17, 2023 at 8:11 PM Tom Rini wrote:
>
> On Thu, May 04, 2023 at 03:23:26PM +0530, Mayuresh Chitale wrote:
>
> > Detect a FIT when loading from an ext File system and handle it using
> > the FIT SPL support.
> >
> > Signed-off-by: Mayuresh Chitale
On Fri, May 5, 2023 at 6:11 AM Simon Glass wrote:
>
> Hi Mayuresh,
>
> On Thu, 4 May 2023 at 03:53, Mayuresh Chitale
> wrote:
> >
> > Detect a FIT when loading from an ext File system and handle it using
> > the FIT SPL support.
> >
> > Signed-off-
On Fri, May 5, 2023 at 6:11 AM Simon Glass wrote:
>
> On Thu, 4 May 2023 at 03:53, Mayuresh Chitale
> wrote:
> >
> > Enable NVME and PCI NVMe drivers for SPL builds. Also enable PCI_PNP
> > for SPL which is required to auto configure the PCIe devices.
> >
&g
Hi Simon,
On Fri, May 5, 2023 at 6:11 AM Simon Glass wrote:
>
> Hi Mayuresh,
>
> On Thu, 4 May 2023 at 03:53, Mayuresh Chitale
> wrote:
> >
> > Add a generic API to support loading of SPL payload from EXT or FAT
> > filesystem on a given partition of a
On Thu, May 4, 2023 at 2:04 AM Tom Rini wrote:
>
> On Sat, Feb 18, 2023 at 05:55:25PM +0530, Mayuresh Chitale wrote:
>
> > Use dev_read_() api instead of the fdtdec API to fetch the host
> > controller's reg property value. This is similar to the other host
> > contro
Add support to load the next stage image from an NVMe disk which may
be formatted as an EXT or FAT filesystem.
Signed-off-by: Mayuresh Chitale
---
arch/riscv/include/asm/spl.h | 1 +
common/spl/Kconfig | 10 ++
common/spl/Makefile | 1 +
common/spl/spl_nvme.c
Detect a FIT when loading from an ext File system and handle it using
the FIT SPL support.
Signed-off-by: Mayuresh Chitale
---
common/spl/spl_ext.c | 33 +
1 file changed, 33 insertions(+)
diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c
index f117c630bf
Enable NVME and PCI NVMe drivers for SPL builds. Also enable PCI_PNP
for SPL which is required to auto configure the PCIe devices.
Signed-off-by: Mayuresh Chitale
---
drivers/Makefile | 1 +
drivers/nvme/Makefile | 2 +-
drivers/pci/Kconfig | 7 +++
3 files changed, 9 insertions
Add a generic API to support loading of SPL payload from EXT or FAT
filesystem on a given partition of a block device.
Signed-off-by: Mayuresh Chitale
---
common/spl/Makefile | 1 +
common/spl/spl_blk_fs.c | 54 +
drivers/block/Kconfig | 7
Add kconfig options to enable NVME and PCI NVMe support in SPL
Signed-off-by: Mayuresh Chitale
---
common/spl/Kconfig | 21 +
1 file changed, 21 insertions(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 2c042ad306..515e8f2c66 100644
--- a/common/spl/Kconfig
support to load FIT images from ext filesystem
Mayuresh Chitale (5):
spl: Add Kconfig options for NVME
spl: blk: Support loading images from fs
nvme: pci: Enable for SPL
spl: Support loading a FIT from ext FS
common: spl: Add spl NVMe boot support
arch/riscv/include/asm/spl.h | 1 +
common
Hi Simon,
On Wed, May 3, 2023 at 6:58 AM Simon Glass wrote:
>
> Hi Mayuresh,
>
> On Tue, 2 May 2023 at 10:19, Mayuresh Chitale
> wrote:
> >
> > Add support to load the next stage image from an NVMe disk which may
> > be formatted as an EXT or FAT filesystem
Hi Simon,
On Wed, May 3, 2023 at 6:58 AM Simon Glass wrote:
>
> Hi Mayuresh,
>
> On Tue, 2 May 2023 at 10:19, Mayuresh Chitale
> wrote:
> >
> > Enable NVME and PCI NVMe drivers for SPL builds. Also enable PCI_PNP
> > for SPL which is required to auto configure
Add support to load the next stage image from an NVMe disk which may
be formatted as an EXT or FAT filesystem.
Signed-off-by: Mayuresh Chitale
---
arch/riscv/include/asm/spl.h | 1 +
common/spl/Kconfig | 10 +++
common/spl/Makefile | 1 +
common/spl/spl_nvme.c
Detect a FIT when loading from an ext File system and handle it using
the FIT SPL support.
Signed-off-by: Mayuresh Chitale
---
common/spl/spl_ext.c | 33 +
1 file changed, 33 insertions(+)
diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c
index 2bf3434439
Enable NVME and PCI NVMe drivers for SPL builds. Also enable PCI_PNP
for SPL which is required to auto configure the PCIe devices.
Signed-off-by: Mayuresh Chitale
---
drivers/Makefile | 1 +
drivers/nvme/Makefile| 2 +-
drivers/pci/Kconfig | 7 +++
drivers/pci/pci-uclass.c
Add kconfig options to enable NVME and PCI NVMe support in SPL
Signed-off-by: Mayuresh Chitale
Reviewed-by: Simon Glass
---
common/spl/Kconfig | 20
1 file changed, 20 insertions(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 2c042ad306..a42774c76d 100644
This patchset adds support to load images of the SPL's next booting stage from
a NVMe device.
Changes in v2:
- Rebase on v2023.07-rc1
- Use uclass ID for blk APIs
- Add support to load FIT images from ext filesystem
Mayuresh Chitale (4):
spl: Add Kconfig options for NVME
nvme: pci: Enable
Since commit 9905cae65e03 ("fs: ext4: check the minimal partition size
to mount"), a valid size needs to be provided when mounting
an ext filesystem. Fix the spl ext driver to use the parition size
instead of 0 when mounting the filesystem.
Signed-off-by: Mayuresh Chitale
---
is described in the link below:
Link: https://source.denx.de/u-boot/custodians/u-boot-dm/-/issues/1
Signed-off-by: Mayuresh Chitale
---
drivers/pci/pcie_ecam_generic.c | 21 -
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/drivers/pci/pcie_ecam_generic.c b/drivers
Hi Simon,
On Fri, Sep 30, 2022 at 5:26 AM Simon Glass wrote:
> Hi Mayuresh,
>
> On Thu, 29 Sept 2022 at 03:57, Mayuresh Chitale
> wrote:
> >
> > Build PCI NVMe driver when enabled for SPI and enable dm-pre-reloc for
> > the driver. Also enable PCI_PNP for
Add spl_nvme to read a fat partition from a bootable NVMe device.
Signed-off-by: Mayuresh Chitale
---
arch/riscv/include/asm/spl.h | 1 +
common/spl/Makefile | 1 +
common/spl/spl_nvme.c| 44
3 files changed, 46 insertions(+)
create mode
Build PCI NVMe driver when enabled for SPI and enable dm-pre-reloc for
the driver. Also enable PCI_PNP for SPL which is required to auto
configure the PCIe devices.
Signed-off-by: Mayuresh Chitale
---
drivers/Makefile | 2 +-
drivers/nvme/Makefile| 2 +-
drivers/nvme/nvme_pci.c | 1
This patch adds options to enable PCI NVMe support in SPL
Signed-off-by: Mayuresh Chitale
---
common/spl/Kconfig | 25 +
1 file changed, 25 insertions(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 70d97815f0..2bc97421f9 100644
--- a/common/spl/Kconfig
This patchset adds support to load images of the SPL's next booting stage from
a NVMe device.
Mayuresh Chitale (3):
spl: Add Kconfig options for NVME
nvme: pci: Enable for SPL
common: spl: Add spl NVMe boot support
arch/riscv/include/asm/spl.h | 1 +
common/spl/Kconfig | 25
64 matches
Mail list logo