搜尋此網誌

顯示具有 喇哩喇雜 標籤的文章。 顯示所有文章
顯示具有 喇哩喇雜 標籤的文章。 顯示所有文章

2013年1月20日 星期日

Check HD whether it has support Staggered Spin-Up(Pin11 of SATA Power Connectot)

Pin 11 can function for staggered spinup, activity indication, both, or nothing. It is an open collector signal, that may be pulled down by the connector or the drive. If pulled down at the connector (as it is on most cable-style SATA power connectors), the drive spins up as soon as power is applied. If left floating, the drive waits until it is spoken to, This prevents many drives from spinning up simultaneously, which might draw too much power. The pin is also pulled low by the drive to indicate drive activity. This may be used to give feedback to the user through an LED.
接地("0")時,HDD動作。浮接(空接)時,HDD等待Controller信號驅動。不是每一種HDD都可以支援。

SATA Power Connector
Pin #MatingFunction
 —Coding notch
13rd3.3 V
23rd
32nd
41stGround
52nd
62nd
72nd5 V
83rd
93rd
102ndGround
113rdStaggered spinup/activity
(in supporting drives)
121stGround
132nd12 V
143rd
153rd

SATA DATA Connector
Pin #MatingFunction
11stGround
22ndA+ (Transmit)
32ndA− (Transmit)
41stGround
52ndB− (Receive)
62ndB+ (Receive)
71stGround
 —Coding notch

WD有幾款硬碟有支援ATA Command Base去喚醒它,可以把預設置設成電源關閉(Power Up in Standby)。

Staggered Spin-Up supported HDD list:

http://highpoint-tech.com/PDF/RR23xx/RR23xx_Compatibility_List.pdf

Effectively there have been 3 attempts by the standards to initiate Staggered Spin:

  1. Original – Drive would not spin until PHY Ready was achieved.  That was not really followed and has gone by the wayside with Microsoft requirements for power to boot time for Windows systems.
  2. P11 - If a drive implements P11 then the drive relies on the host to manage the state of P11 to enable/disable the drive to spin on power.  If P11 is set to enable DSS then the drive will not spin until PHY Ready is achieved.
  3. PUIS – Power In Standby – If PUIS is enabled the drive will power up and remain in spun down state until the drive receives a Set Feature command instructing the drive to spin or until the drive receives a command that requires media access.

2011年7月24日 星期日

如何撰寫一個批次檔

通常把檔案的副檔名,命名成".bat"這個檔案就可以是一個批次檔,可被執行。
echo [on or off] [message]
這個指令是要把訊息,丟到螢幕上。

set [[/a [expression]] [/p [variable=]] string]
設定一個環境變數

call [[Drive:][Path] FileName [BatchParameters]] [:label [arguments]]
可呼叫另一個批次檔

%name
變數代表的值

%name%
變數的內容值

:Label
在批次檔常被用來做跳躍的點

if NOT "%i1%"=="123" goto go1
如果不等於的跳躍


if "%i1%"=="123" goto go1
如果等於的跳躍


範例:
下面的範例"GenAll.bat"批次檔,會去呼叫"GenImage.dat",去執行產生一些檔案。

-----------------------------------------GenAll.bat--------------------------------------------------

set packagename="Release_92xx"
set batfile="GenImage"


del %packagename% /s/q
rd %packagename% /s/q


mkdir %packagename%
cd %packagename%
copy ..\%batfile%.dat .\%batfile%.bat


mkdir CpuAHCI
mkdir CpuIDE
mkdir PassAHCI


echo "========CPU AHCI MODE========" 


set modetype=Cpu
set classtype=AHCI
set idfolder=9220
call %batfile%


set modetype=Cpu
set classtype=AHCI
set idfolder=9230
call %batfile%


set modetype=Cpu
set classtype=AHCI
set idfolder=9236
call %batfile%


set modetype=Cpu
set classtype=AHCI
set idfolder=generic
call %batfile%


echo "========CPU IDE MODE========" 


set modetype=Cpu
set classtype=IDE
set idfolder=922A
call %batfile%


set modetype=Cpu
set classtype=IDE
set idfolder=923A
call %batfile%




echo "========Pass AHCI MODE========" 


set modetype=Pass
set classtype=AHCI
set idfolder=9225
call %batfile%


set modetype=Pass
set classtype=AHCI
set idfolder=9235
call %batfile%


set modetype=Pass
set classtype=AHCI
set idfolder=generic
call %batfile%




del %batfile%.bat
echo "========END========" 
pause


-----------------------------------------GenImage.dat--------------------------------------------------


cd %modetype%%classtype%
mkdir %idfolder%
cd %idfolder%
rem copy /d /y ..\..\..\Mvflash\* .
xcopy ..\..\..\Mvflash\* . /e
cd bin
mkdir Image_Creator
cd Image_Creator
xcopy ..\..\..\..\..\Image_Creator\* . /e


copy ..\..\..\..\..\config\%modetype%_config.txt config.txt
if NOT "%idfolder%"=="generic" goto genericskip
copy ..\..\..\..\..\bios\multiPNPimage\bios.bin .
copy ..\..\..\..\..\autoload\%modetype%%classtype%\%idfolder%\autoload.bin .
goto genericend
:genericskip
copy ..\..\..\..\..\bios\singlePNPimage\%classtype%\%idfolder%b.bin bios.bin
copy ..\..\..\..\..\autoload\%modetype%%classtype%\%idfolder%\autoload.bin .
:genericend


if NOT "%modetype%"=="Cpu" goto cpuskip
copy ..\..\..\..\..\firmware\* .
copy ..\..\..\..\..\loader\* .
:cpuskip


imgCreate.exe
copy image ..\


cd ..\..\..\..\

如何把一些線上功能加入您的網頁

如何加入日本美人計時器[點擊]
如何加入台灣版美人計時器[點擊]
如何加入線上廣播[點擊]