Hi, please help to see how to resolve this issue.
My board's uboot log is
SoC: LS1046AE Rev1.0 (0x87070010)
Clock Configuration:
CPU0(A72):1600 MHz CPU1(A72):1600 MHz CPU2(A72):1600 MHz
CPU3(A72):1600 MHz
Bus: 600 MHz DDR: 2100 MT/s FMAN: 600 MHz
Reset Configuration Word (RCW):
00000000: 0c150010 09000000 00000000 00000000
00000010: 11335577 40000006 40044000 a1000000
00000020: 00000000 00000000 00000000 00038cf8
00000030: 20124000 00003101 00000096 00000003
kernel version is 4.14.47
when I use fmc tool, run this command, it has the following errors.
fmc -l dbg3 -c /etc/fmc/config/private/ls1046ardb/RR_FFSSPPPH_1133_5559/config.xml -p /etc/fmc/config/private/ls1046ardb/RR_FFSSPPPH_1133_5559/policy_ipv4.xml -a
.apply_order_count = 38,
FMC_APPLY_ORDER( 0, FMCEngineStart , 0 ), /* fm0 */
FMC_APPLY_ORDER( 1, FMCPortStart , 0 ), /* fm0/port/MAC/3 */
FMC_APPLY_ORDER( 2, FMCScheme , 3 ), /* fm0/port/MAC/3/dist/udpeth3 */
FMC_APPLY_ORDER( 3, FMCScheme , 2 ), /* fm0/port/MAC/3/dist/tcpeth3 */
FMC_APPLY_ORDER( 4, FMCScheme , 1 ), /* fm0/port/MAC/3/dist/ipv4eth3 */
FMC_APPLY_ORDER( 5, FMCScheme , 0 ), /* fm0/port/MAC/3/dist/garbage_dist_3 */
FMC_APPLY_ORDER( 6, FMCPortEnd , 0 ), /* fm0/port/MAC/3 */
FMC_APPLY_ORDER( 7, FMCPortStart , 1 ), /* fm0/port/MAC/4 */
FMC_APPLY_ORDER( 8, FMCScheme , 7 ), /* fm0/port/MAC/4/dist/udpeth4 */
FMC_APPLY_ORDER( 9, FMCScheme , 6 ), /* fm0/port/MAC/4/dist/tcpeth4 */
FMC_APPLY_ORDER( 10, FMCScheme , 5 ), /* fm0/port/MAC/4/dist/ipv4eth4 */
FMC_APPLY_ORDER( 11, FMCScheme , 4 ), /* fm0/port/MAC/4/dist/garbage_dist_4 */
FMC_APPLY_ORDER( 12, FMCPortEnd , 1 ), /* fm0/port/MAC/4 */
FMC_APPLY_ORDER( 13, FMCPortStart , 2 ), /* fm0/port/MAC/5 */
FMC_APPLY_ORDER( 14, FMCScheme , 11 ), /* fm0/port/MAC/5/dist/udpeth5 */
FMC_APPLY_ORDER( 15, FMCScheme , 10 ), /* fm0/port/MAC/5/dist/tcpeth5 */
FMC_APPLY_ORDER( 16, FMCScheme , 9 ), /* fm0/port/MAC/5/dist/ipv4eth5 */
FMC_APPLY_ORDER( 17, FMCScheme , 8 ), /* fm0/port/MAC/5/dist/garbage_dist_5 */
FMC_APPLY_ORDER( 18, FMCPortEnd , 2 ), /* fm0/port/MAC/5 */
FMC_APPLY_ORDER( 19, FMCPortStart , 3 ), /* fm0/port/MAC/6 */
FMC_APPLY_ORDER( 20, FMCScheme , 15 ), /* fm0/port/MAC/6/dist/udpeth6 */
FMC_APPLY_ORDER( 21, FMCScheme , 14 ), /* fm0/port/MAC/6/dist/tcpeth6 */
FMC_APPLY_ORDER( 22, FMCScheme , 13 ), /* fm0/port/MAC/6/dist/ipv4eth6 */
FMC_APPLY_ORDER( 23, FMCScheme , 12 ), /* fm0/port/MAC/6/dist/garbage_dist_6 */
FMC_APPLY_ORDER( 24, FMCPortEnd , 3 ), /* fm0/port/MAC/6 */
FMC_APPLY_ORDER( 25, FMCPortStart , 4 ), /* fm0/port/MAC/9 */
FMC_APPLY_ORDER( 26, FMCScheme , 19 ), /* fm0/port/MAC/9/dist/udpeth7 */
FMC_APPLY_ORDER( 27, FMCScheme , 18 ), /* fm0/port/MAC/9/dist/tcpeth7 */
FMC_APPLY_ORDER( 28, FMCScheme , 17 ), /* fm0/port/MAC/9/dist/ipv4eth7 */
FMC_APPLY_ORDER( 29, FMCScheme , 16 ), /* fm0/port/MAC/9/dist/garbage_dist_7 */
FMC_APPLY_ORDER( 30, FMCPortEnd , 4 ), /* fm0/port/MAC/9 */
FMC_APPLY_ORDER( 31, FMCPortStart , 5 ), /* fm0/port/MAC/10 */
FMC_APPLY_ORDER( 32, FMCScheme , 23 ), /* fm0/port/MAC/10/dist/udpeth8 */
FMC_APPLY_ORDER( 33, FMCScheme , 22 ), /* fm0/port/MAC/10/dist/tcpeth8 */
FMC_APPLY_ORDER( 34, FMCScheme , 21 ), /* fm0/port/MAC/10/[ 2702.906433] cpu 0: ! CRITICAL FM-PCD Error [CPU00, /usr/src/kernel/drivers/net/ethernet/freescale/sdk_fman/Peripherals/FM/Pcd/fm_pcd.c:1123 FM_PCD_Enable]: Invalid Handle;
dist/ipv4eth8 */[ 2702.906436] cpu 0:
FMC_APPLY_[ 2702.923070] cpu 0:
ORDER( 35, FMCSc[ 2702.930123] cpu 0: ! MINOR FM Error [CPU00, /usr/src/kernel/drivers/net/ethernet/freescale/sdk_fman/src/wrapper/lnxwrp_ioctls_fm.c:3444 LnxwrpFmPcdIOCTL]: Invalid Handle;
heme , 20 )[ 2702.930125] cpu 0: IOCTL FM PCD
, /* fm0/port/MA[ 2702.946817] cpu 0:
C/10/dist/garbag[ 2702.954935] cpu 0: ! CRITICAL FM-PCD Error [CPU00, /usr/src/kernel/drivers/net/ethernet/freescale/sdk_fman/Peripherals/FM/Pcd/fm_pcd.c:1179 FM_PCD_Disable]: Invalid Handle;
e_dist_8 */
[ 2702.954937] cpu 0:
FMC_APPLY_ORDER[ 2702.971784] cpu 0:
( 36, FMCPortEnd[ 2702.978837] cpu 0: ! MINOR FM Error [CPU00, /usr/src/kernel/drivers/net/ethernet/freescale/sdk_fman/src/wrapper/lnxwrp_ioctls_fm.c:3444 LnxwrpFmPcdIOCTL]: Invalid Handle;
, 5 ), /* [ 2702.978839] cpu 0: IOCTL FM PCD
fm0/port/MAC/10 [ 2702.995532] cpu 0:
*/
FMC_APPLY_ORDER( 37, FMCEngineEnd , 0 ), /* fm0 */
};
DBG1: fmc_exec_engine_start - execution started
DBG1: Invocation of FM_Open from fmc_exec_engine_start for fm0
DBG1: Invocation of FM_Open for fm0 succeeded
DBG1: Invocation of FM_PCD_Open from fmc_exec_engine_start for fm0/pcd
DBG1: Invocation of FM_PCD_Open for fm0/pcd succeeded
DBG1: Invocation of FM_PCD_Enable from fmc_exec_engine_start for fm0/pcd
ERR : Invocation of FM_PCD_Enable for fm0/pcd failed with error code 0x00010013
DBG1: Invocation of FM_PCD_Disable from fmc_clean_engine_end for fm0/pcd
ERR : Invocation of FM_PCD_Disable for fm0/pcd failed with error code 0x00010013
Hi,
Please help to see this issue?what's the possible reason? Thanks.
Hi,yipingwang
I had modify /etc/fmc/config/private/ls1046ardb/RR_FFSSPPPH_1133_5559/config.xml according to my target board. I use the eth2.
ifconfig eth2
eth2 Link encap:Ethernet HWaddr 00:22:34:28:7f:06
inet addr:192.168.6.17 Bcast:192.168.6.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:230 (230.0 B) TX bytes:0 (0.0 B)
Memory:1aea000-1aeafff
root@odin:/#
This is my modification.
Please modify the configuration file /etc/fmc/config/private/ls1046ardb/RR_FFSSPPPH_1133_5559/config.xml according to your target board.
Hi,yipingwang
This issue may be caused by the value in device tree.
In Lnxwrp_fm_port.c, ReadFmPortDevTreeNode(), tmp_prop is 2. When tmp_prop is 2, it can't run the PCD init ,because this value should be 0 .
I found that tmp_prop - = 0x2 on PPC, but it doesn't have this on ARM.
However, tmp_prop is 2 on ARM LS1046, is my device tree is wrong? or the driver code is wrong?
And how to modify this error?
Thanks