early stage debugging on a real product

Simon Glass sjg at chromium.org
Wed Nov 25 18:03:40 CET 2020


Hi Andy,

On Wed, 25 Nov 2020 at 09:58, Andy Shevchenko <andy.shevchenko at gmail.com> wrote:
>
> On Wed, Nov 25, 2020 at 5:45 PM Simon Glass <sjg at chromium.org> wrote:
> > On Wed, 25 Nov 2020 at 08:35, Andy Shevchenko <andy.shevchenko at gmail.com> wrote:
> > > On Wed, Nov 25, 2020 at 5:23 PM Simon Glass <sjg at chromium.org> wrote:
>
> ...
>
> > > Thanks. But the question is still open why DM PCI et al. is not
> > > getting initialized.
> >
> > PCI should come up so long as you have a PCI driver. See the various
> > other boards - you need a pci-x86 device:
> >
> >         pci {
> >                 compatible = "pci-x86";
> >                 u-boot,dm-pre-reloc;
> >         };
>
> I have so far
>
>         pci {
>                compatible = "pci-x86";
>                #address-cells = <3>;
>                #size-cells = <2>;
>                u-boot,dm-pre-reloc;
>                ranges = <0x02000000 0x0 0x80000000 0x80000000 0 0x40000000
>                          0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000
>                          0x01000000 0x0 0x2000 0x2000 0 0xe000>;
>        };
>
> pci_init() makes the system hang.
>
> WRT video I will try later when I see PCI initialized successfully.

Probably PCI autoconfig is already done. See CONFIG_PCI_PNP. BTW there
is also ll_boot_init() which disables various init that might already
be done.

Regards,
Simon


More information about the U-Boot mailing list