learning uboot fstype command

=> fstype
fstype - Look up a filesystem type

Usage:
fstype <interface> <dev>:<part>
- print filesystem type
fstype <interface> <dev>:<part> <varname>
- set environment variable to filesystem type  

example:


=> fstype mmc 1:1
ext4

=> fstype mmc 1:1 rootfstype

so we can use this command to set rootfs type  in var rootfstype

原文地址:https://www.cnblogs.com/lianghong881018/p/10319161.html