本帖最后由 arm-linux-gcc 于 2014-01-02 14:47 编辑 通过gadget将板子上的一个vfat格式的映像文件作为模拟u盘,供给pc使用 #modprobe g_mass_storage.ko file=fat32.img stall=0 removable=1 这个fat32.img只是个分区映像,用mkfs.vfat创建的,但是pc那边应该还需要从U盘的mbr读取主分区表吧。 那么这个mbr是在什么地方呢? g_mass_storage.ko中有实现吗?
by arm-linux-gcc - 内核源码 - 2014-01-02 20:50:14 阅读(1358) 回复(3)
我要做嵌入式linux下的U盘、DC、多合一卡的驱动,前些时间找了些资料,说要相关协议来协调他们,因为他们都是基于usb-storage.o这个模块。但是对于协议我还没什么概念,不知怎么用,什么usb1.1,usb2.0,usb mass storage协议啊,在程序中怎么体现他们啊,请各位DX们指点,多谢!
我要做嵌入式linux下的U盘、DC、多合一卡的驱动,前些时间找了些资料,说要相关协议来协调他们,因为他们都是基于usb-storage.o这个模块。但是对于协议我还没什么概念,不知怎么用,什么usb1.1,usb2.0,usb mass storage协议啊,在程序中怎么体现他们啊,请各位DX们指点,多谢!
本帖最后由 crifan 于 2012-06-18 16:56 编辑 此文如果更新,也都只会放到这里: 如何实现Linux下的U盘(usb mass storage)驱动 (另外再吐槽一下: 如你所见,上面这行的文字,本身很短,但却在两行显示。 此种格式编辑方面的bug或者说不友好的地方,已经再次把我搞崩溃了。 这也是越加不喜欢在各类bbs,博客,包括这里,去发布东西的原因了:问题太多了,让人崩溃。) 如何实现Linux下的U盘(usb mass storage)驱动...
本帖最后由 crifan 于 2011-08-07 10:02 编辑 【记录】在TQ2440的uboot中添加SD/MMC支持 + 添加usb mass storage支持 + 解决fatls乱码问题author: crifanversion: 2011-08-06下面记录,在TQ2440的uboot源码:http://soft.embedsky.net/files/cd_iso/u-boot-1.1.6_20100601.rar的基础上,添加对mmc/sd卡的支持的过程。-------------------------------------------------------------------------------------------------------...
其实我的问题应该并不复杂: 有个笔记本,Windows系统装在 (hd1,msdos1);Fedora系统交由 Grub 按UUID引导,fstab挂载文件系统也是按UUID来区分,/root 、/boot、/usr、/home都给单独指定了分区。 后来给笔记本小升一下:配了一个硬盘[SSD](hd0),装了Ubuntu,并把旧盘上的Windows系统Ghost进了新盘(hd0,msdos2),并手工改好了UUID;旧硬盘,装进移动硬盘盒(BIOS识别为usb-HDD,并可引导,见下图),Ubuntu的Grub2已经配置好,可以正...
i'm trying the debian 3.1 sarge system. i have two usb storage devices, 32M and 128M. i use the 'mount -t vfat /dev/sda1 /mnt/usb' command line. the 32M device can be detected by kernel , but the 128M device failed. i'm a novice to linux, how can i do to use the 128M device?. the 128M device can automatically get detected under redhat as 4. i would appreciate some help...
i'm trying the debian 3.1 sarge system. i have two usb storage devices, 32M and 128M. i use the 'mount -t vfat /dev/sda1 /mnt/usb' command line. the 32M device can be detected by kernel , but the 128M device failed. i'm a novice to linux, how can i do to use the 128M device?. the 128M device can automatically get detected under redhat as 4. i would appreciate some help...
i do not have a space to put my stuff, so i put the driver in my blog. the site is chinese please see attachment.click the 下载. i'm sorry for your unconvenience 文件:release.tar.gz 大小:6KB 下载: 下载 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/24716/showart_266081.html
这几天一直在看usb driver,主要是usb_storage部分,等看完了我会写点东西的。 usb driver Stack 1. usb Host Controller driver (For internal usb interface) 2. usb-CORE (Dispatch usb Request to Host Controller driver) 3. usb Device driver, such as usb-storage.( For external usb device, such as U盘) 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/14897/showart_81513.html