[U-Boot] build error with CONFIG_DM_PCI disabled in menuconfig

Bin Meng bmeng.cn at gmail.com
Tue Oct 11 03:43:43 CEST 2016


On Mon, Oct 10, 2016 at 11:47 PM, Ding, ChiX <chix.ding at intel.com> wrote:
> Hi there
> I disabled CONFIG_DM_PCI in menuconfig because I have problem detecting AHCI SCSI controller on X86 board
> with CONFIG_DM_PCI enabled and the older code in drivers/pci/pci.c works for me in the previous U-boot version.
> Then I got the build error :
> u-boot/arch/x86/cpu/irq.c:29: undefined reference to `dm_pci_read_config8'
> u-boot/arch/x86/cpu/irq.c:104: undefined reference to `dm_pci_get_bdf'
> u-boot/arch/x86/cpu/irq.c:147: undefined reference to `dm_pci_read_config32'
> u-boot/arch/x86/cpu/pci.c:69: undefined reference to `pci_read_config16'
> u-boot/arch/x86/cpu/pci.c:73: undefined reference to `pci_read_config8'
> u-boot/arch/x86/cpu/pci.c:86: undefined reference to `pci_write_config8'
> u-boot/arch/x86/lib/bios_interrupts.c:137: undefined reference to `dm_pci_find_device'
> u-boot/arch/x86/lib/bios_interrupts.c:141: undefined reference to `dm_pci_get_bdf'
>
> It seems that the code refers to the DM_PCI code regardless if  CONFIG_DM_PCI is enabled or not.
> Is it ok to build U-boot with CONFIG_DM_PCI disabled or  did I miss anything?
>

x86 has been fully converted to DM PCI, so legacy PCI driver is not
supported now.

Which board are you using? Can you debug why AHCI does not work with DM PCI?

Regards,
Bin


More information about the U-Boot mailing list