TWR-LS1021A pci not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TWR-LS1021A pci not working

Jump to solution
3,697 Views
kele6ra
Contributor III

Hello, I have problems with my pci ports in twr-ls1021a. I can't see any pci port in the u-boot and there are no devices after boot (I tried to find it with scanpci utility).

First pci port is working normally,

I use sd boot and OpenWRT 21.02 rc3 version.

Switches config:

SW2: 00101111

SW3: 01100001

 

Spoiler

U-Boot 2019.10 (Jun 13 2021 - 22:02:19 +0000)

CPU: Freescale LayerScape LS1021E, Version: 2.0, (0x87081120)
Clock Configuration:
CPU0(ARMV7):1200 MHz,
Bus:300 MHz, DDR:800 MHz (1600 MT/s data rate),
Reset Configuration Word (RCW):
00000000: 0608000c 00000000 00000000 00000000
00000010: 30000000 00007900 60040a00 21046000
00000020: 00000000 00000000 00000000 20000000
00000030: 00080000 881b7340 00000000 00000000
Model: LS1021A TWR Board
Board: LS1021ATWR
CPLD: V3.3
PCBA: V2.0
VBank: 0
DRAM: 1 GiB
Using SERDES1 Protocol: 48 (0x30)
Flash: 128 MiB
MMC: FSL_SDHC: 0
Loading Environment from MMC... OK
EEPROM: NXID v1
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
Net: eth0: ethernet@2d10000, eth1: ethernet@2d50000, eth2: ethernet@2d90000
Hit any key to stop autoboot: 0
starting openwrt ...
4885068 bytes read in 229 ms (20.3 MiB/s)
## Loading kernel from FIT Image at 81000000 ...
Using 'config@1' configuration
Trying 'kernel@1' kernel subimage
Description: ARM OpenWrt Linux-5.4.124
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x810000e4
Data Size: 4861732 Bytes = 4.6 MiB
Architecture: ARM
OS: Linux
Load Address: 0x80008000
Entry Point: 0x80008000
Hash algo: crc32
Hash value: c3040803
Hash algo: sha1
Hash value: 6890016c8c60a71cad93dad3fb87142dc8bfcad5
Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 81000000 ...
Using 'config@1' configuration
Trying 'fdt@1' fdt subimage
Description: ARM OpenWrt fsl_ls1021a-twr-sdboot device tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x814a3148
Data Size: 21457 Bytes = 21 KiB
Architecture: ARM
Hash algo: crc32
Hash value: 4c62cb5c
Hash algo: sha1
Hash value: ee9fd06958934ac44647b170157bc432c3aa8aa4
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x814a3148
Uncompressing Kernel Image
Loading Device Tree to 8fff7000, end 8ffff3d0 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Linux version 5.4.124 (andrei@HOMEPC) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16172-2aba3e9784)) #0 SMP Sun Jun 13 22:02:19 2021
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: LS1021A TWR Board
[ 0.000000] earlycon: uart8250 at MMIO 0x00000000021c0500 (options '')
[ 0.000000] printk: bootconsole [uart8250] enabled
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 64 MiB at 0x00000000ac000000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.0
[ 0.000000] percpu: Embedded 15 pages/cpu s30924 r8192 d22324 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260416
[ 0.000000] Kernel command line: root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 cma=64M@0x0-0xb0000000
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0xa75ec000-0xab5ec000] (64MB)
[ 0.000000] Memory: 889868K/1048576K available (8192K kernel code, 253K rwdata, 1884K rodata, 2048K init, 252K bss, 93172K reserved, 65536K cma-reserved, 262144K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] random: get_random_bytes called from start_kernel+0x2fc/0x4ac with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[ 0.000005] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[ 0.008017] Switching to timer-based delay loop, resolution 80ns
[ 0.014568] Console: colour dummy device 80x30
[ 0.019044] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)
[ 0.029418] pid_max: default: 32768 minimum: 301
[ 0.034172] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.041509] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.049932] CPU: Testing write buffer coherency: ok
[ 0.055149] CPU0: update cpu_capacity 1024
[ 0.059248] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[ 0.065448] Setting up static identity map for 0x80200000 - 0x80200060
[ 0.072066] rcu: Hierarchical SRCU implementation.
[ 0.077495] smp: Bringing up secondary CPUs ...
[ 0.082586] CPU1: update cpu_capacity 1024
[ 0.082592] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[ 0.082693] smp: Brought up 1 node, 2 CPUs
[ 0.096658] SMP: Total of 2 processors activated (50.00 BogoMIPS).
[ 0.102850] CPU: All CPU(s) started in HYP mode.
[ 0.107466] CPU: Virtualization extensions available.
[ 0.116321] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.124187] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.134053] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.142687] pinctrl core: initialized pinctrl subsystem
[ 0.148564] NET: Registered protocol family 16
[ 0.154767] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.162589] cpuidle: using governor menu
[ 0.166619] No ATAGs?
[ 0.168632] Machine: LS1021A TWR Board
[ 0.174677] SoC family: QorIQ LS1021A
[ 0.178336] SoC ID: svr:0x87081120, Revision: 2.0
[ 0.198820] SCSI subsystem initialized
[ 0.202734] usbcore: registered new interface driver usbfs
[ 0.208288] usbcore: registered new interface driver hub
[ 0.213632] usbcore: registered new device driver usb
[ 0.218996] imx-i2c 2180000.i2c: can't get pinctrl, bus recovery not supported
[ 0.226482] i2c i2c-0: IMX I2C adapter registered
[ 0.231233] i2c i2c-0: using dma0chan16 (tx) and dma0chan17 (rx) for DMA transfers
[ 0.238958] imx-i2c 2190000.i2c: can't get pinctrl, bus recovery not supported
[ 0.246359] i2c i2c-1: IMX I2C adapter registered
[ 0.251082] i2c i2c-1: using dma0chan18 (tx) and dma0chan19 (rx) for DMA transfers
[ 0.258782] pps_core: LinuxPPS API ver. 1 registered
[ 0.263748] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.272921] PTP clock support registered
[ 0.277194] fsl-ifc 1530000.ifc: Freescale Integrated Flash Controller
[ 0.283783] fsl-ifc 1530000.ifc: IFC version 1.4, 8 banks
[ 0.289419] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[ 0.299966] clocksource: Switched to clocksource arch_sys_counter
[ 0.310091] thermal_sys: Registered thermal governor 'step_wise'
[ 0.310416] NET: Registered protocol family 2
[ 0.321009] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.329067] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.337469] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.345286] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.352538] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.359015] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.365686] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.372936] NET: Registered protocol family 1
[ 0.377316] PCI: CLS 0 bytes, default 64
[ 0.382285] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[ 0.395289] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.401311] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.405838] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.415988] fuse: init (API version 7.31)
[ 0.420939] bounce: pool size: 64 pages
[ 0.426020] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 0.433734] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.441153] printk: console [ttyS0] disabled
[ 0.445479] 21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 34, base_baud = 9375000) is a 16550A
[ 0.454234] printk: console [ttyS0] enabled
[ 0.454234] printk: console [ttyS0] enabled
[ 0.462578] printk: bootconsole [uart8250] disabled
[ 0.462578] printk: bootconsole [uart8250] disabled
[ 0.472628] 21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 34, base_baud = 9375000) is a 16550A
[ 0.481702] STMicroelectronics ASC driver initialized
[ 0.486981] 2950000.serial: ttyLP0 at MMIO 0x2950000 (irq = 39, base_baud = 6250000) is a FSL_LPUART
[ 0.496218] fsl-lpuart 2950000.serial: DMA tx channel request failed, operating without tx DMA
[ 0.504795] fsl-lpuart 2950000.serial: DMA rx channel request failed, operating without rx DMA
[ 0.520587] brd: module loaded
[ 0.527016] loop: module loaded
[ 0.531887] physmap-flash 60000000.nor: physmap platform flash device: [mem 0x60000000-0x67ffffff]
[ 0.540918] 60000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x00227e
[ 0.550887] Amd/Fujitsu Extended Query Table at 0x0040
[ 0.556009] Amd/Fujitsu Extended Query version 1.3.
[ 0.561040] number of CFI chips: 1
[ 0.566713] libphy: Fixed MDIO Bus: probed
[ 0.572387] libphy: Freescale PowerQUICC MII Bus: probed
[ 0.579725] libphy: Freescale PowerQUICC MII Bus: probed
[ 0.586041] fsl-gianfar soc:ethernet@2d10000: enabled errata workarounds, flags: 0x4
[ 0.604620] fsl-gianfar soc:ethernet@2d10000 eth0: mac: 00:04:9f:06:9b:f5
[ 0.611401] fsl-gianfar soc:ethernet@2d10000 eth0: Running with NAPI enabled
[ 0.618411] fsl-gianfar soc:ethernet@2d10000 eth0: RX BD ring size for Q[0]: 256
[ 0.625776] fsl-gianfar soc:ethernet@2d10000 eth0: RX BD ring size for Q[1]: 256
[ 0.633140] fsl-gianfar soc:ethernet@2d10000 eth0: TX BD ring size for Q[0]: 256
[ 0.640503] fsl-gianfar soc:ethernet@2d10000 eth0: TX BD ring size for Q[1]: 256
[ 0.648218] fsl-gianfar soc:ethernet@2d50000: enabled errata workarounds, flags: 0x4
[ 0.666699] fsl-gianfar soc:ethernet@2d50000 eth1: mac: 00:04:9f:06:9b:f6
[ 0.673466] fsl-gianfar soc:ethernet@2d50000 eth1: Running with NAPI enabled
[ 0.680485] fsl-gianfar soc:ethernet@2d50000 eth1: RX BD ring size for Q[0]: 256
[ 0.687839] fsl-gianfar soc:ethernet@2d50000 eth1: RX BD ring size for Q[1]: 256
[ 0.695203] fsl-gianfar soc:ethernet@2d50000 eth1: TX BD ring size for Q[0]: 256
[ 0.702567] fsl-gianfar soc:ethernet@2d50000 eth1: TX BD ring size for Q[1]: 256
[ 0.710275] fsl-gianfar soc:ethernet@2d90000: enabled errata workarounds, flags: 0x4
[ 0.728722] fsl-gianfar soc:ethernet@2d90000 eth2: mac: 00:04:9f:06:9b:f7
[ 0.735487] fsl-gianfar soc:ethernet@2d90000 eth2: Running with NAPI enabled
[ 0.742508] fsl-gianfar soc:ethernet@2d90000 eth2: RX BD ring size for Q[0]: 256
[ 0.749862] fsl-gianfar soc:ethernet@2d90000 eth2: RX BD ring size for Q[1]: 256
[ 0.757226] fsl-gianfar soc:ethernet@2d90000 eth2: TX BD ring size for Q[0]: 256
[ 0.764588] fsl-gianfar soc:ethernet@2d90000 eth2: TX BD ring size for Q[1]: 256
[ 0.772082] usbcore: registered new interface driver cdc_acm
[ 0.777708] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 0.785702] usbcore: registered new interface driver cdc_wdm
[ 0.791406] usbcore: registered new interface driver usbserial_generic
[ 0.797912] usbserial: USB Serial support registered for generic
[ 0.804630] ftm-alarm 29d0000.timer0: registered as rtc1
[ 0.810040] i2c /dev entries driver
[ 0.814224] pps pps0: new PPS source ptp0
[ 0.819236] imx2-wdt 2ad0000.watchdog: timeout 60 sec (nowayout=0)
[ 0.826041] qoriq_cpufreq: Freescale QorIQ CPU frequency scaling driver
[ 0.832840] sdhci: Secure Digital Host Controller Interface driver
[ 0.838983] sdhci: Copyright(c) Pierre Ossman
[ 0.843327] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.872527] mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using ADMA 64-bit
[ 0.882110] NET: Registered protocol family 10
[ 0.888142] Segment Routing with IPv6
[ 0.891949] NET: Registered protocol family 17
[ 0.896424] 8021q: 802.1Q VLAN Support v1.8
[ 0.900828] ThumbEE CPU extension supported.
[ 0.905084] Registering SWP/SWPB emulation handler
[ 0.914401] hctosys: unable to open rtc device (rtc0)
[ 0.919982] Waiting for root device /dev/mmcblk0p2...
[ 0.952874] mmc0: Problem switching card into high-speed mode!
[ 0.958792] mmc0: new SDHC card at address 0001
[ 0.964472] mmcblk0: mmc0:0001 SD16G 14.5 GiB
[ 0.971141] mmcblk0: p1 p2
[ 0.985392] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[ 0.995298] Freeing unused kernel memory: 2048K
[ 1.030318] Run /sbin/init as init process
[ 1.294970] init: Console is alive
[ 1.298507] init: - watchdog -
[ 1.690894] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 1.737584] dwc3 3100000.usb3: Failed to get clk 'ref': -2
[ 1.747912] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 1.753468] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[ 1.761424] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f66c hci version 0x100 quirks 0x0000000002010810
[ 1.770840] xhci-hcd xhci-hcd.1.auto: irq 46, io mem 0x03100000
[ 1.777417] hub 1-0:1.0: USB hub found
[ 1.786002] hub 1-0:1.0: 1 port detected
[ 1.790223] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 1.795686] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[ 1.803340] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 1.810357] hub 2-0:1.0: USB hub found
[ 1.814111] hub 2-0:1.0: 1 port detected
[ 1.819761] usbcore: registered new interface driver usb-storage
[ 1.827246] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 1.837303] init: - preinit -
[ 2.120646] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 2.228740] random: jshn: uninitialized urandom read (4 bytes read)
[ 2.256795] random: jshn: uninitialized urandom read (4 bytes read)
[ 2.270510] random: jshn: uninitialized urandom read (4 bytes read)
[ 2.354168] hub 1-1:1.0: USB hub found
[ 2.359353] hub 1-1:1.0: 4 ports detected
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 2.460078] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
[ 2.546172] hub 2-1:1.0: USB hub found
[ 2.550070] hub 2-1:1.0: 4 ports detected
[ 2.730033] usb 1-1.4: new high-speed USB device number 3 using xhci-hcd
[ 5.481527] mount_root: rootdisk overlay filesystem has not been formatted yet
[ 5.850857] random: fast init done
[ 5.914446] urandom_read: 6 callbacks suppressed
[ 5.914456] random: mkfs.ext4: uninitialized urandom read (16 bytes read)
[ 6.568119] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[ 6.576387] mount_root: overlay filesystem has not been fully initialized yet
[ 6.584311] mount_root: switching to ext4 overlay
[ 6.627266] EXT4-fs (mmcblk0p1): mounted filesystem without journal. Opts: (null)
[ 6.654989] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 6.733510] procd: - early -
[ 6.736431] procd: - watchdog -
Failed to connect to ubus
[ 7.302813] procd: - watchdog -
[ 7.307120] procd: - ubus -
[ 7.371419] procd: - init -
Please press Enter to activate this console.
[ 7.734138] urngd: v1.0.2 started.
[ 7.824450] random: crng init done
[ 8.056920] kmodloader: loading kernel modules from /etc/modules.d/*
[ 8.117944] Loading modules backported from Linux version v5.10.42-0-g65859eca4dff
[ 8.125530] Backport generated by backports.git v5.10.42-1-0-gbee5c545
[ 8.144148] xt_time: kernel timezone is -0000
[ 8.149380] usbcore: registered new interface driver cdc_ncm
[ 8.210735] usbcore: registered new interface driver option
[ 8.216385] usbserial: USB Serial support registered for GSM modem (1-port)
[ 8.223601] option 1-1.4:1.0: GSM modem (1-port) converter detected
[ 8.230091] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[ 8.237216] option 1-1.4:1.1: GSM modem (1-port) converter detected
[ 8.243789] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
[ 8.250937] option 1-1.4:1.2: GSM modem (1-port) converter detected
[ 8.257471] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
[ 8.264685] option 1-1.4:1.3: GSM modem (1-port) converter detected
[ 8.271269] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB3
[ 8.280021] PPP generic driver version 2.4.2
[ 8.285188] NET: Registered protocol family 24
[ 8.290512] usbcore: registered new interface driver qcserial
[ 8.296369] usbserial: USB Serial support registered for Qualcomm USB modem
[ 8.339124] qmi_wwan 1-1.4:1.4: cdc-wdm0: USB WDM device
[ 8.347288] qmi_wwan 1-1.4:1.4 wwan0: register 'qmi_wwan' at usb-xhci-hcd.1.auto-1.4, WWAN/QMI device, 0e:88:e4:24:99:39
[ 8.358390] usbcore: registered new interface driver qmi_wwan
[ 8.369014] usbcore: registered new interface driver cdc_mbim
[ 8.377434] kmodloader: done loading kernel modules from /etc/modules.d/*

 

 

Labels (1)
0 Kudos
Reply
1 Solution
3,574 Views
kele6ra
Contributor III

I found one interesting thing, first pci is available to kernel only if I ran the "pci enum" in the bootloader. I add this command to bootcmd and now I can use pci1 port.

I found that both pcie ports are disabled in the dts files. When I tried to enable ports, I got the error from the second port during the kernel booting.

Elsewhere I can use both modules, because one of them is using on;y usb port from mpcie connector.

View solution in original post

0 Kudos
Reply
11 Replies
3,620 Views
kele6ra
Contributor III

Duplicated message. Sorry, sometimes my browser don't show that message was sent.

0 Kudos
Reply
3,639 Views
kele6ra
Contributor III

As I understand, problem with RCW for SD boot, it has config:

* A PCIe1*1
* B SATA1
* C SGMII1
* D SGMII2

But I don't need SGMII1, I need PCIe2*1 config. With NOR boot I just changed file from SSR_PNS_30/rcw_1200.bin to RSR_PPS_70/rcw_1200.bin file. Problem is that when OpenWRT create image it use RCW file for NOR boot, but sdhead for sd boot. And I can't find how to change sdhead parameters.

0 Kudos
Reply
3,611 Views
yipingwang
NXP TechSupport
NXP TechSupport

Go to u-boot source code folder build_dir/target-aarch64_generic_musl/uboot-layerscape-ls1088ardb/uboot-layerscape-LSDK-20.04/, please modify board/freescale/ls1021atwr/ls102xa_rcw_sd_ifc.cfg or board/freescale/ls1021atwr/ls102xa_rcw_sd_qspi.cfg.

0 Kudos
Reply
3,575 Views
kele6ra
Contributor III

I found one interesting thing, first pci is available to kernel only if I ran the "pci enum" in the bootloader. I add this command to bootcmd and now I can use pci1 port.

I found that both pcie ports are disabled in the dts files. When I tried to enable ports, I got the error from the second port during the kernel booting.

Elsewhere I can use both modules, because one of them is using on;y usb port from mpcie connector.

0 Kudos
Reply
3,661 Views
kele6ra
Contributor III

I ran "pci enum" under u-boot prompt in the previous message. 

0 Kudos
Reply
3,690 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please check whether the following is defined in configs/ls1021atwr_sdcard_*_defconfig in u-boot source code.

CONFIG_PCI=y
CONFIG_DM_PCI=y
CONFIG_DM_PCI_COMPAT=y
CONFIG_PCIE_LAYERSCAPE=y

Please run the following command under u-boot prompt to check whether you could get similar result.

=> pci enum
PCIe1: pcie@3400000 Root Complex: no link
PCIe2: pcie@3500000 disabled
=> pci scan
Scanning PCI devices on bus 0
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
00.00.00 0x1957 0x0e0a Bridge device 0x04

0 Kudos
Reply
3,683 Views
kele6ra
Contributor III

Please check whether the following is defined in configs/ls1021atwr_sdcard_*_defconfig in u-boot source code.

All PCI parameters were enabled.

=> pci enum
PCIe0: pcie@3400000 Root Complex: x1 gen1
PCIe1: pcie@3500000 disabled
=> pci scan
Scanning PCI devices on bus 0
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
00.00.00 0x1957 0x0e0a Bridge device 0x04

 

0 Kudos
Reply
3,679 Views
yipingwang
NXP TechSupport
NXP TechSupport
Before boot up Linux Kernel, please run "pci enum" under u-boot prompt.
0 Kudos
Reply
3,657 Views
kele6ra
Contributor III

Duplicated message. Deleted.

0 Kudos
Reply
3,653 Views
kele6ra
Contributor III

I ran "pci enum" from u-boot in the previous answer.

Spoiler

U-Boot 2019.10 (Jun 13 2021 - 22:02:19 +0000)

CPU: Freescale LayerScape LS1021E, Version: 2.0, (0x87081120)
Clock Configuration:
CPU0(ARMV7):1200 MHz,
Bus:300 MHz, DDR:800 MHz (1600 MT/s data rate),
Reset Configuration Word (RCW):
00000000: 0608000c 00000000 00000000 00000000
00000010: 30000000 00007900 60040a00 21046000
00000020: 00000000 00000000 00000000 20000000
00000030: 00080000 881b7340 00000000 00000000
Model: LS1021A TWR Board
Board: LS1021ATWR
CPLD: V3.3
PCBA: V2.0
VBank: 0
DRAM: 1 GiB
Using SERDES1 Protocol: 48 (0x30)
Flash: 128 MiB
MMC: FSL_SDHC: 0
Loading Environment from MMC... OK
EEPROM: NXID v1
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
Net: eth0: ethernet@2d10000, eth1: ethernet@2d50000, eth2: ethernet@2d90000
Hit any key to stop autoboot: 0
=> pci enum
PCIe0: pcie@3400000 Root Complex: x1 gen1
PCIe1: pcie@3500000 disabled

0 Kudos
Reply
3,653 Views
kele6ra
Contributor III

Duplicated message. Deleted.

0 Kudos
Reply