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.

重复启动多次后,ubifs文件系统遭到破坏



目前用的是AM335x,4台设备同时进行测试,不断电,通过脚本,每一分钟重新启动一次,周末测试,启动的次数至少达到3000次以上,周一发现四台设备都挂了,但是重新刷文件系统后,可以正常启动,怀疑是文件系统损坏了,请问大家有什么好的处理方法?

串口输出信息如下

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0 (root@localhost.localdomain) (gcc version 4.5
.3 20110311 (prerelease) (GCC) ) #16 Thu Jun 2 09:14:30 CST 2016
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructio
n cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag
es: 65024
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw u
bi.mtd=3,2048 noinitrd rootfstype=ubifs rootwait=1 ip=none
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 253408k/253408k available, 8736k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc057d000 (5588 kB)
[ 0.000000] .init : 0xc057d000 - 0xc05bf000 ( 264 kB)
[ 0.000000] .data : 0xc05c0000 - 0xc061e520 ( 378 kB)
[ 0.000000] .bss : 0xc061e544 - 0xc064b324 ( 180 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrup
ts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[ 0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys
_clkin_ck) for timer1, this may impact timekeeping in low power state
[ 0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 17895
6ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000235] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[ 0.056297] pid_max: default: 32768 minimum: 301
[ 0.056460] Security Framework initialized
[ 0.056589] Mount-cache hash table entries: 512
[ 0.057055] CPU: Testing write buffer coherency: ok
[ 0.078469] omap_hwmod: gfx: failed to hardreset
[ 0.095238] omap_hwmod: pruss: failed to hardreset
[ 0.096660] print_constraints: dummy:
[ 0.097126] NET: Registered protocol family 16
[ 0.099901] OMAP GPIO hardware version 0.1
[ 0.103431] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.105885] omap_i2c.3: alias fck already exists
[ 0.107154] omap2_mcspi.1: alias fck already exists
[ 0.107461] omap2_mcspi.2: alias fck already exists
[ 0.107817] edma.0: alias fck already exists
[ 0.107847] edma.0: alias fck already exists
[ 0.107874] edma.0: alias fck already exists
[ 0.142260] bio: create slab <bio-0> at 0
[ 0.145153] SCSI subsystem initialized
[ 0.147365] usbcore: registered new interface driver usbfs
[ 0.147795] usbcore: registered new interface driver hub
[ 0.148070] usbcore: registered new device driver usb
[ 0.148449] registerd cppi-dma Intr @ IRQ 17
[ 0.148469] Cppi41 Init Done Qmgr-base(d083a000) dma-base(d0838000)
[ 0.148483] Cppi41 Init Done
[ 0.148523] musb-ti81xx musb-ti81xx: musb0, board_mode=0x11, plat_mode=0x1
[ 0.148905] musb-ti81xx musb-ti81xx: musb1, board_mode=0x11, plat_mode=0x1
[ 0.166368] omap_i2c omap_i2c.3: bus 3 rev2.4.0 at 100 kHz
[ 0.167298] i2c i2c-3: Failed to register i2c client 24c256 at 0x51 (-16)
[ 0.167321] i2c i2c-3: Can't create device at 0x51
[ 0.168878] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.170329] Switching to clocksource gp timer
[ 0.191889] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.192097] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.193050] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 0.193188] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus numbe
r 1
[ 0.193350] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.193373] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=
1
[ 0.193393] usb usb1: Product: MUSB HDRC host driver
[ 0.193408] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.193424] usb usb1: SerialNumber: musb-hdrc.0
[ 0.194525] hub 1-0:1.0: USB hub found
[ 0.194564] hub 1-0:1.0: 1 port detected
[ 0.195339] musb-hdrc musb-hdrc.0: USB Host mode controller at d081c000 using
DMA, IRQ 18
[ 0.195556] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.196465] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.196537] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus numbe
r 2
[ 0.196662] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.196684] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=
1
[ 0.196703] usb usb2: Product: MUSB HDRC host driver
[ 0.196718] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.196733] usb usb2: SerialNumber: musb-hdrc.1
[ 0.197783] hub 2-0:1.0: USB hub found
[ 0.197816] hub 2-0:1.0: 1 port detected
[ 0.198543] musb-hdrc musb-hdrc.1: USB Host mode controller at d081e800 using
DMA, IRQ 19
[ 0.199073] NET: Registered protocol family 2
[ 0.199301] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.199675] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.199901] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.200037] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.200055] TCP reno registered
[ 0.200072] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.200104] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.200348] NET: Registered protocol family 1
[ 0.200739] RPC: Registered named UNIX socket transport module.
[ 0.200758] RPC: Registered udp transport module.
[ 0.200771] RPC: Registered tcp transport module.
[ 0.200784] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.201094] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.214658] VFS: Disk quotas dquot_6.5.2
[ 0.214739] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.215435] msgmni has been set to 494
[ 0.216398] io scheduler noop registered
[ 0.216416] io scheduler deadline registered
[ 0.216492] io scheduler cfq registered (default)
[ 0.218903] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.848039] console [ttyO0] enabled
[ 0.852553] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.860607] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.868572] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.876577] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.884559] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.905366] brd: module loaded
[ 0.915529] loop: module loaded
[ 0.919072] i2c-core: driver [tsl2550] using legacy suspend method
[ 0.925632] i2c-core: driver [tsl2550] using legacy resume method
[ 0.932156] at24 3-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.939487] The board is a AM335x Beaglebone.
[ 0.944697] da8xx_lcdc.0: alias fck already exists
[ 0.950474] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
[ 0.972688] Console: switching to colour frame buffer device 100x37
[ 0.987123] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 0.992228] Registering NAND on CS0
[ 0.997037] davinci-mcasp.0: alias fck already exists
[ 1.002839] TSC connected to beta GP EVM
[ 1.014946] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.022522] omap2-nand driver initializing
[ 1.027194] ONFI flash detected
[ 1.030680] ONFI param page 0 valid
[ 1.034366] NAND device: Manufacturer ID: 0xc2, Chip ID: 0xda (Unknown MX30LF
2G18AC)
[ 1.042964] Creating 5 MTD partitions on "omap2-nand.0":
[ 1.048578] 0x000000000000-0x000000100000 : "boot"
[ 1.055947] 0x000000100000-0x000000b20000 : "kernel"
[ 1.067179] 0x000000b20000-0x000000e20000 : "recovery"
[ 1.075597] 0x000000e20000-0x000008b20000 : "rootfs"
[ 1.135115] 0x000008b20000-0x000010000000 : "data"
[ 1.191197] OneNAND driver initializing
[ 1.196111] UBI: attaching mtd3 to ubi0
[ 1.200162] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1.206806] UBI: logical eraseblock size: 126976 bytes
[ 1.212503] UBI: smallest flash I/O unit: 2048
[ 1.217458] UBI: VID header offset: 2048 (aligned 2048)
[ 1.223795] UBI: data offset: 4096
[ 2.308277] UBI: max. sequence number: 2723
[ 2.328182] UBI: attached mtd3 to ubi0
[ 2.332196] UBI: MTD device name: "rootfs"
[ 2.337515] UBI: MTD device size: 125 MiB
[ 2.342756] UBI: number of good PEBs: 1000
[ 2.347708] UBI: number of bad PEBs: 0
[ 2.352396] UBI: number of corrupted PEBs: 0
[ 2.357076] UBI: max. allowed volumes: 128
[ 2.361957] UBI: wear-leveling threshold: 4096
[ 2.366916] UBI: number of internal volumes: 1
[ 2.371610] UBI: number of user volumes: 1
[ 2.376290] UBI: available PEBs: 0
[ 2.380978] UBI: total number of reserved PEBs: 1000
[ 2.386205] UBI: number of PEBs reserved for bad PEB handling: 10
[ 2.392635] UBI: max/mean erase counter: 6/3
[ 2.397130] UBI: image sequence number: 1960772904
[ 2.402417] UBI: background thread "ubi_bgt0d" started, PID 542
[ 2.409516] CAN device driver interface
[ 2.413593] CAN bus driver for Bosch D_CAN controller 1.0
[ 2.470404] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 2.476933] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
[ 2.484361] davinci_mdio.0: probed
[ 2.487962] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN
8710/LAN8720
[ 2.497043] usbcore: registered new interface driver zd1201
[ 2.503197] usbcore: registered new interface driver cdc_ether
[ 2.509564] usbcore: registered new interface driver cdc_eem
[ 2.515756] usbcore: registered new interface driver dm9601
[ 2.521698] cdc_ncm: 04-Aug-2011
[ 2.525311] usbcore: registered new interface driver cdc_ncm
[ 2.531303] Initializing USB Mass Storage driver...
[ 2.536772] usbcore: registered new interface driver usb-storage
[ 2.543123] USB Mass Storage support registered.
[ 2.548583] mousedev: PS/2 mouse device common for all mice
[ 2.555864] input: ti-tsc-adcc as /devices/platform/omap/tsc/input/input0
[ 2.564031] rtc-pcf8563 3-0051: chip found, driver version 0.4.3
[ 2.572503] rtc-pcf8563 3-0051: rtc core: registered rtc-pcf8563 as rtc0
[ 2.579786] i2c /dev entries driver
[ 2.584017] Linux video capture interface: v2.00
[ 2.589314] usbcore: registered new interface driver uvcvideo
[ 2.595395] USB Video Class driver (1.1.1)
[ 2.601925] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 2.608574] _regulator_get: deviceless supply vdd_mpu not found, using dummy
regulator
[ 2.617530] cpuidle: using governor ladder
[ 2.622572] cpuidle: using governor menu
[ 2.633253] ------------[ cut here ]------------
[ 2.638161] WARNING: at drivers/gpio/gpiolib.c:101 gpio_ensure_requested+0x60
/0xd4()
[ 2.646312] autorequest GPIO-0
[ 2.649522] Modules linked in:
[ 2.652737] Backtrace:
[ 2.655342] [<c00178f8>] (dump_backtrace+0x0/0x110) from [<c04113e8>] (dump_s
tack+0x18/0x1c)
[ 2.664231] r6:c050fc20 r5:00000065 r4:cf81de70 r3:c05e2188
[ 2.670237] [<c04113d0>] (dump_stack+0x0/0x1c) from [<c003c570>] (warn_slowpa
th_common+0x5c/0x6c)
[ 2.679598] [<c003c514>] (warn_slowpath_common+0x0/0x6c) from [<c003c624>] (w
arn_slowpath_fmt+0x38/0x40)
[ 2.689585] r8:00000001 r7:cf804434 r6:00000000 r5:cf804434 r4:c063c880
[ 2.696485] r3:00000009
[ 2.699259] [<c003c5ec>] (warn_slowpath_fmt+0x0/0x40) from [<c01d5f3c>] (gpio
_ensure_requested+0x60/0xd4)
[ 2.709337] r3:00000000 r2:c050fc38
[ 2.713123] [<c01d5edc>] (gpio_ensure_requested+0x0/0xd4) from [<c01d6158>] (
gpio_direction_output+0xb0/0x190)
[ 2.723659] r6:c063c880 r5:00000000 r4:cfaa1e80 r3:00000020
[ 2.729671] [<c01d60a8>] (gpio_direction_output+0x0/0x190) from [<c030c5f8>]
(am335x_led_set+0x20/0x24)
[ 2.739578] [<c030c5d8>] (am335x_led_set+0x0/0x24) from [<c030c9e0>] (led_hea
rtbeat_function+0x6c/0xfc)
[ 2.749489] [<c030c974>] (led_heartbeat_function+0x0/0xfc) from [<c030cad0>]
(heartbeat_trig_activate+0x60/0x64)
[ 2.760201] r6:c060a770 r5:cfa91ec0 r4:cfaa1e80 r3:00000000
[ 2.766191] [<c030ca70>] (heartbeat_trig_activate+0x0/0x64) from [<c030c000>]
(led_trigger_set+0xc4/0xc8)
[ 2.776268] r5:c060a858 r4:cfa91ec0
[ 2.780052] [<c030bf3c>] (led_trigger_set+0x0/0xc8) from [<c030c1ec>] (led_tr
igger_register+0x100/0x134)
[ 2.790036] r5:cfa91f14 r4:cfa91ec0
[ 2.793827] [<c030c0ec>] (led_trigger_register+0x0/0x134) from [<c05a0c48>] (
heartbeat_trig_init+0x18/0x1c)
[ 2.804086] r8:00000000 r7:00000000 r6:cf81c000 r5:c05be86c r4:c061e580
[ 2.810984] r3:00000000
[ 2.813758] [<c05a0c30>] (heartbeat_trig_init+0x0/0x1c) from [<c0008704>] (do
_one_initcall+0x3c/0x180)
[ 2.823575] [<c00086c8>] (do_one_initcall+0x0/0x180) from [<c057d884>] (kerne
l_init+0x9c/0x130)
[ 2.832756] [<c057d7e8>] (kernel_init+0x0/0x130) from [<c003f5f0>] (do_exit+0
x0/0x67c)
[ 2.841088] r5:c057d7e8 r4:00000000
[ 2.844912] ---[ end trace 37cd3a9067d491cf ]---
[ 2.853048] usbcore: registered new interface driver usbhid
[ 2.858931] usbhid: USB HID core driver
[ 2.863808] usbcore: registered new interface driver snd-usb-audio
[ 2.872750] _regulator_get: 3-001b supply IOVDD not found, using dummy regula
tor
[ 2.880676] _regulator_get: 3-001b supply DVDD not found, using dummy regulat
or
[ 2.888432] _regulator_get: 3-001b supply AVDD not found, using dummy regulat
or
[ 2.896219] _regulator_get: 3-001b supply DRVDD not found, using dummy regula
tor
[ 2.907640] asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
[ 2.915874] ALSA device list:
[ 2.919005] #0: AM335X EVM
[ 2.922082] oprofile: hardware counters not available
[ 2.927403] oprofile: using timer interrupt.
[ 2.931945] nf_conntrack version 0.5.0 (3959 buckets, 15836 max)
[ 2.938882] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.944658] TCP cubic registered
[ 2.948067] NET: Registered protocol family 17
[ 2.952788] can: controller area network core (rev 20090105 abi 8)
[ 2.959408] NET: Registered protocol family 29
[ 2.964107] can: raw protocol (rev 20090105)
[ 2.968604] can: broadcast manager protocol (rev 20090105 t)
[ 2.974633] Registering the dns_resolver key type
[ 2.979691] VFP support v0.3: implementor 41 architecture 3 part 30 variant c
rev 3
[ 2.987796] ThumbEE CPU extension supported.
[ 2.992376] mux: Failed to setup hwmod io irq -22
[ 2.998128] Power Management for AM33XX family
[ 3.003078] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 3.009795] Copied the M3 firmware to UMEM
[ 3.014149] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not su
pport st_shift
[ 3.029384] clock: disabling unused clocks to save power
[ 3.037376] Detected MACID=ec:24:b8:9c:d8:1c
[ 3.045551] rtc-pcf8563 3-0051: setting system clock to 2000-04-05 00:55:35 U
TC (954896135)
[ 3.121674] UBIFS: recovery needed
[ 3.255043] UBIFS error (pid 1): ubifs_recover_leb: corrupt empty space LEB 3
23:20480, corruption starts at 1711
[ 3.265803] UBIFS error (pid 1): ubifs_scanned_corruption: corruption at LEB
323:22191
[ 3.283698] UBIFS error (pid 1): ubifs_recover_leb: LEB 323 scanning failed
[ 3.291901] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[ 3.299337] Please append a correct "root=" boot option; here are the availab
le partitions:
[ 3.308239] 1f00 1024 mtdblock0 (driver?)
[ 3.313589] 1f01 10368 mtdblock1 (driver?)
[ 3.318918] 1f02 3072 mtdblock2 (driver?)
[ 3.324265] 1f03 128000 mtdblock3 (driver?)
[ 3.329601] 1f04 119680 mtdblock4 (driver?)
[ 3.334943] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(0,0)
[ 3.343657] Backtrace:
[ 3.346273] [<c00178f8>] (dump_backtrace+0x0/0x110) from [<c04113e8>] (dump_s
tack+0x18/0x1c)
[ 3.355175] r6:cf969000 r5:c05aaf94 r4:c061f4c8 r3:c05e2188
[ 3.361181] [<c04113d0>] (dump_stack+0x0/0x1c) from [<c0411458>] (panic+0x6c/
0x1a0)
[ 3.369264] [<c04113ec>] (panic+0x0/0x1a0) from [<c057dcb4>] (mount_block_roo
t+0x184/0x228)
[ 3.378078] r3:c05e2188 r2:00000000 r1:cf81df78 r0:c04e5390
[ 3.384071] r7:00008000
[ 3.386753] [<c057db30>] (mount_block_root+0x0/0x228) from [<c057dfd0>] (prep
are_namespace+0xac/0x1d4)
[ 3.396589] [<c057df24>] (prepare_namespace+0x0/0x1d4) from [<c057d90c>] (ker
nel_init+0x124/0x130)
[ 3.406039] r5:c05be86c r4:c05be86c
[ 3.409835] [<c057d7e8>] (kernel_init+0x0/0x130) from [<c003f5f0>] (do_exit+0
x0/0x67c)
[ 3.418192] r5:c057d7e8 r4:00000000