I formatted the usb drive and copied my rootfs files in. And modified the u-boot boot args : root=/dev/sda1. Then kernel panic:
[ 5.910995] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[ 5.918354] Please append a correct "root=" boot option; here are the available partitions:
[ 5.926748] 0100 100000 ram0 (driver?)
[ 5.931416] 1f00 2048 mtdblock0 (driver?)
[ 5.936505] 1f01 2048 mtdblock1 (driver?)
[ 5.941594] 1f02 12288 mtdblock2 (driver?)
[ 5.946682] 1f03 2048 mtdblock3 (driver?)
[ 5.951772] 1f04 13312 mtdblock4 (driver?)
[ 5.956857] 1f05 507904 mtdblock5 (driver?)
[ 5.961945] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
It seems like kernel hasn't loaded the usb drive when trying to mount the rootfs. How can I use the usb drive as the rootfs?