September 30, 2004

Burning DVD in Debian

I bought a NU dual 8x DVD-RW in recent. The driver was connected with a usb2ide cable to my tyan2466 and the host USB bus is NEC chip.

Please install the dvd+rw-tools and cdrtools. We need the growisofs in dvd+rw-tools and mkisofs from cdrtools. CDrecord is the optional tool unless you follow the /usr/share/doc/cdrecord/README.DVD.Debian and patch it.

Burn the DVD+R or DVD+RW at once:
growisofs -Z /dev/cdrecord -J -r iso-dir(cdrecord is the device node link to your physical DVD-RW)

Burn the DVD+R with pre-mastered iso:
mkisofs -r -J -o iso iso-dir (the mkisofs in Debian has an unofficial icon-patch and that is different to the original.)
growisofs -Z /dev/cdrecord=iso

Append datas to the DVD+R:
growisofs -M /dev/cdrecord=iso2


Looking for good GUI?
hmm...actually the gui isn't my favorite but I can suggest K3b or XCD-Roast to enjoy the easy burning. :-)

Posted by asho at 08:02 PM | Comments (2267)

September 12, 2004

ide-tcq

tagged command queue

使用過 SCSI 裝置的朋友一定知道 SCSI 的好處在於多工,因為 SCSI 都有 TCQ 的支援,TCQ擁有指令的最佳化,每一個裝置送到 controller 上的信號會被 SCSI 卡重組好後再送給 CPU 處理,所以 CPU 處理的都是 循序的資料。

在 20G 硬碟為主流的年代,IBM有出過一款擁有 command queue的硬碟,但因為價格跟controller不支援的關係退去市場。

在 Linux-2.5/2.6.6 (below) 的版本有實作 ide-tcq,支援 ide 硬碟,但很可惜的是效能不明險和bug的問題,造成 2.6.7 就拿掉了,轉而繼續發展 SATA 的 NCQ(native command queue)。

NCQ 在 SATAll or 2.0(SATA ll增加 NCQ,SATA 2.0 把頻寬加大到 3Gbit/s) 才加入的,必須要 controller , 硬碟,和 OS 都支援才可以。

目前支援的 controller 在Linux: SATA Status Support有說明了,kernel部份還都是 beta階段(還沒成為主流,沒關係)

硬碟部份也是很少的(一定要原生型 SATA,如果硬碟上有一顆 Marvall 的轉接晶片就不會支援 NCQ,因為不是原生型)
seagate:7200.7 的 SATA 硬碟似乎只有 200G 的才有支援 NCQ,或是未來的 梭魚 8
WD:只有萬轉 74G (NT$8000,還算不貴)那一顆才有,36G or 其他的都沒有
Maxtor:只有新版的 MaxLine lll 才支援
Hitachi:in the future...

看來 NCQ普及的時候,PCI-E 也已經普及了,希望雙CPU的高階主機板已經把 PCI-X 改成 PCI-E 了,這樣版子可以做小一點,短一點,CASE才好挑...:-)

Posted by asho at 01:19 PM | Comments (1011)

September 11, 2004

搞定了 kernel-2.6 對 ide 硬碟的問題

先前將小黑換成 kernel-2.6發現偵測不到ide硬碟,因為我是用SCSI硬碟,外掛amd74xx這個模組。

但換了那個版本的 kernel 都不行,今晚看了 post-halloween-2.6才知道,原來ide 的晶片最好是compile in kernel,另外讀取 module可能會有 kernel oops...(就跟小黑的情況一樣),抓了 2.6.8.1+ck7的patch重新compile之後,總算抓到了ide硬碟了耶!!!

真的要好好看一下 post-halloween 才能弄懂 2.6的差別

Posted by asho at 11:55 PM | Comments (1036)

September 10, 2004

Linux: SATA Status Support

Linux SATA Support

Intel ICH5, ICH5-R, ICH6
------------------------
Summary: No TCQ. Looks like a PATA controller, but with a few added,
non-standard SATA port controls. Hardware does not support hotplug.
"Coldplug" support is potentially feasible.

libata driver status: Production, but see issue #2, #3.
Recently work on issue #2 has improved the state of that issue.

drivers/ide driver status: Production, but see issue #1, #2.


Issue #1: Depending on BIOS settings, IDE driver may lock up computer
when probing drives.

Issue #2: Excessive interrupts are seen in some configurations.

Issue #3: "Enhanced mode" or "SATA-only mode" may need to be set in BIOS.

AHCI (Intel ICH6-R/ICH6-M currently)
------------------------------------
Summary: Per-device queues, full SATA control including hotplug
and PM.

libata driver status: "looks like ICH5" support available in ata_piix.
Preliminary driver with full AHCI support now exists, and is being
integrated into libata mainline.

Note1: AHCI specification is completely open.

Note2: To ease integration, AHCI on ICH6 will be deployed inside the
ata_piix driver.

Note3: SiS has AHCI on its roadmap. Hopefully others will follow.


Promise TX2/TX4/SX4
-------------------
Summary: Per-host queues on all controllers. Full SATA control
including hotplug and PM on all but one controller (SX4).

libata TX2/TX4 driver status: Production, but see issue #5.

libata SX4 driver status: Production, but see issue #6.


Issue #5: Some boards appear to have PATA as well as SATA ports. PATA
is not currently supported, and no plans have yet been made to rectify
this. Ideally drivers/ide would drive PATA, but if they are the same
PCI device, that would not be feasible.

Issue #6: The SX4 hardware is not fully utilized by the Linux kernel
driver. The SX4 hardware includes an on-board DIMM and hardware XOR
offload. Using the on-board DIMM as cache, and issuing each RAID
transaction once (instead of once for each disk), will result in
increased performance, but the driver doesn't do that yet. SX4 hardware
is very "RAID friendly", particularly RAID1/5. Users may wish to use
the Promise driver to fully utilize the hardware.


Silicon Image 3112/3114
-----------------------
Summary: No TCQ. Looks like a PATA controller, but with full SATA
control including hotplug and PM.

libata driver status: Beta.

drivers/ide driver status: Beta?


Silicon Image 3124
------------------
Soon, hopefully. Silicon Image has made documentation and sample
hardware available to me (jgarzik) for development. Some code exists
internally.


Broadcom/ServerWorks/Apple
--------------------------
Summary: Huge per-device queues, full SATA control including hotplug
and PM for the "Frodo4" and "Frodo8" boards. Apple K2 SATA, which also
uses this chipset, has all the feature of Frodo4/8 save the host DMA
queueing feature ("QDMA"). QDMA supports legacy TCQ, but not NCQ.

libata driver status: Beta, but no QDMA support yet.


VIA
---
Summary: No TCQ. Looks like a PATA controller, but with full SATA
control including hotplug and PM.

libata driver status: Beta.


NVIDIA
------
Summary: No TCQ. Looks like a PATA controller, but with full SATA
control including hotplug and PM.

libata driver status: Beta.


SiS 180
-------
Summary: No TCQ. Looks like a PATA controller, but with full SATA
control including hotplug and PM.

libata driver status: Beta


Vitesse 7174 / Intel 31244
--------------------------
Summary: NCQ and 64-bit DAC support possible, but not implemented.
Looks like a PATA controller, but with full SATA control including
hotplug and PM.

libata driver status: Beta


Marvell 88SX50[48]x
-------------------
Summary: Similar to ServerWorks "frodo": per-device queues, supports
legacy TCQ but not NCQ (I think??), full SATA control including hotplug
and PM.

libata driver status: in progress


HighPoint (HPT)
---------------
I've had no contact with the company. Someone poke them, and get
them to get me a card and docs :)

libata driver status: no driver planned at this point.


ADMA (including Pacific Digital Talon SATA)
-------------------------------------------
Summary: No control over SATA phy at all (no hotplug/PM). Has
per-device hardware queues, and supports legacy TCQ.

Docs are public (yay!)

libata driver status: none, but hopefully soon


3ware SATA RAID
---------------
Not suited for libata architecture. Separate SCSI driver exists.

------- 我是分格線
看來要等 SATA ll 或是 2.0 普及之後,才會有完整的 NCQ 支援,目前多工上還是 SCSI 比較好

Posted by asho at 10:44 AM | Comments (1094)

SKYPE

好用的VOIP軟體,昨晚跟 jesse 大大玩了一下,音質很贊耶,想必未來一定會成為風潮的,以後要開會都直接線上聊天就可以了。

要去買 mic 回來玩摟

Posted by asho at 10:37 AM | Comments (1137)

September 08, 2004

[閒聊]gtk1.2 的字型設定 in UTF8

之前在 utf8 的環境下設定 .gtkrc 必須使用

iso10646-1

結尾的字體,最近升級sid了 XFree86之後,gtk1.2的程式就出現問題了,把以前的 big5+iso8859-1的字體設定回來之後,xmms,sylpheed的畫面就變正常了。

不知道是不是 DEBIAN 的XFree86 有 tune 什麼東西?

Posted by asho at 02:03 PM | Comments (625)

September 07, 2004

TODO

1:gcin-0.2.8 update
2:gtranscode
- 送 gtk2 的 patch 給作者,並提及接下 gtranscode 的維護
- 增加字幕檔的影片壓縮
3:commit qref

----
要念的書:
1:gtk1/gtk2 的 doc
2:o'reilly: C++ 設計與藝術
3:K.R. 的 C 程式設計
4:advanced Linux Programming
5:linux programming base on kernel-2.4
6:O'reilly: LDAP

Posted by asho at 11:37 PM