AnsweredAssumed Answered

LS1046A UBOOT SGMII TX ERROR

Question asked by tap yang on Apr 1, 2018
Latest reply on Apr 15, 2018 by tap yang

Dear, Experts:

 

I met a problem when I was debugging my custom LS1046A board. The U-BOOT has started up, but the ethernet has problem:

 

 

I read the phy registers by mdio, found that the PHY(AR8031) status is good!

 

I tried to update the FMAN UCODE to "fsl_fman_ucode_ls1046_r1.0_108_4_9.bin" and it is the same!

 

I used the SGMII.5, the serdes1 was configed as "0x1133" and the serdes1 pll1 was 100MHz.

 

The env is as followed:

"
FM1@DTSEC3, FM1@DTSEC4, FM1@DTSEC5 [PRIME], FM1@DTSEC6, FM1@TGEC1
Error: FM1@TGEC1 address not set.
, FM1@TGEC2
Error: FM1@TGEC2 address not set.
Initial value for argc=3
Final value for argc=3

initcall: 0000000040117944 (relocated to 00000000ffd16944)
fdtdec_get_config_int: bootdelay
### main_loop entered: bootdelay=10

fdtdec_get_config_int: kernel-offset
fdtdec_get_config_int: rootdisk-offset
fdtdec_get_config_string: bootcmd
fdtdec_get_config_int: bootsecure
### main_loop: bootcmd="sf probe 0:0;sf read $kernel_load$kernel_start $kernel_size;bootm $kernel_load"
Hit any key to stop autoboot: 0
=>
=> print
EXPORT table = 00000000ffd89780, htab.size = 521, htab.filled = 31, size = 0
Unsorted: n=31
0: 00000000ffc00b98 ==> eth2addr => 00:e0:0c:00:89:02
1: 00000000ffc010c0 ==> initrd_high => 0xffffffffffffffff
2: 00000000ffc013b8 ==> fdtcontroladdr => ffbf87b0
3: 00000000ffc01408 ==> kernel_start => 0x1000000
4: 00000000ffc01458 ==> ethprime => FM1@DTSEC5
5: 00000000ffc016d8 ==> eth1addr => 00:e0:0c:00:89:01
6: 00000000ffc01a48 ==> ethaddr => 00:e0:0c:00:89:00
7: 00000000ffc01a98 ==> ramdisk_size => 0x2000000
8: 00000000ffc01de0 ==> stdin => serial
9: 00000000ffc01f20 ==> baudrate => 115200
10: 00000000ffc022e0 ==> netmask => 255.255.255.0
11: 00000000ffc02358 ==> serverip => 192.168.1.131
12: 00000000ffc025b0 ==> ethact => FM1@DTSEC5
13: 00000000ffc02768 ==> bootcmd => sf probe 0:0;sf read $kernel_load$kernel_start $kernel_size;bootm $kernel_load
14: 00000000ffc02790 ==> kernel_load => 0xa0000000
15: 00000000ffc02da8 ==> stderr => serial
16: 00000000ffc031b8 ==> hwconfig => fsl_ddr:bank_intlv=auto
17: 00000000ffc033e8 ==> fman_ucode => ffc06000
18: 00000000ffc03528 ==> loadaddr => 0x80100000
19: 00000000ffc03820 ==> bootdelay => 10
20: 00000000ffc03bb8 ==> mtdparts => 1550000.quadspi:1m(rcw),15m(u-boot),48m(kernel.itb);7e800000.flash:16m(nand_uboot),48m(nand_kernel),448m(nand_free)
21: 00000000ffc03c80 ==> scsidevs => 0
22: 00000000ffc04040 ==> stdout => serial
23: 00000000ffc04270 ==> ramdisk_addr => 0x800000
24: 00000000ffc04900 ==> kernel_size => 0x2800000
25: 00000000ffc04b80 ==> console => ttyS0,115200
26: 00000000ffc051c0 ==> eth3addr => 00:e0:0c:00:89:03
27: 00000000ffc05328 ==> fdt_high => 0xffffffffffffffff
28: 00000000ffc05490 ==> gatewayip => 192.168.1.1
29: 00000000ffc05648 ==> bootargs => console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=1550000.quadspi:1m(rcw),15m(u-boot),48m(kernel.itb);7e800000.flash:16m(nand_uboot),48m(nand_kernel),448m(nand_free)
30: 00000000ffc05738 ==> ipaddr => 192.168.1.130
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=1550000.quadspi:1m(rcw),15m(u-boot),48m(kernel.itb);7e800000.flash:16m(nand_uboot),48m(nand_kernel),448m(nand_free)
bootcmd=sf probe 0:0;sf read $kernel_load$kernel_start $kernel_size;bootm $kernel_load
bootdelay=10
console=ttyS0,115200
eth1addr=00:e0:0c:00:89:01
eth2addr=00:e0:0c:00:89:02
eth3addr=00:e0:0c:00:89:03
ethact=FM1@DTSEC5
ethaddr=00:e0:0c:00:89:00
ethprime=FM1@DTSEC5
fdt_high=0xffffffffffffffff
fdtcontroladdr=ffbf87b0
fman_ucode=ffc06000
gatewayip=192.168.1.1
hwconfig=fsl_ddr:bank_intlv=auto
initrd_high=0xffffffffffffffff
ipaddr=192.168.1.130
kernel_load=0xa0000000
kernel_size=0x2800000
kernel_start=0x1000000
loadaddr=0x80100000
mtdparts=1550000.quadspi:1m(rcw),15m(u-boot),48m(kernel.itb);7e800000.flash:16m(nand_uboot),48m(nand_kernel),448m(nand_free)
netmask=255.255.255.0
ramdisk_addr=0x800000
ramdisk_size=0x2000000
scsidevs=0
serverip=192.168.1.131
stderr=serial
stdin=serial
stdout=serial

Environment size: 1082/8188 bytes
=>"

 

And I read the memory of the FMAN loaded:

 

"

Environment size: 1082/8188 bytes
=> md 0xffc06000
ffc06000: b8920000 01464551 7263694d 646f636f ....QEF.Microcod
ffc06010: 65762065 6f697372 3031206e 2e342e38 e version 108.4.
ffc06020: 6f662039 534c2072 36343031 2e317220 9 for LS1046 r1.
ffc06030: 00000030 00000000 00000000 00000000 0...............
ffc06040: 00000000 01000000 00011604 00000000 ................
ffc06050: 00000000 00000000 00000000 00000000 ................
ffc06060: 00000000 00000000 00000000 00000000 ................
ffc06070: 00000000 00000000 00000000 7263694d ............Micr
ffc06080: 646f636f 6f662065 534c2072 36343031 ocode for LS1046
ffc06090: 2e317220 00000030 00000000 00000000 r1.0...........
ffc060a0: 00000000 00000000 00000000 00000000 ................
ffc060b0: 00000000 00000000 00000000 00000000 ................
ffc060c0: 00000000 00000000 00000000 00000000 ................
ffc060d0: 00000000 00000000 00000000 00008020 ............ ...
ffc060e0: 00000000 70240000 f4000000 0009046c ......$p....l...
ffc060f0: 00000000 4202ffb7 09046c00 5602ffb7 .......B.l.....V

"

 

Expecting your replies, thanks!

Attachments

Outcomes