Time-stamp: "1999-12-02 06:07:48 yasuhide"

Acer CRW6206A on Linux

$B@hF|!"%"%-%P$N%=%U%H%/%j%(%$%H(B FM $B4[$G!"(BAcer $B@=$N(B CRW6206A $B$H$$$&(B ATAPI CD-R $B$r(B 15,000$B1_$G9XF~$7$^$7$?!#(B $BL5;v(B Vine Linux 1.1 $B$GF0$+$;$?$N$G!"$A$g$C$H$^$H$a$F$_$^$7$?!#(B

kernel-2.0.36 $B$G$NOC$G$9$,!"B?J,(B 2.0.35/2.1.73 $B0J9_$J$i!"(B $BB>$N%P!<%8%g%s$d(B distribution $B$G$bBg>fIW$@$H;W$$$^$9!#(B README.ATAPI $B$K$O!"(Bkernel $B$,8E$$>l9g$K$O%"%C%W%0%l!<%I$9$k$h$&$K=q$$$F$"$j$^$9!#(B

  1. $B%@%&%s%m!<%I(B
  2. $B%+!<%M%k$N:F9=C[$r$9$k(B
    1. $B%+!<%M%k%Q%C%1!<%8$r:n@.$9$k(B
    2. $B%+!<%M%k%Q%C%1!<%8$r%$%s%9%H!<%k$9$k(B
  3. CD-R $B$NG'<1>u67$r3N$+$a$k(B
  4. mkisofs $B$G(B CD $B%$%a!<%8$r:n@.$9$k(B
  5. $B>F$-9~$_%F%9%H$r9T$J$&(B
  6. $BF$$$F$_$k(B

  1. $B%@%&%s%m!<%I(B
  2. RPM $BCV$->l(B$B$N%Z!<%8$+$i!"(B $B@[:n$N(B cdrecord-1.8a28 $B$N%Q%C%1!<%8$r VinePlus $B$N%Q%C%1!<%8$G$O!";d$O<:GT$7$^$7$?(B (ToT)

    /usr/doc/cdrecord-1.8/README $B$K$O!"$A$c$s$H(B CRW6206A $B$,:\$C$F$$$?$N$G$9$,!"$3$&$$$&$3$H$b$"$k$h$&$G$9!#(B $B$^$!!"0lKg>:E7$5$;$?$@$1$G:Q$s$@$N$G!"$h$7$H$7$h$&!D!#(B

    $ wget http://www.oocities.org/SiliconValley/Program/1018/linux/cdrecord-1.8-0.28.1.i386.rpm
    $ su
    # rpm -Uvh cdrecord-1.8-0.28.1.i386.rpm
    
    $B$G%$%s%9%H!<%k$G$-$^$9!#(B


  3. $B%+!<%M%k$N:F9=C[$r$9$k(B
  4. Vine Linux $B$r;H$C$F$$$k?M$O!"(B $B%+!<%M%k$N%"%C%W%0%l!<%I!"@_Dj$NJ}K!(B$B$N%Z!<%8$r8+$J$,$i$d$k$HJ,$+$j0W$$$G$7$g$&!#(B

    1. $B%+!<%M%k%Q%C%1!<%8$r:n@.$9$k(B
    2. $B$^$:!"(Bkterm, rxvt, Eterm $B$J$I$N%?!<%_%J%k%&%#%s%I%&$r3+$-!"(B

      $ su -
      $B!J%Q%9%o!<%I$rF~NO!K(B
      # /sbin/mkkpkg /mnt/cdrom/SRPMS/kernel-2.0.36-3vl3.src.rpm menuconfig
      
      $B$r

      $B$7$P$i$/BT$D$H!"%+!<%M%k$N@_Dj%a%K%e!<$,=P$F$/$k$N$G!"(B
      Floppy, IDE, and other block devices $B"*(B SCSI emulation support
      $B$r!"%9%Z!<%9%-!<$r2!$7$FA*Br$7$^$9!#(B

      /usr/src/linux/arch/i386/defconfig $B$N5-=R$G$$$($P!"(B

      CONFIG_BLK_DEV_IDESCSI=y
      
      $B$H$$$&Iw$K$J$j$^$9!#(B

      $B$3$N@h$O!";X<($K=>$C$F?J$a$l$P!"%+!<%M%k%Q%C%1!<%8$,:n@.$G$-$^$9!#(B $B;d$O(B Revision $BHV9f$O(B 3vl3.1 $B$H$7$^$7$?!#(B

    3. $B%+!<%M%k%Q%C%1!<%8$r%$%s%9%H!<%k$9$k(B
    4. $ su -
      $B!J%Q%9%o!<%I$rF~NO!K(B
      # init 1
      # cd /usr/src/redhat/RPMS/i386/
      # rpm -ivh kernel-2.0.36-3vl3.1.i386.rpm
      

      $B;d$O%G%9%/%H%C%W%^%7%s$G!"(BIDE $B$N$_$r;H$C$F$$$k$N$G!"(B $B$3$l$@$1$G= # rpm -Uvh kernel-pcmcia-cs-2.0.36-3vl3.1.i386.rpm $B$7$^$7$g$&!#$^$?!"(BSCSI $B%G%P%$%9$r;H$C$F$$$k$N$J$i!"(B

      # mkinitrd /boot/initrd-2.0.36-3vl3.1.img 2.0.36-3vl3.1
      
      $B$r $B$3$3$^$G=*$o$C$?$i!" $B;d$O%V!<%H%m!<%@$K(B grub $B$r;H$C$F$$$k$N$G!"(B/boot/grub/menu.lst $B$K(B
      kernel = (hd0,1)/boot/vmlinuz-2.0.36-3vl3.1 hdc=ide-scsi root=/dev/hda2
      
      $B$H5-=R$7$F$$$^$9!#(BSecondary Master $B$K(B CD-R $B$r7R$$$G$$$k$N$G!"(B hdc $B$r(B ATAPI SCSI emulation $B$GF0$+$9$h$&;XDj$7$F$$$^$9!#(B

      lilo $B$r;H$C$F$$$k?M$J$i!"(B/etc/lilo.conf $B$K(B

      append="hdc=ide-scsi"
      
      $B$H5-=R$7$^$7$g$&!#$9$G$K(B append $B$r;H$C$F$$$k$N$J$i!"(B
      "apm=smp-power-off hdc=ide-scsi"
      
      $B$H=q$1$P$$$$$G$7$g$&$M!#(B[linux-users:54002] $B$b;29M$K$J$k$G$7$g$&!#(B

      /etc/lilo.conf $B$rJT=8$7=*$o$C$?$i!"(B

      # /sbin/lilo -t -v
      
      $B$G!";n$7$K(B lilo $B$,$-$A$s$HF0$/$+;n$7$F$_$^$7$g$&!#$-$A$s$HF0$/$h$&$J$i!"(B
      # /sbin/lilo -v
      
      $B$G!"JT=8$7$?(B /etc/lilo.conf $B$r(B lilo $B$KEPO?$7$^$9!#(B

      $B:G8e$K!"%+!<%M%k%X%C%@!J3+H/!&%3%s%Q%$%kMQ%G!<%?!K!&ImB0J8=q!&%=!<%9$r%$%s%9%H!<%k$7$^$9!#(B

      # rpm -ivh kernel-{headers,documents,source}-2.0.36-3vl3.1.i386.rpm
      
      $B$3$3$G!"%^%7%s$r:F5/F0$5$;$^$9!#$&$^$/N)$A>e$,$l$P!"$3$NCJ3,$O40N;$G$9!#(B $B%+!<%M%k$N:F9=C[$O!"(BLinux User $B$N$?$7$J$_$@$H;W$C$F%^%9%?!<$7$^$7$g$&!#(B


  5. CD-R $B$NG'<1>u67$r3N$+$a$k(B
  6. $ dmesg|less
    hdc: probing with STATUS instead of ALTSTATUS
    hdc: probing with STATUS instead of ALTSTATUS
    hdc: CRW6206A, ATAPI drive - enabling SCSI emulation
    ATAPI overlap supported: No
    ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
    ide1 at 0x170-0x177,0x376 on irq 15
    Floppy drive(s): fd0 is 1.44M
    FDC 0 is a post-1991 82077
    md driver 0.36.3 MAX_MD_DEV=4, MAX_REAL=8
    scsi0 : SCSI host adapter emulation for IDE ATAPI devices
    scsi : 1 host.
      Vendor: ATAPI     Model: CD-R/RW CRW6206A  Rev: 1.3A
      Type:   CD-ROM                             ANSI SCSI revision: 02
    Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
    scsi : detected 1 SCSI cdrom total.
    
    $ cdrecord 2>&1 | less       
    cdrecord: No CD/DVD-Recorder device specified.
    cdrecord: Usage: cdrecord [options] track1...trackn
    Options:
            -version        print version information and exit
            -v              increment general verbose level by one
            -V              increment SCSI command transport verbose level by one
            -debug          print additional debug messages
            dev=target      SCSI target to use as CD/DVD-Recorder
            timeout=#       set the default SCSI command timeout to #.
            driver=name     user supplied driver name, use with extreme care
            -checkdrive     check if a driver for the drive is present
            -prcap          print drive capabilities for MMC compliant drives
            -inq            do an inquiry for the drive end exit
            -scanbus        scan the SCSI bus end exit
            -reset          reset the SCSI bus with the cdrecorder (if possible)
            -ignsize        ignore the known size of a medium (may cause problems)
            -useinfo        use *.inf files to overwrite audio options.
            speed=#         set speed of drive
            blank=type      blank a CD-RW disc (see blank=help)
            fs=#            Set fifo size to # (0 to disable, default is 4 MB)
            -load           load the disk and exit (works only with tray loader)
            -eject          eject the disk after doing the work
            -dummy          do everything with laser turned off
            -msinfo         retrieve multi-session info for mkisofs >= 1.10
            -toc            retrieve and print TOC/PMA data
            -atip           retrieve and print ATIP data
            -multi          generate a TOC that allows multi session
                            In this case default track type is CD-ROM XA2
            -fix            fixate a corrupt or unfixated disk (generate a TOC)
            -nofix          do not fixate disk after writing tracks
            -force          force to continue on some errors to allow blanking bad disks
            -dao            Write disk in DAO mode. This option will go away in the future.
            tsize=#         Length of valid data in next track
            padsize=#       Amount of padding for next track
            pregap=#        Amount of pre-gap sectors before next track
            defpregap=#     Amount of pre-gap sectors for all but track #1
            mcn=text        Set the media catalog number for this CD to 'text'
            isrc=text       Set the ISRC number for the next track to 'text'
            index=list      Set the index list for the next track to 'list'
            -audio          Subsequent tracks are CD-DA audio tracks
            -data           Subsequent tracks are CD-ROM data mode 1 (default)
            -mode2          Subsequent tracks are CD-ROM data mode 2
            -xa1            Subsequent tracks are CD-ROM XA mode 1
            -xa2            Subsequent tracks are CD-ROM XA mode 2
            -cdi            Subsequent tracks are CDI tracks
            -isosize        Use iso9660 file system size for next data track
            -preemp         Audio tracks are mastered with 50/15 $B5s(B preemphasis
            -nopreemp       Audio tracks are mastered with no preemphasis (default)
            -pad            Pad data tracks with 15 zeroed sectors
                            Pad audio tracks to a multiple of 2352 bytes
            -nopad          Do not pad data tracks (default)
            -swab           Audio data source is byte-swapped (little-endian/Intel)
    The type of the first track is used for the toc type.
    Currently only form 1 tracks are supported.
    
    $ cdrecord -checkdrive dev=0,0
    Cdrecord release 1.8a22 Copyright (C) 1995-1999 J$Bvr(Bg Schilling
    scsidev: '0,0'
    scsibus: 0 target: 0 lun: 0
    cdrecord: Permission denied. Cannot open '/dev/sga'.
    
    # ls -l /dev/sga
    crw-------   1 root     sys       21,   0 May  6  1998 /dev/sga
    # chmod go+rw /dev/sga
    $ cdrecord -checkdrive dev=0,0
    Cdrecord release 1.8a22 Copyright (C) 1995-1999 J$Bvr(Bg Schilling
    scsidev: '0,0'
    scsibus: 0 target: 0 lun: 0
    Device type    : Removable CD-ROM
    Version        : 2
    Response Format: 1
    Vendor_info    : 'ATAPI   '
    Identifikation : 'CD-R/RW CRW6206A'
    Revision       : '1.3A'
    Device seems to be: Generic mmc CD-RW.
    Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
    Driver flags   : SWABAUDIO
    
    $ cdrecord -prcap dev=0,0
    Cdrecord release 1.8a22 Copyright (C) 1995-1999 J$Bvr(Bg Schilling
    cdrecord: Operation not permitted. Cannot do mlockall(2).
    
    $ su -
    # cdrecord -prcap dev=0,0
    Cdrecord release 1.8a22 Copyright (C) 1995-1999 J$Bvr(Bg Schilling
    scsidev: '0,0'
    scsibus: 0 target: 0 lun: 0
    Device type    : Removable CD-ROM
    Version        : 2
    Response Format: 1
    Vendor_info    : 'ATAPI   '
    Identifikation : 'CD-R/RW CRW6206A'
    Revision       : '1.3A'
    Device seems to be: Generic mmc CD-RW.
    
    Drive capabilities, per page 2A:
    
      Does read CD-R media
      Does write CD-R media
      Does read CD-RW media
      Does write CD-RW media
      Does not read DVD-ROM media
      Does not read DVD-R media
      Does not write DVD-R media
      Does not read DVD-RAM media
      Does not write DVD-RAM media
      Does support test writing
    
      Does read Mode 2 Form 1 blocks
      Does read Mode 2 Form 2 blocks
      Does read digital audio blocks
      Does restart non-streamed digital audio reads accurately
      Does read multi-session CDs
      Does read fixed-packet CD media using Method 2
      Does not read CD bar code
      Does read R-W subcode information
      Does not return R-W subcode de-interleaved and error-corrected
      Does return CD media catalog number
      Does return CD ISRC information
      Does not support C2 error pointers
      Does not deliver composite A/V data
    
      Does play audio CDs
      Number of volume control levels: 128
      Does support individual volume control setting for each channel
      Does not support independent mute setting for each channel
      Does not support digital output on port 1
      Does not support digital output on port 2
    
      Loading mechanism type: tray
      Does support ejection of CD via START/STOP command
      Does lock media on power up via prevent jumper
      Does allow media to be locked in the drive via PREVENT/ALLOW command
      Is not currently in a media-locked state
      Does not have load-empty-slot-in-changer feature
      Does not support Individual Disk Present feature
    
      Maximum read  speed in kB/s: 1059
      Current read  speed in kB/s: 353
      Maximum write speed in kB/s: 353
      Current write speed in kB/s: 353
      Buffer size in KB: 512
    
    # cdrecord -inq dev=0,0 
    Cdrecord release 1.8a22 Copyright (C) 1995-1999 J$Bvr(Bg Schilling
    scsidev: '0,0'
    scsibus: 0 target: 0 lun: 0
    Device type    : Removable CD-ROM
    Version        : 2
    Response Format: 1
    Vendor_info    : 'ATAPI   '
    Identifikation : 'CD-R/RW CRW6206A'
    Revision       : '1.3A'
    Device seems to be: Generic mmc CD-RW.
    

  7. mkisofs $B$G(B CD $B%$%a!<%8$r:n@.$9$k(B
  8. $B>F$-$?$$%U%!%$%k$N$"$k(B directory $B$K0\F0$7$F!"(B

    $ mkisofs -b images/boot.img -c boot.catalog -J -r -v \
      -V "Vine-1.1" -o /usr/yasuhide/Vine-1.1.iso . 2>&1 \
       | tee /usr/yasuhide/log_Vine-1.1
    
    $B$G=PMh$^$9!#F$-!"(B Windows 95/98/NT4.0 $B$G$b(B Linux $B$G$bD9$$%U%!%$%k%M!<%`$,G'<1$G$-$^$9!#(B


  9. $B>F$-9~$_%F%9%H$r9T$J$&(B
  10. # (date ; cdrecord dev=0,0 speed=2 -dummy -debug \
    /usr/yasuhide/Vine-1.1.iso ; date ) \
    2>&1 | tee /usr/yasuhide/log_Vine-1.1
    


  11. $BF$$$F$_$k(B
  12. # (date ; cdrecord dev=0,0 speed=2 -debug \
    /usr/yasuhide/Vine-1.1.iso ; date ) \
    2>&1 | tee /usr/yasuhide/log_Vine-1.1
    


$B%a!<%k$O(B
dasen@typhoon.co.jp $B$^$G!#(B