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

 

posted @ 2019-01-25 13:34  嵌入式实操  阅读(607)  评论(0编辑  收藏  举报