Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jul 2022 03:40:14 -0700
From:      Bradley Proffit <bproffit@amaranth.digital>
To:        Mark Millard <marklmi@yahoo.com>, maciphone2@googlemail.com, warlock@phouka.net, freebsd-arm@freebsd.org
Subject:   Re: U-Boot fails to load from SD when a USB dual HDD device is attached
Message-ID:  <9c50da19-a0ae-7865-7d27-7f40727ec1ee@amaranth.digital>
In-Reply-To: <6494efb2-6eae-b297-a0f2-ebef158b3b23@amaranth.digital>
References:  <12609da5-c560-f336-762f-32fc5fa71d48@amaranth.digital> <CE9BEAB7-4BD0-4F41-8FF5-C8171B414A13@yahoo.com> <CAF90A29-2798-4098-98C7-435F81308C7D@googlemail.com> <17F5F696-A1D2-4952-9163-BF7D185B8A27@yahoo.com> <6494efb2-6eae-b297-a0f2-ebef158b3b23@amaranth.digital>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------ZgxhFWtfVGAMAFdukIcJ3pSt
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Update:

While the bug in question is not a FreeBSD-specific issue, I figured 
that I would share this update for anyone who might benefit.

I have built U-Boot from the ports tree (sysutils/u-boot-rpi4) with the 
following changes:

files/rpi4_fragment:

  * *CONFIG_USB=n*
  * *CONFIG_USB_HOST=n*
  * *CONFIG_USB_STORAGE=n*
  * *CONFIG_USB_XHCI_PCI=n*
  * *CONFIG_USB_XHCI_HCD=n**
    *
  * *CONFIG_CMD_USB=n*

U-Boot gives an error message regarding the unavailable 'usb' command 
since it's been disabled and I didn't remove a reference to it from the 
startup script, but it booted up anyway.

This workaround prevents the bug (if you don't use a USB boot device) 
while I wait for some feedback from the U-Boot project maintainers.

On 6/29/22 22:17, Bradley Proffit wrote:
> Thanks for the pointers, everyone.
>
> I confirmed that this particular USB device, being self-powered, is 
> not pulling a current on the pi's USB port. I think this rules out a 
> voltage problem.
>
> The U-Boot interactive shell still shows the MMC device, but refuses 
> to boot from it under these conditions. The one-liner workaround you 
> mentioned is unfortunately not resolving this problem.
>
> Until I can find time to try fixing the bug, I am building U-Boot 
> without support for USB storage devices and network booting, since I 
> don't need those features at this time. I'll let you know if that works.
>
>
> Bradley
>
> On 6/29/22 9:29 AM, Mark Millard wrote:
>> On 2022-Jun-29, at 07:35, Klaus Küchemann <maciphone2@googlemail.com> 
>> wrote:
>>
>>> On 2022-Jun-29, at 02:06, Bradley Proffit 
>>> <bproffit@amaranth.digital> wrote:
>>>
>>>> I'm running FreeBSD 13.1 on the Raspberry Pi 4B, with a new dual 
>>>> SATA-to-USB hard drive docking station, and I've noticed a peculiar 
>>>> situation: U-Boot fails to load FreeBSD from the SD card when the 
>>>> docking station is plugged in and has two hard drives in it 
>>>> (presenting two USB storage devices to U-Boot), but still succeeds 
>>>> when:  …………...
>>>
>>>
>>>> Am 29.06.2022 um 16:09 schrieb Mark Millard <marklmi@yahoo.com>:
>>>>
>>>>
>>>> See: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256441
>>>>
>>>> The problem is not limited or specific to FreeBSD's use of
>>>> U-Boot. For example, demonstrated with Fedora 33 and some
>>>> openbsd version as well. The problem is not new.
>>>>
>>>> . . .
>>>
>>> didn`t we workaround a similar issue ? :
>>>
>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253983#c59
>> I forgot to look up and reference:
>>
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253983
>>
>> as well. I should have listed both, for sure.
>>
>> ===
>> Mark Millard
>> marklmi at yahoo.com
>>
Bradley Proffit
amaranth.digital

--------------ZgxhFWtfVGAMAFdukIcJ3pSt
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Update:</p>
    <p>While the bug in question is not a FreeBSD-specific issue, I
      figured that I would share this update for anyone who might
      benefit.<br>
    </p>
    <p>I have built U-Boot from the ports tree (sysutils/u-boot-rpi4)
      with the following changes:</p>
    <p>files/rpi4_fragment:</p>
    <ul>
      <li><font size="2"><b>CONFIG_USB=n</b></font></li>
      <li><font size="2"><b>CONFIG_USB_HOST=n</b></font></li>
      <li><font size="2"><b>CONFIG_USB_STORAGE=n</b></font></li>
      <li><font size="2"><b>CONFIG_USB_XHCI_PCI=n</b></font></li>
      <li><font size="2"><b>CONFIG_USB_XHCI_HCD=n</b><b><br>
          </b></font></li>
      <li><font size="2"><b>CONFIG_CMD_USB=n</b></font></li>
    </ul>
    <p>U-Boot gives an error message regarding the unavailable 'usb'
      command since it's been disabled and I didn't remove a reference
      to it from the startup script, but it booted up anyway.</p>
    <p>This workaround prevents the bug (if you don't use a USB boot
      device) while I wait for some feedback from the U-Boot project
      maintainers.</p>
    <div class="moz-cite-prefix">On 6/29/22 22:17, Bradley Proffit
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:6494efb2-6eae-b297-a0f2-ebef158b3b23@amaranth.digital">Thanks
      for the pointers, everyone.
      <br>
      <br>
      I confirmed that this particular USB device, being self-powered,
      is not pulling a current on the pi's USB port. I think this rules
      out a voltage problem.
      <br>
      <br>
      The U-Boot interactive shell still shows the MMC device, but
      refuses to boot from it under these conditions. The one-liner
      workaround you mentioned is unfortunately not resolving this
      problem.
      <br>
      <br>
      Until I can find time to try fixing the bug, I am building U-Boot
      without support for USB storage devices and network booting, since
      I don't need those features at this time. I'll let you know if
      that works.
      <br>
      <br>
      <br>
      Bradley
      <br>
      <br>
      On 6/29/22 9:29 AM, Mark Millard wrote:
      <br>
      <blockquote type="cite">On 2022-Jun-29, at 07:35, Klaus Küchemann
        <a class="moz-txt-link-rfc2396E" href="mailto:maciphone2@googlemail.com">&lt;maciphone2@googlemail.com&gt;</a> wrote:
        <br>
        <br>
        <blockquote type="cite">On 2022-Jun-29, at 02:06, Bradley
          Proffit <a class="moz-txt-link-rfc2396E" href="mailto:bproffit@amaranth.digital">&lt;bproffit@amaranth.digital&gt;</a> wrote:
          <br>
          <br>
          <blockquote type="cite">I'm running FreeBSD 13.1 on the
            Raspberry Pi 4B, with a new dual SATA-to-USB hard drive
            docking station, and I've noticed a peculiar situation:
            U-Boot fails to load FreeBSD from the SD card when the
            docking station is plugged in and has two hard drives in it
            (presenting two USB storage devices to U-Boot), but still
            succeeds when:  …………...
            <br>
          </blockquote>
          <br>
          <br>
          <blockquote type="cite">Am 29.06.2022 um 16:09 schrieb Mark
            Millard <a class="moz-txt-link-rfc2396E" href="mailto:marklmi@yahoo.com">&lt;marklmi@yahoo.com&gt;</a>:
            <br>
            <br>
            <br>
            See:
            <a class="moz-txt-link-freetext" href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256441">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256441</a>;
            <br>
            <br>
            The problem is not limited or specific to FreeBSD's use of
            <br>
            U-Boot. For example, demonstrated with Fedora 33 and some
            <br>
            openbsd version as well. The problem is not new.
            <br>
            <br>
            . . .
            <br>
          </blockquote>
          <br>
          didn`t we workaround a similar issue ? :
          <br>
          <br>
          <a class="moz-txt-link-freetext" href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253983#c59">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253983#c59</a>;
          <br>
        </blockquote>
        I forgot to look up and reference:
        <br>
        <br>
        <a class="moz-txt-link-freetext" href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253983">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253983</a>;
        <br>
        <br>
        as well. I should have listed both, for sure.
        <br>
        <br>
        ===
        <br>
        Mark Millard
        <br>
        marklmi at yahoo.com
        <br>
        <br>
      </blockquote>
    </blockquote>
    <pre class="moz-signature" cols="72">Bradley Proffit
amaranth.digital
</pre>
  </body>
</html>

--------------ZgxhFWtfVGAMAFdukIcJ3pSt--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9c50da19-a0ae-7865-7d27-7f40727ec1ee>