Hi @shanlan123,
u-boot USB command is available in the u-boot repo.
Find the path where the u-boot command handler for USB is written in the u-boot source code:
cmd/usb.c
you can modify and create new commands as per your requirement in the same.
Please find the attached screenshot for your reference.
Thanks,
Mayank s Patel