Hello All,
dabyd64, thank You for Your useful thread and all the research going on here!
I did Your mod to my TP-Link TL-WR740n v.4.23. Then I flashed the router with pczolee's compiled version and finally - with dabyd64's.
However, when I attach a USB storage (flash drive or MP3 player), I get the following added to the system log:
[ 941.730000] usb 1-1: new full-speed USB device number 2 using ehci-platform
[ 941.890000] scsi0 : usb-storage 1-1:1.0
[ 942.890000] scsi 0:0:0:0: Direct-Access OMNI MP3 Player 0100 PQ: 0 ANSI: 4
[ 942.900000] scsi 0:0:0:1: Direct-Access OMNI MP3 Player 0100 PQ: 0 ANSI: 4
[ 942.920000] sd 0:0:0:0: [sda] 247808 512-byte logical blocks: (126 MB/121 MiB)
[ 942.940000] sd 0:0:0:0: [sda] Write Protect is off
[ 942.940000] sd 0:0:0:0: [sda] Mode Sense: 38 00 00 00
[ 942.960000] sd 0:0:0:0: [sda] No Caching mode page present
[ 942.960000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 942.970000] sd 0:0:0:1: [sdb] Attached SCSI removable disk
[ 942.990000] sd 0:0:0:0: [sda] No Caching mode page present
[ 943.000000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 943.010000] sda: sda1
[ 943.030000] sd 0:0:0:0: [sda] No Caching mode page present
[ 943.030000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 943.040000] sd 0:0:0:0: [sda] Attached SCSI removable disk
So the file system doesn't get mounted.
Here's the output of fdisk -l:
root@OpenWrt:~# fdisk -l
Disk /dev/mtdblock0: 0 MB, 131072 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock0 doesn't contain a valid partition table
Disk /dev/mtdblock1: 1 MB, 1004032 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock1 doesn't contain a valid partition table
Disk /dev/mtdblock2: 2 MB, 2993152 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock2 doesn't contain a valid partition table
Disk /dev/mtdblock3: 0 MB, 327680 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock3 doesn't contain a valid partition table
Disk /dev/mtdblock4: 0 MB, 65536 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock4 doesn't contain a valid partition table
Disk /dev/mtdblock5: 3 MB, 3997696 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock5 doesn't contain a valid partition table
Disk /dev/sda: 126 MB, 126877696 bytes
256 heads, 44 sectors/track, 22 cylinders
Units = cylinders of 11264 * 512 = 5767168 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 22 123882 b Win95 FAT32
And here's what happens when I create a directory /tmp/run/mountd/sda1 and try to mount /dev/sda1:
root@OpenWrt:/tmp/run/mountd/sda1# pwd
/tmp/run/mountd/sda1
root@OpenWrt:/tmp/run/mountd/sda1# mount /dev/sda1 /tmp/run/mountd/sda1
NTFS signature is missing.
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
If I try to mount /dev/sda, I also get an error:
root@OpenWrt:/tmp/run/mountd# mount /dev/sda /tmp/run/mountd/sda1/
NTFS signature is missing.
Failed to mount '/dev/sda': Invalid argument
The device '/dev/sda' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
mount: mounting /dev/sda on /tmp/run/mountd/sda1/ failed: Invalid argument
The file system I formatted the player in is ext4. Here's the ouput of dmesg when I connect it to a Debian Squeeze PC:
[ 4960.560527] usb 2-8: new full speed USB device using ohci_hcd and address 4
[ 4960.847146] usb 2-8: New USB device found, idVendor=066f, idProduct=8305
[ 4960.847156] usb 2-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4960.847163] usb 2-8: Product: MP3 Player
[ 4960.847168] usb 2-8: Manufacturer: OMNI
[ 4960.847172] usb 2-8: SerialNumber: 23DE8E08B9D449A0
[ 4960.847383] usb 2-8: configuration #1 chosen from 1 choice
[ 4960.907586] Initializing USB Mass Storage driver...
[ 4960.907808] scsi6 : SCSI emulation for USB Mass Storage devices
[ 4960.908273] usbcore: registered new interface driver usb-storage
[ 4960.908279] USB Mass Storage support registered.
[ 4960.909488] usb-storage: device found at 4
[ 4960.909494] usb-storage: waiting for device to settle before scanning
[ 4965.909862] usb-storage: device scan complete
[ 4965.916826] scsi 6:0:0:0: Direct-Access OMNI MP3 Player 0100 PQ: 0 ANSI: 4
[ 4965.923802] scsi 6:0:0:1: Direct-Access OMNI MP3 Player 0100 PQ: 0 ANSI: 4
[ 4965.924962] sd 6:0:0:0: Attached scsi generic sg4 type 0
[ 4965.926398] sd 6:0:0:1: Attached scsi generic sg5 type 0
[ 4965.947800] sd 6:0:0:0: [sdd] 247808 512-byte logical blocks: (126 MB/121 MiB)
[ 4965.965816] sd 6:0:0:0: [sdd] Write Protect is off
[ 4965.965827] sd 6:0:0:0: [sdd] Mode Sense: 38 00 00 00
[ 4965.965833] sd 6:0:0:0: [sdd] Assuming drive cache: write through
[ 4965.976801] sd 6:0:0:1: [sde] Attached SCSI removable disk
[ 4966.042784] sd 6:0:0:0: [sdd] Assuming drive cache: write through
[ 4966.042796] sdd: sdd1
[ 4966.081808] sd 6:0:0:0: [sdd] Assuming drive cache: write through
[ 4966.081821] sd 6:0:0:0: [sdd] Attached SCSI removable disk
[ 4967.325887] EXT4-fs (sdd1): recovery complete
[ 4967.325900] EXT4-fs (sdd1): mounted filesystem with ordered data mode
I tried with other flash drives, too. Some of them were formatted in FAT32.
I also measured the voltage when a device is connected and it stays about 5.1 V. I also tried with another 5V power supply and the result is the same.
Here are some photographs of the setup:
Does anybody have any clue on what this issue might be produced from?
Any advice will be very appreciated!
Thank You!
Best regards,
Nickolay