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.

DM8148 USB DISK error

Dear Sir:

      I copy the data from the DM8148 Board to a USB-Disk, unplug the USB-Disk during the data copy, will result in an error。

     This problem may be what causes?  Thank you so much。

root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~#
root@dm814x-evm:~# [HMI Warning] "/media/USB_1/" DISK_FREE= 3795 MB

[HMI Warning] Start monitor!
[HMI Debug] m_progress_bar_count=1
[HMI Warning] m_file_copy_monitor_count= 20208
[HMI Warning] m_file_copy_monitor_count= 39252
[HMI Warning] m_file_copy_monitor_count= 40648
[HMI Warning] m_file_copy_monitor_count= 57096
[HMI Warning] m_file_copy_monitor_count= 57128
[HMI Warning] m_file_copy_monitor_count= 65824
usb 1-1: USB disconnect, address 5
sd 4:0:0:0: [sda] Unhandled error code
sd 4:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
sd 4:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 02 ed 18 00 00 f0 00
end_request: I/O error, dev sda, sector 191768
sd 4:0:0:0: [sda] Unhandled error code
sd 4:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
sd 4:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 02 ee 08 00 00 f0 00
end_request: I/O error, dev sda, sector 192008
[HMI Warning] remove "/devices/platform/musb-ti81xx.0/musb-hdrc.0/usb1/1-1/1-1:1.0/host4/target4:0:0/4:0:0:0/scsi_generic/sg0 @ /dev/sda1 @ /media/USB_1"
FAT: FAT read failed (blocknr 258)
FAT: FAT read failed (blocknr 107)
[HMI Warning] Fatal write error!FAT: unable to read inode block for updating (i_pos 244358)

[HMI Warning] coFAT: Directory bread(block 15272) failed
py_func_source= "/media/EMMC/AE8100/program/AUTO/MAX_LINE_3758251.NC" ,copy_func_destination= "/media/USB_1/MAX_LINE_3758251.NC" ,copy_func_remain= 0
[HMI Warning] Stop monitor!
[HMI Debug] m_progress_bar_count=0
[HMI Debug] U disk removed!
usb 1-1: new high speed USB device using musb-hdrc and address 6
usb 1-1: New USB device found, idVendor=0781, idProduct=5567
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: Cruzer Blade
usb 1-1: Manufacturer: SanDisk
usb 1-1: SerialNumber: 20044321520ED290CA03
scsi5 : usb-storage 1-1:1.0
scsi 5:0:0:0: Direct-Access SanDisk Cruzer Blade 2.01 PQ: 0 ANSI: 5
sd 5:0:0:0: Attached scsi generic sg0 type 0
sd 5:0:0:0: [sda] 7821312 512-byte logical blocks: (4.00 GB/3.72 GiB)
sd 5:0:0:0: [sda] Write Protect is off
sd 5:0:0:0: [sda] Assuming drive cache: write through
sd 5:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
[HMI Warning] add "/devices/platform/musb-ti81xx.0/musb-hdrc.0/usb1/1-1/1-1:1.0/host5/target5:0:0/5:0:0:0/scsi_generic/sg0 @ /dev/sda1"
sd 5:0:0:0: [sda] Assuming drive cache: write through
sd 5:0:0:0: [sda] Attached SCSI removable disk
[HMI Warning] "mount -t vfat -o utf8=1 /dev/sda1 /media/USB_1"
[HMI Warning] m_static_usb_mount_list= ("/devices/platform/musb-ti81xx.0/musb-hdrc.0/usb1/1-1/1-1:1.0/host5/target5:0:0/5:0:0:0/scsi_generic/sg0 @ /dev/sda1 @ /media/USB_1")
[HMI Debug] U disk added!
FAT: Filesystem error (dev sda1)
fat_free_clusters: deleting FAT entry beyond EOF
FAT: Filesystem has been illegally operated!!!
[HMI Debug] m_progress_bar_count=1
[HMI Debug] m_progress_bar_count=0
[HMI Warning] "/media/USB_1/" DISK_FREE= 3782 MB

[HMI Warning] Start monitor!
[HMI Debug] m_progress_bar_count=1
[HMI Warning] m_file_copy_monitor_count= 27188
[HMI Warning] m_file_copy_monitor_count= 36972
[HMI Warning] m_file_copy_monitor_count= 49284
[HMI Warning] m_file_copy_monitor_count= 53444
[HMI Warning] m_file_copy_monitor_count= 62820
[HMI Warning] m_file_copy_monitor_count= 69924
[HMI Warning] m_file_copy_monitor_count= 74052
[HMI Warning] m_file_copy_monitor_count= 78180
usb 1-1: USB disconnect, address 6
[HMI Warning] remove "/devices/platform/musb-ti81xx.0/musb-hdrc.0/usb1/1-1/1-1:1.0/host5/targetsd 5:0:0:0: [sda] Unhandled error code
5:0:0/5:0:0:0/scsd 5:0:0:0: [sda] si_generic/sg0 @Result: hostbyte=0x01 driverbyte=0x00
/dev/sda1 @ /mesd 5:0:0:0: [sda] CDB: dia/USB_1"
cdb[0]=0x2a: 2a 00 00 04 71 a8 00 00 f0 00
end_request: I/O error, dev sda, sector 291240
sd 5:0:0:0: [sda] Unhandled error code
sd 5:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
sd 5:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 04 72 98 00 00 f0 00
end_request: I/O error, dev sda, sector 291480
[HMI Warning] m_file_copy_monitor_count= 82308
FAT: FAT read failed (blocknr 354)
FAT: FAT read failed (blocknr 150)
[HMI Warning] Fatal write error!
FAT: unable to read inode block for updating (i_pos 244358)
[HMI Warning] coFAT: Directory bread(block 15272) failed
py_func_source= "/media/EMMC/AE8100/program/AUTO/MAX_LINE_3758251.NC" ,copy_func_destination= "/media/USB_1/MAX_LINE_3758251.NC" ,copy_func_remain= 0
[HMI Warning] Stop monitor!
[HMI Debug] m_progress_bar_count=0
[HMI Debug] U disk removed!
usb 1-1: new high speed USB device using musb-hdrc and address 7
usb 1-1: New USB device found, idVendor=0781, idProduct=5567
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: Cruzer Blade
usb 1-1: Manufacturer: SanDisk
usb 1-1: SerialNumber: 20044321520ED290CA03
scsi6 : usb-storage 1-1:1.0
scsi 6:0:0:0: Direct-Access SanDisk Cruzer Blade 2.01 PQ: 0 ANSI: 5
sd 6:0:0:0: [sda] 7821312 512-byte logical blocks: (4.00 GB/3.72 GiB)
sd 6:0:0:0: Attached scsi generic sg0 type 0
sd 6:0:0:0: [sda] Write Protect is off
sd 6:0:0:0: [sda] Assuming drive cache: write through
sd 6:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
[HMI Warning] add "/devices/platform/musb-ti81xx.0/musb-hdrc.0/usb1/1-1/1-1:1.0/host6/target6:0:0/6:0:0:0/scsi_generic/sg0 @ /dev/sda1"
sd 6:0:0:0: [sda] Assuming drive cache: write through
sd 6:0:0:0: [sda] Attached SCSI removable disk
[HMI Warning] "mount -t vfat -o utf8=1 /dev/sda1 /media/USB_1"
[HMI Warning] m_static_usb_mount_list= ("/devices/platform/musb-ti81xx.0/musb-hdrc.0/usb1/1-1/1-1:1.0/host6/target6:0:0/6:0:0:0/scsi_generic/sg0 @ /dev/sda1 @ /media/USB_1")
[HMI Debug] U disk added!
[HMI Debug] m_progress_bar_count=1
FAT: Filesystem error (dev sda1)
fat_free_clusters: deleting FAT entry beyond EOF
FAT: Filesystem has been illegally operated!!!
[HMI Debug] m_progress_bar_count=0
[HMI Warning] "/media/USB_1/" DISK_FREE= 3781 MB

[HMI Warning] Start monitor!
[HMI Debug] m_progress_bar_count=1
[HMI Warning] m_file_copy_monitor_count= 26728
[HMI Warning] m_file_copy_monitor_count= 44804
[HMI Warning] m_file_copy_monitor_count= 57448
[HMI Warning] m_file_copy_monitor_count= 61284
[HMI Warning] m_file_copy_monitor_count= 65412
[HMI Warning] m_file_copy_monitor_count= 69532
usb 1-1: USB disconnect, address 7
[HMI Warning] resd 6:0:0:0: [sda] Unhandled error code
move "/devices/sd 6:0:0:0: [sda] platform/musb-tiResult: hostbyte=0x01 driverbyte=0x00
81xx.0/musb-hdrcsd 6:0:0:0: [sda] CDB: .0/usb1/1-1/1-1:cdb[0]=0x2a1.0/host6/target:6:0:0/6:0:0:0/sc 2asi_generic/sg0 @ 00 /dev/sda1 @ /me 00dia/USB_1" 04 ea a8 00 00 f0 00
end_request: I/O error, dev sda, sector 322216
sd 6:0:0:0: [sda] Unhandled error code
sd 6:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
sd 6:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 04 eb 98 00 00 f0 00
end_request: I/O error, dev sda, sector 322456

FAT: unable to read inode block for updating (i_pos 244358)
FAT: unable to read inode block for updating (i_pos 244358)
FAT: unable to read inode block for updating (i_pos 244358)
FAT: bread failed in fat_clusters_flush
FAT: unable to read inode block for updating (i_pos 244358)
FAT: bread failed in fat_clusters_flush
FAT: FAT read failed (blocknr 383)
Unable to handle kernel NULL pointer dereference at virtual address 00000010
pgd = eb5c4000
[00000010] *pgd=ab534031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
last sysfs file: /sys/devices/platform/omap/omap_i2c.1/i2c-1/1-0048/temp1_input
Modules linked in: bufferclass_ti omaplfb pvrsrvkm keyboard_loader rtc_ds1307 lvds_driver mcp_driver ti81xxfb vpss syslink ipv6 config_register
CPU: 0 Not tainted (2.6.37 #3)
PC is at __mark_inode_dirty+0xcc/0x190
LR is at __mark_inode_dirty+0xbc/0x190
pc : [<c00d88c8>] lr : [<c00d88b8>] psr: 20000013
sp : eb461ca8 ip : c043eabe fp : eb461cbc
r10: 00004516 r9 : ecf7d200 r8 : 00000000
r7 : 00006992 r6 : ed9af718 r5 : ed9af718 r4 : 00000000
r3 : 00000062 r2 : 00000001 r1 : c0464d8e r0 : 00000001
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c5387d Table: ab5c4019 DAC: 00000015
Process AE8100_HMI_arm (pid: 1388, stack limit = 0xeb4602e8)
Stack: (0xeb461ca8 to 0xeb462000)
1ca0: 00006992 00000000 eb461d1c eb461cc0 c012af10 c00d8808
1cc0: 00000000 00000000 04516000 00000000 ed9af7bc ed9af7bc eb461d1c eb461ce8
1ce0: c009f9c8 c00ac0a8 00000000 00000000 00000001 ed9af718 ed9af7bc 04516000
1d00: 00000000 00001000 ed9af7bc eb460000 eb461d3c eb461d20 c012ced0 c012ae10
1d20: 04516000 00000000 ed9af7bc fffffffb eb461d7c eb461d40 c012d3bc c012ce94
1d40: 00001000 00000000 eb461dbc eb461db8 c012cff4 ed9af6f0 c0037080 04517000
1d60: 00000000 04516000 00000000 00001000 eb461dec eb461d80 c0095c04 c012d354
1d80: 00001000 00000000 eb461dbc eb461db8 c0069904 ecc14180 00001000 00000000
1da0: 00000000 c0372c00 eb461f20 00000001 00000000 00001000 c00cec74 00000000
1dc0: 5633c9ec 04517000 00000000 00001000 eb461f20 04516000 00000000 00001000
1de0: eb461e64 eb461df0 c0097a40 c0095b2c 04516000 00000000 eb461ee0 00001000
1e00: 00000000 eb461e10 eb461ee0 eb461ea8 ecc14180 ed9af7bc 00000000 00000001
1e20: ece53630 40ac7b94 eb461f20 00001000 00000001 00001000 00004518 ed9af790
1e40: eb461f20 eb461ea8 00000001 00000000 ecc14180 04516000 eb461e9c eb461e68
1e60: c0097b04 c0097624 00000000 00000000 c0087500 04516000 00000000 eb461ea8
1e80: ecc14180 eb461f70 eb460000 00000000 eb461f4c eb461ea0 c00bc558 c0097a9c
1ea0: 04516000 00000000 0511b194 000000e1 00000000 00000001 ffffffff ecc14180
1ec0: 00000000 00000000 00000000 00000000 edecc2c0 eb461ee0 00000000 00000000
1ee0: 04516000 00000000 eb461f4c eb461ef8 00001000 c0087eb4 00001000 eb461f08
1f00: c01979cc c0197eb0 eb461f4c eb461f18 c00bc760 c01979bc fffffffd 00000000
1f20: 42b8c000 00001000 ecc14180 ecc14180 42b8c000 eb461f70 00001000 42b8c000
1f40: eb461f6c eb461f50 c00bcf50 c00bc4c4 04516000 00000000 ecc14180 00001000
1f60: eb461fa4 eb461f70 c00bd03c c00bceac 04516000 00000000 eb461fac 00000001
1f80: c03604dc 00001000 42b8c000 00d1d798 00000004 c0041f48 00000000 eb461fa8
1fa0: c0041da0 c00bd004 00001000 42b8c000 0000003b 42b8c000 00001000 00000000
1fc0: 00001000 42b8c000 00d1d798 00000004 00001000 00000400 463f2b0c 463f2b0c
1fe0: 00000000 463f29f0 411491f4 4112eae4 60000010 0000003b 00000000 00000000
Backtrace:
[<c00d87fc>] (__mark_inode_dirty+0x0/0x190) from [<c012af10>] (fat_truncate_blocks+0x10c/0x2a0)
r5:00000000 r4:00006992
[<c012ae04>] (fat_truncate_blocks+0x0/0x2a0) from [<c012ced0>] (fat_write_failed+0x48/0x50)
[<c012ce88>] (fat_write_failed+0x0/0x50) from [<c012d3bc>] (fat_write_begin+0x74/0x84)
r4:fffffffb
[<c012d348>] (fat_write_begin+0x0/0x84) from [<c0095c04>] (generic_file_buffered_write+0xe4/0x21c)
r8:00001000 r7:00000000 r6:04516000 r5:00000000 r4:04517000
[<c0095b20>] (generic_file_buffered_write+0x0/0x21c) from [<c0097a40>] (__generic_file_aio_write+0x428/0x478)
[<c0097618>] (__generic_file_aio_write+0x0/0x478) from [<c0097b04>] (generic_file_aio_write+0x74/0xd8)
[<c0097a90>] (generic_file_aio_write+0x0/0xd8) from [<c00bc558>] (do_sync_write+0xa0/0xec)
[<c00bc4b8>] (do_sync_write+0x0/0xec) from [<c00bcf50>] (vfs_write+0xb0/0xd8)
r8:42b8c000 r7:00001000 r6:eb461f70 r5:42b8c000 r4:ecc14180
[<c00bcea0>] (vfs_write+0x0/0xd8) from [<c00bd03c>] (sys_write+0x44/0x70)
r7:00001000 r6:ecc14180 r5:00000000 r4:04516000
[<c00bcff8>] (sys_write+0x0/0x70) from [<c0041da0>] (ret_fast_syscall+0x0/0x30)
r8:c0041f48 r7:00000004 r6:00d1d798 r5:42b8c000 r4:00001000
Code: e3500000 059530a0 1594408c 05934038 (e5943010)
---[ end trace 2e392bb5ce5a4b59 ]---
omap_i2c omap_i2c.1: rpm_resume flags 0x4
omap_i2c omap_i2c.1: omap_pm_runtime_resume
omap_i2c omap_i2c.1: rpm_resume returns 0
omap_i2c omap_i2c.1: rpm_suspend flags 0x0
omap_i2c omap_i2c.1: omap_pm_runtime_suspend
omap_i2c omap_i2c.1: rpm_suspend returns 0
omap_i2c omap_i2c.1: rpm_resume flags 0x4
omap_i2c omap_i2c.1: omap_pm_runtime_resume
omap_i2c omap_i2c.1: rpm_resume returns 0
omap_i2c omap_i2c.1: rpm_suspend flags 0x0
omap_i2c omap_i2c.1: omap_pm_runtime_suspend
omap_i2c omap_i2c.1: rpm_suspend returns 0
omap_i2c omap_i2c.1: rpm_resume flags 0x4
omap_i2c omap_i2c.1: omap_pm_runtime_resume
omap_i2c omap_i2c.1: rpm_resume returns 0
omap_i2c omap_i2c.1: rpm_suspend flags 0x0
omap_i2c omap_i2c.1: omap_pm_runtime_suspend
omap_i2c omap_i2c.1: rpm_suspend returns 0
hub 1-0:1.0: rpm_suspend flags 0x0
hub 1-0:1.0: rpm_suspend returns 0
[HMI Warning] m_file_copy_monitor_count= 70748
[HMI Debug] U disk removed!
omap_i2c omap_i2c.1: rpm_resume flags 0x4
omap_i2c omap_i2c.1: omap_pm_runtime_resume
omap_i2c omap_i2c.1: rpm_resume returns 0
omap_i2c omap_i2c.1: rpm_suspend flags 0x0
omap_i2c omap_i2c.1: omap_pm_runtime_suspend
omap_i2c omap_i2c.1: rpm_suspend returns 0
omap_i2c omap_i2c.1: rpm_resume flags 0x4
omap_i2c omap_i2c.1: omap_pm_runtime_resume
omap_i2c omap_i2c.1: rpm_resume returns 0
omap_i2c omap_i2c.1: rpm_suspend flags 0x0
omap_i2c omap_i2c.1: omap_pm_runtime_suspend
omap_i2c omap_i2c.1: rpm_suspend returns 0
omap_i2c omap_i2c.1: rpm_resume flags 0x4
omap_i2c omap_i2c.1: omap_pm_runtime_resume
omap_i2c omap_i2c.1: rpm_resume returns 0
omap_i2c omap_i2c.1: rpm_suspend flags 0x0
omap_i2c omap_i2c.1: omap_pm_runtime_suspend
omap_i2c omap_i2c.1: rpm_suspend returns 0
omap_i2c omap_i2c.1: rpm_resume flags 0x4
omap_i2c omap_i2c.1: omap_pm_runtime_resume
omap_i2c omap_i2c.1: rpm_resume returns 0
omap_i2c omap_i2c.1: rpm_suspend flags 0x0
omap_i2c omap_i2c.1: omap_pm_runtime_suspend
omap_i2c omap_i2c.1: rpm_suspend returns 0
omap_i2c omap_i2c.1: rpm_resume flags 0x4
omap_i2c omap_i2c.1: omap_pm_runtime_resume
omap_i2c omap_i2c.1: rpm_resume returns 0
omap_i2c omap_i2c.1: rpm_suspend flags 0x0
omap_i2c omap_i2c.1: omap_pm_runtime_suspend
omap_i2c omap_i2c.1: rpm_suspend returns 0
omap_i2c omap_i2c.1: rpm_resume flags 0x4
omap_i2c omap_i2c.1: omap_pm_runtime_resume
omap_i2c omap_i2c.1: rpm_resume returns 0
omap_i2c omap_i2c.1: rpm_suspend flags 0x0
omap_i2c omap_i2c.1: omap_pm_runtime_suspend
omap_i2c omap_i2c.1: rpm_suspend returns 0
save config
[HMI Debug] System power off in MainWidget!
[HMI Debug] Save in MainWidget costs 0 ms!