I have an AM335x GP EVM, it uses Ethernet to load SPL, MLO, Kernel and mount root filesystem over NFS.
Soon I'll have a custom board without Ethernet, only USB and NAND flash are present, and I'd like to have the same config, the only difference is real Ethernet is replaced by CDC Ethernet gadget over USB.
AM335x Linux flash tool does something like this, RBL downloads SPL using UART0, SPL downloads u-boot using RNDIS, u-Boot downloads SPL, u-boot, kernel and filesystem and programs them to NAND flash.
I'd like to program SPL and u-boot to NAND flash, boot SPL and u-boot from NAND flash, then load kernel using tftp over RNDIS Ethernet over USB and finally mount NFS filesystem over RNDIS.
Is there any step by step help to set up this config?
Thank you in advance