Port-alpha archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

writing cdhdtape to CD



Just for the sake of experimenting, I thought I'd try writing
NetBSD/alpha 5.0's cdhdtape file to CD and booting from it, but so
far it hasn't worked.  The steps I followed are shown below.  The
cdrecord commands were executed on a PC running NetBSD/i386 5.0.  I
used the -v option in the hope it might help to clear up the problem.

I've tried using two different CD-R/W discs in case one was damaged,
and also tried booting a 164LX with the same result as below.

Booting from a hard disk to which the same cdhdfile had been copied
worked fine.

By the way, what's the correct block size to use when writing
cdhdtape to a hard disk with dd, bs=16k as shown in

ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-5.0/alpha/INSTALL.txt

or 18k as shown in

ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-5.0/alpha/installation/diskimage/README.files

Both values seem to work OK.


Ray


Burning cdhdtape to CD
----------------------

# cdrecord dev=/dev/rcd0d:@ -v blank=fast
Cdrecord-ProDVD-ProBD-Clone 2.01.01a59 (i386-unknown-netbsd5.0)
Copyright (C) 1995-2009 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: '/dev/rcd0d:@'
devname: '/dev/rcd0d'
scsibus: -2 target: -2 lun: -2
Using libscg version 'schily-0.9'.
SCSI buffer size: 61440
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'PLEXTOR '
Identifikation : 'CD-R   PX-W8432T'
Revision       : '1.09'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC SWABAUDIO
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 2394336 = 2338 KB
Drive pbuf size: 4194304 = 4096 KB
Drive DMA Speed: 10778 kB/s 61x CD 7x DVD 2x BD
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 6
  Reference speed: 0
Disk Is not unrestricted
Disk Is erasable
  ATIP start of lead in:  -11078 (97:34/22)
  ATIP start of lead out: 359849 (79:59/74)
  1T speed low:  0 (reserved val  0) 1T speed high:  4
  power mult factor: 3 5
  recommended erase/write power: 3
  A1 values: 02 3A B0
  A2 values: 00 00 00
Disk type:    Phase change
Manuf. index: 11
Manufacturer: Mitsubishi Chemical Corporation
cdrecord: Input/output error. read_format_capacities: scsi sendcmd:
retryable error
CDB:  23 00 00 00 00 00 00 00 04 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 20 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x20 Qual 0x00 (invalid command operation code) Fru 0x0
Sense flags: Blk 0 (not valid)
resid: 4
cmd finished after 0.000s timeout 40s
New start of lead in: 0 (00:02/00)
New start of lead out: -1 (00:01/74)
Starting to write CD/DVD/BD at speed 4 in real BLANK mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Performing OPC...
Blanking PMA, TOC, pregap
Blanking time:   45.346s
#
# ls -l cdhdtape
-r-xr-xr-x  1 ray  wheel  3776512 May 14 10:59 cdhdtape
# md5 cdhdtape
MD5 (cdhdtape) = 2165582d6591ca74a9a483c3522e52a8
#
# cdrecord dev=/dev/rcd0d:@ -v -eject driveropts=burnproof cdhdtape
cdrecord: No write mode specified.
cdrecord: Assuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive
dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 2.01.01a59 (i386-unknown-netbsd5.0)
Copyright (C) 1995-2009 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: '/dev/rcd0d:@'
devname: '/dev/rcd0d'
scsibus: -2 target: -2 lun: -2
Using libscg version 'schily-0.9'.
Driveropts: 'burnproof'
SCSI buffer size: 61440
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'PLEXTOR '
Identifikation : 'CD-R   PX-W8432T'
Revision       : '1.09'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC SWABAUDIO
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 2394336 = 2338 KB
Drive pbuf size: 4194304 = 4096 KB
Drive DMA Speed: 10893 kB/s 61x CD 7x DVD 2x BD
FIFO size      : 4194304 = 4096 KB
Track 01: data     3 MB
Total size:        4 MB (00:24.58) = 1844 sectors
Lout start:        4 MB (00:26/44) = 1844 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 6
  Reference speed: 0
Disk Is not unrestricted
Disk Is erasable
  ATIP start of lead in:  -11078 (97:34/22)
  ATIP start of lead out: 359849 (79:59/74)
  1T speed low:  0 (reserved val  0) 1T speed high:  4
  power mult factor: 3 5
  recommended erase/write power: 3
  A1 values: 02 3A B0
  A2 values: 00 00 00
Disk type:    Phase change
Manuf. index: 11
Manufacturer: Mitsubishi Chemical Corporation
cdrecord: Input/output error. read_format_capacities: scsi sendcmd:
retryable error
CDB:  23 00 00 00 00 00 00 00 04 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 20 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x20 Qual 0x00 (invalid command operation code) Fru 0x0
Sense flags: Blk 0 (not valid)
resid: 4
cmd finished after 0.000s timeout 200s
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 358005
Starting to write CD/DVD/BD at speed 4 in real SAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Sending CUE sheet...
Writing pregap for track 1 at -150
Starting new track at sector: 0
Track 01:    3 of    3 MB written (fifo 100%) [buf  96%]   4.4x.
Track 01: Total bytes read/written: 3776512/3776512 (1844 sectors).
Writing  time:   67.648s
Average write speed   0.4x.
Min drive buffer fill was 96%
Fixating...
Fixating time:    4.895s
cdrecord: fifo had 62 puts and 62 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
#
# cdrecord dev=/dev/rcd0d:@ -media-info
Cdrecord-ProDVD-ProBD-Clone 2.01.01a59 (i386-unknown-netbsd5.0)
Copyright (C) 1995-2009 Jörg Schilling
scsidev: '/dev/rcd0d:@'
devname: '/dev/rcd0d'
scsibus: -2 target: -2 lun: -2
Using libscg version 'schily-0.9'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'PLEXTOR '
Identifikation : 'CD-R   PX-W8432T'
Revision       : '1.09'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC SWABAUDIO
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Disk Is erasable
data type:                standard
disk status:              complete
session status:           complete
BG format status:         none
first track:              1
number of sessions:       1
first track in last sess: 1
last track in last sess:  1
Disk Is not unrestricted
Disk type: CD-DA or CD-ROM
last start of lead in: 716730
last start of lead out: 1166730

Track  Sess Type   Start Addr End Addr   Size
==============================================
    1     1 Data   0          1843       1844

Last session start address:         0
Last session leadout start address: 1844
#


Attempting to boot the alpha
----------------------------

*** keyboard not plugged in ...

ff.fe.fd.fc.fb.fa.f9.f8.f7.f6.f5.CPU 0 speed is 2.00 ns (500MHz)

Digital Personal WorkStation 500au5.e4.
Console V7.2-1 Mar  6 2000 14:47:02

sh dev
dkc400.4.0.11.0            DKC400     PLEXTOR CD-R   PX-W4012S  1.05
dva0.0.0.0.1               DVA0
ewa0.0.0.3.0               EWA0              00-00-F8-75-5E-6F
fwa0.0.0.12.0              FWA0              00-00-F8-63-18-65
pkc0.7.0.11.0              PKC0                  SCSI Bus ID 7  5.57
pkd0.7.0.1008.0            PKD0                  SCSI Bus ID 7
pqa0.0.0.4.0               PQA0                       PCI EIDE
pqb0.0.1.4.0               PQB0                       PCI EIDE

b dkc400
(boot dkc400.4.0.11.0 -flags a)
block 0 of dkc400.4.0.11.0 is a valid boot block
reading 82 blocks from dkc400.4.0.11.0
bootstrap code read in
base = 1d8000, image_start = 0, image_bytes = a400
initializing HWRPB at 2000
initializing page table at 1ca000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code

NetBSD/alpha 5.0 ustar Bootstrap, Revision 1.3
(builds%b4.netbsd.org@localhost, Sun Apr 26 05:45:58 UTC 2009)

VMS PAL rev: 0x1000000010114
OSF PAL rev: 0x1000000020116
Switch to OSF PAL code succeeded.

Boot flags: a
9784992@@@@@@@@@read text: Input/output error
@@@@@@@@@open netbsd.gz: Input/output error
@@@@@@@@@open netbsd.bak: Input/output error
@@@@@@@@@open netbsd.bak.gz: Input/output error
@@@@@@@@@open netbsd.old: Input/output error
@@@@@@@@@open netbsd.old.gz: Input/output error
@@@@@@@@@open onetbsd: Input/output error
@@@@@@@@@open onetbsd.gz: Input/output error
@@@@@@@@@open netbsd.alpha: Input/output error
@@@@@@@@@open netbsd.alpha.gz: Input/output error

Boot failed!  Halting...

halted CPU 0

halt code = 5
HALT instruction executed
PC = 2000003c

boot -file netbsd -flags a dkc400
(boot dkc400.4.0.11.0 -file netbsd -flags a)
block 0 of dkc400.4.0.11.0 is a valid boot block
reading 82 blocks from dkc400.4.0.11.0
bootstrap code read in
base = 1d8000, image_start = 0, image_bytes = a400
initializing HWRPB at 2000
initializing page table at 1ca000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code

NetBSD/alpha 5.0 ustar Bootstrap, Revision 1.3
(builds%b4.netbsd.org@localhost, Sun Apr 26 05:45:58 UTC 2009)

VMS PAL rev: 0x1000000010114
OSF PAL rev: 0x1000000020116
Switch to OSF PAL code succeeded.

Boot file: netbsd
Boot flags: a
9784992@@@@@@@@@read text: Input/output error

Boot failed!  Halting...

halted CPU 0

halt code = 5
HALT instruction executed
PC = 2000003c



Trying with a different CD drive:


*** keyboard not plugged in ...

ff.fe.fd.fc.fb.fa.f9.f8.f7.f6.f5.CPU 0 speed is 2.00 ns (500MHz)

Digital Personal WorkStation 500au5.e4.
Console V7.2-1 Mar  6 2000 14:47:02


sh dev
dkb0.0.1.4.0               DKB0            SONY CD-RW  CRX230E  QYS1
dkc400.4.0.11.0            DKC400     PLEXTOR CD-R   PX-W4012S  1.05
dva0.0.0.0.1               DVA0
ewa0.0.0.3.0               EWA0              00-00-F8-75-5E-6F
fwa0.0.0.12.0              FWA0              00-00-F8-63-18-65
pkc0.7.0.11.0              PKC0                  SCSI Bus ID 7  5.57
pkd0.7.0.1008.0            PKD0                  SCSI Bus ID 7
pqa0.0.0.4.0               PQA0                       PCI EIDE
pqb0.0.1.4.0               PQB0                       PCI EIDE

b dkb0
(boot dkb0.0.1.4.0 -flags a)
block 0 of dkb0.0.1.4.0 is a valid boot block
reading 82 blocks from dkb0.0.1.4.0
bootstrap code read in
base = 1d8000, image_start = 0, image_bytes = a400
initializing HWRPB at 2000
initializing page table at 1ca000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code

NetBSD/alpha 5.0 ustar Bootstrap, Revision 1.3
(builds%b4.netbsd.org@localhost, Sun Apr 26 05:45:58 UTC 2009)

VMS PAL rev: 0x1000000010114
OSF PAL rev: 0x1000000020116
Switch to OSF PAL code succeeded.

Boot flags: a
9784992@@@@@@@@@read text: Input/output error
@@@@@@@@@open netbsd.gz: Input/output error
@@@@@@@@@open netbsd.bak: Input/output error
@@@@@@@@@open netbsd.bak.gz: Input/output error
@@@@@@@@@open netbsd.old: Input/output error
@@@@@@@@@open netbsd.old.gz: Input/output error
@@@@@@@@@open onetbsd: Input/output error
@@@@@@@@@open onetbsd.gz: Input/output error
@@@@@@@@@open netbsd.alpha: Input/output error
@@@@@@@@@open netbsd.alpha.gz: Input/output error

Boot failed!  Halting...

halted CPU 0

halt code = 5
HALT instruction executed
PC = 2000003c

boot -file netbsd -flags a dkb0
(boot dkb0.0.1.4.0 -file netbsd -flags a)
block 0 of dkb0.0.1.4.0 is a valid boot block
reading 82 blocks from dkb0.0.1.4.0
bootstrap code read in
base = 1d8000, image_start = 0, image_bytes = a400
initializing HWRPB at 2000
initializing page table at 1ca000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code

NetBSD/alpha 5.0 ustar Bootstrap, Revision 1.3
(builds%b4.netbsd.org@localhost, Sun Apr 26 05:45:58 UTC 2009)

VMS PAL rev: 0x1000000010114
OSF PAL rev: 0x1000000020116
Switch to OSF PAL code succeeded.

Boot file: netbsd
Boot flags: a
9784992@@@@@@@@@read text: Input/output error

Boot failed!  Halting...

halted CPU 0

halt code = 5
HALT instruction executed
PC = 2000003c



Home | Main Index | Thread Index | Old Index