Re: U-Boot fails to load from SD when a USB dual HDD device is attached

Bradley Proffit <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
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 <[email protected]> 
>> wrote:
>>
>>> On 2022-Jun-29, at 02:06, Bradley Proffit 
>>> <[email protected]> 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 <[email protected]>:
>>>>
>>>>
>>>> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.