Hi Alejandro,
I have fixed the following error
fec 5b040000.ethernet: Start time must larger than current time!
-sh: echo: write error: Invalid argument
by changing the second parameter to a number lager than 'current time'.
echo "0 999 0 1 1" > /sys/class/ptp/ptp0/period
Then, I find the output on my oscilloscope(please see the following image). However, the output waveform is not a square wave. Should I edit some code of the driver or device tree file to get a square wave?

I also tried:
In the 'work dir' of Yocto, I edit 'fec_ptp.c' in directory '/armv8a-mx8-poky-linux/linux-imx-headers/6.1-r0/git/drivers/net/ethernet/freescale/'. However, when I 'bitbake' again, it seems Yocto doesn't build anything with that file. This editing neither solves my problem. Any suggestion?
Thank you in advance,