Hello TI expert,
I got the issue related to UBI rootfs on NOR Flash for the first boot time.
On my custom board run all thing on NOR Flash: tiboot3.bin, tispl.bin, u-boot.bin, kernel, ubifs, application,
- The first boot time, it takes about 2.45 minutes (for re-programming rootfs part, and only one rootfs partition is mounted)
20 seconds for:
====================
[ 1.626928] ubi0: attaching mtd9
[ 1.641733] ubi0: scanning is finished
[ 1.986520] random: crng init done
[ 3.760018] ubi0: volume 0 ("rootfs") re-sized from 167 to 296 LEBs
[ 3.760782] ubi0: attached mtd9 (name "ospi.rootfs", size 75 MiB)
[ 3.760795] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 262016 bytes
[ 3.760801] ubi0: min./max. I/O unit sizes: 16/256, sub-page size 16
[ 3.760807] ubi0: VID header offset: 64 (aligned 64), data offset: 128
[ 3.760812] ubi0: good PEBs: 300, bad PEBs: 0, corrupted PEBs: 0
[ 3.760816] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 3.760822] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1274884956
[ 3.760828] ubi0: available PEBs: 0, total reserved PEBs: 300, PEBs reserved for bad PEB handling: 0
[ 3.760843] ubi0: background thread "ubi_bgt0d" started, PID 148
[ 4.767086] UBIFS (ubi0:0): Mounting in unauthenticated mode
[ 4.767474] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 150
[ 12.735140] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 12.735168] UBIFS (ubi0:0): LEB size: 262016 bytes (255 KiB), min./max. I/O unit sizes: 16 bytes/256 bytes
[ 12.735177] UBIFS (ubi0:0): FS size: 74936576 bytes (71 MiB, 286 LEBs), journal size 9436672 bytes (8 MiB, 37 LEBs)
[ 12.735187] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 12.735192] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 4571C6B9-01B4-4E44-9716-DCDAD8353CC0, small LPT model
[ 15.743381] VFS: Mounted root (ubifs filesystem) on device 0:19.
[ 18.761472] devtmpfs: mounted
[ 18.762673] Freeing unused kernel memory: 1408K
~2 minutes for:
[ 18.762819] Run /sbin/init as init process
- The second boot time and after that, it takes about 20 seconds (only one rootfs partition is mounted).
At the moment, I did know why the first boot time is so long yet. So, I would like to get some help from your.
Thank you
Brian