Results 1 to 15 of 83

Thread: Firmware to spin-down HDD?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Not working
    HDD: WD800AAJS (S-ATA)
    Bridge: Delock
    Code:
    Host scsi0: usb-storage
    Vendor: JMicron
    Product: USB to ATA/ATAPI Bridge
    Serial Number: 77A091038972
    Protocol: Transparent SCSI
    Transport: Bulk
    GUID: 152d2338000077a091038972
    Attached: Yes
    Vendor=152d ProdID=2338 Rev= 1.00
    Last edited by Jekyll; 17-03-2007 at 12:34.

  2. Cool Working!

    Working:
    HDD: WDC WD4000
    BOX: ViPower VPA-35018 (SATA -> USB)

    Host scsi0: usb-storage
    Vendor: Sunplus Technology Inc.
    Product: USB to Serial-ATA bridge
    Serial Number: WDC WD4000 WD-WCANU1268282
    Protocol: Transparent SCSI
    Transport: Bulk
    GUID: 04fc0c15fff60cb7e1268282
    Attached: Yes
    ASUS wl500g Premium / Seagate 400 GB Sata (3.5")

  3. #3
    Join Date
    Nov 2006
    Location
    Russia, Moscow
    Posts
    170
    I think, it is obvious that spindown capability depends on the hdd box's chipset only. So, I'll try to summarize the facts gathered:
    Code:
    VID	PID	Vendor			Product				Working?
    0402	5637	ALi Corp.		M5637 IDE Controller		no
    04b4	6830	Cypress Semiconductor	USB-2.0 IDE Adapter		no
    04cf	8818	Myson Century, Inc.	Fast 3.5" External Storage	no
    04fc	0c15	Sunplus Technology Inc.	SPIF215A USB-SATA bridge	yes
    04fc	0c25	Sunplus Technology Inc.	USB-SATA bridge			yes
    05e3	0702	Genesys Logic, Inc.	USB 2.0 IDE Adapter		no
    067b	2506	Prolific Tech. Inc.	Mass Storage Device		yes
    067b	2507	Prolific Tech. Inc.	Mass Storage Device		yes
    067b	3507	Prolific Tech. Inc.	ATAPI-6 Bridge Controller	yes
    07ab	fcc7	Freecom			Freecom Mobile Drive		yes
    0930	0b02	Toshiba			GigaStore			yes
    0bc2	0501	Seagate			USB Mass Storage		no
    0c0b	b159	Trekstor		DataStation maxi m.u		yes
    0d49	3210	Maxtor			Maxtor 3200			yes
    0d49	7000	Maxtor			OneTouch			yes
    1058	0704	Western Digital		External HDD			yes
    1058	1010	Western Digital		External HDD			yes
    152d	2338	JMicron			JM20338 SATA, USB Combo		no
    1652	6600	Super Top		USB 2.0  IDE DEVICE		no
    Well, try to know which chipset is in the box before buing it. This page might help.
    Last edited by Xander; 05-07-2008 at 19:16.

  4. #4
    Join Date
    Jul 2006
    Location
    AUT
    Posts
    248

    Lightbulb spindown on USB enclosures with Cypress chip

    Hi,

    regarding to USB enclosures with Cypress chipset, there might be a chance with following command:

    /usr/local/sbin/scsi-start 0 --pc=2 /dev/scsi/host0/bus0/target0/lun0/disc

    if someone has the knowledge how to program USB access, there is a special feature in the Cypress chips to pass-through ATA commands. Details are in the AT2LP rev C datasheet might be only a few lines of code for a pro....

    also the chip has a register for setting autom. spindown value on ATA-initialisation, but I never got it to work....

    schufti

  5. #5
    Works perfectly for me, thanks!
    Freecom 160GB bus-powered HD

    Vendor=07ab
    ProdID=fcc7

    Code:
    Host scsi0: usb-storage
    Vendor: Freecom
    Product: Freecom Mobile Drive
    Serial Number: 02FA0D7506B0
    Protocol: Transparent SCSI
    Transport: Bulk
    GUID: 07abfcc7000002fa0d7506b0
    Attached: Yes

  6. #6

    Spindown via cypres-usb chipset

    I did some experimenting:

    using my pc (ubuntu feisty fawn), I was not able to spin down the harddisk with the scsi-tools either (just as under kamikaze on a wl-500gP).

    the lsusb output of the external HD is:
    ID 04b4:6830 Cypress Semiconductor Corp. USB-2.0 IDE Adapter

    Using the sg3-utils of ubuntu (http://sg.torque.net/sg/sg3_utils.html)
    i did manage to make the disk spin down (but it didn't spin up until
    after a reset of the drive)

    I'm now trying to make a package out of it, but haven't finished yet.

  7. #7

    sg_utils

    I just made an package, but sadly, it doesn´t work.

    on my (ubuntu 7.04) pc, it works as expected:
    Code:
    sg_start --stop --pc=2 /dev/sda
    On my wl-500gP however, it doesn´t:
    Code:
    sg_start --stop --pc=2 /dev/discs/disc1/disc
    start stop unit: pass through os error: Invalid argument
    START STOP UNIT command failed
    I used the exact same source for both the PC and the WL-500G, both are statically build versions, so that´s not the difference.
    On http://sg.torque.net/sg/sg3_utils.html it is noted that for kernel 2.4 the /dev/sg0 interface is required. It can be made with
    Code:
    mknod /dev/sg0 c 21 0
    But I haven´t yet figured out how to enable the support in the kernel for /dev/sgX.
    I can mount and read the disk, so scsi support itself is working fine.

    I´m running kamikaze with 2.4 kernel (for wifi support) Is there anyone interested in testing this for kernel 2.6 ?
    Both the makefile and (compressed) .ipk file are attached.
    Attached Files Attached Files
    Last edited by tuigje; 26-05-2007 at 13:35.

  8. #8
    Hi, I'm actually using teddy_bear's USB Tomato mod on a WL-520GU (stupid 4 MB flash...), and it includes scsi-stop and scsi-start, and I wanted to share my experience with getting it working.

    I used a watt-meter to verify that the disk actually did spin down or up. My setup involves an external enclosure with the following stats.

    Code:
       Host scsi0: usb-storage
           Vendor: JMicron
          Product: JM20336 SATA, USB Combo
    Serial Number: DA0150217888
         Protocol: Transparent SCSI
        Transport: Bulk
             GUID: 152d23360000da0150217888
         Attached: Yes
             Port: 1
              Bus: 00:03.1-1
    
    Vendor=152d ProdID=2336
    This is very similar to one that doesn't work (PID=2338). But I had to do something funny to get mine to work. If I call scsi-stop, the disk spins down, and when I go to access it, the disk becomes inaccessible. If I call scsi-stop and then scsi-start before accessing the disk, it behaves correctly, staying spun down until I go to access it.

    There are other Tomato-specific requirements for scsi-stop and scsi-start. You need to put the script in /jffs, and you need the build with awk. Here's the final script with the other Tomato-specific changes.

    Code:
    #!/bin/sh
    if /usr/bin/[ $# -ne 1 ]; then
            /bin/echo 1>&2 "Usage: $0 <device>"
            exit 1
    fi
    
    PERIOD=30
    BOUNDARY=1200
    SCSISTOP=scsi-stop
    SCSISTART=scsi-start
    LOGFILE=/tmp/scsi-stop.log
    
    searchstr="disk_io:"
    devaddr="(`/bin/ls -l $1 | /usr/bin/awk '{print($5 int($6/16))}'`)"
    
    str=`/bin/grep "$searchstr" /proc/stat | devaddr="$devaddr" /usr/bin/awk -v 'RS= |\n' -F : '{ if($1==ENVIRON["devaddr"]) print($2) }'`
    cooltime=0
    stopped=0
    
    while true; do
            /bin/sleep $PERIOD
            newstr=`/bin/grep "$searchstr" /proc/stat | devaddr="$devaddr" /usr/bin/awk -v 'RS= |\n' -F : '{ if($1==ENVIRON["devaddr"]) print($2) }'`
            if /usr/bin/[ "$newstr" = "$str" ]; then
                    cooltime=$(($cooltime + $PERIOD))
                    if /usr/bin/[ $cooltime -ge $BOUNDARY -a $stopped -eq 0 ]; then
                            $SCSISTOP $1
                            $SCSISTART $1
                            time=`/bin/date '+%b %e %H:%M:%S'`
                            /bin/echo "$time: Cooled down..." >> $LOGFILE
                            stopped=1
                    fi
            else
                    if /usr/bin/[ $cooltime -ne 0 ]; then
                            time=`/bin/date '+%b %e %H:%M:%S'`
                            /bin/echo "$time: Disk first used after $cooltime seconds" >> $LOGFILE
                    fi
                    cooltime=0
                    str=$newstr
                    stopped=0
            fi
    done

  9. #9

    Prestigio external usb hdd

    Prestigio Don't works


    Code:
       Host scsi0: usb-storage
           Vendor: Prestigio
          Product: USB Storage HDD
    Serial Number: 7DF88FFFFFFF
         Protocol: Transparent SCSI
        Transport: Bulk
             GUID: 152d233900007df88fffffff
         Attached: Yes
             Port: 1
              Bus: 01:03.2-1

  10. #10

    Transcend StoreJet 2.5 works well

    Works well
    Box: Transcend StoreJet 2.5 (SATA)
    Code:
       Host scsi1: usb-storage
           Vendor: JMicron
          Product: StoreJet Transcend
    Serial Number: 0D0708925FFF
         Protocol: Transparent SCSI
        Transport: Bulk
             GUID: 152d232900000d0708925fff
         Attached: Yes
             Port: 1.1
              Bus: 01:03.2-1.1
    Code:
    P:  Vendor=152d ProdID=2329 Rev= 0.00
    S:  Manufacturer=JMicron
    S:  Product=StoreJet Transcend

Similar Threads

  1. Use copy-button to spin down hdd?
    By dome in forum WL-700g Q&A
    Replies: 9
    Last Post: 17-10-2007, 02:55
  2. WL 500Gp Keine HDD mehr nach Oleq Firmware Update
    By Greenhorn04 in forum German Discussion - Deutsch (DE)
    Replies: 1
    Last Post: 08-01-2007, 22:15
  3. twonky media server, network drive with oleg firmware
    By black_bottom in forum WL-HDD Q&A
    Replies: 3
    Last Post: 22-03-2006, 07:15
  4. HDD spin down with 1.2.3.4 firmware - how to edit?
    By jpritzkat in forum WL-HDD Q&A
    Replies: 0
    Last Post: 01-05-2005, 22:08
  5. Flashing Oleg's Firmware in WL HDD
    By hugo in forum WL-HDD Custom Development
    Replies: 29
    Last Post: 21-10-2004, 14:55

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •