root@am64xx-evm:/boot# uname -a Linux am64xx-evm 5.4.106-g023faefa70 #1 SMP PREEMPT Fri May 28 14:38:23 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux root@am64xx-evm:/boot# mtdinfo -a Count of MTD devices: 9 Present MTD devices: mtd0, mtd1, mtd2, mtd3, mtd4, mtd5, mtd6, mtd7, mtd8 Sysfs interface supported: yes mtd0 Name: ospi.tiboot3 Type: nor Eraseblock size: 262144 bytes, 256.0 KiB Amount of eraseblocks: 2 (524288 bytes, 512.0 KiB) Minimum input/output unit size: 16 bytes Sub-page size: 16 bytes Character device major/minor: 90:0 Bad blocks are allowed: false Device is writable: true mtd1 Name: ospi.tispl Type: nor Eraseblock size: 262144 bytes, 256.0 KiB Amount of eraseblocks: 8 (2097152 bytes, 2.0 MiB) Minimum input/output unit size: 16 bytes Sub-page size: 16 bytes Character device major/minor: 90:2 Bad blocks are allowed: false Device is writable: true mtd2 Name: ospi.u-boot Type: nor Eraseblock size: 262144 bytes, 256.0 KiB Amount of eraseblocks: 16 (4194304 bytes, 4.0 MiB) Minimum input/output unit size: 16 bytes Sub-page size: 16 bytes Character device major/minor: 90:4 Bad blocks are allowed: false Device is writable: true mtd3 Name: ospi.env Type: nor Eraseblock size: 262144 bytes, 256.0 KiB Amount of eraseblocks: 1 (262144 bytes, 256.0 KiB) Minimum input/output unit size: 16 bytes Sub-page size: 16 bytes Character device major/minor: 90:6 Bad blocks are allowed: false Device is writable: true mtd4 Name: ospi.env.backup Type: nor Eraseblock size: 262144 bytes, 256.0 KiB Amount of eraseblocks: 1 (262144 bytes, 256.0 KiB) Minimum input/output unit size: 16 bytes Sub-page size: 16 bytes Character device major/minor: 90:8 Bad blocks are allowed: false Device is writable: true mtd5 Name: ospi.dtb Type: nor Eraseblock size: 262144 bytes, 256.0 KiB Amount of eraseblocks: 4 (1048576 bytes, 1024.0 KiB) Minimum input/output unit size: 16 bytes Sub-page size: 16 bytes Character device major/minor: 90:10 Bad blocks are allowed: false Device is writable: true mtd6 Name: ospi.kernel Type: nor Eraseblock size: 262144 bytes, 256.0 KiB Amount of eraseblocks: 80 (20971520 bytes, 20.0 MiB) Minimum input/output unit size: 16 bytes Sub-page size: 16 bytes Character device major/minor: 90:12 Bad blocks are allowed: false Device is writable: true mtd7 Name: ospi.rootfs Type: nor Eraseblock size: 262144 bytes, 256.0 KiB Amount of eraseblocks: 143 (37486592 bytes, 35.7 MiB) Minimum input/output unit size: 16 bytes Sub-page size: 16 bytes Character device major/minor: 90:14 Bad blocks are allowed: false Device is writable: true mtd8 Name: ospi.phypattern Type: nor Eraseblock size: 262144 bytes, 256.0 KiB Amount of eraseblocks: 1 (262144 bytes, 256.0 KiB) Minimum input/output unit size: 16 bytes Sub-page size: 16 bytes Character device major/minor: 90:16 Bad blocks are allowed: false Device is writable: true root@am64xx-evm:/boot# ubiattach -m 7 [ 286.899494] ubi0: attaching mtd7 [ 286.914837] ubi0: scanning is finished [ 287.018454] ubi0: volume 0 ("rootfs") re-sized from 28 to 139 LEBs [ 287.031900] ubi0: attached mtd7 (name "ospi.rootfs", size 35 MiB) [ 287.042821] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 262016 bytes [ 287.049790] ubi0: min./max. I/O unit sizes: 16/256, sub-page size 16 [ 287.056205] ubi0: VID header offset: 64 (aligned 64), data offset: 128 [ 287.062752] ubi0: good PEBs: 143, bad PEBs: 0, corrupted PEBs: 0 [ 287.068798] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 [ 287.076047] ubi0: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 1945417933 [ 287.085217] ubi0: available PEBs: 0, total reserved PEBs: 143, PEBs reserved for bad PEB handling: 0 [ 287.094383] ubi0: background thread "ubi_bgt0d" started, PID 1114 UBI device number 0, total 143 LEBs (37468288 bytes, 35.7 MiB), available 0 LEBs (0 bytes), LEB size 262016 bytes (255.8 KiB) root@am64xx-evm:/boot# ubinfo -a UBI version: 1 Count of UBI devices: 1 UBI control device major/minor: 10:61 Present UBI devices: ubi0 ubi0 Volumes count: 1 Logical eraseblock size: 262016 bytes, 255.8 KiB Total amount of logical eraseblocks: 143 (37468288 bytes, 35.7 MiB) Amount of available logical eraseblocks: 0 (0 bytes) Maximum count of volumes 128 Count of bad physical eraseblocks: 0 Count of reserved physical eraseblocks: 0 Current maximum erase counter value: 5 Minimum input/output unit size: 16 bytes Character device major/minor: 238:0 Present volumes: 0 Volume ID: 0 (on ubi0) Type: dynamic Alignment: 1 Size: 139 LEBs (36420224 bytes, 34.7 MiB) State: OK Name: rootfs Character device major/minor: 238:1 root@am64xx-evm:/boot# mount -t ubifs ubi0 /mnt/fs_test [ 305.393026] UBIFS (ubi0:0): Mounting in unauthenticated mode [ 305.398996] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 1118 [ 307.373207] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs" [ 307.380775] UBIFS (ubi0:0): LEB size: 262016 bytes (255 KiB), min./max. I/O unit sizes: 16 bytes/256 bytes [ 307.391683] UBIFS (ubi0:0): FS size: 33800064 bytes (32 MiB, 129 LEBs), journal size 5240320 bytes (4 MiB, 20 LEBs) [ 307.402700] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB) [ 307.409003] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 763BE965-1F7D-4F3A-90C5-ABE0CCBF2B8D, small LPT model root@am64xx-evm:/boot# cd /mnt/fs_test root@am64xx-evm:/mnt/fs_test# ls -lrt total 0 drwxrwxrwt 2 root root 160 Apr 4 04:08 tmp dr-xr-xr-x 2 root root 160 Apr 4 04:08 sys dr-xr-xr-x 2 root root 160 Apr 4 04:08 proc drwxr-xr-x 2 root root 160 Apr 4 04:08 mnt drwxr-xr-x 2 root root 160 Apr 4 04:08 media drwxr-xr-x 3 root root 224 Apr 4 04:08 home drwxr-xr-x 2 root root 160 Apr 4 04:08 dev drwxr-xr-x 2 root root 160 Apr 4 04:08 boot drwxr-xr-x 8 root root 808 Apr 6 18:36 var drwxr-xr-x 9 root root 608 Apr 6 18:36 usr drwxr-xr-x 4 root root 3168 Apr 6 18:36 lib drwxr-xr-x 2 root root 5128 Apr 6 18:36 bin drwxr-xr-x 2 root root 4520 Apr 6 18:36 sbin drwxr-xr-x 2 root root 160 Apr 6 18:36 run drwxr-xr-x 19 root root 3496 Apr 6 18:36 etc lrwxrwxrwx 1 root root 19 Jun 17 2021 linuxrc -> /bin/busybox.nosuid root@am64xx-evm:/mnt/fs_test#