Re: u-boot debug, was: Re: U-boot on RPI3, sees disk but won't boot it

Klaus Küchemann <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
> Am 27.09.2022 um 19:58 schrieb Klaus Küchemann <[email protected]>:
> 
> 
>> Am 27.09.2022 um 18:03 schrieb bob prohaska <[email protected]>:
>> 
>> I did look at common/usb.c but it's far from obvious how one
>> can turn on the logging feature so as to report more errors
>> to the console.
> 
> you can add the following to common/usb.c (e.g. insert in line 44):
> 
> #define DEBUG
> 
> --
> 
> that should then print out all debug functions inside the usb.c file to the console 
> after recompilation of u-boot.
> 
> Regards
> 
> Klaus

I saw there is  /*#include <log.h>*/ available in usb.c 
so you could also try to add :

#define LOG_DEBUG

to the common/usb.c file which should also then enable the debug functions
which then would be output in logging style.

You will need the debug output to to narrow down the issue.

just a guess : 
electrical problem(of the Pi itself)  which could perhaps be fixed by  manipulating the scan delay time .

Regards

Klaus
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.