Hi, I'm trying to get OpenWRT running on a AT91 ARM926-based device with 2 usb host ports. After booting, all important drivers get loaded: ohci_hcd and usb-storage. Before powering on the system, an usb flash drive is connected to one usb port.
--snip-- Press the [f] key and hit [enter] to enter failsafe mode - regular preinit - - init - Please press Enter to activate this console. SCSI subsystem initialized ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver at91_ohci at91_ohci: AT91 OHCI at91_ohci at91_ohci: new USB bus registered, assigned bus number 1 at91_ohci at91_ohci: irq 29, io mem 0x00a00000 hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. gpio-buttons driver version 0.1.2 usb 1-1: new full speed USB device using at91_ohci and address 2 hub 1-1:1.0: USB hub found hub 1-1:1.0: 1 port detected usb 1-1.1: new full speed USB device using at91_ohci and address 3 scsi0 : usb-storage 1-1.1:1.0 scsi 0:0:0:0: Direct-Access Generic USB Flash Disk 1.00 PQ: 0 ANSI: 0 CCS sd 0:0:0:0: [sda] Attached SCSI removable disk --snap-- As you can see, the device is not fully recognized: there are some lines missing about the found partitions etc. Also no partions entries show up in /proc/partitions. BUT, when I run e.g. a "dd if=/dev/sda of=/dev/null bs=512 count=1", then the device shows up correctly --snip-- sd 0:0:0:0: [sda] 128000 512-byte logical blocks: (65.5 MB/62.5 MiB) sd 0:0:0:0: [sda] Assuming drive cache: write through sd 0:0:0:0: [sda] Assuming drive cache: write through --snap-- and the "cat /proc/partitions" shows: --snip-- ... 8 0 64000 sda 8 1 56196 sda1 --snap-- I already tried several usb flash drives to eliminate the drive as causal: the behaviour is the same for all. Then I tried to unload the usb-storage module while the usb flash devices remains connected: after re-insmod-ing usb-storage the device shows up correctly. Next test was to disconnect the usb flash drive, unload usb-storage. Then insmod usb-storage and re-connect the usb flash drive to usb port: same strange behaviour as initially described. Is this normal? Do I miss anything? Help! :-) Thank you, Michael PS: kernel version 2.6.34.5, openwrt trunk r23080 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
