i.mx6solo fat32 USB disk hotplugging

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.mx6solo fat32 USB disk hotplugging

跳至解决方案
1,432 次查看
kanoumamoru
Contributor III

Hi, all

Would you please help us seek technical support from Freescale regarding FAT32 USB disk hotplugging?

We are using Freescale BSP (version L3.0.35_4.1.0) on imx6.solo processor. When we do FAT32 USB disk hotplugging test we met the following problem:

         Repeatedly plug and unplug a FAT32 USB disk.

During the time period when the usb disk is mounted, A user program continuously reads the USB disk structure.

After thousands of times of test, sometimes the user program thread is put into dormant state and the sleep reason is “sleep_on_buffer”. (we believe this means the kernel code fs/buffer.c, sleep_on_buffer() function). When this happens the USB disk can still be accessed from other user program.

Could you please give us hint on what might be the possible reason and how to avoid it?

For your info the relevant kernel config is like this:

CONFIG_FS_MBCACHE=y

# CONFIG_REISERFS_FS is not set

# CONFIG_JFS_FS is not set

# CONFIG_XFS_FS is not set

# CONFIG_GFS2_FS is not set

# CONFIG_BTRFS_FS is not set

# CONFIG_NILFS2_FS is not set

# CONFIG_FS_POSIX_ACL is not set

CONFIG_FILE_LOCKING=y

CONFIG_FSNOTIFY=y

CONFIG_DNOTIFY=y

CONFIG_INOTIFY_USER=y

# CONFIG_FANOTIFY is not set

# CONFIG_QUOTA is not set

# CONFIG_QUOTACTL is not set

CONFIG_AUTOFS4_FS=y

# CONFIG_FUSE_FS is not set

# CONFIG_FSCACHE is not set

CONFIG_FAT_FS=y

CONFIG_MSDOS_FS=y

CONFIG_VFAT_FS=y

CONFIG_FAT_DEFAULT_CODEPAGE=437

CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"

# CONFIG_NTFS_FS is not set

标签 (2)
标记 (4)
0 项奖励
回复
1 解答
961 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Mamoru

it may be recommended to try latest L3.0.35_4.1.0 kernel :

L3.0.101_4.1.1_SOURCE_BSP : i.MX 6Quad, i.MX 6Dual, i.MX 6DualLite, i.MX 6Solo

and i.MX 6Sololite Linux BSP Source Code Files.

Size (K): 319113 Format: gz Rev #: L3.0.101_4.1.1. Modified: 11/3/2014

and try patches provided on link below (like usb_memory_issue patch)

IMX6Q system hang-up problem / linux kernel(3.0.35)

Best regards

igor

在原帖中查看解决方案

0 项奖励
回复
3 回复数
962 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Mamoru

it may be recommended to try latest L3.0.35_4.1.0 kernel :

L3.0.101_4.1.1_SOURCE_BSP : i.MX 6Quad, i.MX 6Dual, i.MX 6DualLite, i.MX 6Solo

and i.MX 6Sololite Linux BSP Source Code Files.

Size (K): 319113 Format: gz Rev #: L3.0.101_4.1.1. Modified: 11/3/2014

and try patches provided on link below (like usb_memory_issue patch)

IMX6Q system hang-up problem / linux kernel(3.0.35)

Best regards

igor

0 项奖励
回复
961 次查看
kanoumamoru
Contributor III

Hi Igor,

I greatly appreciate your information.

I confirm it.

Best Regards,

kanou

0 项奖励
回复
961 次查看
kaloyantenchov
Contributor I

Hello,

I am seeing the same symptom with i.MX6D and L3.0.35_4.0.0. Were you able to trace the issue down to a specific patch? We have the usb_memory_issue patch applied but we still see the issue.

Thanks,

Kaloyan

0 项奖励
回复