IMX6Q -PCIE+i210 ethernet controller in u-boot

cancel
Showing results for 
Search instead for 
Did you mean: 

IMX6Q -PCIE+i210 ethernet controller in u-boot

731 Views
agnel_terry
Contributor I

HI ,

I have accustom hardware uses IMX6q which has a intel i210 ethernet controller connected to PCIE of IMX6Q , I had configured the PCIE in Kernel and enabled the e1000 driver , I am able to enumerate the controller ping works fine, etc.

whereas when I try to configure the controller and PCIE in UBoot, I see PCI driver listing the devices but the ethernet controller is not seen in the "NET:" looks like the e1000 driver is not getting linked to built-in.o

Can someone help me with the correct configuration of the uboot for PCIE and e1000. (I am not using driver model, I am configuring my 2017 in the legacy way.

Below is my Uboot log

U-Boot 2017.03 (May 14 2019 - 14:22:34 -0700)

CPU:   Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)
CPU:   Automotive temperature grade (-40C to 125C) at 55C
Reset cause: POR
Board: iMX6q Sbare-SD
I2C:   ready
DRAM:  2 GiB
spi setup
 i2C INIT :
PMIC:  PFUZE100 ID=0x10
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
*** Warning - bad CRC, using default environment

PCI:
  00:01.0     - 16c3:abcd - Bridge device
   01:00.0    - 8086:1533 - Network controller
No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc0 is current device
Net:   FEC
Normal Boot
Hit any key to stop autoboot:  0
=> pci
Scanning PCI devices on bus 0
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
00.01.00   0x16c3     0xabcd     Bridge device           0x04
Cannot read bus configuration: -1
=> pci 1
Scanning PCI devices on bus 1
BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
01.00.00   0x8086     0x1533     Network controller      0x00
Cannot read bus configuration: -1

=> pci header 1
  vendor ID =                   0x16c3
  device ID =                   0xabcd
  command register ID =         0x0007
  status register =             0x0010
  revision ID =                 0x01
  class code =                  0x06 (Bridge device)
  sub class code =              0x04
  programming interface =       0x00
  cache line =                  0x08
  latency time =                0x00
  header type =                 0x01
  BIST =                        0x00
  base address 0 =              0x01000000
  base address 1 =              0x00000000
  primary bus number =          0x00
  secondary bus number =        0x01
  subordinate bus number =      0x01
  secondary latency timer =     0x00
  IO base =                     0x00
  IO limit =                    0x00
  secondary status =            0x0000
  memory base =                 0x0120
  memory limit =                0x0120
  prefetch memory base =        0x1000
  prefetch memory limit =       0x0000
  prefetch memory base upper =  0x00000000
  prefetch memory limit upper = 0x00000000
  IO base upper 16 bits =       0x0000
  IO limit upper 16 bits =      0x0000
  expansion ROM base address =  0x01100000
  interrupt line =              0xff
  interrupt pin =               0x01
  bridge control =              0x0000

Thanks and Regards

Terry

Labels (1)
0 Kudos
5 Replies

329 Views
mike
Contributor I

HI Terry

for the i210 in defconfig

CONFIG_NET_VENDOR_INTEL=y

CONFIG_IGB=y
CONFIG_IGB_HWMON=y

lspci

   04:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)

I am also fighting the iMX6q with i210 and XR17V358 - The PCIe works on some PCBs work and not on other PCBs

Regards

Mike

0 Kudos

329 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Terry

one can check ifdef CONFIG_PCI in uboot/include/configs/mx6sabresd.h

and test several cards

mx6sabresd.h\configs\include - uboot-imx - i.MX U-Boot 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

329 Views
agnel_terry
Contributor I

Hi Igor,

Thank you for the response, the problem is not on the PCI/PCIE layer, as mentioned I am able to see the device getting listed in the PCI:

PCI:
  00:01.0     - 16c3:abcd - Bridge device
   01:00.0    - 8086:1533 - Network controller

whereas its not seen in the NET :, The net shows only the IMX6 FEC, I had added "CONFIG_E1000=y" for the ethernet controller driver, still I don't see the device getting listed under,NET.

Thanks

Terry

0 Kudos

329 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Terry

as this is not specific imx issue this may be posted on uboot mail list

U-Boot Info Page 


Best regards
igor

0 Kudos

329 Views
agnel_terry
Contributor I

Thank you Igor, will post it in the u-boot info page

0 Kudos