ts-7000
[Top] [All Lists]

RE: [ts-7000] TS7400 usb modules

To: "" <>
Subject: RE: [ts-7000] TS7400 usb modules
From: Jayne Dickinson <>
Date: Mon, 6 Oct 2008 07:55:58 -0700
Hi

Me again, yes true, true I just don't understand the USB driver... The results 
of checking out the partitions formatted on the pendrive

:/dev/scsi/host2/bus0/target0/lun0# ls
disc   part1  part2  part3  part4
:/dev/scsi/host2/bus0/target0/lun0# fdisk -l 
/dev/scsi/host2/bus0/target0/lun0

Interesting eh? I also checked /proc/scsi/scsi and it shows I have been 
plugging in and out various pendrives of which
the USB driver keeps track...

:/dev/scsi/host2/bus0/target0/lun0# more /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: Ut165    Model: USB2FlashStorage Rev: 0.00
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: SanDisk  Model: Cruzer Micro     Rev: 0.1
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: Ut165    Model: USB2FlashStorage Rev: 0.00
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 00 Lun: 00
  Vendor: 2.0      Model: USB Flash Drive  Rev: 1.00
  Type:   Direct-Access                    ANSI SCSI revision: 02


Note there are 3 different types of USB pendrives ... the Ut165 just doesn't 
work with the version of the USB driver...
The Ut165 pendrive mounts just fine on my Debian workstation which is running a 
2.6.18 flavor of Debian... whereas
the TS7400 is still the stock debian that Technologics compiled and loaded into 
the flash ( 2.4.26-ts11 :/dev/scsi/host2/bus0/target0/lun0# lsmod
Module                  Size  Used by    Tainted: P
usb-storage            55912   0
sd_mod                 11100   0
scsi_mod               53816   5 [usb-storage sd_mod]
usb-ohci-ep93xx          888   0 (unused)
usb-ohci               15584   0 [usb-ohci-ep93xx]
pcipool                 2072   1 [usb-ohci-ep93xx usb-ohci]
usbcore                55944   0 [usb-storage usb-ohci]
tsuart0                 8880   0
vfat                   10140   0
fat                    29608   0 [vfat]
bootloader              3040   0


Could there have been an update to the usb-storage driver ( that seems to be 
the one that recognizes various partitions )
Also, should I load msdos filesystem driver or is vfat good enough??




________________________________________
From:   On Behalf Of Jim 
Jackson 
Sent: Saturday, October 04, 2008 8:23 AM
To: 
Subject: RE: [ts-7000] TS7400 usb modules

On Fri, 3 Oct 2008, Jayne Dickinson wrote:

> I tried mounting
>
> :/# mount -t vfat /dev/scsi/host2/bus0/target0/lun0 /mnt/usbdisk
> mount: /dev/scsi/host2/bus0/target0/lun0 is not a block device
>
>
> that didn't work...notice I had to use host2 instead of host0!! What's up 
> with that??
>
> then I tried mounting
> :/# mount -t vfat /dev/scsi/host2/bus0/target0/lun0/part1 /mnt/usbd>
> mount: wrong fs type, bad option, bad superblock on 
> /dev/scsi/host2/bus0/target0/lun0/part1,
> missing codepage or other error
> In some cases useful info is found in syslog - try
> dmesg | tail or so
>
> So then I checked dmesg...
>
> ...
> hub.c: new USB device not_pci-1, assigned address 6
> WARNING: USB Mass Storage data integrity not assured
> USB Mass Storage device found at 6
> VFS: Disk change detected on device 08:20
> SCSI device sdc: 1974272 512-byte hdwr sectors (1011 MB)
> sdc: Write Protect is off
> /dev/scsi/host2/bus0/target0/lun0: p1 p2 p3 p4

It has 4 partitions, try

fdisk -l /dev/scsi/host2/bus0/target0/lun0

It will show you how the pen drive is partitioned. It might be that
the first partition is not formatted msdos/fat/vfat.

USB device assignement can be a bit of a pain. Just because you plug a
pendirve into the same usb socket doesn't mean it will always be allocated
the same scsi device! It depends on what else is plugged in and sometimes
on what has previously been plugged in. This is the same for all Linux
stuff, and is not particular to this device.

> I/O error: dev 08:21, sector 0
> FAT: unable to read boot sector
>
> But If I use a SANDISK pendrive , I can mount host0 with no errors...
>
> Is there another usb driver I need?? This is the TS7400 /128MB Flash
> board... is there another universal driver? I don't want to try mounting
> and loading different usb modules...

I'm pretty sure it's nothing to do with modules. You just don't understand
partitions and how USB works enough.

The reason this problem is dear to me, is that I have a web app, that allows an 
operator
to plug their pendrive into the usb port to perform a backup of the 
configuration data....

Well if they can't plug their pendrive , that's not a good thing, yeah...we 
allow the
operator a second choice of using their filesystem...using tcp/ip...but what if
there is no network connection?? That is why I have to understand if there is
a limit of pendrive models supported by the usb-storage driver... if so, I guess
what version of this driver was utilized for this build?

THanks for your help!!
Jayne


> ________________________________________
> From: <ts-7000%40yahoogroups.com> 
> <ts-7000%40yahoogroups.com>] On Behalf Of Jim 
> Jackson <jj%40franjam.org.uk>]
> Sent: Friday, October 03, 2008 2:44 PM
> To: <ts-7000%40yahoogroups.com>
> Subject: Re: [ts-7000] TS7400 usb modules
>
> On Fri, 3 Oct 2008, Jayne Dickinson wrote:
>
>> I noticed something quite strange when mounting various USB pendrives...
>> not all manufacturers are recognized!
>>
>> Here's the way I mount the pendrive
>> :/# mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/usbdisk
>> mount: special device /dev/scsi/host0/bus0/target0/lun0/part1 does not
>> exist
>>
>>
>> Is there a universal usb pendrive module I need to load besides the
>> current list?
>
> If you grep (or less) the dmesg for references to /dev/scsi/host you will
> find...
>
> /dev/scsi/host0/bus0/target0/lun0: p1
> /dev/scsi/host1/bus0/target0/lun0: p1
>
> 2 good entries, one you could have mounted as you indicate the other would
> be mounted if you changed the special device to ..../host1/....
>
> /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
> /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
> /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
>
> and these are the errors. I'm assuming that you umount'ed the pendrive(s)
> before removing them? If not that could cause problems.
>
> Another possibility is that the pendrive does not contain any partitions
> and the whole device has been formatted - like floppy disks are
> traditionally treated. I've seen such pendrives. Try mounting the
> whole device, not the 1st partition.
>
>>
>> :/# lsmod
>> Module Size Used by Tainted: P
>> usb-storage 55912 0
>> sd_mod 11100 0
>> scsi_mod 53816 3 [usb-storage sd_mod]
>> usb-ohci-ep93xx 888 0 (unused)
>> usb-ohci 15584 0 [usb-ohci-ep93xx]
>> pcipool 2072 1 [usb-ohci-ep93xx usb-ohci]
>> usbcore 55944 0 [usb-storage usb-ohci]
>> tsuart0 8880 0
>> vfat 10140 0
>> fat 29608 0 [vfat]
>> bootloader 3040 0
>>
>>
>> This is the error I get in dmesg
>>
>> :/# dmesg
>> Linux version 2.4.26-ts11  (gcc version 3.3.4) #2 Tue Jun 10
>> 13:55:19 MST 2008
>> CPU: Arm920Tid(wb) revision 0
>> Machine: ep9301
>> On node 0 totalpages: 2048
>> zone(0): 2048 pages.
>> zone(1): 0 pages.
>> zone(2): 0 pages.
>> On node 1 totalpages: 2048
>> zone(0): 2048 pages.
>> zone(1): 0 pages.
>> zone(2): 0 pages.
>> On node 4 totalpages: 2048
>> zone(0): 2048 pages.
>> zone(1): 0 pages.
>> zone(2): 0 pages.
>> On node 5 totalpages: 2048
>> zone(0): 2048 pages.
>> zone(1): 0 pages.
>> zone(2): 0 pages.
>> Kernel command line: root=/dev/ram0 init=/linuxrc printk=4 loops=499712
>> Relocating machine vectors to 0xffff0000
>> Console: colour dummy device 80x30
>> 99.94 BogoMIPS
>> Memory: 8MB 8MB 8MB 8MB = 32MB total
>> Memory: 24504KB available (1223K code, 342K data, 76K init)
>> Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
>> Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
>> Mount cache hash table entries: 512 (order: 0, 4096 bytes)
>> Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
>> Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
>> CPU: Testing write buffer: pass
>> POSIX conformance testing by UNIFIX
>> Linux NET4.0 for Linux 2.4
>> Based upon Swansea University Computer Society NET3.039
>> Initializing RT netlink socket
>> Starting kswapd
>> devfs: v1.12c (20020818) Richard Gooch 
>> <rgooch%40atnf.csiro.au><rgooch%40atnf.csiro.au>)
>> devfs: boot_options: 0x1
>> yaffs Jun 10 2008 13:37:26 Installing.
>> ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
>> ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
>> ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA
>> TS-UART/7400 detected a TS-7400 board
>> ttyTS0 at MMIO 0x12400000 (irq = 33) is a TSUART
>> pty: 1024 Unix98 ptys configured
>> Using DIO to access RTC
>> Real Time Clock Driver v1.10f
>> ep93xx_eth() version: ep93xx_eth.c: V1.0 09/04/2003 Cirrus Logic
>> RAMDISK driver initialized: 16 RAM disks of 12288K size 1024 blocksize
>> Searching for NAND flash...
>> NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB
>> 3,3V 8-bit)
>> Using MBR partition definition
>> Creating 4 MTD partitions on "NAND 128MiB 3,3V 8-bit":
>> 0x00000000-0x08000000 : "whole chip"
>> 0x00020000-0x00220000 : "kernel"
>> 0x00220000-0x00420000 : "initrd"
>> 0x00440000-0x08000000 : "rootfs"
>> NET4: Linux TCP/IP 1.0 for NET4.0
>> IP Protocols: ICMP, UDP, TCP, IGMP
>> IP: routing cache hash table of 512 buckets, 4Kbytes
>> TCP: Hash tables configured (established 2048 bind 4096)
>> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
>> NetWinder Floating Point Emulator V0.97 (double precision)
>> RAMDISK: ext2 filesystem found at block 0
>> RAMDISK: Loading 1024 blocks [1 disk] into ram disk... done.
>> Freeing initrd memory: 4096K
>> EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
>> VFS: Mounted root (ext2 filesystem).
>> Mounted devfs on /dev
>> Freeing init memory: 76K
>> smiCmDio initialized.
>> Searching for NAND flash...
>> NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB
>> 3,3V 8-bit)
>> nand_scan(): Buffers not set. Scan aborted
>> VFS: Can't find ext2 filesystem on dev mtdblock(31,3).
>> yaffs: dev is 7939 name is "1f:03"
>> yaffs: Attempting MTD mount on 31.3, "1f:03"
>> sdcard0: Technologic Systems SD card controller, address 0x13000000
>> sdcard0: no card found
>> Unable to register driver
>> TS-UART/7260 did not detect a TS-7260 board
>> TS-UART/RF2 did not detect a TS-RF2 board
>> usb.c: registered new driver usbdevfs
>> usb.c: registered new driver hub
>> usb-ohci.c: USB OHCI at membase 0xe0020000, IRQ 56
>> usb.c: new USB bus registered, assigned bus number 1
>> hub.c: USB hub found
>> hub.c: 3 ports detected
>> SCSI subsystem driver Revision: 1.00
>> Initializing USB Mass Storage driver...
>> usb.c: registered new driver usb-storage
>> USB Mass Storage support registered.
>> hub.c: new USB device not_pci-3, assigned address 2
>> scsi0 : SCSI emulation for USB Mass Storage devices
>> Vendor: SanDisk Model: Cruzer Micro Rev: 0.1
>> Type: Direct-Access ANSI SCSI revision: 02
>> Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
>> SCSI device sda: 4001760 512-byte hdwr sectors (2049 MB)
>> sda: Write Protect is off
>> Partition check:
>> /dev/scsi/host0/bus0/target0/lun0: p1
>> WARNING: USB Mass Storage data integrity not assured
>> USB Mass Storage device found at 2
>> usb.c: USB disconnect on device not_pci-3 address 2
>> hub.c: new USB device not_pci-3, assigned address 3
>> scsi1 : SCSI emulation for USB Mass Storage devices
>> Vendor: Generic Model: USB Flash Disk Rev: 0.00
>> Type: Direct-Access ANSI SCSI revision: 02
>> Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
>> SCSI device sdb: 2031616 512-byte hdwr sectors (1040 MB)
>> sdb: Write Protect is off
>> /dev/scsi/host1/bus0/target0/lun0: p1
>> WARNING: USB Mass Storage data integrity not assured
>> USB Mass Storage device found at 3
>> sda: Unit Not Ready, sense:
>> Info fld=0xa00 (nonstd), Current 00:00: sns = 70 2
>> Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
>> sda : READ CAPACITY failed.
>> sda : status = 1, message = 00, host = 0, driver = 08
>> Info fld=0xa00 (nonstd), Current sd00:00: sns = 70 2
>> Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
>> sda : block size assumed to be 512 bytes, disk size 1GB.
>> sda: test WP failed, assume Write Enabled
>> /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
>> I/O error: dev 08:00, sector 0
>> unable to read partition table
>> VFS: Disk change detected on device 08:00
>> sda: Unit Not Ready, sense:
>> Info fld=0xa00 (nonstd), Current 00:00: sns = 70 2
>> Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
>> sda : READ CAPACITY failed.
>> sda : status = 1, message = 00, host = 0, driver = 08
>> Info fld=0xa00 (nonstd), Current sd00:00: sns = 70 2
>> Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
>> sda : block size assumed to be 512 bytes, disk size 1GB.
>> sda: test WP failed, assume Write Enabled
>> /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
>> I/O error: dev 08:00, sector 0
>> VFS: Disk change detected on device 08:00
>> sda: Unit Not Ready, sense:
>> Info fld=0xa00 (nonstd), Current 00:00: sns = 70 2
>> Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
>> sda : READ CAPACITY failed.
>> sda : status = 1, message = 00, host = 0, driver = 08
>> Info fld=0xa00 (nonstd), Current sd00:00: sns = 70 2
>> Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
>> sda : block size assumed to be 512 bytes, disk size 1GB.
>> sda: test WP failed, assume Write Enabled
>> /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
>> I/O error: dev 08:00, sector 0
>>
>>
>>
>
>
>



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU