File System Setup
优质
小牛编辑
132浏览
2023-12-01
1.1. File System Setup
Rootfs is setup as ubifs read-only. Corresponding mount command is setup in uboot as below:
$(K18DIR)/uboot/include/configs/leo_common.h
/ Extra Environment /
…
"mtdargs=ubi.mtd="__stringify(CONFIG_ROOTFS_POS) ",2048 root=ubi0:rootfs rootwait " \
"rootfstype=ubifs ro loglevel=6 mem="__stringify(CONFIG_MEM_SIZE)"M\0" \
…
In order to debug system easily,sometimes we need change rootfs as R/W partition. There are two ways as below:
- Method 1,in uboot command line, run the below commands:
LEO#editenv mtdargs
LEO#ubi.mtd=9,2048 root=ubi0:rootfs rootwait rootfstype=ubifs rw loglevel=6
LEO#save
- Method 2,in adb shell, run the below command:
mount -o remount rw /