On Mon, 24 Jul 2006, Maulik Mankad wrote: > Hi, > > I am working on IXP465 USB host driver and have ported the Linux 2.6.12 host > driver for it. > > The enumeration happens perfectly fine as seen on the USB analyzer. > > I can see the details of my pen drive (usb device) in /proc/scsi/scsi. > > The problem is that sda entry does not get created in /dev. > > I am loading five drivers in the following sequence. > (1) modprobe usbcore > (2) modprobe scsi_mod > (3) modprobe sd_mod > (4) modprobe usb-storage > (5) modprobe ehci-hcd > > I have attached the file with the dmesg logs. I am getting "Bad Target > Number" in these logs. Can somebody let me know why does this come and how > to solve it?
The "Bad Target Number" messages are normal. They do not indicate a problem. They show up because a real SCSI bus can support up to 8 or 16 targets, but the USB mass storage protocol allows for only a single target. So when the SCSI core tries to probe for additional targets, those debugging messages get printed. > I also get "Attached scsi removable disk sda at scsi0, channel 0, id 0, lun > 0" in these logs. Still no entry is made in /dev regarding sda. That's because the kernel isn't responsible for creating /dev/sda. You are. Or if you use udev, then udev is. > I need to mount the drive and without this entry in /dev I cannot do so. > > Please let me know how shall I procede. If you're not using udev then you may need to run the MAKEDEV script or something equivalent. Tell it to create the sd[a-z]... device entries. Alan Stern ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel