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.
On this chip, use Infineon S25HS512Tnorflash. The flash capacity allocated to ubifs is 0x2200000 - 0x3fc0000. The root file system uses the ramdisk. Mount ubifs under the ramdisk. The mount is successful, and the read and write are normal. However, when you power down and restart mount ubifs when writing the ubifs data, the CRC check error occurs, and the mount fails. Does ubifs have a power down protection backup LEB? Why does this happen? How can I prevent accidental power failure when writing flash data? the following is the log.
=~=~=~=~=~=~=~=~=~=~=~= MobaXterm log 2022.12.06 16:10:12 =~=~=~=~=~=~=~=~=~=~=~=
root@am62xx-evm:~/nvm/tools# ls
gdb
root@am62xx-evm:~/nvm/tools# cp -./g root@am62xx-evm:~/nvm/tools# cp ./gdb ./ root@am62xx-evm:~/nvm/tools# cp ./gdb ./gdb 1
root@am62xx-evm:~/nvm/tools# ls
gdb gdb1
root@am62xx-evm:~/nvm/tools# sync (掉电)
U-Boot SPL 2021.01 (Nov 25 2022 - 18:38:02 +0800)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.7--v08.04.07 (Jolly Jellyfi')
Trying to boot from SPI
sr1 = 0
write_03reg_ret = 0
ret_reg2 = 0, buf_802 = 0
4nor->read_proto = 10104, nor->write_proto = 10101, nor->read_opcode = 6c, nor->program_opcode = 12, nor->erase_opcode = dc
ret_reg0 = 0, buf[0] = 0
ret_reg1 = 0, buf[1] = 0
ret_reg2 = 0, buf[2] = 0
ret_reg3 = 0, buf[3] = 0
ret_reg4 = 0, buf[4] = 8
ret_reg5 = 0, buf[5] = 8
ret_reg3 = 0, buf[3] = 0
read_dummy = 8, rdsr_dummy = 0
Loading Environment from SPIFlash... OK
Starting ATF on ARM64 core...
NOTICE: BL31: v2.7(release):v2.7.0-dirty
NOTICE: BL31: Built : 16:38:45, Sep 27 2022
U-Boot SPL 2021.01 (Nov 28 2022 - 09:59:09 +0800)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.7--v08.04.07 (Jolly Jellyfi')
Trying to boot from SPI
sr1 = 0
ret_reg2 = 0, buf_802 = 0
U-Boot 2021.01 (Nov 28 2022 - 09:59:09 +0800)
SoC: AM62X SR1.0 GP
Model: Texas Instruments AM625 SK
EEPROM not available at 0x50, trying to read at 0x51
Reading on-board EEPROM at 0x51 failed 1
DRAM: 2 GiB
MMC:
Loading Environment from SPIFlash... sr1 = 0
ret_reg2 = 0, buf_802 = 0
SF: Detected s25hl512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
OK
In: serial@2800000
Out: serial@2800000
Err: serial@2800000
EEPROM not available at 0x50, trying to read at 0x51
Reading on-board EEPROM at 0x51 failed 1
Net: >> get_phy_id:2b0b21
>> Link Status: Up
>> Latched Link Status 1: Down
>> Real Time Link Status: Up
>> Latched Link Status 2: Up
>> Master/Slave: Master
>> Speed: FE/100
eth0: ethernet@8000000port@1
Hit any key to stop autoboot: 2 1 0
sr1 = 0
ret_reg2 = 0, buf_802 = 0
SF: Detected s25hl512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB
device 0 offset 0x400000, size 0x1400000
.SF: 20971520 bytes @ 0x400000 Read: OK
device 0 offset 0x300000, size 0x100000
SF: 1048576 bytes @ 0x300000 Read: OK
device 0 offset 0x1800000, size 0xa00000
SF: 10485760 bytes @ 0x1800000 Read: OK
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 000000008fff4000, end 000000008ffff64f ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.10.140-rt73-g3a997318d8 (root@syu4-VirtualBox) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #2 SMP PREEMPT_RT Fri Nov 4 16:54:05 CST 2022
[ 0.000000] Machine model: Valeo-hpp AM625
[ 0.000000] Memory limited to 200MB
[ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
[ 0.000000] printk: bootconsole [ns16550a0] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created DMA memory pool at 0x000000009c800000, size 3 MiB
[ 0.000000] OF: reserved mem: initialized node ipc-memories@9c800000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x000000009cb00000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node m4f-dma-memory@9cb00000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x000000009cc00000, size 13 MiB
[ 0.000000] OF: reserved mem: initialized node m4f-memory@9cc00000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x000000009d900000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@9d900000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x000000009da00000, size 13 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@9da00000, compatible id shared-dma-pool
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x000000008c7fffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x000000008c7fffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000008c7fffff]
[ 0.000000] On node 0 totalpages: 51200
[ 0.000000] DMA zone: 800 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 51200 pages, LIFO batch:15
[ 0.000000] cma: Failed to reserve 512 MiB
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] psci: SMC Calling Convention v1.2
[ 0.000000] percpu: Embedded 18 pages/cpu s35008 r8192 d30528 u73728
[ 0.000000] pcpu-alloc: s35008 r8192 d30528 u73728 alloc=18*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 50400
[ 0.000000] Kernel command line: mem=200M console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 ramdisk_size=25600 initrd=0x88080000,25M root=/dev/ram0 rw rootfstype=ext4 rootwait
[ 0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 143076K/204800K available (10816K kernel code, 1192K rwdata, 4192K rodata, 1728K init, 437K bss, 61724K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[ 0.000000] rcu: RCU priority boosting: priority 1 delay 500 ms.
[ 0.000000] rcu: RCU_SOFTIRQ processing moved to rcuc kthreads.
[ 0.000000] No expedited grace period (rcu_normal_after_boot).
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 256 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] GICv3: Distributor has no Range Selector support
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001880000
[ 0.000000] ITS [mem 0x01820000-0x0182ffff]
[ 0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
[ 0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
[ 0.000000] ITS@0x0000000001820000: allocated 524288 Devices @80800000 (flat, esz 8, psz 64K, shr 0)
[ 0.000000] ITS: using cache flushing for cmd queue
[ 0.000000] GICv3: using LPI property table @0x0000000080030000
[ 0.000000] GIC: using cache flushing for LPI property table
[ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000080040000
[ 0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
[ 0.000000] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
[ 0.008508] Console: colour dummy device 80x25
[ 0.013109] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
[ 0.023791] pid_max: default: 32768 minimum: 301
[ 0.028593] LSM: Security Framework initializing
[ 0.033364] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.040754] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.050530] rcu: Hierarchical SRCU implementation.
[ 0.055973] Platform MSI: msi-controller@1820000 domain created
[ 0.062286] PCI/MSI: /bus@f0000/interrupt-controller@1800000/msi-controller@1820000 domain created
[ 0.071549] EFI services will not be available.
[ 0.076511] smp: Bringing up secondary CPUs ...
[ 0.081982] Detected VIPT I-cache on CPU1
[ 0.086118] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000
[ 0.093158] GICv3: CPU1: using allocated LPI pending table @0x0000000080050000
[ 0.100598] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.108187] Detected VIPT I-cache on CPU2
[ 0.112314] GICv3: CPU2: found redistributor 2 region 0:0x00000000018c0000
[ 0.119348] GICv3: CPU2: using allocated LPI pending table @0x0000000080060000
[ 0.126771] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.134297] Detected VIPT I-cache on CPU3
[ 0.138420] GICv3: CPU3: found redistributor 3 region 0:0x00000000018e0000
[ 0.145453] GICv3: CPU3: using allocated LPI pending table @0x0000000080070000
[ 0.152870] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.159640] smp: Brought up 1 node, 4 CPUs
[ 0.163846] SMP: Total of 4 processors activated.
[ 0.168665] CPU features: detected: 32-bit EL0 Support
[ 0.173927] CPU features: detected: CRC32 instructions
[ 0.186888] CPU: All CPU(s) started at EL2
[ 0.191096] alternatives: patching kernel code
[ 0.196778] devtmpfs: initialized
[ 0.206629] KASLR disabled due to lack of seed
[ 0.211403] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.221384] futex hash table entries: 1024 (order: 5, 131072 bytes, linear)
[ 0.228878] pinctrl core: initialized pinctrl subsystem
[ 0.234744] DMI not present or invalid.
[ 0.239364] NET: Registered protocol family 16
[ 0.244551] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.251816] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.259762] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.268466] thermal_sys: Registered thermal governor 'step_wise'
[ 0.269123] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.282293] ASID allocator initialised with 65536 entries
[ 0.309796] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.316712] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.323577] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.330442] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.338379] cryptd: max_cpu_qlen set to 1000
[ 0.346000] k3-chipinfo 43000014.chipid: Family:AM62X rev:SR1.0 JTAGID[0x0bb7e02f] Detected
[ 0.355132] vcc_5v0: supplied by bat_p
[ 0.359482] vcc_3v3_sys: supplied by vcc_5v0
[ 0.364390] vcc_1v8: supplied by vcc_3v3_sys
[ 0.369154] vcc_1v1: supplied by vcc_3v3_sys
[ 0.373884] vcc_0v85: supplied by vcc_5v0
[ 0.378944] iommu: Default domain type: Translated
[ 0.384347] SCSI subsystem initialized
[ 0.388531] mc: Linux media interface: v0.10
[ 0.392925] videodev: Linux video capture interface: v2.00
[ 0.398616] pps_core: LinuxPPS API ver. 1 registered
[ 0.403691] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.413041] PTP clock support registered
[ 0.417080] EDAC MC: Ver: 3.0.0
[ 0.421005] omap-mailbox 29000000.mailbox: omap mailbox rev 0x66fc9100
[ 0.428223] FPGA manager framework
[ 0.431808] Advanced Linux Sound Architecture Driver Initialized.
[ 0.439104] clocksource: Switched to clocksource arch_sys_counter
[ 0.445589] VFS: Disk quotas dquot_6.6.0
[ 0.449665] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.463070] NET: Registered protocol family 2
[ 0.467737] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.475889] tcp_listen_portaddr_hash hash table entries: 128 (order: 1, 8192 bytes, linear)
[ 0.484495] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.492456] TCP bind hash table entries: 2048 (order: 4, 114688 bytes, linear)
[ 0.499975] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.506682] UDP hash table entries: 256 (order: 3, 32768 bytes, linear)
[ 0.513503] UDP-Lite hash table entries: 256 (order: 3, 32768 bytes, linear)
[ 0.520943] NET: Registered protocol family 1
[ 0.525959] RPC: Registered named UNIX socket transport module.
[ 0.532049] RPC: Registered udp transport module.
[ 0.536860] RPC: Registered tcp transport module.
[ 0.541668] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.548278] PCI: CLS 0 bytes, default 64
[ 0.552512] Trying to unpack rootfs image as initramfs...
[ 0.558375] rootfs image is not initramfs (no cpio magic); looks like an initrd
[ 0.645650] Freeing initrd memory: 25600K
[ 0.650749] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.663383] Initialise system trusted keyrings
[ 0.668230] workingset: timestamp_bits=46 max_order=16 bucket_order=0
[ 0.679992] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.686726] NFS: Registering the id_resolver key type
[ 0.692029] Key type id_resolver registered
[ 0.696321] Key type id_legacy registered
[ 0.700541] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.707399] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.715245] 9p: Installing v9fs 9p2000 file system support
[ 0.756098] Key type asymmetric registered
[ 0.760319] Asymmetric key parser 'x509' registered
[ 0.765365] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 242)
[ 0.772989] io scheduler mq-deadline registered
[ 0.777623] io scheduler kyber registered
[ 0.783822] pinctrl-single 4084000.pinctrl: 34 pins, size 136
[ 0.790279] pinctrl-single f4000.pinctrl: 171 pins, size 684
[ 0.803855] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[ 0.824948] brd: module loaded
[ 0.837485] loop: module loaded
[ 0.841646] megasas: 07.714.04.00-rc1
[ 0.849441] tun: Universal TUN/TAP device driver, 1.6
[ 0.855228] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 0.861655] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 0.867777] sky2: driver version 1.30
[ 0.872493] VFIO - User Level meta-driver version: 0.3
[ 0.878911] i2c /dev entries driver
[ 0.883547] sdhci: Secure Digital Host Controller Interface driver
[ 0.889884] sdhci: Copyright(c) Pierre Ossman
[ 0.894613] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.901691] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 0.909659] remoteproc remoteproc0: releasing 5000000.m4fss
[ 0.915708] optee: probing for conduit method.
[ 0.920305] optee: revision 3.18 (8e155bae)
[ 0.920595] optee: dynamic shared memory is enabled
[ 0.930135] optee: initialized driver
[ 0.935770] NET: Registered protocol family 17
[ 0.940516] 9pnet: Installing 9P2000 support
[ 0.944995] Key type dns_resolver registered
[ 0.949783] printk: bootconsole [ns16550a0]: printing thread started
[ 0.949853] Loading compiled-in X.509 certificates
[ 0.959014] ti-sci 44043000.system-controller: ti,ctx-memory-region is required for suspend but not provided.
[ 0.959034] ti-sci 44043000.system-controller: ti_sci_init_suspend failed, mem suspend will be non-functional.
[ 0.959041] ti-sci 44043000.system-controller: ABI: 3.1 (firmware rev 0x0008 '8.4.7--v08.04.07 (Jolly Jellyfi')
[ 0.988266] platform 78000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
[ 0.988423] platform 78000000.r5f: configured R5F for IPC-only mode
[ r¢platform 78000000.r5f: assigned reserved memory node r5f-dma-memory@9d900000
[ 0.988589] remoteproc remoteproc0: 78000000.r5f is available
[ 1.020139] printk: console [ttyS2]: printing thread started
[ 0.988700] remoteproc remoteproc0: attaching to 78000000.r5f
[ 1.020158] printk: console [ttyS2] enabled
[ 1.020162] printk: bootconsole [ns16550a0] disabled
[ 1.037601] printk: bootconsole [ns16550a0]: printing thread stopped
[ 1.039153] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 20, base_baud = 3000000) is a 8250
[ 1.040400] 2820000.serial: ttyS4 at MMIO 0x2820000 (irq = 21, base_baud = 3000000) is a 8250
[ 1.043950] spi-nor spi0.0: s25hl512t (65536 Kbytes)
[ 1.043975] ret_reg_0 = 0, buf = 0
[ 1.043985] ret_reg_1 = 0, buf = 0
[ 1.043994] ret_reg_2 = 0, buf = 0
[ 1.044002] ret_reg_3 = 0, buf = 0
[ 1.044011] ret_reg_4 = 0, buf = 8
[ 1.044019] ret_reg_5 = 0, buf = 8
[ 1.044075] 10 fixed-partitions partitions found on MTD device fc40000.spi.0
[ 1.044080] Creating 10 MTD partitions on "fc40000.spi.0":
[ 1.044086] 0x000000000000-0x000000080000 : "ospi.tiboot3"
[ 1.045558] 0x000000080000-0x000000180000 : "ospi.tispl"
[ 1.046823] 0x000000180000-0x000000280000 : "ospi.u-boot"
[ 1.048161] 0x000000280000-0x0000002c0000 : "ospi.env"
[ 1.049396] 0x0000002c0000-0x000000300000 : "ospi.env.backup"
[ 1.050615] 0x000000300000-0x000000400000 : "ospi.dtb"
[ 1.051990] 0x000000400000-0x000001800000 : "ospi.kernel"
[ 1.053239] 0x000001800000-0x000002200000 : "ospi.rootfs"
[ 1.054517] 0x000002200000-0x000003fc0000 : "ospi.nvm"
[ 1.055838] 0x000003fc0000-0x000004000000 : "ospi.phypattern"
[ 1.065314] davinci_mdio 8000f00.mdio: Configuring MDIO in manual mode
[ 1.103137] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[ 1.104207] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver MARVELL_88q2220M
[ 1.104324] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 2 quirks:00000002
[ 1.104450] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
[ 1.104457] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
[ 1.105339] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:0
[ 1.108525] rtc-ti-k3 2b1f0000.rtc: registered as rtc0
[ 1.108575] rtc-ti-k3 2b1f0000.rtc: setting system clock to 1970-01-01T00:00:04 UTC (4)
[ 1.220309] vgnss_en: supplied by vcc_3v3_sys
[ 1.220744] [iam20685] initialize chip
[ 1.220815] [iam20685] chip reset type=2
[ 1.427436] [iam20685] fixed value: 0xaa55, whoami: 0xf2
[ 1.431314] [iam20685] initialization tried 1 times, return 0
[ 1.431319] [iam20685] initialize input devices
[ 1.431477] input: iam20685-accel as /devices/virtual/input/iam20685-accel
1.431682] iam20685 spi4.0: iam20685 senosr iam20685-accel input registered successfully
[ 1.431793] input: iam20685-gyro as /devices/virtual/input/iam20685-gyro
[ 1.431878] iam20685 spi4.0: iam20685 senosr iam20685-gyro input registered successfully
[ 1.431974] input: iam20685-temp as /devices/virtual/input/iam20685-temp
[ 1.432070] iam20685 spi4.0: iam20685 senosr iam20685-temp input registered successfully
[ 1.432075] [iam20685] generate sysfs
[ 1.432294] [iam20685] setup timer
[ 1.432319] [iam20685] setup irq
[ 1.432621] [iam20685] initialize settings
[ 1.432626] [iam20685] version 1.0.1-test1, ready to go
[ 1.435728] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
[ 1.442187] ALSA device list:
[ 1.442200] No soundcards found.
[ 1.476710] RAMDISK: gzip image found at block 0
[ 1.924492] EXT4-fs (ram0): mounted filesystem without journal. Opts: (null)
[ 1.924608] VFS: Mounted root (ext4 filesystem) on device 1:0.
[ 1.925042] devtmpfs: mounted
[ 1.926441] Freeing unused kernel memory: 1728K
[ 1.943209] Run /sbin/init as init process
INIT: version 2.96 booting
[ 2.065710] EXT4-fs (ram0): re-mounted. Opts: (null)
Wed Nov 2 17:56:13 UTC 2022
[ 2.402270] random: dd: uninitialized urandom read (512 bytes read)
Configuring packages on first boot....
(This may take several minutes. Please do not power off the machine.)
Running postinst /etc/ipk-postinsts/000-sysvinit-inittab...
update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
Removing any system startup links for run-postin INIT: Entering runlevel: 5
Configuring network interfaces... [ 2.540315] am65-cpsw-nuss 8000000.ethernet: down msc_sl e0000000 tmo 0
[ 2.572341] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
[ 2.575575] am65-cpsw-nuss 8000000.ethernet eth0: configuring for fixed/rgmii-rxid link mode
[ 2.575673] am65-cpsw-nuss 8000000.ethernet eth0: Link is Up - 100Mbps/Half - flow control off
udhcpc: started, v1.31.1
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: no lease, forking to background
done.
Start m4fss firmware.
[ 11.751226] remoteproc remoteproc1: powering up 5000000.m4fss
[ 11.753385] remoteproc remoteproc1: Booting fw image am62-mcu-m4f0_0-fw, size 400052
[ 11.754571] remoteproc1#vdev0buffer: assigned reserved memory node m4f-dma-memory@9cb00000
[ 11.755069] virtio_rpmsg_bus virtio1: rpmsg host is online
[ 11.755979] remoteproc1#vdev0buffer: registered virtio1 (type 7)
[ 11.755995] remoteproc remoteproc1: remote processor 5000000.m4fss is now up
[ 11.757717] virtio_rpmsg_bus virtio1: creating channel ti.ipc4.ping-pong addr 0xd
[ 11.757923] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0xe
Starting to mount ubifs on /home/root/nvm, please wait ......
[ 11.768630] ubi0: attaching mtd8
UBI device number 0, total 119 LEBs (31134208 bytes, 29.6 MiB), [ 11.777093] ubi0: scanning is finished
available 0 LEBs (0 bytes), LEB size 261632 bytes (255.5 KiB)
[ 11.782669] ubi0: attached mtd8 (name "ospi.nvm", size 29 MiB)
[ 11.782686] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 261632 bytes
[ 11.782692] ubi0: min./max. I/O unit sizes: 256/256, sub-page size 256
[ 11.782697] ubi0: VID header offset: 256 (aligned 256), data offset: 512
[ 11.782742] ubi0: good PEBs: 119, bad PEBs: 0, corrupted PEBs: 0
[ 11.782747] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 11.782752] ubi0: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 1580982903
[ 11.782758] ubi0: available PEBs: 0, total reserved PEBs: 119, PEBs reserved for bad PEB handling: 0
[ 11.782773] ubi0: background thread "ubi_bgt0d" started, PID 357
[ 11.791803] UBIFS (ubi0:0): Mounting in unauthenticated mode
[ 11.792025] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 360
[ 11.846960] UBIFS (ubi0:0): recovery needed
[ 13.298714] UBIFS error (ubi0:0 pid 359): ubifs_check_node: bad CRC: calculated 0x7a261a35, read 0xdbd3297e
[ 13.298768] UBIFS error (ubi0:0 pid 359): ubifs_check_node: bad node at LEB 114:59432
[ 13.298780] magic 0x6101831
[ 13.298782] crc 0xdbd3297e
[ 13.298786] node_type 1 (data node)
mount: mounting /dev/ubi0_0 on /home/root/nvm failed: Structure [ 13.298790] group_type 0 (no node group)
needs cleaning [ 13.298793] sqnum 2032
[ 13.298796] len 3489
[ 13.298803] key (69, data, 19)
[ 13.298805] size 4096
[ 13.298808] compr_typ 1
[ 13.298809] data size 3441
[ 13.298811] data:
[ 13.298817] 00000000: 00 aa f3 13 04 a9 b3 b4 ff 97 41 01 80 92 e1 ff e7 f2 1f 00 01 eb c8 04 00 54 e2 03 00 aa e1 03
[ 13.298824] 00000020: 14 aa e0 03 01 91 03 78 0e 94 f4 c3 00 91 f4 13 00 f9 e1 03 00 aa 02 04 41 f8 5f 00 00 eb 20 03
[ 13.298828] 00000040: 00 54 23 08 40 f9 e2 13 00 f9 e3 1b 00 f9 22 04 40 f9 e2 17 00 f9 20 7c 00 a9 e0 23 40 f9 3f 40
[ 13.298833] 00000060: 00 39 1f 00 13 eb 80 00 00 54 e1 2b 40 f9 21 04 00 91 60 61 0e 94 e0 13 40 f9 e2 34 04 94 e0 13
[ 13.298838] 00000080: 40 f9 1f 00 14 eb 80 00 00 54 e1 1b 40 f9 21 04 00 91 58 61 0e 94 f3 53 41 a9 fd 7b c6 a8 c0 03
[ 13.298843] 000000a0: 5f d6 22 0c 41 a9 e2 0f 03 a9 e9 ff ff 17 00 22 00 f0 00 60 0a 91 9f b6 ff 97 f3 03 00 aa 6c 13
[ 13.298848] 000000c0: 00 03 a8 70 0e 94 e0 03 13 aa 86 d3 0e 94 f3 03 00 aa e0 83 00 91 a3 cc 02 00 16 81 d3 0e 94 fd
================================================================[ 13.298852] 000000e0: 7b bc a9 fd 03 00 91 f3 53 01 a9 f4 03 01 aa f5 5b 02 a9 f5 03 00 aa 8e 35 07 94 80 03 00 b4 01
==========================================
===================[ 13.298857] 00000100: 08 40 a9 7c 06 00 57 f7 63 03 a9 40 24 40 f9 38 14 40 f9 56 90 40 f9 e2 a8 05 94 01 36 00 d0 e2
===========IMPORTANT NOTICE=====================================[ 13.298861] 00000120: 03 00 2a 60 06 40 f9 21 c4 43 f9 d7 da 62 f8 08 31 07 94 00 01 00 b4 61 02 40 f9 00 00 40 f9 22
=======================
======================================[ 13.298866] 00000140: 0c 40 b9 16 78 62 f8 76 00 00 b4 c7 02 40 b9 87 01 00 35 f7 63 43 a9 00 00 80 52 f3 53 41 a9 f5
[ 13.298871] 00000160: 5b 42 a9 fd 7b c4 a8 c0 03 5f d6 00 00 80 52 f3 2d 4c 00 00 00 2d b5 02 18 cb e2 03 07 2a b5 02
================================================================[ 13.298876] 00000180: 17 cb 06 00 80 52 02 02 00 34 45 7c 01 53 a4 00 06 0b ff 00 04 6b a9 06 00 54 83 7c 7c d3 c3 02
[ 13.298880] 000001a0: 03 8b 60 04 40 f9 bf 02 00 eb a9 00 00 54 42 04 00 51 86 04 00 11 42 00 05 4b f3 ff ff 17 e2 03
[ 13.298885] 000001c0: 05 2a f1 ff ff 17 ff 00 06 6b 69 02 00 54 d7 7c 7c d3 d7 02 17 8b e0 06 40 f9 bf 02 00 eb c1 01
[ 13.298889] 000001e0: 00 54 54 01 00 b4 62 06 40 f9 36 14 40 f9 40 24 40 f9 b5 02 16 8b 53 90 40 f9 a7 a8 05 94 60 da
[ 13.298894] 00000200: 60 f8 15 00 15 8b 95 02 00 f9 e0 42 40 39 f7 63 43 a9 d0 ff ff 17 a6 f9 ff 34 c6 04 00 51 df 00
[ 13.298898] 00000220: 07 6b c2 03 00 54 f5 03 06 2a 94 01 00 b4 63 06 40 f9 c2 12 15 8b 38 14 40 f9 60 24 40 f9 77 90
[ 13.298903] 00000240: 40 f9 53 04 40 f9 94 a8 05 94 e0 da 60 f8 73 02 18 8b 00 00 13 8b 80 02 00 f9 c6 12 15 8b f7 63
====
1).
Flash media is mounted on /home/root/nvm, all t[ 13.298908] 00000260: 43 a9 c0 40 40 39 bb ff ff 17 e0 21 00 f0 00 a0 25 91 d1 0f 0f 94 e2 03 00 aa a4 2b 00 b0 03 22
he other folders are associated with RAM only, please
stor[ 13.298912] 00000280: 00 f0 00 22 00 d0 84 e0 05 91 63 c0 0a 91 00 40 27 91 21 2d 80 52 c0 b0 03 94 e0 21 00 f0 00 a0
e your stuffs only into this directory if you don't want them to[ 13.298917] 000002a0: 25 91 c5 0f 0f 94 e2 03 00 aa a4 2b 00 b0 03 22 00 f0 00 22 2c bc 00 08 a1 2f 80 52 b4 b0 03 94
be lost after power off.
2).
Please do NOT cut the powe[ 13.298922] 000002c0: fd 7b bd 27 cc 07 00 02 f3 03 01 aa 23 b4 05 94 e3 a3 00 91 f4 03 00 2a e2 83 00 91 7c 45 0e 04
r off when the ubifs is running, otherwise, you may lose all the[ 13.298926] 000002e0: 00 80 d2 01 00 80 d2 1c cf 02 94 a0 00 00 35 00 cc 33 0d fd 7b c3 a8 c0 03 5f d6 81 00 80 52 e2
data
in the flash because the ubifs may not be able to go[ 13.298931] 00000300: 03 14 2a 6c 05 01 a0 ec 03 94 7c 5e 00 2a 00 7c 1c 53 1f 3c 00 71 a0 fe ff 54 02 e2 9f 52 20 5c
up successfully any more after you power up
due to data c[ 13.298936] 00000320: 1c 12 e2 25 a0 72 1f 00 02 6b 02 00 9e 52 02 34 a0 72 04 10 42 7a 01 04 00 54 e0 13 40 f9 00 10
orruption.
Please run the following command before you cut[ 13.298940] 00000340: 00 91 1f 00 13 eb 28 fd ff 54 fc 09 02 60 12 00 d1 8c 2d 3c 01 01 20 fc ff 54 7d 07 20 7c 3f 00
the power off:
shutdown -h 0
then wait u[ 13.298946] 00000360: 09 be a1 72 42 00 01 0a 42 34 50 51 42 78 09 12 62 fb ff 34 02 00 9a 52 23 5c 1c 12 7c 0b 00 2e
ntil you see that the ubi thread is stoped, then you could cut t[ 13.298950] 00000380: 7f 00 02 6b c0 fa ff 54 21 2c 10 12 a2 17 a1 52 3f 00 02 6b a2 93 a0 52 24 10 42 7a e1 f9 ff 54
he power off safely.
==================================[ 13.298955] 000003a0: cf ff ff 17 22 2c 10 12 a0 17 a1 52 5f 00 00 6b 41 f9 ff 54 3f 04 72 f2 81 fb ff 54 c7 ff ff 17
================================================================[ 13.298959] 000003c0: fc 61 7c 60 01 55 04 40 f9 7c 62 00 26 f3 03 02 aa a2 02 40 39 5f 90 00 71 61 17 00 54 a2 06 40
=========
====================================================[ 13.298964] 000003e0: 39 f6 03 01 aa 20 0c 80 52 41 78 1b 12 3f 90 01 71 44 10 40 7a c1 03 00 54 14 36 00 d0 94 22 1d
=======================================================
Sta[ 13.298968] 00000400: 91 e0 03 16 aa 6c 66 09 81 22 40 f9 43 30 07 94 40 07 00 b4 7c 61 00 1e 61 12 40 f9 74 0a 40 f9
rt dropbear as ssh server to support ssh & scp.
Starting sysl[ 13.298973] 00000420: 21 0c 40 b9 b6 06 40 39 17 0c 01 8b 13 78 61 f8 73 02 00 b4 60 02 40 b9 40 03 00 35 61 06 40 b9
ogd/klogd: done
Start hppd
[ 13.298977] 00000440: 1f 00 01 6b c0 01 00 54 7c 00 0d 62 15 00 54 01 7c 7c d3 00 04 00 11 61 02 01 8b 7c 67 0a 60 02
[ 13.298982] 00000460: 00 b9 34 04 00 f9 36 40 00 39 f3 2d cc 0c 01 21 00 80 52 7c 32 08 03 02 80 d2 02 01 80 d2 0b d0
[ 13.298987] 00000480: 03 8c 7f 00 37 00 04 40 29 f3 02 00 f9 eb ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 13.298992] 000004a0: ff ff ff ff ff ff ff ff 2a 15 00 80 52 1f 20 03 d5 01 0b 00 34 24 7c 01 53 83 00 15 0b 1f 00 03
[ 13.298996] 000004c0: 6b 29 0e 00 54 62 7c 7c d3 62 02 02 8b 42 8c 06 0e 02 eb 69 07 00 54 21 04 00 51 75 04 00 11 21
[ 13.299001] 000004e0: 00 04 9c 6c 00 08 d8 82 01 91 00 8f 41 a9 61 00 00 cb 3f 1c 00 f1 29 07 00 54 17 0b 40 f9 00 20
[ 13.299005] 00000500: 6c 3d 09 17 eb c0 07 00 54 01 1b 40 f9 02 07 7c 83 00 10 01 8b 00 00 21 8a 00 0f 00 f9 01 00 02
[ 13.299010] 00000520: cb 62 00 02 cb 3f 00 02 eb 69 00 00 54 e0 03 03 aa 03 0f 00 f9 7c 27 09 00 0b 00 f9 ff 02 00 f9
[ 13.299014] 00000540: e2 03 17 aa 7c 2a 00 06 eb 2f 07 94 c1 26 40 f9 00 8b 41 a9 34 a0 40 b9 94 f2 7d d3 41 00 00 cb
[ 13.299020] 00000560: 7c 18 00 12 08 03 00 54 03 00 14 8b 00 0b 40 f9 7f 00 00 eb c0 03 00 54 04 1b 40 f9 01 07 40 f9
[ 13.299024] 00000580: 63 00 04 8b 63 00 24 8a 7c 0a 08 64 00 01 cb 41 00 01 cb 9f 00 01 9c 0d 07 e3 03 02 aa 02 0f 00
[ 13.299029] 000005a0: f9 03 0b 7c 0c 00 0c 14 aa 01 00 80 52 29 b3 ff 97 e0 02 00 f9 93 ff ff 17 e1 03 04 2a bb ff ff
[ 13.299033] 000005c0: 17 e0 03 18 aa 7c be 01 e6 0c 0e 94 7d 0f e5 cc 02 02 01 01 80 d2 e1 6c 02 01 8f 41 a9 c4 7c 2b
[ 13.299038] 000005e0: 09 43 41 39 21 00 1f 32 01 43 01 39 e0 2d 3c 00 01 c0 ff ff 17 ec 3c 00 0a 40 02 00 54 bf 02 00
[ 13.299042] 00000600: 6b 02 90 41 7a a2 07 00 54 b7 7e 7c d3 02 00 15 4b e1 22 00 91 fc 3d 6c 3d 0d 73 02 17 8b 42 ec
[ 13.299047] 00000620: 7c d3 20 40 00 91 f7 b2 ff 97 6c 40 0a 74 06 00 f9 76 42 00 39 80 ff ff 17 21 2d ce 07 8e cf 2c
[ 13.299051] 00000640: cd 07 e7 7c 14 dc 8a 01 bb 0e 0f 94 7c d7 37 9c 10 05 36 84 52 aa af 03 94 e0 dc 05 7c 58 05 ae
[ 13.299056] 00000660: 0e 0f 94 04 22 00 f0 7c 06 0c 03 22 00 f0 00 22 00 d0 84 c0 0c 91 63 00 0d 8c 91 02 c1 32 84 52
[ 13.299061] 00000680: 9d 29 cd 00 a2 cc 0c 01 e4 21 00 f0 27 bc 00 03 80 38 91 63 c0 10 9c 05 02 81 37 84 52 91 29 bd
[ 13.299066] 000006a0: 00 96 dc 05 6c 0c 27 bc 00 03 00 0e 91 63 40 0e 9c 05 03 e1 36 84 52 85 af 28 ec 12 7c 73 09 d6
_____ _____ _ _ [ 13.299070] 000006c0: 36 00 b0 f5 03 01 aa c0 f2 4e b9 fc 74 00 16 54 a8 40 b9 42 7c 40 f9 94 02 02 8b e0 02 00 35 60
[ 13.299075] 000006e0: ae 40 b9 60 01 00 35 82 f6 7e 92 e0 03 15 aa e1 01 80 52 27 de 07 94 6c 89 6c cf 01 60 8e 00 b9
[ 13.299079] 00000700: 7c 67 ff 9a 82 fa 7f 27 9e 00 1d de 38 9c 00 01 32 c4 09 94 7c 79 0d e2 03 14 aa 01 22 00 f0 21
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ [ 13.299084] 00000720: 00 13 91 e6 28 0a 94 6c 11 02 60 fc ff 34 2a 2e 7c 00 06 20 08 91 de 28 0a 94 dc ff 6d 8c bd 2b
[ 13.308893] 00000740: fc 15 01 f4 03 02 2a 7c 19 04 c1 b2 05 94 f5 03 00 8c aa 0a bf 1b 07 94 40 01 00 b4 04 34 c0 79
[ 13.308901] 00000760: 03 7c 6d 00 0e 04 00 31 40 08 00 54 21 90 40 f9 21 d8 64 f8 63 00 01 8b 7f 00 13 eb 20 03 00 54
[ 13.308906] 00000780: f4 00 00 34 13 bd 3f 2a 6c 19 7c 1a fc 19 bd aa 15 8c 0a 08 5a eb 03 94 e1 41 81 d2 01 7c bc 23
| | _| .'| . | . | | __| _| . | | | -_| _| _|[ 13.308911] 000007a0: 1c 23 05 61 fe ff 54 60 12 00 91 ed 04 52 7c 03 02 03 9e d2 01 48 bc 03 01 f3 17 9f 1a 6c 85 05
[ 13.308915] 000007c0: 16 00 40 f9 f6 fc ff b4 6c 6f 8c 1d 00 01 40 14 91 9a 5d 0e 94 1f 00 00 f1 c2 0a 00 91 56 10 96
[ 13.308920] 000007e0: 9a 7c 02 00 06 e0 03 16 aa 21 80 14 91 82 01 80 d2 33 00 80 52 3a a2 0f 94 60 fb ff 34 27 6c 00
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| [ 13.308924] 00000800: 0a c0 14 91 62 01 80 d2 34 a2 0f 94 a0 fa 29 5c 00 0c 00 15 91 c2 01 80 d2 2e a2 0f 94 e0 f9 ff
[ 13.308929] 00000820: 34 7c 08 6c 06 08 e2 01 80 d2 21 40 15 91 28 a2 0f 6d 0d 71 7c 11 6d b4 00 7c 4f 01 c0 13 91 09
[ 13.308933] 00000840: cc 46 01 01 44 80 52 7c 51 03 00 40 27 91 fc ae 6d 44 a5 27 7c 05 01 f4 03 03 aa 22 fc 22 7c 2b
|___| |___| [ 13.308938] 00000860: 6c 45 01 16 00 80 52 7c 59 00 02 f9 6b 04 a9 fb 73 05 a9 fb 03 02 aa 44 b2 05 94 e0 8b 00 b9 6c
[ 13.308943] 00000880: a6 02 60 b2 05 94 fa 6f 30 c3 02 91 7c df 00 0a 17 d0 36 8b e0 03 16 2a d6 06 00 11 cd 89 07 94
[ 13.308948] 000008a0: e0 06 00 a9 df 42 00 71 01 ff ff 54 7c 05 03 38 b5 05 94 a1 01 6c e1 00 01 00 2a e0 63 02 91 98
[ 13.308952] 000008c0: 8a 07 94 bf 02 1b eb 42 0e 00 54 19 7c e7 04 80 96 52 e2 03 1a 2a 6c 4f 00 12 41 00 80 52 f9 ea
[ 13.308957] 000008e0: 03 94 18 18 17 12 f7 03 00 aa 16 3c 00 12 1f 03 1c 6b 60 19 00 54 c0 22 19 12 01 10 96 52 7c bd
[ 13.308961] 00000900: 00 46 20 0b 00 54 1f 2c 40 71 00 80 97 52 04 13 40 7a a0 d7 88 52 c4 12 40 7a 41 06 00 54 00 36
Arago Project http://arago-project.org am62xx-evm /dev/ttyS2[ 13.308966] 00000920: 00 d0 00 90 47 b9 00 0c 00 35 3f 03 00 f1 39 13 95 9a 34 03 00 b4 e0 07 56 a9 a2 01 80 52 44 8a
[ 13.308970] 00000940: 07 94 e0 03 00 34 e0 b7 40 f9 61 01 80 52 e0 03 00 4b 80 06 01 29 15 00 80 d2 7c ba 09 e3 43 02
[ 13.308975] 00000960: 91 e2 03 15 2a e1 03 13 aa 7c 15 00 12 50 8b 07 94 1f 1c 00 72 a0 00 00 54 81 0a 40 f9 a0 ee 7c
[ 13.308979] 00000980: d3 e2 4b 40 f9 22 68 20 f8 b5 06 00 91 bf 42 00 f1 7c 44 6e 05 7d 8a 6e 0b 19 aa ec 4c 6c 90 08
[ 13.308984] 000009a0: f9 6b 44 a9 fb 73 45 a9 fd 7b db 23 5c 20 01 e0 07 52 a9 7c 10 0a 22 8a 07 94 60 08 00 34 e0 97
[ 13.308988] 000009c0: 40 f9 e1 8d 53 00 9c 10 05 de ff ff 17 c0 12 15 12 6c cd 00 18 e1 6b 00 b9 00 00 95 52 3f 00 00
[ 13.308993] 000009e0: 6b 20 15 00 54 00 80 83 52 1f 03 00 6b 40 07 00 54 e0 6b 40 b9 1f 0c 40 71 60 08 00 54 00 00 bc
[ 13.308997] 00000a00: 02 09 80 09 00 54 c0 1e 18 12 01 80 88 52 7c 24 03 80 14 00 54 01 c0 ad 01 a1 6c 03 00 2a 7e 04
[ 13.309002] 00000a20: 53 c2 0a 00 12 00 00 1d 12 c1 1a 43 d3 00 00 02 2a e2 c3 02 91 41 10 01 8b 40 d0 20 8b 22 0c 40
Arago 2021.09 am62xx-evm /dev/ttyS2[ 13.309006] 00000a40: a9 02 0c 00 a9 07 00 00 14 e0 07 58 a9 d6 1a 7e d3 e2 03 16 cb f6 4b 00 f9 77 6c 3b 00 01 07 18
[ 13.309012] 00000a60: a9 b5 0a 00 91 7f 03 15 eb 68 f2 ff 54 a5 ff ff 17 7c 2d 01 f9 03 15 aa 6c 2e 01 c0 f4 ff 34 6c
[ 13.309016] 00000a80: 3a 7f 28 32 c3 09 8c a8 01 e1 03 15 aa 7c 40 04 56 00 40 f9 dd 2f 0a 8c 02 6c 57 6c 58 06 21 80
[ 13.309021] 00000aa0: 15 91 e1 27 0a 94 96 6f af c7 40 f9 7c 44 fd 31 9c 7c 20 04 16 43 d3 e1 c3 02 91 7c 25 00 06 00
[ 13.309025] 00000ac0: ec 7c d3 e0 3b 00 f9 20 00 00 8b 00 04 40 a9 d2 89 07 94 00 10 00 35 fc 20 04 a1 02 00 54 c0 2a
[ 13.309029] 00000ae0: 48 37 bc 00 05 c6 89 07 94 60 12 00 35 ec 25 06 e1 01 00 54 d8 22 46 d3 e0 dc 0b 04 18 ef 7c d3
[ 13.309034] 00000b00: 00 00 18 8c 0b 03 bb 89 07 94 80 0e cc 0b 02 24 40 71 a0 12 dc 2d 02 18 40 71 00 15 ac 01 00 05
[ 13.309039] 00000b20: 01 00 9d 52 00 1c 40 51 1f 00 01 6a a0 10 00 54 e1 6b 40 b9 00 00 99 27 ac 06 bd 01 93 9c 01 04
[ 13.309043] 00000b40: 60 f6 ff 54 00 00 8d 8c 01 05 40 16 00 54 c1 26 1a 72 6c 39 04 24 10 40 7a 80 f5 ff ac 39 02 08
[ 13.309048] 00000b60: 40 71 a0 15 fd 08 89 8c 05 0d c1 13 00 54 e2 8b 40 b9 a0 12 00 91 00 08 37 8b 7c 90 01 0d ea 03
[ 13.309053] 00000b80: 94 6c 22 00 0a d6 2a 48 d3 e0 03 00 2a 36 10 16 8b eb 88 07 94 c0 06 00 a9 99 ff ff 17 e2 0f 58
[ 13.309058] 00000ba0: a9 6c 51 07 e1 03 02 aa e2 03 03 aa e8 89 bc 57 07 41 e7 ff 54 c0 66 1a 53 d6 1e 7c 3f 00 1c 12
[ 13.309062] 00000bc0: 12 d7 01 80 52 16 00 16 2a 04 00 00 14 f7 06 00 51 ff 06 00 31 20 f1 ff 54 c0 2a d7 1a 80 ff 07
[ 13.309067] 00000be0: 36 e0 07 58 a9 62 00 80 92 f9 88 07 94 6c 44 09 e0 07 18 a9 43 d0 37 8b e2 03 01 aa 22 2c 2b 6c
[ 13.309071] 00000c00: 0c 0a 64 14 40 a9 83 00 80 d2 0b 8a 07 94 ef 6c 38 00 02 07 58 a9 c3 2a 48 d3 e4 c3 02 91 c2 1e
[ 13.309076] 00000c20: 7e d3 96 10 03 8b e9 cd 13 72 7d 39 1a bc 39 03 f8 03 00 aa 20 10 bc 38 01 5c 89 07 94 7c 46 05
[ 13.309080] 00000c40: c0 7e 07 53 c1 0a 00 12 6c 0d 01 16 00 1d 53 7c 32 00 03 d6 02 01 2a 58 d0 38 8b 16 d0 36 8b 02
[ 13.309085] 00000c60: 0f 40 a9 c0 06 40 a9 b8 dc 09 05 5e ff ff 17 e1 3b 40 f9 7c 04 09 f7 0a 7c d3 c2 22 46 d3 00 00
[ 13.309090] 00000c80: 01 8b 6f 23 37 00 17 9e 38 ca 88 bd 91 53 6c 0f cc 49 2e 1d 09 3c 7f 0f f0 ff 34 ec 09 03 18 00
am62xx-evm login: [ 13.309094] 00000ca0: 18 8b f6 0a 6c 41 af 09 36 00 16 8c 0f 6d 4e 99 cd 0f 3f 29 ec 01 05 e2 1e 40 92 16 00 01 8b 6d
[ 13.309099] 00000cc0: 13 ae dd 03 37 29 bc 01 6c 57 ed 1d 25 6c 56 01 e6 ff 35 75 cc 25 6c 24 0e d8 2a 48 d3 e2 4b 00
[ 13.309103] 00000ce0: f9 9f 88 07 94 f7 03 01 aa f6 23 df 3c 00 aa e2 22 2c 27 01 63 02 91 78 ff 37 d9 ff 54 6c 1d 05
[ 13.309108] 00000d00: e1 03 16 aa 18 d0 38 8b fc 03 7c 2f 06 04 17 40 a9 aa 89 07 94 19 29 dc 01 05 c2 3e 46 d3 d8 0a
[ 13.309112] 00000d20: 00 12 6f 0f 42 10 7e 8c 0c 6c 18 02 85 88 07 94 e6 7c 04 29 ac 0c 6c 04 6c 03 05 fd 88 07 94 00
[ 13.309117] 00000d40: e1 ff 35 7c b9 09 5a de ff 97 1f 10 00 71 e0 01 00 54 7c 01 00 06 0e df ff 97 20 d5 ff 35 f9 03
[ 13.309121] 00000d60: 15 aa ff fe ff 17 c0 16 43 d3 f0 ff ff 17 11 00 00
[ 13.309139] CPU: 2 PID: 359 Comm: mount Not tainted 5.10.140-rt73-g3a997318d8 #2
[ 13.309147] Hardware name: Valeo-hpp AM625 (DT)
[ 13.309151] Call trace:
[ 13.309153] dump_backtrace+0x0/0x1a0
[ 13.309169] show_stack+0x18/0x68
[ 13.309176] dump_stack+0xd0/0x12c
[ 13.309186] ubifs_check_node+0x1e8/0x2e8
[ 13.309196] ubifs_scan_a_node+0x68/0x1a8
[ 13.309203] ubifs_scan+0x6c/0x2e0
[ 13.309208] ubifs_replay_journal+0x55c/0xfd8
[ 13.309214] ubifs_mount+0x1054/0x1508
[ 13.309221] legacy_get_tree+0x30/0x60
[ 13.309232] vfs_get_tree+0x28/0xf0
[ 13.309240] path_mount+0x3a8/0x950
[ 13.309247] do_mount+0x98/0xb0
[ 13.309253] __arm64_sys_mount+0x114/0x2c8
[ 13.309259] el0_svc_common.constprop.0+0x78/0x1c8
[ 13.309270] do_el0_svc+0x24/0x90
[ 13.309276] el0_svc+0x14/0x20
[ 13.309283] el0_sync_handler+0xb0/0xb8
[ 13.309289] el0_sync+0x180/0x1c0
[ 13.309297] UBIFS error (ubi0:0 pid 359): ubifs_scan: bad node
[ 13.309305] UBIFS error (ubi0:0 pid 359): ubifs_scanned_corruption: corruption at LEB 114:59432
[ 13.309314] UBIFS error (ubi0:0 pid 359): ubifs_scanned_corruption: first 8192 bytes from LEB 114:59432
[ 13.311605] UBIFS error (ubi0:0 pid 359): ubifs_scan: LEB 114 scanning failed
[ 13.311797] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops
sysfs: 0 -> /sys/devices/virtual/input/iam20685-accel/enable_accel
Open /dev/ttyS4, fd: 4, data bits: 8.
sysfs: 0 -> /sys/devices/virtual/input/iam20685-accel/enable_gyro
Change baud to 4100, idx:460800, fd:4
sysfs: 100 -> /sys/devices/virtual/input/iam20685-accel/odr_hz
sysfs: 1 -> /sys/devices/virtual/input/iam20685-accel/enable_accel
sysfs: 1 -> /sys/devices/virtual/input/iam20685-accel/enable_gyro
sysfs: 1 -> /sys/devices/virtual/input/iam20685-accel/enable_temp
[ 16.824401] random: crng init done
1).
Flash media is mounted on /home/root/nvm, all t[ 13.298908] 00000260: 43 a9 c0 40 40 39 bb ff ff 17 e0 21 00 f0 00 a0 25 91 d1 0f 0f 94 e2 03 00 aa a4 2b 00 b0 03 22
he other folders are associated with RAM only, please
stor[ 13.298912] 00000280: 00 f0 00 22 00 d0 84 e0 05 91 63 c0 0a 91 00 40 27 91 21 2d 80 52 c0 b0 03 94 e0 21 00 f0 00 a0
e your stuffs only into this directory if you don't want them to[ 13.298917] 000002a0: 25 91 c5 0f 0f 94 e2 03 00 aa a4 2b 00 b0 03 22 00 f0 00 22 2c bc 00 08 a1 2f 80 52 b4 b0 03 94
be lost after power off.
2).
Please do NOT cut the powe[ 13.298922] 000002c0: fd 7b bd 27 cc 07 00 02 f3 03 01 aa 23 b4 05 94 e3 a3 00 91 f4 03 00 2a e2 83 00 91 7c 45 0e 04
r off when the ubifs is running, otherwise, you may lose all the[ 13.298926] 000002e0: 00 80 d2 01 00 80 d2 1c cf 02 94 a0 00 00 35 00 cc 33 0d fd 7b c3 a8 c0 03 5f d6 81 00 80 52 e2
data
in the flash because the ubifs may not be able to go[ 13.298931] 00000300: 03 14 2a 6c 05 01 a0 ec 03 94 7c 5e 00 2a 00 7c 1c 53 1f 3c 00 71 a0 fe ff 54 02 e2 9f 52 20 5c
up successfully any more after you power up
due to data c[ 13.298936] 00000320: 1c 12 e2 25 a0 72 1f 00 02 6b 02 00 9e 52 02 34 a0 72 04 10 42 7a 01 04 00 54 e0 13 40 f9 00 10
orruption.
Please run the following command before you cut[ 13.298940] 00000340: 00 91 1f 00 13 eb 28 fd ff 54 fc 09 02 60 12 00 d1 8c 2d 3c 01 01 20 fc ff 54 7d 07 20 7c 3f 00
the power off:
shutdown -h 0
then wait u[ 13.298946] 00000360: 09 be a1 72 42 00 01 0a 42 34 50 51 42 78 09 12 62 fb ff 34 02 00 9a 52 23 5c 1c 12 7c 0b 00 2e
ntil you see that the ubi thread is stoped, then you could cut t[ 13.298950] 00000380: 7f 00 02 6b c0 fa ff 54 21 2c 10 12 a2 17 a1 52 3f 00 02 6b a2 93 a0 52 24 10 42 7a e1 f9 ff 54
he power off safely.
The log is a bit garbled but you can see here that the system is complaining it wasn't shut down correctly, and recommends using 'shutdown' command. Is that what you did, and you got the corruption happening nevertheless?
I'm doing the stability test of the file system after power failure, which is to test whether the ubifs can be mounted after the restart when the flash is erased.
Hi,
I noticed this case has been open for a while already, please let me know if this still needs attention.
Regards, Andreas