you need to tell the purpose so that I can answer.

Use a UART adapter and connect to the router, then stop in uboot, then use nand erase all