Hi,
I was recently porting fec_mxc driver in u-boot to an iMX6Q board.
The initialization of the ethernet driver succeeds without any errors. However, invoking fec_send always throws the following error:
> fec_send: status 0x8c00 index 0 ret -22
It looks like that the READY bit of the TX buffer descriptor is not cleared. Does anyone have any clues about this issue or any debug suggestions? Thanks!
Here are some register values of the ethernet device when the error happens:
Ethernet state (ecntrl): 0xf0000102 (Active)
TX state (x_des_active): Inactive (no FEC_X_DES_ACTIVE_TDAR bit)
RX state (r_des_active): Inactive (no FEC_R_DES_ACTIVE_RDAR bit)
TX control (x_cntrl): 0x00000004
RX control (r_cntrl): 0x05f20064
RX desc base (erdsr): 0x4e07fd40 (size: 0x600)
TX desc base (etdsr): 0x4e07fdc0
Enabled events (imask): 0x00000000
Pending events (ievent): 0x00000000
This is the link to the driver: https://github.com/u-boot/u-boot/blob/master/drivers/net/fec_mxc.c
Hi nu1lptr
one can try latest nxp uboot from source.codeaurora.org/external/imx repository
https://source.codeaurora.org/external/imx/uboot-imx/tree/?h=imx_v2020.04_5.4.70_2.3.0
Best regards
igor