history

ÀÄÌÚÆüµ­ RSS

<Á°¤ÎÆü | ¤³¤Î·î | ¼¡¤ÎÆü>

2003-09-15

¢£ ATAPI CD-R on Alpha (2)

³¤­¡£

Linux ¤Ç ATAPI ¤Î CD-R ¥É¥é¥¤¥Ö¤ò»È¤¦¤Ë¤Ï ¤Þ¤º IDE ¤Î SCSI ¥¨¥ß¥å¥ì¡¼¥·¥ç¥ó¥ì¥¤¥ä¤òÆ°ºî¤µ¤»¤ëɬÍפ¬¤¢¤ë¡£

¤Ç¡¢¤½¤Î¤¿¤á¤Ë¤Ï¥«¡¼¥Í¥ë¤Ë¥³¥Þ¥ó¥É¥é¥¤¥ó¥Ñ¥é¥á¡¼¥¿¤òÅϤµ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£ ¥«¡¼¥Í¥ë¤Î¥Ñ¥é¥á¡¼¥¿¤Ï x86 ¥Þ¥·¥ó¤À¤È lilo.conf ¤Ê¤É¤Ë½ñ¤¯¤¬¡¢ Alpha ¤Ï lilo ¤Ç¤Ê¤¯ aboot ¤Ê¤Î¤Ç /etc/aboot.conf ¤Ë½ñ¤¯¡£

dpw600au % cat /etc/aboot.conf
0:1/vmlinuz ro root=/dev/sda1 console=ttyS0 hdc=ide-scsi

¤½¤ó¤Ç¥ê¥Ö¡¼¥È¤¹¤ë¤È dmesg ¤¬¤³¤ó¤Ê¤Õ¤¦¤Ë¤Ê¤ë¡£

            :
            :
            :
ide_setup: hdc=ide-scsi
            :
            :
            :
hdc: AOPEN CD-RW CRW4852 1.00 20030123, ATAPI CDROM drive
ide1 at 0x170-0x177,0x376 on irq 15
Floppy drive(s): fd0 is 2.88M
FDC 0 is a post-1991 82077
            :
            :
            :

¤³¤Î¤è¤¦¤Ë hdc ¤¬¸¡½Ð¤µ¤ì¤ë¤¬ ide1 ¤Î¾å¤Ë¤Ï½Ð¤Æ¤³¤Ê¤¤¡£

¤Ç¤â¤Ã¤Æ¼¡¤Ë ide-scsi ¥â¥¸¥å¡¼¥ë¤ò¥ª¥ó¤Ë¤·¤Æ¤ß¤ë¤È¡¢

dpw600au % sudo modprobe ide-scsi
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 2 hosts.
  Vendor: AOPEN     Model: CD-RW CRW4852     Rev: 1.00
  Type:   CD-ROM                             ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi1, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.11

¤È¤¤¤¦¶ñ¹ç¤Ë SCSI ¥É¥é¥¤¥Ö¤È¤·¤Æ¸¡½Ð¤µ¤ì¤¿¡£ cdrecord -scanbus ¤ò¼Â¹Ô¤·¤Æ¤Á¤ã¤ó¤È¸«¤¨¤ë¤«³Î¤«¤á¤Æ¤ß¤ë¡£

dpw600au % sudo cdrecord -scanbus
Cdrecord 1.10 (alphaev67-unknown-linux-gnu) Copyright (C) 1995-2001 Jöòg Schilling
Linux sg driver version: 2.1.40
Using libscg version 'schily-0.5'
scsibus0:
        0,0,0     0) 'DEC     ' 'RZ2CC-KA (C) DEC' '5520' Disk
        0,1,0     1) 'DEC     ' 'RZ2DC-KA (C) DEC' '5520' Disk
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) 'AOPEN   ' 'CD-RW CRW4852   ' '1.00' Removable CD-ROM
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *

¤³¤Î¤è¤¦¤Ë¡¢1,0,0 ¤È¤·¤Æ¤Á¤ã¤ó¤È¸«¤¨¤Æ¤¤¤ë¡£¤¢¤È¤ÏÆɤó¤Ç½ñ¤¯¤À¤±¡£

dpw600au % cdda2wav -D 1,0,0 -x -B
   :
   :
dpw600au % cdrecord dev=1,0,0 speed=48 -audio -useinfo -eject -v *.wav
Cdrecord 1.10 (alphaev67-unknown-linux-gnu) Copyright (C) 1995-2001 Jöòg Schilling
TOC Type: 0 = CD-DA
cdrecord: Invalid argument. shmget failed
dpw600au %

¡Ä¡Ä¤Ï¤¤¡©

Google ¤·¤Æ¤ß¤¿¤È¤³¤í¡¢´Ä¶­ÊÑ¿ô¤Ç CDR_FIFOSIZE=4000k ¤È¤¹¤ì¤Ð¤¤¤¤¤é¤·¤¤¡£ Àµ³Î¤Ë¸À¤¦¤È¡¢¥·¥§¥¢¡¼¥É¥á¥â¥ê¤ÎºÇÂçÎ̤òĶ¤¨¤Ê¤¤¤è¤¦¤ËÀßÄꤹ¤ì¤Ð¤¤¤¤¤é¤·¤¤¡£ ¥·¥§¥¢¡¼¥É¥á¥â¥ê¤ÎºÇÂçÎÌ¤Ï /proc/sys/kernel/shmmax ¤Ç¸«¤é¤ì¤ë¡£ ¥Ç¥Õ¥©¥ë¥È¤À¤È¤³¤ì¤¬ 4MB ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤«¤é¡¢ 4MB °Ê²¼¤Ë¤¹¤ì¤ÐÂç¾æÉפȤ¤¤¦¤ï¤±¤À¤Ê¡£ ¤À¤«¤éµÕ¤Ë shmmax ¤Î¤Û¤¦¤òÁý¤ä¤·¤Æ¤â²ò·è¤Ç¤­¤ë (¼Â¸³ºÑ)¡£ axp-list ¤Ç¸«ÉÕ¤«¤ë¤È¤¤¤¦¤³¤È¤Ï Alpha ÆÃÍ­¤Ê¤Î¤«¤Ê¡©

dpw600au % CDR_FIFOSIZE=4000k sudo cdrecord dev=1,0,0 speed=48 -audio -useinfo -eject -v *.wav
Cdrecord 1.10 (alphaev67-unknown-linux-gnu) Copyright (C) 1995-2001 Jöòg Schilling
TOC Type: 0 = CD-DA
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Linux sg driver version: 2.1.40
Using libscg version 'schily-0.5'
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'AOPEN   '
Identifikation : 'CD-RW CRW4852   '
Revision       : '1.00'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags   : SWABAUDIO
Drive buf size : 1359872 = 1328 KB
FIFO size      : 4096000 = 4000 KB
Track 01: audio  54 MB (05:24.62) no preemp
Track 02: audio  18 MB (01:51.70) no preemp
           ¡§
           ¡§
Performing OPC...
Starting new track at sector: 0
Track 01:  54 of  54 MB written (fifo 100%).
Track 01: Total bytes read/written: 57264144/57264144 (24347 sectors).
           ¡§
           ¡§

7 ʬ¤Ç¾Æ¤­½ª¤ï¤Ã¤¿¡£¤µ¤¹¤¬¤Ë 48 ÇÜ®¤Ï®¤¤¡£

̾Á°
¥á¡¼¥ë¥¢¥É¥ì¥¹

<Á°¤ÎÆü | ¤³¤Î·î | ¼¡¤ÎÆü>
2002|04|05|06|07|08|09|10|11|12|
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|04|05|06|09|10|
2009|07|
2010|09|

Copyright (c) 2002-2007 ÀÄÌÚÊöϺ / Minero Aoki. All rights reserved. LIRS