All of lore.kernel.org
 help / color / mirror / Atom feed
From: Walter Lozano <walter.lozano@collabora.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 2/4] mx6cuboxi: customize board_boot_order to access eMMC
Date: Mon, 16 Mar 2020 14:53:58 -0300	[thread overview]
Message-ID: <8dea6c92-56fb-7804-1e47-231395d05bd1@collabora.com> (raw)
In-Reply-To: <20200316172552.45vfwljovh5gvy6j@sapphire.tkos.co.il>

Hi Baruch,

On 16/3/20 14:25, Baruch Siach wrote:
> Hi Walter
>
> On Mon, Mar 16, 2020 at 02:05:57PM -0300, Walter Lozano wrote:
>> On 16/3/20 13:28, Baruch Siach wrote:
>>> On Thu, Mar 12, 2020 at 01:52:13PM -0300, Walter Lozano wrote:
>>>> Thanks for sharing.
>>>>
>>>> On 12/3/20 02:02, Baruch Siach wrote:
>>>>> Hi Walter,
>>>>>
>>>>> On Wed, Mar 11 2020, Walter Lozano wrote:
>>>>>> In SPL legacy code only one MMC device is created, based on BOOT_CFG
>>>>>> register, which can be either SD or eMMC. In this context
>>>>>> board_boot_order return always MMC1 when configure to boot from
>>>>>> SD/eMMC. After switching to DM both SD and eMMC devices are created
>>>>>> based on the information available on DT, but as board_boot_order
>>>>>> only returns MMC1 is not possible to boot from eMMC.
>>>>>>
>>>>>> This patch customizes board_boot_order taking into account BOOT_CFG
>>>>>> register to point to correct MMC1 / MMC2 device. Additionally, handle
>>>>>> IO mux for the desired boot device.
>>>>>>
>>>>>> Signed-off-by: Walter Lozano <walter.lozano@collabora.com>
>>>>>> ---
>>>>>>     board/solidrun/mx6cuboxi/mx6cuboxi.c | 49 ++++++++++++++++++++++++++++
>>>>>>     1 file changed, 49 insertions(+)
>>>>>>
>>>>>> diff --git a/board/solidrun/mx6cuboxi/mx6cuboxi.c b/board/solidrun/mx6cuboxi/mx6cuboxi.c
>>>>>> index 6a96f9ecdb..9bf3645f72 100644
>>>>>> --- a/board/solidrun/mx6cuboxi/mx6cuboxi.c
>>>>>> +++ b/board/solidrun/mx6cuboxi/mx6cuboxi.c
>>>>>> @@ -435,6 +435,7 @@ int board_early_init_f(void)
>>>>>>     #ifdef CONFIG_CMD_SATA
>>>>>>     	setup_sata();
>>>>>>     #endif
>>>>>> +
>>>>> This hunk should not be part of this commit.
>>>> Thanks for pointing to this silly hunk. I will prepare a V3.
>>>>
>>>>> Looks good to me, otherwise.
>>>>>
>>>>> I can't test at the moment. Have you tested boot from both SD card and eMMC?
>>>> Most of the work was done booting from SD. In order to test booting from
>>>> eMMC, as I have some specific eFUSE configs, I tweaked board_boot_order to
>>>> force booting from eMMC.
>>> But that does not cover SPL boot from eMMC, right?
>> Basically I think this approach should cover the necessary steps. To be more
>> clear about my tweak
>>
>> 1- BootROM loads SPL from SD
>>
>> 2- SPL is tweaked to load U-Boot from eMMC, and in this way test its support
>> on SPL
> This is not exactly the same as SPL boot from eMMC. For example, your scenario
> would work even without 'u-boot,dm-pre-reloc' property in the eMMC device
> node.

I agree, it is not exactly the same and I really appreciate the time you 
spent testing it. However I still don't understand your comments 
regarding 'u-boot,dm-pre-reloc', as without this property there wouldn't 
be a usdhc3 node in the DTB for SPL. Could you please clarify?

>>> Anyway I tested your patches here on real hardware with unfused SOM and
>>> SD/eMMC boot select jumpers.
>> Thank you much for taking the time to test these patches in you board. I
>> really appreciate your help
>>
>>> Tested-by: Baruch Siach <baruch@tkos.co.il>
>> Thanks. I'll add the tag to the v3.
> I think this series ready as is. No need to post v3 just for the test tag.
> Patchwork collects patch tags automatically. See under the 'A/F/R/T' column
> here:
>
>    http://patchwork.ozlabs.org/project/uboot/list/?series=163738

I see, thanks for clarifying the issue related to "Tested-by" tag. Sorry 
for asking but, is it not necessary to send a v3 to avoid the "silly 
hunk" you pointed me?

Regards,

Walter

> baruch
>

  reply	other threads:[~2020-03-16 17:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-11 14:30 [PATCH v2 0/4] mx6cuboxi: enable support for OF_CONTROL and DM in SPL Walter Lozano
2020-03-11 14:30 ` [PATCH v2 1/4] mx6cuboxi: enable MMC and eMMC in DT for SPL Walter Lozano
2020-03-11 14:30 ` [PATCH v2 2/4] mx6cuboxi: customize board_boot_order to access eMMC Walter Lozano
2020-03-12  5:02   ` Baruch Siach
2020-03-12 16:52     ` Walter Lozano
2020-03-16 16:28       ` Baruch Siach
2020-03-16 17:05         ` Walter Lozano
2020-03-16 17:25           ` Baruch Siach
2020-03-16 17:53             ` Walter Lozano [this message]
2020-03-16 18:11               ` Baruch Siach
2020-03-16 18:56                 ` Walter Lozano
2020-04-19  4:24                   ` Walter Lozano
2020-05-18 17:25                     ` Walter Lozano
2020-03-11 14:30 ` [PATCH v2 3/4] mx6cuboxi: enable OF_CONTROL and DM in SPL Walter Lozano
2020-03-11 14:30 ` [PATCH v2 4/4] mx6cuboxi: remove unused code Walter Lozano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8dea6c92-56fb-7804-1e47-231395d05bd1@collabora.com \
    --to=walter.lozano@collabora.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.