All of lore.kernel.org
 help / color / mirror / Atom feed
* Converting CONFIG_SPL_BOOT_DEVICE to Kconfig in U-Boot
@ 2022-05-28 16:52 Tom Rini
  2022-05-28 21:35 ` Chris Packham
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Rini @ 2022-05-28 16:52 UTC (permalink / raw)
  To: u-boot, Mario Six, Chris Packham, Stefan Roese

[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]

Hey folks,

As part of converting outstanding CONFIG symbols to Kconfig, I've run in
to CONFIG_SPL_BOOT_DEVICE and while I think I see how to do it, it
would be better I think if someone that has the hardware and can test
the logic out, does it.

In short, I believe we need to:
- SPL_BOOT_SPI_NOR_FLASH / SPL_BOOT_SDIO_MMC_CARD become a choice
  section in arch/arm/mach-mvebu/Kconfig, guarded by !SECURED_MODE_IMAGE
- KWB_CFG_SEC_BOOT_DEV in arch/arm/mach-mvebu/Makefile gets updated
  based on how the Kconfig logic now works.
- In the case of CONFIG_SPL_BOOT_SDIO_MMC_CARD (or whatever it's named)
  and MMC_SDHCI we just have that value defined and drivers/mmc/sdhci.c
  is updated to check it for SPL.  Or if this is possibly useful outside
  of SPL, we make use of CONFIG_VAL and have
  'SPL_FIXED_SDHCI_ALIGNED_BUFFER' be set for the current case.
- CONFIG_SPL_BOOT_DEVICE is removed

I think that covers everything, but please let me know if I missed
something or I got the logic wrong or something.  Thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Converting CONFIG_SPL_BOOT_DEVICE to Kconfig in U-Boot
  2022-05-28 16:52 Converting CONFIG_SPL_BOOT_DEVICE to Kconfig in U-Boot Tom Rini
@ 2022-05-28 21:35 ` Chris Packham
  2022-05-28 21:36   ` Tom Rini
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Packham @ 2022-05-28 21:35 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Mario Six, Chris Packham, Stefan Roese

Hi Tom,

On Sun, 29 May 2022, 4:52 AM Tom Rini, <trini@konsulko.com> wrote:

> Hey folks,
>
> As part of converting outstanding CONFIG symbols to Kconfig, I've run in
> to CONFIG_SPL_BOOT_DEVICE and while I think I see how to do it, it
> would be better I think if someone that has the hardware and can test
> the logic out, does it.
>
> In short, I believe we need to:
> - SPL_BOOT_SPI_NOR_FLASH / SPL_BOOT_SDIO_MMC_CARD become a choice
>   section in arch/arm/mach-mvebu/Kconfig, guarded by !SECURED_MODE_IMAGE
> - KWB_CFG_SEC_BOOT_DEV in arch/arm/mach-mvebu/Makefile gets updated
>   based on how the Kconfig logic now works.
> - In the case of CONFIG_SPL_BOOT_SDIO_MMC_CARD (or whatever it's named)
>   and MMC_SDHCI we just have that value defined and drivers/mmc/sdhci.c
>   is updated to check it for SPL.  Or if this is possibly useful outside
>   of SPL, we make use of CONFIG_VAL and have
>   'SPL_FIXED_SDHCI_ALIGNED_BUFFER' be set for the current case.
> - CONFIG_SPL_BOOT_DEVICE is removed
>
> I think that covers everything, but please let me know if I missed
> something or I got the logic wrong or something.  Thanks!
>

I can give it a go. All the boards I have access to boot from SPI but I can
at least compile test the MMC support.


> --
> Tom
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Converting CONFIG_SPL_BOOT_DEVICE to Kconfig in U-Boot
  2022-05-28 21:35 ` Chris Packham
@ 2022-05-28 21:36   ` Tom Rini
  2022-05-28 22:07     ` Chris Packham
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Rini @ 2022-05-28 21:36 UTC (permalink / raw)
  To: Chris Packham; +Cc: u-boot, Mario Six, Chris Packham, Stefan Roese

[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]

On Sun, May 29, 2022 at 09:35:59AM +1200, Chris Packham wrote:
> Hi Tom,
> 
> On Sun, 29 May 2022, 4:52 AM Tom Rini, <trini@konsulko.com> wrote:
> 
> > Hey folks,
> >
> > As part of converting outstanding CONFIG symbols to Kconfig, I've run in
> > to CONFIG_SPL_BOOT_DEVICE and while I think I see how to do it, it
> > would be better I think if someone that has the hardware and can test
> > the logic out, does it.
> >
> > In short, I believe we need to:
> > - SPL_BOOT_SPI_NOR_FLASH / SPL_BOOT_SDIO_MMC_CARD become a choice
> >   section in arch/arm/mach-mvebu/Kconfig, guarded by !SECURED_MODE_IMAGE
> > - KWB_CFG_SEC_BOOT_DEV in arch/arm/mach-mvebu/Makefile gets updated
> >   based on how the Kconfig logic now works.
> > - In the case of CONFIG_SPL_BOOT_SDIO_MMC_CARD (or whatever it's named)
> >   and MMC_SDHCI we just have that value defined and drivers/mmc/sdhci.c
> >   is updated to check it for SPL.  Or if this is possibly useful outside
> >   of SPL, we make use of CONFIG_VAL and have
> >   'SPL_FIXED_SDHCI_ALIGNED_BUFFER' be set for the current case.
> > - CONFIG_SPL_BOOT_DEVICE is removed
> >
> > I think that covers everything, but please let me know if I missed
> > something or I got the logic wrong or something.  Thanks!
> >
> 
> I can give it a go. All the boards I have access to boot from SPI but I can
> at least compile test the MMC support.

Thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Converting CONFIG_SPL_BOOT_DEVICE to Kconfig in U-Boot
  2022-05-28 21:36   ` Tom Rini
@ 2022-05-28 22:07     ` Chris Packham
  2022-05-28 22:09       ` Tom Rini
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Packham @ 2022-05-28 22:07 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Mario Six, Chris Packham, Stefan Roese, Baruch Siach

On Sun, May 29, 2022 at 9:37 AM Tom Rini <trini@konsulko.com> wrote:
>
> On Sun, May 29, 2022 at 09:35:59AM +1200, Chris Packham wrote:
> > Hi Tom,
> >
> > On Sun, 29 May 2022, 4:52 AM Tom Rini, <trini@konsulko.com> wrote:
> >
> > > Hey folks,
> > >
> > > As part of converting outstanding CONFIG symbols to Kconfig, I've run in
> > > to CONFIG_SPL_BOOT_DEVICE and while I think I see how to do it, it
> > > would be better I think if someone that has the hardware and can test
> > > the logic out, does it.
> > >
> > > In short, I believe we need to:
> > > - SPL_BOOT_SPI_NOR_FLASH / SPL_BOOT_SDIO_MMC_CARD become a choice
> > >   section in arch/arm/mach-mvebu/Kconfig, guarded by !SECURED_MODE_IMAGE
> > > - KWB_CFG_SEC_BOOT_DEV in arch/arm/mach-mvebu/Makefile gets updated
> > >   based on how the Kconfig logic now works.
> > > - In the case of CONFIG_SPL_BOOT_SDIO_MMC_CARD (or whatever it's named)
> > >   and MMC_SDHCI we just have that value defined and drivers/mmc/sdhci.c
> > >   is updated to check it for SPL.  Or if this is possibly useful outside
> > >   of SPL, we make use of CONFIG_VAL and have
> > >   'SPL_FIXED_SDHCI_ALIGNED_BUFFER' be set for the current case.
> > > - CONFIG_SPL_BOOT_DEVICE is removed
> > >
> > > I think that covers everything, but please let me know if I missed
> > > something or I got the logic wrong or something.  Thanks!
> > >
> >
> > I can give it a go. All the boards I have access to boot from SPI but I can
> > at least compile test the MMC support.

Actually it looks even easier.

Baruch already did most of the work in ad105f5f8694 ("mvebu:
consolidate SPL boot device config symbols"). I think the only thing
left is converting the remaining 3 boards.

>
> Thanks!
>
> --
> Tom

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Converting CONFIG_SPL_BOOT_DEVICE to Kconfig in U-Boot
  2022-05-28 22:07     ` Chris Packham
@ 2022-05-28 22:09       ` Tom Rini
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2022-05-28 22:09 UTC (permalink / raw)
  To: Chris Packham
  Cc: u-boot, Mario Six, Chris Packham, Stefan Roese, Baruch Siach

[-- Attachment #1: Type: text/plain, Size: 1982 bytes --]

On Sun, May 29, 2022 at 10:07:20AM +1200, Chris Packham wrote:
> On Sun, May 29, 2022 at 9:37 AM Tom Rini <trini@konsulko.com> wrote:
> >
> > On Sun, May 29, 2022 at 09:35:59AM +1200, Chris Packham wrote:
> > > Hi Tom,
> > >
> > > On Sun, 29 May 2022, 4:52 AM Tom Rini, <trini@konsulko.com> wrote:
> > >
> > > > Hey folks,
> > > >
> > > > As part of converting outstanding CONFIG symbols to Kconfig, I've run in
> > > > to CONFIG_SPL_BOOT_DEVICE and while I think I see how to do it, it
> > > > would be better I think if someone that has the hardware and can test
> > > > the logic out, does it.
> > > >
> > > > In short, I believe we need to:
> > > > - SPL_BOOT_SPI_NOR_FLASH / SPL_BOOT_SDIO_MMC_CARD become a choice
> > > >   section in arch/arm/mach-mvebu/Kconfig, guarded by !SECURED_MODE_IMAGE
> > > > - KWB_CFG_SEC_BOOT_DEV in arch/arm/mach-mvebu/Makefile gets updated
> > > >   based on how the Kconfig logic now works.
> > > > - In the case of CONFIG_SPL_BOOT_SDIO_MMC_CARD (or whatever it's named)
> > > >   and MMC_SDHCI we just have that value defined and drivers/mmc/sdhci.c
> > > >   is updated to check it for SPL.  Or if this is possibly useful outside
> > > >   of SPL, we make use of CONFIG_VAL and have
> > > >   'SPL_FIXED_SDHCI_ALIGNED_BUFFER' be set for the current case.
> > > > - CONFIG_SPL_BOOT_DEVICE is removed
> > > >
> > > > I think that covers everything, but please let me know if I missed
> > > > something or I got the logic wrong or something.  Thanks!
> > > >
> > >
> > > I can give it a go. All the boards I have access to boot from SPI but I can
> > > at least compile test the MMC support.
> 
> Actually it looks even easier.
> 
> Baruch already did most of the work in ad105f5f8694 ("mvebu:
> consolidate SPL boot device config symbols"). I think the only thing
> left is converting the remaining 3 boards.

Oh nice.  And then FIXED_SDHCI_ALIGNED_BUFFER still needs to be taken
care of :)

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-05-28 22:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-28 16:52 Converting CONFIG_SPL_BOOT_DEVICE to Kconfig in U-Boot Tom Rini
2022-05-28 21:35 ` Chris Packham
2022-05-28 21:36   ` Tom Rini
2022-05-28 22:07     ` Chris Packham
2022-05-28 22:09       ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.