TI中文支持网
TI专业的中文技术问题搜集分享网站

基于'ti-processor-sdk-linux-am437x-evm-05.02.00.10'版本SDK,使用默认内核配置,U盘拔出,系统报错'FAT-fs (sda1): FAT read failed'

你好,

我们正在使用AM437x这款CPU ,基于'ti-processor-sdk-linux-am437x-evm-05.02.00.10'版本SDK,来调试mass storage功能;

我们尝试了使用,默认内核配置'tisdk_am437x-evm_defconfig',插入U盘时,能正常识别和自动mount U盘,但是拔出U盘时报错,如下:

[ 238.524537] usb 3-1: USB disconnect, device number 2
[ 238.728225] blk_partition_remap: fail for partition 1
[ 238.733328] blk_partition_remap: fail for partition 1
[ 238.742197] blk_partition_remap: fail for partition 1

[ 240.549379] blk_partition_remap: fail for partition 1
[ 240.556637] blk_partition_remap: fail for partition 1
[ 240.561731] blk_partition_remap: fail for partition 1
[ 240.570346] FAT-fs (sda1): FAT read failed (blocknr 2080)

之后我们尝试使用'ti-processor-sdk-linux-am437x-evm-02.00.01.07'版本SDK,并使用默认配置,不会出现上述拔出U盘的错误,log如下:

root@am437x-evm:~# [ 139.858841] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[ 140.005556] usb 1-1: New USB device found, idVendor=058f, idProduct=6387
[ 140.012328] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 140.019843] usb 1-1: Product: Mass Storage
[ 140.023966] usb 1-1: Manufacturer: Generic
[ 140.028078] usb 1-1: SerialNumber: 1090865F
[ 140.039171] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 140.052994] scsi host1: usb-storage 1-1:1.0
[ 141.061392] scsi 1:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4
[ 141.075046] sd 1:0:0:0: [sda] 31457280 512-byte logical blocks: (16.1 GB/15.0 GiB)
[ 141.092164] sd 1:0:0:0: [sda] Write Protect is off
[ 141.097799] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 141.127224] sda: sda1
[ 141.170531] sd 1:0:0:0: [sda] Attached SCSI removable disk
[ 141.665153] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

root@am437x-evm:~# [ 148.711544] usb 1-1: USB disconnect, device number 3

root@am437x-evm:~# 
root@am437x-evm:~# dmesg 
[ 139.858841] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[ 140.005556] usb 1-1: New USB device found, idVendor=058f, idProduct=6387
[ 140.012328] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 140.019843] usb 1-1: Product: Mass Storage
[ 140.023966] usb 1-1: Manufacturer: Generic
[ 140.028078] usb 1-1: SerialNumber: 1090865F
[ 140.039171] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 140.052994] scsi host1: usb-storage 1-1:1.0
[ 141.061392] scsi 1:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4
[ 141.075046] sd 1:0:0:0: [sda] 31457280 512-byte logical blocks: (16.1 GB/15.0 GiB)
[ 141.092164] sd 1:0:0:0: [sda] Write Protect is off
[ 141.097003] sd 1:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 141.097799] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 141.127224] sda: sda1
[ 141.170531] sd 1:0:0:0: [sda] Attached SCSI removable disk
[ 141.665153] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 148.711544] usb 1-1: USB disconnect, device number 3

除此之外,我们还发现,基于'ti-processor-sdk-linux-am437x-evm-05.02.00.10'版本SDK的配置,USB3.0接口的U盘和USB2.0接口的U盘,报错内容也不一样,详见附件。

请帮忙确认,是什么原因导致了该问题,谢谢。

 

Best Regards
Jason

02000107SDK_boot.log05020010SDK_boot.log

Shine:

重复帖
e2echina.ti.com/…/170885

赞(0)
未经允许不得转载:TI中文支持网 » 基于'ti-processor-sdk-linux-am437x-evm-05.02.00.10'版本SDK,使用默认内核配置,U盘拔出,系统报错'FAT-fs (sda1): FAT read failed'
分享到: 更多 (0)