嵌入式linux 挂载usb,嵌入式linux下的USB自动挂载问题

在嵌入式Linux系统启动时遇到USB驱动加载错误,表现为devicedescriptorread/64多次失败。尽管如此,系统启动后U盘仍能被识别,位于/dev/scsi/host0/bus0/target0/lun0/目录下。尝试通过脚本实现U盘自动挂载,但脚本执行时提示文件或目录不存在。目前手动挂载成功,但需解决脚本自动挂载的问题。
摘要由CSDN通过智能技术生成

现在在做嵌入式linux下的USB自动挂载。

在系统启动的时候,首先加载USB驱动。加载过程中出现如下错误:

usb 1-2: new full speed USB device using hisilicon-ohci and address 2

usb 1-2: device descriptor read/64, error -110

usb 1-2: device descriptor read/64, error -110

usb 1-2: new full speed USB device using hisilicon-ohci and address 3

usb 1-2: device descriptor read/64, error -110

usb 1-2: device descriptor read/64, error -110

usb 1-2: new full speed USB device using hisilicon-ohci and address 4

usb 1-2: device not accepting address 4, error -110

usb 1-2: new full speed USB device using hisilicon-ohci and address 5

usb 1-2: device not accepting address 5, error -110

这是怎么回事?

虽然出现上述错误。但是当系统起来以后在控制台下还是能发现USB设备。我现在用的是U盘

能在/dev/scsi/host0/bus0/target0/lun0/目录下发现disc和part1

然后可以手动挂载。

现在我想让U盘自动挂载。写了个脚本。在加载完驱动以后马上执行挂载U盘脚本。但是挂载的时候提示

mount: Mounting /dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/usb failed: No such file or directory

下面是脚本的内容:

load_usb_drv

sleep 10

if[ -r /dev/scsi/host0/bus0/target0/lun0/part1 ]

then

mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/usb

fi

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值