This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3359: UBIFS mounting isuue.

Part Number: AM3359

Tool/software:

The ubifs file has been successfully created and correctly flashed. However, mounting is not occurring. A kernel panic is being triggered.

When attempting the same process with jffs2, it functions correctly with the same mtd partitions.

Could you please provide assistance to enable booting with ubifs?

Error Log:

[ 1.908562] List of all partitions:
[ 1.912094] 0100 65536 ram0
[ 1.912101] (driver?)
[ 1.917987] 0101 65536 ram1
[ 1.917991] (driver?)
[ 1.923931] 0102 65536 ram2
[ 1.923936] (driver?)
[ 1.929820] 0103 65536 ram3
[ 1.929824] (driver?)
[ 1.935751] 0104 65536 ram4
[ 1.935756] (driver?)
[ 1.941675] 0105 65536 ram5
[ 1.941680] (driver?)
[ 1.947562] 0106 65536 ram6
[ 1.947566] (driver?)
[ 1.953466] 0107 65536 ram7
[ 1.953470] (driver?)
[ 1.959352] 0108 65536 ram8
[ 1.959355] (driver?)
[ 1.965252] 0109 65536 ram9
[ 1.965256] (driver?)
[ 1.971168] 010a 65536 ram10
[ 1.971172] (driver?)
[ 1.977139] 010b 65536 ram11
[ 1.977142] (driver?)
[ 1.983123] 010c 65536 ram12
[ 1.983127] (driver?)
[ 1.989092] 010d 65536 ram13
[ 1.989096] (driver?)
[ 1.995075] 010e 65536 ram14
[ 1.995079] (driver?)
[ 2.001078] 010f 65536 ram15
[ 2.001082] (driver?)
[ 2.007053] 1f00 15360 mtdblock0
[ 2.007057] (driver?)
[ 2.013374] 1f01 1024 mtdblock1
[ 2.013379] (driver?)
[ 2.019679] 1f02 128 mtdblock2
[ 2.019682] (driver?)
[ 2.025997] 1f03 1024 mtdblock3
[ 2.026001] (driver?)
[ 2.032332] 1f04 256 mtdblock4
[ 2.032336] (driver?)
[ 2.038637] 1f05 256 mtdblock5
[ 2.038641] (driver?)
[ 2.044956] 1f06 1024 mtdblock6
[ 2.044960] (driver?)
[ 2.051275] 1f07 51200 mtdblock7
[ 2.051279] (driver?)
[ 2.057579] 1f08 122880 mtdblock8
[ 2.057583] (driver?)
[ 2.063917] 1f09 1024 mtdblock9
[ 2.063921] (driver?)
[ 2.070222] 1f0a 71680 mtdblock10
[ 2.070226] (driver?)
[ 2.076627] 1f0b 10240 mtdblock11
[ 2.076631] (driver?)
[ 2.083041] No filesystem could mount root, tried:
[ 2.083046] ubifs
[ 2.087745]
[ 2.091133] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,8)
[ 2.099198] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,8) ]---

Linux SDK: Version 4.19.59 for Linux.

NAND flash: MT29F2G16

Nand flash size: 256MB (2Gb)

file system partition size: 120MB

DTB partitions:
                partition@0 {
                        label = "NAND.SPL";
                        reg = <0x00000000 0x00020000>;
                };
                partition@1 {
                        label = "NAND.u-boot";
                        reg = <0x00020000 0x00100000>;
                };
                partition@2 {
                        label = "NAND.u-boot-env";
                        reg = <0x00120000 0x00040000>;
                };
                partition@3 {
                        label = "NAND.u-boot-env-redund";
                        reg = <0x00160000 0x00040000>;
                };
                partition@4 {
                        label = "NAND.User DTB";
                        reg = <0x001A0000 0x00100000>;
                };
                partition@5 {
                        label = "NAND.User Kernel";
                        reg = <0x002A0000 0x03200000>;
                };
                partition@6 {
                        label = "NAND.User FileSystem";
                        reg = <0x034A0000 0x07800000>;
                };
    partition@7 {
                        label = "NAND.golden DTB";
                        reg = <0x0ACA0000 0x00100000>;
                };
                partition@8 {
                        label = "NAND.golden Kernel";
                        reg = <0x0ADA0000 0x04600000>;
                };
                partition@9 {
                        label = "NAND.Test Partition";
                        reg = <0x0F3A0000 0x00A00000>;

Note: Total 12 partitions, 0 and 1 partitions are NOR flash partitions and 2 to 11 are NAND partitions. So, user filesystem partition number is 8.

command used used to create ubifs:
1. mkfs.ubifs -r <fs_source_dir> -m 1024 -e 0x20000 -c 960 -o <fs_dest_dir>/rootfs.ubifs

2. ubinize -o <fs_dest_dir>/rootfs.ubi -m 1024 -p 128KiB -s 512 -v <fs_dest_dir>/ubinize.cfg

3. cfg file:

         [ubifs]
         mode=ubi
         image=<fs_dest_dir>/rootfs.ubifs
         vol_id=0
         vol_size=120MiB
         vol_type=dynamic
         vol_name=rootfs
         vol_flags=autoresize

u-boot commands used to flash and boot:

1. tftpboot 0x8f000000 rootfs.ubi

2. nand erase 0x034A0000 0x07800000

3. nand write 0x8f000000 0x034A0000 <rootfs_size>

4. setenv bootargs console=ttyS0,115200n8 ubi.mtd=8 root=ubi0:rootfs rootfstype=ubifs rw

  • Refer to the two logs in the FAQ on nand flash/boot with u-boot/linux/ubifs on TI AM335x EVM.
    https://e2e.ti.com/support/processors-group/processors/f/791/t/1407372
    4. Logs:
    - am3_9.1.0.1_patch_nand_flash_linux: flashing u-boot/kernel/root_fs(UBIFS) to GPMC-NAND from SD boot on AM335x GP EVM
    - am3_9.1.0.1_patch_nand_boot_linux: booting u-boot/kernel/root_fs(UBIFS from GPMC-NAND on AM335x GP EVM
    where "tisdk-tiny-image-am335x-evm.ubi" in AM335x Linux SDK 9.1 is used for UBIFS [3].
    [3] https://software-dl.ti.com/processor-sdk-linux/esd/AM335X/09_01_00_001/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/Storage/NAND.html#nand-based-file-system

    Best,
    -Hong

  • Hi Hong,

    We are currently developing custom hardware that does not include USB or SD slots.

    The ubifs has been successfully created and flashed. Booting and mounting of ubifs are occurring correctly during the initial flash and load.

    However, some errors are encountered, and Linux loads successfully.

    Yet, when I power off and then on the board, a kernel panic occurs.

    Please refer to the log and commands used for the build below.

    I would appreciate your assistance in resolving this issue.

    Note: My fs partition size is 120MB.

    uboot bootargs command:

    1. setenv bootargs 'console=ttyS0,115200 ubi.mtd=8 root=ubi0:rootfs rootfstype=ubifs rw'
    2. setenv bootcmd 'nand read 0x83000000 0x1a0000 0xa000; nand read ${loadaddr} 0x2a0000 0x500000; bootz ${loadaddr} - 0x83000000'
    3. boot

    ubifs creation commands:

    1. mkfs.ubifs -r <src_dir> -m 2048 -e 129024 -c 960 -o <dest_dir>/rootfs.ubifs

    2. cfg file:

         [ubifs]
         mode=ubi
         image=<>/rootfs.ubifs 
         vol_id=0
         vol_size=73080KiB
         vol_type=dynamic
         vol_name=rootfs
         vol_flags=autoresize

    3. ubinize -o <dest_dir>/rootfs.ubi -m 2048 -p 128KiB -s 512 -v <dest_dir>/ubinize.cfg


    1St time flash log:

    [    2.093439] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 68
    [    2.215636] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [    2.223424] UBIFS (ubi0:0): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [    2.233794] UBIFS (ubi0:0): FS size: 116766720 bytes (111 MiB, 905 LEBs), journal size 9033728 bytes (8 MiB, 71 LEBs)
    [    2.244820] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [    2.251231] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 3E2F7BD2-ABD7-415A-AE39-02CDE54F3A61, small LPT model
    [    2.268520] UBIFS (ubi0:0): full atime support is enabled.
    [    2.274478] VFS: Mounted root (ubifs filesystem) on device 0:14.
    [    2.286726] devtmpfs: mounted
    [    2.293223] Freeing unused kernel memory: 1024K
    [    2.298088] Run /sbin/init as init process
    INIT: version 2.88 booting
    mount: /dev/pts0: mount point does not exist.
    Framebuffer /dev/fb0 not detected
    Boot splashscreen disabled
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Sun Oct 20 00:08:14 UTC 2019
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    [    4.078398] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.084513] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.090532] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.096491] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.102654] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 77 bytes from PEB 278:55296, read only 77 bytes, retry
    [    4.114534] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.120541] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.126501] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.132474] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.138446] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 77 bytes from PEB 278:55296, read only 77 bytes, retry
    [    4.150267] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.156228] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.162202] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.168161] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.174142] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 77 bytes from PEB 278:55296, read only 77 bytes, retry
    [    4.185975] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.191953] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.197911] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.203882] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.209851] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 77 bytes from PEB 278:55296, read 77 bytes
    [    4.219950] CPU: 0 PID: 206 Comm: mv Tainted: G        W         4.19.59-g5f8c1c6121 #352
    [    4.227851] Hardware name: Generic AM33XX (Flattened Device Tree)
    [    4.233782] [<c010edfc>] (unwind_backtrace) from [<c010b4a4>] (show_stack+0x10/0x14)
    [    4.241274] [<c010b4a4>] (show_stack) from [<c05a9650>] (ubi_io_read+0x1b0/0x334)
    [    4.248497] [<c05a9650>] (ubi_io_read) from [<c05a7388>] (ubi_eba_read_leb+0xcc/0x400)
    [    4.256151] [<c05a7388>] (ubi_eba_read_leb) from [<c05a5fd8>] (ubi_leb_read+0x74/0xb4)
    [    4.263842] [<c05a5fd8>] (ubi_leb_read) from [<c03246a0>] (ubifs_leb_read+0x2c/0x78)
    [    4.271335] [<c03246a0>] (ubifs_leb_read) from [<c0325e78>] (ubifs_read_node+0x94/0x248)
    [    4.279153] [<c0325e78>] (ubifs_read_node) from [<c0341654>] (ubifs_tnc_read_node+0x48/0xcc)
    [    4.287309] [<c0341654>] (ubifs_tnc_read_node) from [<c0327100>] (matches_name+0x94/0xd0)
    [    4.295228] [<c0327100>] (matches_name) from [<c0327188>] (resolve_collision+0x4c/0x2d0)
    [    4.303051] [<c0327188>] (resolve_collision) from [<c0329ff8>] (ubifs_tnc_remove_nm+0xa8/0x12c)
    [    4.311460] [<c0329ff8>] (ubifs_tnc_remove_nm) from [<c0319984>] (ubifs_jnl_rename+0x8d8/0x9c8)
    [    4.319853] [<c0319984>] (ubifs_jnl_rename) from [<c031f4f8>] (do_rename+0x35c/0x7e4)
    [    4.327440] [<c031f4f8>] (do_rename) from [<c031fa0c>] (ubifs_rename+0x8c/0x3a4)
    [    4.334597] [<c031fa0c>] (ubifs_rename) from [<c0233eb4>] (vfs_rename+0x580/0x820)
    [    4.341935] [<c0233eb4>] (vfs_rename) from [<c0236ee8>] (do_renameat2+0x338/0x4c0)
    [    4.349241] [<c0236ee8>] (do_renameat2) from [<c02380c0>] (sys_rename+0x24/0x2c)
    [    4.356395] [<c02380c0>] (sys_rename) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
    [    4.363806] Exception stack(0xeef43fa8 to 0xeef43ff0)
    [    4.368681] 3fa0:                   bed53e08 bed53f1b bed53f01 bed53f1b b6f11f30 00000001
    [    4.376586] 3fc0: bed53e08 bed53f1b 00000000 00000026 00000000 bed53f1b bed53b90 00000000
    [    4.384500] 3fe0: b6dd53e8 bed53b84 00061dd5 b6dd53f4
    Configuring packages on first boot....
     (This may take several minutes. Please do not power off the machine.)
    [    4.725790] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.732007] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.737970] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.744071] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.750072] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 60 bytes from PEB 278:56080, read only 60 bytes, retry
    [    4.761958] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.767923] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.773939] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.779898] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.785889] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 60 bytes from PEB 278:56080, read only 60 bytes, retry
    [    4.797728] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.803703] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.809661] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.815632] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.821631] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 60 bytes from PEB 278:56080, read only 60 bytes, retry
    [    4.833449] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.839410] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.845383] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.851371] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    4.857340] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 60 bytes from PEB 278:56080, read 60 bytes
    [    4.867425] CPU: 0 PID: 224 Comm: exe Tainted: G        W         4.19.59-g5f8c1c6121 #352
    [    4.875420] Hardware name: Generic AM33XX (Flattened Device Tree)
    [    4.881340] [<c010edfc>] (unwind_backtrace) from [<c010b4a4>] (show_stack+0x10/0x14)
    [    4.888813] [<c010b4a4>] (show_stack) from [<c05a9650>] (ubi_io_read+0x1b0/0x334)
    [    4.896053] [<c05a9650>] (ubi_io_read) from [<c05a7388>] (ubi_eba_read_leb+0xcc/0x400)
    [    4.903728] [<c05a7388>] (ubi_eba_read_leb) from [<c05a5fd8>] (ubi_leb_read+0x74/0xb4)
    [    4.911399] [<c05a5fd8>] (ubi_leb_read) from [<c03246a0>] (ubifs_leb_read+0x2c/0x78)
    [    4.918875] [<c03246a0>] (ubifs_leb_read) from [<c0325e78>] (ubifs_read_node+0x94/0x248)
    [    4.926709] [<c0325e78>] (ubifs_read_node) from [<c0341654>] (ubifs_tnc_read_node+0x48/0xcc)
    [    4.934885] [<c0341654>] (ubifs_tnc_read_node) from [<c0327910>] (tnc_read_hashed_node+0x98/0x1bc)
    [    4.943545] [<c0327910>] (tnc_read_hashed_node) from [<c032a8f8>] (ubifs_tnc_next_ent+0x198/0x1dc)
    [    4.952211] [<c032a8f8>] (ubifs_tnc_next_ent) from [<c031dc54>] (ubifs_readdir+0x13c/0x518)
    [    4.960313] [<c031dc54>] (ubifs_readdir) from [<c023a9c0>] (iterate_dir+0x78/0x154)
    [    4.967706] [<c023a9c0>] (iterate_dir) from [<c023b17c>] (ksys_getdents64+0x88/0x144)
    [    4.975282] [<c023b17c>] (ksys_getdents64) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
    [    4.983114] Exception stack(0xeef35fa8 to 0xeef35ff0)
    [    4.987990] 5fa0:                   000a0a08 000a09ec 00000004 000a0a08 00008000 00000000
    [    4.995894] 5fc0: 000a0a08 000a09ec b6fdef30 000000d9 000a09e8 0009f849 000a09e8 0000005e
    [    5.003810] 5fe0: 00000020 be9bb76c b6ee1ad8 b6ee1a10
    Configuring dropbear.
    root@RCU:~#

    After power cycle log:

    [    1.664564] ubi0: attaching mtd8
    [    1.974144] ubi0: scanning is finished
    [    1.988867] ubi0: attached mtd8 (name "NAND.User_RootFS", size 120 MiB)
    [    1.995349] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
    [    2.002156] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [    2.008619] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
    [    2.015183] ubi0: good PEBs: 960, bad PEBs: 0, corrupted PEBs: 0
    [    2.020987] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [    2.027951] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1473205876
    [    2.036792] ubi0: available PEBs: 0, total reserved PEBs: 960, PEBs reserved for bad PEB handling: 40
    [    2.045706] ubi0: background thread "ubi_bgt0d" started, PID 67
    [    2.051762] hctosys: unable to open rtc device (rtc0)
    [    2.057194] ALSA device list:
    [    2.060145]   No soundcards found.
    [    2.065869] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 68
    [    2.072789] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.078751] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.085348] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.091362] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.097872] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.103889] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.110417] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.116378] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.122899] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.128859] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.135399] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.141376] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.147883] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.153874] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.160397] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.166357] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.191343] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 129024 bytes from PEB 3:2048, read only 129024 bytes, retry
    [    2.203923] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.209918] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.216426] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.222402] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.228916] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.234908] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.241430] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.247390] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.253910] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.259901] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.266409] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.272384] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.278891] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.284881] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.291403] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.297363] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.322324] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 129024 bytes from PEB 3:2048, read only 129024 bytes, retry
    [    2.334896] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.340888] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.347397] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.353372] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.359879] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.365839] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.372362] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.378322] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.384842] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.390834] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.397341] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.403317] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.409823] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.415784] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.422304] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.428264] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.453224] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 129024 bytes from PEB 3:2048, read only 129024 bytes, retry
    [    2.465794] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.471786] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.478294] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.484269] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.490787] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.496748] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.503284] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.509244] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.515764] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.521755] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.528263] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.534237] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.540756] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.546716] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.553260] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.559221] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.584183] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 129024 bytes from PEB 3:2048, read 129024 bytes
    [    2.594686] CPU: 0 PID: 1 Comm: swapper Tainted: G        W         4.19.59-g5f8c1c6121 #352
    [    2.602850] Hardware name: Generic AM33XX (Flattened Device Tree)
    [    2.608755] [<c010edfc>] (unwind_backtrace) from [<c010b4a4>] (show_stack+0x10/0x14)
    [    2.616244] [<c010b4a4>] (show_stack) from [<c05a9650>] (ubi_io_read+0x1b0/0x334)
    [    2.623501] [<c05a9650>] (ubi_io_read) from [<c05a7388>] (ubi_eba_read_leb+0xcc/0x400)
    [    2.631158] [<c05a7388>] (ubi_eba_read_leb) from [<c05a5fd8>] (ubi_leb_read+0x74/0xb4)
    [    2.638811] [<c05a5fd8>] (ubi_leb_read) from [<c03246a0>] (ubifs_leb_read+0x2c/0x78)
    [    2.646309] [<c03246a0>] (ubifs_leb_read) from [<c032bc24>] (ubifs_start_scan+0x78/0xd0)
    [    2.654152] [<c032bc24>] (ubifs_start_scan) from [<c032bea4>] (ubifs_scan+0x24/0x2c4)
    [    2.661725] [<c032bea4>] (ubifs_scan) from [<c032b0b4>] (ubifs_read_master+0x44/0x890)
    [    2.669365] [<c032b0b4>] (ubifs_read_master) from [<c03229cc>] (ubifs_mount+0xdfc/0x1570)
    [    2.677278] [<c03229cc>] (ubifs_mount) from [<c022a67c>] (mount_fs+0x14/0xa4)
    [    2.684209] [<c022a67c>] (mount_fs) from [<c0248a94>] (vfs_kern_mount.part.4+0x48/0x110)
    [    2.692040] [<c0248a94>] (vfs_kern_mount.part.4) from [<c024b1d8>] (do_mount+0x188/0xd7c)
    [    2.699944] [<c024b1d8>] (do_mount) from [<c024c150>] (ksys_mount+0xac/0xc4)
    [    2.706753] [<c024c150>] (ksys_mount) from [<c0c00f6c>] (do_mount_root+0x20/0xa8)
    [    2.714008] [<c0c00f6c>] (do_mount_root) from [<c0c01188>] (mount_block_root+0x10c/0x270)
    [    2.721919] [<c0c01188>] (mount_block_root) from [<c0c01608>] (prepare_namespace+0x9c/0x1b8)
    [    2.730091] [<c0c01608>] (prepare_namespace) from [<c0c00e34>] (kernel_init_freeable+0x1b0/0x1c0)
    [    2.738658] [<c0c00e34>] (kernel_init_freeable) from [<c08678b8>] (kernel_init+0x8/0x114)
    [    2.746566] [<c08678b8>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
    [    2.753897] Exception stack(0xee885fb0 to 0xee885ff8)
    [    2.758772] 5fa0:                                     00000000 00000000 00000000 00000000
    [    2.766675] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [    2.774592] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
    [    2.782597] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.788570] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.795120] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.801133] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.807645] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.813623] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.820144] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.826104] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.832643] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.838604] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.845124] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.851116] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.857624] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.863599] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.870118] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.876078] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.901067] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 129024 bytes from PEB 4:2048, read only 129024 bytes, retry
    [    2.913643] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.919604] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.926142] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.932118] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.938624] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.944615] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.951136] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.957096] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.963615] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.969575] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.976111] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.982087] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.988593] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    2.994583] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.001109] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.007069] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.032031] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 129024 bytes from PEB 4:2048, read only 129024 bytes, retry
    [    3.044602] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.050595] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.057103] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.063078] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.069585] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.075576] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.082098] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.088058] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.094583] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.100575] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.107083] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.113058] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.119564] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.125643] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.132177] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.138138] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.163100] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 129024 bytes from PEB 4:2048, read only 129024 bytes, retry
    [    3.175673] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.181666] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.188173] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.194149] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.200668] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.206628] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.213165] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.219125] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.225645] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.231635] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.238143] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.244119] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.250638] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.256597] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.263134] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.269094] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.294052] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 129024 bytes from PEB 4:2048, read 129024 bytes
    [    3.304554] CPU: 0 PID: 1 Comm: swapper Tainted: G        W         4.19.59-g5f8c1c6121 #352
    [    3.312717] Hardware name: Generic AM33XX (Flattened Device Tree)
    [    3.318615] [<c010edfc>] (unwind_backtrace) from [<c010b4a4>] (show_stack+0x10/0x14)
    [    3.326104] [<c010b4a4>] (show_stack) from [<c05a9650>] (ubi_io_read+0x1b0/0x334)
    [    3.333358] [<c05a9650>] (ubi_io_read) from [<c05a7388>] (ubi_eba_read_leb+0xcc/0x400)
    [    3.341015] [<c05a7388>] (ubi_eba_read_leb) from [<c05a5fd8>] (ubi_leb_read+0x74/0xb4)
    [    3.348663] [<c05a5fd8>] (ubi_leb_read) from [<c03246a0>] (ubifs_leb_read+0x2c/0x78)
    [    3.356151] [<c03246a0>] (ubifs_leb_read) from [<c032bc24>] (ubifs_start_scan+0x78/0xd0)
    [    3.363989] [<c032bc24>] (ubifs_start_scan) from [<c032bea4>] (ubifs_scan+0x24/0x2c4)
    [    3.371561] [<c032bea4>] (ubifs_scan) from [<c032b114>] (ubifs_read_master+0xa4/0x890)
    [    3.379201] [<c032b114>] (ubifs_read_master) from [<c03229cc>] (ubifs_mount+0xdfc/0x1570)
    [    3.387110] [<c03229cc>] (ubifs_mount) from [<c022a67c>] (mount_fs+0x14/0xa4)
    [    3.394036] [<c022a67c>] (mount_fs) from [<c0248a94>] (vfs_kern_mount.part.4+0x48/0x110)
    [    3.401864] [<c0248a94>] (vfs_kern_mount.part.4) from [<c024b1d8>] (do_mount+0x188/0xd7c)
    [    3.409767] [<c024b1d8>] (do_mount) from [<c024c150>] (ksys_mount+0xac/0xc4)
    [    3.416573] [<c024c150>] (ksys_mount) from [<c0c00f6c>] (do_mount_root+0x20/0xa8)
    [    3.423828] [<c0c00f6c>] (do_mount_root) from [<c0c01188>] (mount_block_root+0x10c/0x270)
    [    3.431736] [<c0c01188>] (mount_block_root) from [<c0c01608>] (prepare_namespace+0x9c/0x1b8)
    [    3.439907] [<c0c01608>] (prepare_namespace) from [<c0c00e34>] (kernel_init_freeable+0x1b0/0x1c0)
    [    3.448472] [<c0c00e34>] (kernel_init_freeable) from [<c08678b8>] (kernel_init+0x8/0x114)
    [    3.456381] [<c08678b8>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
    [    3.463709] Exception stack(0xee885fb0 to 0xee885ff8)
    [    3.468583] 5fa0:                                     00000000 00000000 00000000 00000000
    [    3.476486] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [    3.484402] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
    [    3.491948] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.497941] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 11 bytes from PEB 10:14336, read only 11 bytes, retry
    [    3.509436] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.515460] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 11 bytes from PEB 10:14336, read only 11 bytes, retry
    [    3.526936] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.532924] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 11 bytes from PEB 10:14336, read only 11 bytes, retry
    [    3.544412] omap2-nand 8000000.nand: uncorrectable bit-flips found
    [    3.550398] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 11 bytes from PEB 10:14336, read 11 bytes
    [    3.560396] CPU: 0 PID: 1 Comm: swapper Tainted: G        W         4.19.59-g5f8c1c6121 #352
    [    3.568529] Hardware name: Generic AM33XX (Flattened Device Tree)
    [    3.574455] [<c010edfc>] (unwind_backtrace) from [<c010b4a4>] (show_stack+0x10/0x14)
    [    3.581946] [<c010b4a4>] (show_stack) from [<c05a9650>] (ubi_io_read+0x1b0/0x334)
    [    3.589168] [<c05a9650>] (ubi_io_read) from [<c05a7388>] (ubi_eba_read_leb+0xcc/0x400)
    [    3.596840] [<c05a7388>] (ubi_eba_read_leb) from [<c05a5fd8>] (ubi_leb_read+0x74/0xb4)
    [    3.604502] [<c05a5fd8>] (ubi_leb_read) from [<c03246a0>] (ubifs_leb_read+0x2c/0x78)
    [    3.612015] [<c03246a0>] (ubifs_leb_read) from [<c0338978>] (ubifs_lpt_init+0x14c/0x500)
    [    3.619842] [<c0338978>] (ubifs_lpt_init) from [<c0322a8c>] (ubifs_mount+0xebc/0x1570)
    [    3.627487] [<c0322a8c>] (ubifs_mount) from [<c022a67c>] (mount_fs+0x14/0xa4)
    [    3.634396] [<c022a67c>] (mount_fs) from [<c0248a94>] (vfs_kern_mount.part.4+0x48/0x110)
    [    3.642237] [<c0248a94>] (vfs_kern_mount.part.4) from [<c024b1d8>] (do_mount+0x188/0xd7c)
    [    3.650144] [<c024b1d8>] (do_mount) from [<c024c150>] (ksys_mount+0xac/0xc4)
    [    3.656950] [<c024c150>] (ksys_mount) from [<c0c00f6c>] (do_mount_root+0x20/0xa8)
    [    3.664186] [<c0c00f6c>] (do_mount_root) from [<c0c01188>] (mount_block_root+0x10c/0x270)
    [    3.672109] [<c0c01188>] (mount_block_root) from [<c0c01608>] (prepare_namespace+0x9c/0x1b8)
    [    3.680266] [<c0c01608>] (prepare_namespace) from [<c0c00e34>] (kernel_init_freeable+0x1b0/0x1c0)
    [    3.688831] [<c0c00e34>] (kernel_init_freeable) from [<c08678b8>] (kernel_init+0x8/0x114)
    [    3.696736] [<c08678b8>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
    [    3.704065] Exception stack(0xee885fb0 to 0xee885ff8)
    [    3.708940] 5fa0:                                     00000000 00000000 00000000 00000000
    [    3.716843] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [    3.724760] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
    [    3.731166] UBIFS error (ubi0:0 pid 1): ubifs_leb_read: reading 11 bytes from LEB 8:12288 failed, error -74
    [    3.740575] CPU: 0 PID: 1 Comm: swapper Tainted: G        W         4.19.59-g5f8c1c6121 #352
    [    3.748708] Hardware name: Generic AM33XX (Flattened Device Tree)
    [    3.754620] [<c010edfc>] (unwind_backtrace) from [<c010b4a4>] (show_stack+0x10/0x14)
    [    3.762111] [<c010b4a4>] (show_stack) from [<c03246e8>] (ubifs_leb_read+0x74/0x78)
    [    3.769417] [<c03246e8>] (ubifs_leb_read) from [<c0338978>] (ubifs_lpt_init+0x14c/0x500)
    [    3.777255] [<c0338978>] (ubifs_lpt_init) from [<c0322a8c>] (ubifs_mount+0xebc/0x1570)
    [    3.784911] [<c0322a8c>] (ubifs_mount) from [<c022a67c>] (mount_fs+0x14/0xa4)
    [    3.791828] [<c022a67c>] (mount_fs) from [<c0248a94>] (vfs_kern_mount.part.4+0x48/0x110)
    [    3.799637] [<c0248a94>] (vfs_kern_mount.part.4) from [<c024b1d8>] (do_mount+0x188/0xd7c)
    [    3.807542] [<c024b1d8>] (do_mount) from [<c024c150>] (ksys_mount+0xac/0xc4)
    [    3.814374] [<c024c150>] (ksys_mount) from [<c0c00f6c>] (do_mount_root+0x20/0xa8)
    [    3.821612] [<c0c00f6c>] (do_mount_root) from [<c0c01188>] (mount_block_root+0x10c/0x270)
    [    3.829503] [<c0c01188>] (mount_block_root) from [<c0c01608>] (prepare_namespace+0x9c/0x1b8)
    [    3.837661] [<c0c01608>] (prepare_namespace) from [<c0c00e34>] (kernel_init_freeable+0x1b0/0x1c0)
    [    3.846252] [<c0c00e34>] (kernel_init_freeable) from [<c08678b8>] (kernel_init+0x8/0x114)
    [    3.854160] [<c08678b8>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
    [    3.861472] Exception stack(0xee885fb0 to 0xee885ff8)
    [    3.866345] 5fa0:                                     00000000 00000000 00000000 00000000
    [    3.874262] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [    3.882165] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
    [    3.888578] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops
    [    3.894981] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -74
    [    3.902859] Please append a correct "root=" boot option; here are the available partitions:
    [    3.911006] 0100           65536 ram0
    [    3.911012]  (driver?)
    [    3.916898] 0101           65536 ram1
    [    3.916901]  (driver?)
    [    3.922857] 0102           65536 ram2
    [    3.922862]  (driver?)
    [    3.928746] 0103           65536 ram3
    [    3.928749]  (driver?)
    [    3.934707] 0104           65536 ram4
    [    3.934711]  (driver?)
    [    3.940632] 0105           65536 ram5
    [    3.940636]  (driver?)
    [    3.946519] 0106           65536 ram6
    [    3.946522]  (driver?)
    [    3.952441] 0107           65536 ram7
    [    3.952445]  (driver?)
    [    3.958327] 0108           65536 ram8
    [    3.958330]  (driver?)
    [    3.964248] 0109           65536 ram9
    [    3.964252]  (driver?)
    [    3.970151] 010a           65536 ram10
    [    3.970154]  (driver?)
    [    3.976121] 010b           65536 ram11
    [    3.976124]  (driver?)
    [    3.982105] 010c           65536 ram12
    [    3.982109]  (driver?)
    [    3.988074] 010d           65536 ram13
    [    3.988077]  (driver?)
    [    3.994076] 010e           65536 ram14
    [    3.994080]  (driver?)
    [    4.000065] 010f           65536 ram15
    [    4.000068]  (driver?)
    [    4.006041] 1f00           15360 mtdblock0
    [    4.006044]  (driver?)
    [    4.012378] 1f01            1024 mtdblock1
    [    4.012382]  (driver?)
    [    4.018684] 1f02             128 mtdblock2
    [    4.018687]  (driver?)
    [    4.025004] 1f03            1024 mtdblock3
    [    4.025007]  (driver?)
    [    4.031338] 1f04             256 mtdblock4
    [    4.031342]  (driver?)
    [    4.037643] 1f05             256 mtdblock5
    [    4.037647]  (driver?)
    [    4.043964] 1f06            1024 mtdblock6
    [    4.043967]  (driver?)
    [    4.050282] 1f07           51200 mtdblock7
    [    4.050285]  (driver?)
    [    4.056586] 1f08          122880 mtdblock8
    [    4.056590]  (driver?)
    [    4.062922] 1f09           40960 mtdblock9
    [    4.062926]  (driver?)
    [    4.069229] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [    4.077207] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

  • The error looks like relating to the rootfs.ubi
    I'd recommend cross-checking your rootfs.ubi creation process.
    - AM335x Linux SDK on nand/ubi/ubifs
    https://software-dl.ti.com/processor-sdk-linux/esd/AM335X/09_03_05_02/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/Storage/NAND.html
    https://software-dl.ti.com/processor-sdk-linux/esd/AM335X/09_03_05_02/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/UBIFS.html#linux-ubifs
    - ubi/ubifs is maintained by community, and more details on ubi/ubifs
    http://www.linux-mtd.infradead.org/doc/ubi.html
    http://www.linux-mtd.infradead.org/doc/ubifs.html

    Can we boot up to Linux prompt from boot media other than gpmc-nand on your board?

    Best,
    -Hong

  • Working, after changing the command parameters. 

  • The mounting of ubifs has been completed successfully.

    However, if any alterations are made to the filesystem, it takes some time for these changes to be updated in the flash memory.

    If a modification is made and the file is saved, then the board is powered off and on immediately, that modification will not be reflected.

    If we wait for approximately one minute before powering off and on, the modification will be visible.

    Please assist in reducing the sync time.

    Thank you,

    -Best

    Madhan

  • I ran a simple test, i.e "root@am335x-evm:/etc# cp version version_copy", and didn't see an issue.
    I'm attaching the log file for your reference.
    Best,
    -Hong

    root@am335x-evm:~# uname -a
    Linux am335x-evm 6.1.46-g1d4b5da681 #1 PREEMPT Thu Oct 19 10:19:08 UTC 2023 armv7l GNU/Linux
    root@am335x-evm:~# cd /etc
    root@am335x-evm:/etc# ls
    X11                   hosts                 os-release            shells
    busybox.links.nosuid  inetd.conf            pam.d                 skel
    busybox.links.suid    issue                 passwd                subgid
    dbus-1                issue.net             profile               subuid
    default               ld.so.cache           profile.d             sysctl.d
    depmod.d              ld.so.conf            protocols             systemd
    environment           login.defs            resolv-conf.systemd   timestamp
    ethertypes            machine-id            resolv.conf           tmpfiles.d
    fstab                 modprobe.d            rpc                   udev
    group                 modules-load.d        securetty             udhcpc.d
    gshadow               motd                  security              version
    host.conf             mtab                  services              xdg
    hostname              nsswitch.conf         shadow
    root@am335x-evm:/etc# cat version
    20180309123456
    root@am335x-evm:/etc# cp version version_copy
    root@am335x-evm:/etc# ls
    X11                   hosts                 os-release            shells
    busybox.links.nosuid  inetd.conf            pam.d                 skel
    busybox.links.suid    issue                 passwd                subgid
    dbus-1                issue.net             profile               subuid
    default               ld.so.cache           profile.d             sysctl.d
    depmod.d              ld.so.conf            protocols             systemd
    environment           login.defs            resolv-conf.systemd   timestamp
    ethertypes            machine-id            resolv.conf           tmpfiles.d
    fstab                 modprobe.d            rpc                   udev
    group                 modules-load.d        securetty             udhcpc.d
    gshadow               motd                  security              version
    host.conf             mtab                  services              version_copy
    hostname              nsswitch.conf         shadow                xdg
    root@am335x-evm:/etc# cat version_copy
    20180309123456
    root@am335x-evm:/etc# reboot
    root@am335x-evm:/etc#          Stopping Session c1 of User root...
    [  OK  ] Removed slice Slice /system/modprobe.
    [  OK  ] Stopped target Multi-User System.
    [  OK  ] Stopped target Login Prompts.
    [  OK  ] Stopped target Host and Network Name Lookups.
    [  OK  ] Stopped target System Time Set.
    [  OK  ] Stopped target Timer Units.
    [  OK  ] Stopped Daily Cleanup of Temporary Directories.
    [  OK  ] Closed Process Core Dump Socket.
    [  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
             Stopping Getty on tty1...
             Stopping Serial Getty on ttyS0...
             Stopping Load/Save Random Seed...
    [  OK  ] Stopped Getty on tty1.
    [  OK  ] Stopped Serial Getty on ttyS0.
    [  OK  ] Stopped Load/Save Random Seed.
    [  OK  ] Stopped Session c1 of User root.
    [  OK  ] Removed slice Slice /system/getty.
    [  OK  ] Removed slice Slice /system/serial-getty.
             Stopping User Login Management...
             Stopping User Manager for UID 0...
    [  OK  ] Stopped User Login Management.
    [  OK  ] Stopped User Manager for UID 0.
             Stopping User Runtime Directory /run/user/0...
    [  OK  ] Unmounted /run/user/0.
    [  OK  ] Stopped User Runtime Directory /run/user/0.
    [  OK  ] Removed slice User Slice of UID 0.
             Stopping D-Bus System Message Bus...
             Stopping Permit User Sessions...
    [  OK  ] Stopped D-Bus System Message Bus.
    [  OK  ] Stopped Permit User Sessions.
    [  OK  ] Stopped target Basic System.
    [  OK  ] Stopped target Network.
    [  OK  ] Stopped target Path Units.
    [  OK  ] Stopped Dispatch Password �ts to Console Directory Watch.
    [  OK  ] Stopped Forward Password R�uests to Wall Directory Watch.
    [  OK  ] Stopped target Remote File Systems.
    [  OK  ] Stopped target Slice Units.
    [  OK  ] Removed slice User and Session Slice.
    [  OK  ] Stopped target Socket Units.
    [  OK  ] Closed D-Bus System Message Bus Socket.
    [  OK  ] Stopped target System Initialization.
             Stopping Network Name Resolution...
             Stopping Network Time Synchronization...
             Stopping Record System Boot/Shutdown in UTMP...
    [  OK  ] Stopped Network Time Synchronization.
    [  OK  ] Stopped Network Name Resolution.
    [  OK  ] Stopped Record System Boot/Shutdown in UTMP.
             Stopping Network Configuration...
    [  OK  ] Stopped Create Volatile Files and Directories.
    [  OK  ] Stopped target Local File Systems.
             Unmounting /media/ram...
             Unmounting Temporary Directory /tmp...
             Unmounting /var/volatile...
    [  OK  ] Stopped Network Configuration.
    [  OK  ] Unmounted /media/ram.
    [  OK  ] Unmounted Temporary Directory /tmp.
    [  OK  ] Unmounted /var/volatile.
    [  OK  ] Stopped target Preparation for Local File Systems.
    [  OK  ] Stopped target Preparation for Network.
    [  OK  ] Stopped target Swaps.
    [  OK  ] Reached target Unmount All Filesystems.
    [  OK  ] Closed Network Service Netlink Socket.
    [  OK  ] Stopped Remount Root and Kernel File Systems.
    [  OK  ] Stopped Apply Kernel Variables.
    [  OK  ] Stopped Create Static Device Nodes in /dev.
    [  OK  ] Reached target System Shutdown.
    [  OK  ] Reached target Late Shutdown Services.
    [  OK  ] Finished System Reboot.
    [  OK  ] Reached target System Reboot.
    [  811.215245] systemd-shutdown[1]: Syncing filesystems and block devices.
    [  811.232194] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [  811.252725] systemd-journald[84]: Received SIGTERM from PID 1 (systemd-shutdow).
    [  811.289435] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [  811.307703] systemd-shutdown[1]: Unmounting file systems.
    [  811.319168] [191]: Remounting '/' read-only with options 'assert=read-only,ubi=0,vol=0'.
    [  811.329880] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops
    [  811.338572] systemd-shutdown[1]: All filesystems unmounted.
    [  811.344226] systemd-shutdown[1]: Deactivating swaps.
    [  811.349800] systemd-shutdown[1]: All swaps deactivated.
    [  811.355778] systemd-shutdown[1]: Detaching loop devices.
    [  811.368326] systemd-shutdown[1]: All loop devices detached.
    [  811.373980] systemd-shutdown[1]: Stopping MD devices.
    [  811.380166] systemd-shutdown[1]: All MD devices stopped.
    [  811.385746] systemd-shutdown[1]: Detaching DM devices.
    [  811.391519] systemd-shutdown[1]: All DM devices detached.
    [  811.397096] systemd-shutdown[1]: All filesystems, swaps, loop devices, MD devices and DM devices detached.
    [  811.412831] systemd-shutdown[1]: Syncing filesystems and block devices.
    [  811.421960] systemd-shutdown[1]: Rebooting.
    [  811.472747] reboot: Restarting system
    
    U-Boot SPL 2023.04-00001-ga6b09c3a4c-dirty (Aug 29 2024 - 13:43:18 -0500)
    Trying to boot from NAND
    
    
    U-Boot 2023.04-00001-ga6b09c3a4c-dirty (Aug 29 2024 - 13:43:18 -0500)
    
    CPU  : AM335X-GP rev 2.1
    Model: TI AM335x EVM
    DRAM:  1 GiB
    Core:  156 devices, 17 uclasses, devicetree: separate
    WDT:   Started wdt@44e35000 with servicing every 1000ms (60s timeout)
    NAND:  256 MiB
    MMC:   OMAP SD/MMC: 0
    Loading Environment from FAT... ** Bad device specification mmc 0 **
    <ethaddr> not set. Validating first E-fuse MAC
    Net:   eth2: ethernet@4a100000, eth3: usb_ether
    Hit any key to stop autoboot:  2  0 
    => run nandboot
    Booting from nand ...
    
    NAND read: device 0 offset 0x80000, size 0x40000
     262144 bytes read: OK
    
    NAND read: device 0 offset 0x300000, size 0x800000
     8388608 bytes read: OK
    Kernel image @ 0x82000000 [ 0x000000 - 0x74b200 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
    Working FDT set to 88000000
       Loading Device Tree to 8ffe4000, end 8ffffd3f ... OK
    Working FDT set to 8ffe4000
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 6.1.46-g1d4b5da681 (oe-user@oe-host) (arm-oe-linux-gnueabi-gcc (GCC) 11.4.0, GNU ld (GNU Binutils) 2.38.20220708) #1 PREEMPT Thu Oct 19 10:19:08 UTC 2023
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt: Machine model: TI AM335x EVM
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 64 MiB at 0xbc000000
    [    0.000000] Zone ranges:
    [    0.000000]   Normal   [mem 0x0000000080000000-0x00000000afdfffff]
    [    0.000000]   HighMem  [mem 0x00000000afe00000-0x00000000bfffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x00000000afdfffff]
    [    0.000000]   node   0: [mem 0x00000000b0000000-0x00000000bfffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000bfffffff]
    [    0.000000] On node 0, zone HighMem: 512 pages in unavailable ranges
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260100
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] Memory: 953484K/1046528K available (11264K kernel code, 1470K rwdata, 3264K rodata, 1024K init, 287K bss, 27508K reserved, 65536K cma-reserved, 196608K highmem)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] trace event string verifier disabled
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu: 	RCU event tracing is enabled.
    [    0.000000] 	Trampoline variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
    [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [    0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
    [    0.000002] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000024] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000475] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
    [    0.002310] Console: colour dummy device 80x30
    [    0.002358] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.002365] This ensures that you still see kernel messages. Please
    [    0.002369] update your kernel commandline.
    [    0.002404] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.090573] CPU: Testing write buffer coherency: ok
    [    0.090655] CPU0: Spectre v2: using BPIALL workaround
    [    0.090664] pid_max: default: 32768 minimum: 301
    [    0.090877] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
    [    0.090900] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
    [    0.092659] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.092677] cblist_init_generic: Setting shift to 0 and lim to 1.
    [    0.092840] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.093003] rcu: Hierarchical SRCU implementation.
    [    0.093010] rcu: 	Max phase no-delay instances is 1000.
    [    0.094827] EFI services will not be available.
    [    0.095518] devtmpfs: initialized
    [    0.111281] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.111566] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.111595] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
    [    0.117129] pinctrl core: initialized pinctrl subsystem
    [    0.118270] DMI not present or invalid.
    [    0.118969] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.121413] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.122637] thermal_sys: Registered thermal governor 'step_wise'
    [    0.122749] cpuidle: using governor menu
    [    0.139614] platform panel: Fixed dependency cycle(s) with /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [    0.140100] No ATAGs?
    [    0.140113] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.142433] Serial: AMBA PL011 UART driver
    [    0.164862] SCSI subsystem initialized
    [    0.171195] usbcore: registered new interface driver usbfs
    [    0.171249] usbcore: registered new interface driver hub
    [    0.171299] usbcore: registered new device driver usb
    [    0.171817] pps_core: LinuxPPS API ver. 1 registered
    [    0.171826] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.171849] PTP clock support registered
    [    0.172006] EDAC MC: Ver: 3.0.0
    [    0.174634] clocksource: Switched to clocksource dmtimer
    [    0.196695] NET: Registered PF_INET protocol family
    [    0.197080] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
    [    0.198977] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.199024] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.199044] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
    [    0.199115] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.199219] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.199371] UDP hash table entries: 512 (order: 1, 8192 bytes, linear)
    [    0.199400] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes, linear)
    [    0.199565] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.200143] RPC: Registered named UNIX socket transport module.
    [    0.200158] RPC: Registered udp transport module.
    [    0.200163] RPC: Registered tcp transport module.
    [    0.200167] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.200180] PCI: CLS 0 bytes, default 64
    [    0.201620] Initialise system trusted keyrings
    [    0.201954] workingset: timestamp_bits=30 max_order=18 bucket_order=0
    [    0.208052] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.215131] NFS: Registering the id_resolver key type
    [    0.215241] Key type id_resolver registered
    [    0.215248] Key type id_legacy registered
    [    0.215359] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.215370] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.215412] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.216012] Key type asymmetric registered
    [    0.216027] Asymmetric key parser 'x509' registered
    [    0.216235] bounce: pool size: 64 pages
    [    0.216358] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [    0.216370] io scheduler mq-deadline registered
    [    0.216377] io scheduler kyber registered
    [    0.314848] Serial: 8250/16550 driver, 5 ports, IRQ sharing enabled
    [    0.317457] STMicroelectronics ASC driver initialized
    [    0.340395] brd: module loaded
    [    0.356587] loop: module loaded
    [    0.362093] CAN device driver interface
    [    0.362523] e1000e: Intel(R) PRO/1000 Network Driver
    [    0.362529] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
    [    0.362613] igb: Intel(R) Gigabit Ethernet Network Driver
    [    0.362621] igb: Copyright (c) 2007-2014 Intel Corporation.
    [    0.363497] pegasus: Pegasus/Pegasus II USB Ethernet driver
    [    0.363553] usbcore: registered new interface driver pegasus
    [    0.363603] usbcore: registered new interface driver asix
    [    0.363638] usbcore: registered new interface driver ax88179_178a
    [    0.363680] usbcore: registered new interface driver cdc_ether
    [    0.363724] usbcore: registered new interface driver smsc75xx
    [    0.363772] usbcore: registered new interface driver smsc95xx
    [    0.363807] usbcore: registered new interface driver net1080
    [    0.363841] usbcore: registered new interface driver cdc_subset
    [    0.363881] usbcore: registered new interface driver zaurus
    [    0.363964] usbcore: registered new interface driver cdc_ncm
    [    0.374860] usbcore: registered new interface driver usb-storage
    [    0.375801] i2c_dev: i2c /dev entries driver
    [    0.378096] cpuidle: enable-method property 'ti,am3352' found operations
    [    0.378770] sdhci: Secure Digital Host Controller Interface driver
    [    0.378782] sdhci: Copyright(c) Pierre Ossman
    [    0.378949] Synopsys Designware Multimedia Card Interface Driver
    [    0.379122] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.379630] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.380069] usbcore: registered new interface driver usbhid
    [    0.380080] usbhid: USB HID core driver
    [    0.382914] NET: Registered PF_INET6 protocol family
    [    0.395958] Segment Routing with IPv6
    [    0.396023] In-situ OAM (IOAM) with IPv6
    [    0.396118] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    0.396912] NET: Registered PF_PACKET protocol family
    [    0.396929] can: controller area network core
    [    0.397014] NET: Registered PF_CAN protocol family
    [    0.397023] can: raw protocol
    [    0.397032] can: broadcast manager protocol
    [    0.397043] can: netlink gateway - max_hops=1
    [    0.397532] Key type dns_resolver registered
    [    0.397697] ThumbEE CPU extension supported.
    [    0.397716] Registering SWP/SWPB emulation handler
    [    0.398269] omap_voltage_late_init: Voltage driver support not added
    [    0.399340] Loading compiled-in X.509 certificates
    [    0.472427] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [    0.487679] ti-sysc: probe of 44e31000.target-module failed with error -16
    [    0.510459] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 18, base_baud = 3000000) is a 8250
    [    0.516342] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    0.528367] ti-sysc: probe of 48040000.target-module failed with error -16
    [    0.552727] gpio gpiochip0: (gpio-0-31): not an immutable chip, please consider fixing it!
    [    0.553132] OMAP GPIO hardware version 0.1
    [    0.580668] gpio gpiochip1: (gpio-32-63): not an immutable chip, please consider fixing it!
    [    0.582755] gpio gpiochip2: (gpio-64-95): not an immutable chip, please consider fixing it!
    [    0.614758] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    0.615968] random: crng init done
    [    0.674653] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    0.688869] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Qualcomm Atheros AR8031/AR8033
    [    0.689261] cpsw-switch 4a100000.switch: initialized cpsw ale version 1.4
    [    0.689276] cpsw-switch 4a100000.switch: ALE Table size 1024
    [    0.689402] cpsw-switch 4a100000.switch: cpts: overflow check period 500 (jiffies)
    [    0.689415] cpsw-switch 4a100000.switch: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec
    [    0.689469] cpsw-switch 4a100000.switch: Detected MACID = d0:39:72:2a:1d:c1
    [    0.690712] cpsw-switch 4a100000.switch: initialized (regs 0x4a100000, pool size 256) hw_ver:0019010C 1.12 (0)
    [    0.712058] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
    [    0.712097] edma 49000000.dma: TI EDMA DMA engine driver
    [    0.738519] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    0.738554] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    0.760969] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.766120] l3-aon-clkctrl:0000:0: failed to disable
    [    0.768161] gpio gpiochip4: (gpio-96-127): not an immutable chip, please consider fixing it!
    [    0.776611] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 37, base_baud = 3000000) is a 8250
    [    2.670733] printk: console [ttyS0] enabled
    [    2.704885] tps65910 0-002d: No interrupt support, no core IRQ
    [    2.733449] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    2.741492] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
    [    2.752478] sdhci-omap 47810000.mmc: supply pbias not found, using dummy regulator
    [    2.761158] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
    [    2.768137] sdhci-omap 48060000.mmc: Got CD GPIO
    [    2.773018] sdhci-omap 47810000.mmc: supply vqmmc not found, using dummy regulator
    [    2.780741] nand: Micron MT29F2G08ABAEAWP
    [    2.784867] sdhci-omap 48060000.mmc: supply pbias not found, using dummy regulator
    [    2.792843] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    2.804878] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    2.810512] 10 fixed-partitions partitions found on MTD device omap2-nand.0
    [    2.817648] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
    [    2.845209] Creating 10 MTD partitions on "omap2-nand.0":
    [    2.850669] 0x000000000000-0x000000020000 : "NAND.SPL"
    [    2.860756] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [    2.867551] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
    [    2.886334] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [    2.905812] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [    2.916838] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
    [    2.924389] 0x0000000c0000-0x0000002c0000 : "NAND.u-boot"
    [    2.932188] 0x0000002c0000-0x0000002e0000 : "NAND.u-boot-env"
    [    2.939454] 0x0000002e0000-0x000000300000 : "NAND.u-boot-env.backup1"
    [    2.947403] 0x000000300000-0x000000b00000 : "NAND.kernel"
    [    2.958163] 0x000000b00000-0x000010000000 : "NAND.file-system"
    [    2.980042] mmc2: SDHCI controller on 47810000.mmc [47810000.mmc] using External DMA
    [    3.097420] ubi0: attaching mtd9
    [    4.296304] ubi0: scanning is finished
    [    4.312587] ubi0: attached mtd9 (name "NAND.file-system", size 245 MiB)
    [    4.319637] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [    4.326824] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [    4.333566] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [    4.340663] ubi0: good PEBs: 1960, bad PEBs: 0, corrupted PEBs: 0
    [    4.346925] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [    4.354184] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1446450016
    [    4.363389] ubi0: available PEBs: 0, total reserved PEBs: 1960, PEBs reserved for bad PEB handling: 40
    [    4.372761] ubi0: background thread "ubi_bgt0d" started, PID 62
    [    4.379635] input: volume-keys as /devices/platform/volume-keys/input/input0
    [    4.391875] UBIFS (ubi0:0): Mounting in unauthenticated mode
    [    4.404729] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 63
    [    4.498322] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [    4.505842] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [    4.515859] UBIFS (ubi0:0): FS size: 241889280 bytes (230 MiB, 1905 LEBs), max 12000 LEBs, journal size 9023488 bytes (8 MiB, 72 LEBs)
    [    4.528024] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [    4.533885] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 894E301A-F020-4405-93DA-FEC3E2FA1B02, small LPT model
    [    4.547092] VFS: Mounted root (ubifs filesystem) on device 0:15.
    [    4.554333] devtmpfs: mounted
    [    4.559627] Freeing unused kernel image (initmem) memory: 1024K
    [    4.566334] Run /sbin/init as init process
    [    4.953504] systemd[1]: System time before build time, advancing clock.
    [    5.043602] systemd[1]: systemd 250.5+ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=hybrid)
    [    5.078094] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2023.04!
    
    [    5.129525] systemd[1]: Hostname set to <am335x-evm>.
    [    5.518490] systemd[64]: /lib/systemd/system-generators/systemd-gpt-auto-generator failed with exit status 1.
    [    6.269207] systemd[1]: /etc/systemd/system/sync-clocks.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
    [    6.415998] systemd[1]: Queued start job for default target Multi-User System.
    [    6.441483] systemd[1]: Created slice Slice /system/getty.
    [  OK  ] Created slice Slice /system/getty.
    [    6.477317] systemd[1]: Created slice Slice /system/modprobe.
    [  OK  ] Created slice Slice /system/modprobe.
    [    6.519808] systemd[1]: Created slice Slice /system/serial-getty.
    [  OK  ] Created slice Slice /system/serial-getty.
    [    6.557917] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    6.597770] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password �ts to Console Directory Watch.
    [    6.646515] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password R�uests to Wall Directory Watch.
    [    6.688634] systemd[1]: Reached target Path Units.
    [  OK  ] Reached target Path Units.
    [    6.725317] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    6.765566] systemd[1]: Reached target Slice Units.
    [  OK  ] Reached target Slice Units.
    [    6.806235] systemd[1]: Reached target Swaps.
    [  OK  ] Reached target Swaps.
    [    6.870170] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    6.906932] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [    6.984135] systemd[1]: Journal Audit Socket was skipped because of a failed condition check (ConditionSecurity=audit).
    [    6.997962] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    7.038552] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    7.078057] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    7.120961] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    7.156140] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    7.198420] systemd[1]: Listening on User Database Manager Socket.
    [  OK  ] Listening on User Database Manager Socket.
    [    7.237523] systemd[1]: Huge Pages File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
    [    7.252275] systemd[1]: POSIX Message Queue File System was skipped because of a failed condition check (ConditionPathExists=/proc/sys/fs/mqueue).
    [    7.295463] systemd[1]: Mounting Kernel Debug File System...
             Mounting Kernel Debug File System...
    [    7.326046] systemd[1]: Mounting Kernel Trace File System...
             Mounting Kernel Trace File System...
    [    7.358921] systemd[1]: Mounting Temporary Directory /tmp...
             Mounting Temporary Directory /tmp...
    [    7.415367] systemd[1]: Create List of Static Device Nodes was skipped because of a failed condition check (ConditionFileNotEmpty=/lib/modules/6.1.46-g1d4b5da681/modules.devname).
    [    7.466680] systemd[1]: Starting Load Kernel Module configfs...
             Starting Load Kernel Module configfs...
    [    7.491677] systemd[1]: Starting Load Kernel Module drm...
             Starting Load Kernel Module drm...
    [    7.566389] systemd[1]: Starting Load Kernel Module fuse...
             Starting Load Kernel Module fuse...
    [    7.585842] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).
    [    7.601185] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
    [    7.614448] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
    [    7.656405] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    7.678625] systemd[1]: Load Kernel Modules was skipped because all trigger condition checks failed.
    [    7.726353] systemd[1]: Starting Generate network units from Kernel command line...
             Starting Generate network �ts from Kernel command line...
    [    7.771766] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems...
    [    7.843346] systemd[1]: Starting Apply Kernel Variables...
             Starting Apply Kernel Variables...
    [    7.938222] systemd[1]: Starting Coldplug All udev Devices...
             Starting Coldplug All udev Devices...
    [    8.002268] systemd[1]: Mounted Kernel Debug File System.
    [  OK  ] Mounted Kernel Debug File System.
    [    8.025362] systemd[1]: Mounted Kernel Trace File System.
    [  OK  ] Mounted Kernel Trace File System.
    [    8.067136] systemd[1]: Mounted Temporary Directory /tmp.
    [  OK  ] Mounted Temporary Directory /tmp.
    [    8.090222] systemd[1]: modprobe@configfs.service: Deactivated successfully.
    [    8.101799] systemd[1]: Finished Load Kernel Module configfs.
    [  OK  ] Finished Load Kernel Module configfs.
    [    8.148920] systemd[1]: modprobe@drm.service: Deactivated successfully.
    [    8.166269] systemd[1]: Finished Load Kernel Module drm.
    [  OK  ] Finished Load Kernel Module drm.
    [    8.197064] systemd[1]: modprobe@fuse.service: Deactivated successfully.
    [    8.225219] systemd[1]: Finished Load Kernel Module fuse.
    [  OK  ] Finished Load Kernel Module fuse.
    [    8.267333] systemd[1]: Finished Generate network units from Kernel command line.
    [  OK  ] Finished Generate network units from Kernel command line.
    [    8.327140] systemd[1]: Finished Remount Root and Kernel File Systems.
    [  OK  ] Finished Remount Root and Kernel File Systems.
    [    8.357560] systemd[1]: Finished Apply Kernel Variables.
    [  OK  ] Finished Apply Kernel Variables.
    [    8.386393] systemd[1]: Started Journal Service.
    [  OK  ] Started Journal Service.
    [  OK  ] Reached target Preparation for Network.
             Mounting Kernel Configuration File System...
             Starting Flush Journal to Persistent Storage...
             Starting Create Static Device Nodes in /dev...
    [    8.646143] systemd-journald[81]: Received client request to flush runtime journal.
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Finished Flush Journal to Persistent Storage.
    [  OK  ] Finished Create Static Device Nodes in /dev.
    [  OK  ] Reached target Preparation for Local File Systems.
             Mounting /media/ram...
             Mounting /var/volatile...
             Starting Rule-based Manage�for Device Events and Files...
    [  OK  ] Mounted /media/ram.
    [  OK  ] Mounted /var/volatile.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Finished Load/Save Random Seed.
    [  OK  ] Finished Create Volatile Files and Directories.
             Starting Network Time Synchronization...
             Starting Record System Boot/Shutdown in UTMP...
    [  OK  ] Started Rule-based Manager for Device Events and Files.
             Starting Network Configuration...
    [  OK  ] Finished Record System Boot/Shutdown in UTMP.
    [  OK  ] Started Network Configuration.
             Starting Network Name Resolution...
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Set.
    [  OK  ] Finished Coldplug All udev Devices.
    [  OK  ] Found device /dev/ttyS0.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timer Units.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Reached target Socket Units.
    [  OK  ] Reached target Basic System.
             Starting D-Bus System Message Bus...
             Starting User Login Management...
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Reached target Network.
    [  OK  ] Reached target Host and Network Name Lookups.
             Starting Permit User Sessions...
    [  OK  ] Started D-Bus System Message Bus.
    [   14.391109] mtdblock: MTD device 'NAND.SPL' is NAND, please consider using UBI block devices instead.
    [   14.421369] mtdblock: MTD device 'NAND.SPL.backup1' is NAND, please consider using UBI block devices instead.
    [   14.470829] mtdblock: MTD device 'NAND.SPL.backup2' is NAND, please consider using UBI block devices instead.
    [   14.505444] mtdblock: MTD device 'NAND.SPL.backup3' is NAND, please consider using UBI block devices instead.
    [   14.566943] pwm-backlight backlight: supply power not found, using dummy regulator
    [   14.676603] platform backlight: deferred probe pending
    [   14.681814] platform panel: deferred probe pending
    [   14.750245] mtdblock: MTD device 'NAND.u-boot-spl-os' is NAND, please consider using UBI block devices instead.
    [   14.836545] mtdblock: MTD device 'NAND.u-boot' is NAND, please consider using UBI block devices instead.
    [   14.849684] mtdblock: MTD device 'NAND.u-boot-env' is NAND, please consider using UBI block devices instead.
    [   14.904281] mtdblock: MTD device 'NAND.u-boot-env.backup1' is NAND, please consider using UBI block devices instead.
    [  OK  ] Finished Permit User Sessions.
    [   15.049077] mtdblock: MTD device 'NAND.kernel' is NAND, please consider using UBI block devices instead.
    [   15.116375] mtdblock: MTD device 'NAND.file-system' is NAND, please consider using UBI block devices instead.
    [   15.415506] cpsw-switch 4a100000.switch: starting ndev. mode: dual_mac
    [   15.617291] Qualcomm Atheros AR8031/AR8033 4a101000.mdio:00: attached PHY driver (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
    [*     ] A start job is running for User Login Management (10s / 1min 36s)
    
    [  OK  ] Started User Login Management.
    [  OK  ] Listening on Load/Save RF �itch Status /dev/rfkill Watch.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Reached target Login Prompts.
    [  OK  ] Reached target Multi-User System.
             Starting Synchronize System and HW clocks...
             Starting Record Runlevel Change in UTMP...
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [  OK  ] Finished Record Runlevel Change in UTMP.
    
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project am335x-evm -
    
    Arago 2023.04 am335x-evm -
    
    am335x-evm login: root
    
    root@am335x-evm:~# cd /etc
    root@am335x-evm:/etc# ls
    X11                   hosts                 os-release            shells
    busybox.links.nosuid  inetd.conf            pam.d                 skel
    busybox.links.suid    issue                 passwd                subgid
    dbus-1                issue.net             profile               subuid
    default               ld.so.cache           profile.d             sysctl.d
    depmod.d              ld.so.conf            protocols             systemd
    environment           login.defs            resolv-conf.systemd   timestamp
    ethertypes            machine-id            resolv.conf           tmpfiles.d
    fstab                 modprobe.d            rpc                   udev
    group                 modules-load.d        securetty             udhcpc.d
    gshadow               motd                  security              version
    host.conf             mtab                  services              version_copy
    hostname              nsswitch.conf         shadow                xdg
    root@am335x-evm:/etc# cat version_copy
    20180309123456
    root@am335x-evm:/etc# 

  • Thank you Hong,

    For reboot command. We are not facing any problem.

    For immediate Hard plug out, we facing this issue.

    If we wait for 1 minute after modification and hard plug out. The modification reflected after the power on.

    For updating in flash, it will take 30 to 60 seconds. 

    Can we reduce this time?

    Thank you 

    -Best

    Madhan

  • Hi Madhan,
    In general sudden power cuts should be avoided, and the system should always be turned off cleanly.
    There are several ways to mitigate effects of a unexpected power failure as noted below.
    These guidelines are UBI/UBIFS maintained by community, and further support is beyond the TI e2e forum.

    1/. Synchronize files using something like "fsync()" - this section contains all information about synchronization. But this does not guarantee that unclean reboots will not corrupt the file. Indeed, if an unclean reboot happens when only half of the data are written, the file will be corrupted/inconsistent. But this lessens the probability of corruptions.
    http://www.linux-mtd.infradead.org/doc/ubifs.html#L_writeback
    http://www.linux-mtd.infradead.org/doc/ubifs.html#L_writebuffer

    2/. If you gave up fixing all your applications, you may mount UBIFS in synchronous mode - use "-o sync" mount option. But this makes UBIFS perform worse. And unfortunately, this also does not save you from all possible corruptions - you may still end up with holes (zeroes) at the end of files. See this section for more information.
    http://www.linux-mtd.infradead.org/doc/ubifs.html#L_sync_semantics

    3/. You may use the well-known atomic file update technique - see this section.
    http://www.linux-mtd.infradead.org/faq/ubifs.html#L_atomic_change

    4/. You may use the Linux write-back knobs to lessen the dirty write-back time-out - see this section.
    http://www.linux-mtd.infradead.org/doc/ubifs.html#L_wb_knobs

    Best,
    -Hong