Re: macppc install56.iso - CD issues

2014-12-09 Thread Dennis Davis
On Tue, 9 Dec 2014, patrick keshishian wrote:

 From: patrick keshishian pkesh...@gmail.com
 To: misc misc@openbsd.org
 Date: Tue, 9 Dec 2014 08:10:43
 Subject: macppc install56.iso - CD issues

...

 On a related note, how can base tools (cdio(1)?) be used
 instead of cdrecord(1) (from ports) to burn these images
 to disc?

As described in the FAQ, 4.3.1 - Making a CD-ROM ?
-- 
Dennis Davis dennisda...@fastmail.fm



Re: macppc install56.iso - CD issues

2014-12-09 Thread Fred

On 12/09/14 08:10, patrick keshishian wrote:

Hi,

I must be doing something wrong here and need some hints
to figure out what.

My attempts to burn macppc install56.iso to a CD seems to
produce un-bootable discs. I'm using cdrecord(1) to perform
the burns.

At the Open Firmware prompt I issue:

0  boot cd:,ofwboot /5.6/macppc/bsd.rd

and that results in:

DISK-LABEL: read of block0 failed
ATAPI-DISK: open of DISK-LABEL failed can't OPEN: cd:,ofwboot
Can't open device or file
  ok
0 

I went through four different burn attempts; one with Dec
7th snapshot. And three right now with Dec 8th one.

I tested with official 5.6 CD and that CD boots just fine.

This is how the image was burned to disc:

# cdrecord -v dev=/dev/rcd0c install56.iso
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 default
s.
Cdrecord-ProDVD-ProBD-Clone 3.00 (amd64-unknown-openbsd5.6) Copyright (C) 1995-2
[...]
BURN-Free is ON.
Turning BURN-Free off
Performing OPC...
Sending CUE sheet...
cdrecord: WARNING: Drive returns wrong startsec (0) using -150
Writing pregap for track 1 at -150
Starting new track at sector: 0
Track 01:  218 of  218 MB written (fifo 100%) [buf  99%]  33.1x.
Track 01: Total bytes read/written: 228696064/228696064 (111668 sectors).
Writing  time:   75.670s
Average write speed  22.3x.
Min drive buffer fill was 97%
Fixating...
Fixating time:3.591s
cdrecord: fifo had 3723 puts and 3723 gets.
cdrecord: fifo was 0 times empty and 1843 times full, min fill was 95%.
# echo $?
0

Note the WARNING.

Also note that burning an amd64 image works just fine
(with same WARNING during cdrecord phase).

On a related note, how can base tools (cdio(1)?) be used
instead of cdrecord(1) (from ports) to burn these images
to disc?

Thanks in advance,
--patrick



Hi,

What happens when you hold the 'c' key during reboot?

If you mount the disks under a working system is ofwboot in the / ?

hth

Fred



Re: macppc install56.iso - CD issues

2014-12-09 Thread Maurice McCarthy
Check out http://www.openbsd.org/faq/faq4.html#MkCD-ROM
and faq13.

It reads: 

# cdio tao cd56.iso 

Regards



Re: macppc install56.iso - CD issues

2014-12-09 Thread patrick keshishian
Hi Fred,

On 12/9/14, Fred open...@crowsons.com wrote:
 On 12/09/14 08:10, patrick keshishian wrote:
 Hi,

 I must be doing something wrong here and need some hints
 to figure out what.

 My attempts to burn macppc install56.iso to a CD seems to
 produce un-bootable discs. I'm using cdrecord(1) to perform
 the burns.

 At the Open Firmware prompt I issue:

 0  boot cd:,ofwboot /5.6/macppc/bsd.rd

 and that results in:

 DISK-LABEL: read of block0 failed
 ATAPI-DISK: open of DISK-LABEL failed can't OPEN: cd:,ofwboot
 Can't open device or file
   ok
 0 

 I went through four different burn attempts; one with Dec
 7th snapshot. And three right now with Dec 8th one.

 I tested with official 5.6 CD and that CD boots just fine.

 This is how the image was burned to disc:

 # cdrecord -v dev=/dev/rcd0c install56.iso
 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
 default
 s.
 Cdrecord-ProDVD-ProBD-Clone 3.00 (amd64-unknown-openbsd5.6) Copyright (C)
 1995-2
 [...]
 BURN-Free is ON.
 Turning BURN-Free off
 Performing OPC...
 Sending CUE sheet...
 cdrecord: WARNING: Drive returns wrong startsec (0) using -150
 Writing pregap for track 1 at -150
 Starting new track at sector: 0
 Track 01:  218 of  218 MB written (fifo 100%) [buf  99%]  33.1x.
 Track 01: Total bytes read/written: 228696064/228696064 (111668 sectors).
 Writing  time:   75.670s
 Average write speed  22.3x.
 Min drive buffer fill was 97%
 Fixating...
 Fixating time:3.591s
 cdrecord: fifo had 3723 puts and 3723 gets.
 cdrecord: fifo was 0 times empty and 1843 times full, min fill was 95%.
 # echo $?
 0

 Note the WARNING.

 Also note that burning an amd64 image works just fine
 (with same WARNING during cdrecord phase).

 On a related note, how can base tools (cdio(1)?) be used
 instead of cdrecord(1) (from ports) to burn these images
 to disc?

 Thanks in advance,
 --patrick


 Hi,

 What happens when you hold the 'c' key during reboot?

I get gray screen with folder and flashing ?.

 If you mount the disks under a working system is ofwboot in the / ?

Yes sir.

$ sudo mount /dev/cd0a /mnt/cd
$ ls /mnt/cd
5.6/ ofwboot

--patrick


 hth

 Fred



Re: macppc install56.iso - CD issues

2014-12-09 Thread patrick keshishian
On 12/9/14, Maurice McCarthy m...@mythic-beasts.com wrote:
 Check out http://www.openbsd.org/faq/faq4.html#MkCD-ROM
 and faq13.

 It reads:

 # cdio tao cd56.iso

Thanks Maurice and Dennis for point me to the FAQ on
cdio(1) usage.

Richard Toohey was first to respond in private with the
hint as well.

I didn't want to muddy the unbootable iso image issue
with cdio(1) usage, so I didn't mention that I had tried
the following based on reading cdio(1) man-page:

$ sudo cdio -v -f /dev/rcd0c  tao -d install56.iso
Features:
0x Profile List (60 bytes of data)
  * 0x0009 Write once Compact Disc [Current Profile]
0x0001 Core (8 bytes of data)
0x0002 Morphing (4 bytes of data)
0x0003 Removable Medium (4 bytes of data)
0x0021 Incremental Streaming Writable (8 bytes of data)
0x002d CD Track at Once (TAO) (4 bytes of data)
0x002e CD Mastering (Session at Once) (4 bytes of data)
0x0100 Power Management
0x0105 Timeout (4 bytes of data)
0x0107 Real Time Streaming (4 bytes of data)
0x0108 Drive Serial Number (12 bytes of data)
0x010c Firmware Information (16 bytes of data)
cdio: mode select failed: 3

I just assumed I was missing something subtle in its
usage or perhaps another needed tool. I should have
verified with the FAQ indeed.

--patrick




 Regards



Re: macppc install56.iso - CD issues

2014-12-09 Thread Fred

On 12/09/14 19:07, patrick keshishian wrote:

Hi Fred,

On 12/9/14, Fred open...@crowsons.com wrote:

On 12/09/14 08:10, patrick keshishian wrote:

Hi,

I must be doing something wrong here and need some hints
to figure out what.

My attempts to burn macppc install56.iso to a CD seems to
produce un-bootable discs. I'm using cdrecord(1) to perform
the burns.

At the Open Firmware prompt I issue:

0  boot cd:,ofwboot /5.6/macppc/bsd.rd

and that results in:

DISK-LABEL: read of block0 failed
ATAPI-DISK: open of DISK-LABEL failed can't OPEN: cd:,ofwboot
Can't open device or file
   ok
0 

I went through four different burn attempts; one with Dec
7th snapshot. And three right now with Dec 8th one.

I tested with official 5.6 CD and that CD boots just fine.

This is how the image was burned to disc:

# cdrecord -v dev=/dev/rcd0c install56.iso
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
default
s.
Cdrecord-ProDVD-ProBD-Clone 3.00 (amd64-unknown-openbsd5.6) Copyright (C)
1995-2
[...]
BURN-Free is ON.
Turning BURN-Free off
Performing OPC...
Sending CUE sheet...
cdrecord: WARNING: Drive returns wrong startsec (0) using -150
Writing pregap for track 1 at -150
Starting new track at sector: 0
Track 01:  218 of  218 MB written (fifo 100%) [buf  99%]  33.1x.
Track 01: Total bytes read/written: 228696064/228696064 (111668 sectors).
Writing  time:   75.670s
Average write speed  22.3x.
Min drive buffer fill was 97%
Fixating...
Fixating time:3.591s
cdrecord: fifo had 3723 puts and 3723 gets.
cdrecord: fifo was 0 times empty and 1843 times full, min fill was 95%.
# echo $?
0

Note the WARNING.

Also note that burning an amd64 image works just fine
(with same WARNING during cdrecord phase).

On a related note, how can base tools (cdio(1)?) be used
instead of cdrecord(1) (from ports) to burn these images
to disc?

Thanks in advance,
--patrick



Hi,

What happens when you hold the 'c' key during reboot?


I get gray screen with folder and flashing ?.



I have had that when I messed up an install (I dual boot my iBook) and 
ended up to use my Mac OS X disks to reformat the drive - with a bigger 
OpenBSD partition.


There used to be apple support article on their NVRAM instructions - but 
my apple / google foo is not finding it which you can use to boot from 
other devices.


I did find this article in my search - but I'm not sure it links to 
anything useful...


http://support.apple.com/en-us/ts2570

hth

Fred



Re: macppc install56.iso - CD issues

2014-12-09 Thread patrick keshishian
On 12/9/14, Fred open...@crowsons.com wrote:
 On 12/09/14 19:07, patrick keshishian wrote:
 On 12/9/14, Fred open...@crowsons.com wrote:
 What happens when you hold the 'c' key during reboot?

 I get gray screen with folder and flashing ?.

 I have had that when I messed up an install (I dual boot my iBook) and
 ended up to use my Mac OS X disks to reformat the drive - with a bigger
 OpenBSD partition.

Not quite the situation with my macppc, as it is not
dual booting and it is dealing with CD media not HDD.

I believe the issue has to do with the newly burned CD
or the source install56.iso image.

As I pointed out the official 5.6 CD boots just fine. Later

I also don't think it is the CD-R media, as I verified I can
burn an amd64 image (install56.iso file) and it boots
fine (on an amd64 hw of course).

Best,
--patrick



Re: macppc install56.iso - CD issues

2014-12-09 Thread Fred

On 12/09/14 20:51, patrick keshishian wrote:

On 12/9/14, Fred open...@crowsons.com wrote:

On 12/09/14 19:07, patrick keshishian wrote:

On 12/9/14, Fred open...@crowsons.com wrote:

What happens when you hold the 'c' key during reboot?


I get gray screen with folder and flashing ?.


I have had that when I messed up an install (I dual boot my iBook) and
ended up to use my Mac OS X disks to reformat the drive - with a bigger
OpenBSD partition.


Not quite the situation with my macppc, as it is not
dual booting and it is dealing with CD media not HDD.

I believe the issue has to do with the newly burned CD
or the source install56.iso image.

As I pointed out the official 5.6 CD boots just fine. Later

I also don't think it is the CD-R media, as I verified I can
burn an amd64 image (install56.iso file) and it boots
fine (on an amd64 hw of course).

Best,
--patrick


Using:

-rw-r--r--1 ftp  ftp  228696064 Dec 09 01:32 install56.iso

from mirror.ox.ac.uk - I have successfully upgraded by burning a cdrom:

ibook:fred ~ uname -a; dmesg|head
OpenBSD ibook.crowsons.com 5.6 GENERIC#344 macppc
[ using 551184 bytes of bsd ELF symbol table ]
console out [ATY,Via_A]console in [keyboard] , using ADB
using parent ATY,ViaParent:: memaddr 9800 size 800, : consaddr 
9c008000, : ioaddr 9002, size 2: width 1024 linebytes 1024 
height 768 depth 8

Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2014 OpenBSD. All rights reserved. http://www.OpenBSD.org

OpenBSD 5.6-current (GENERIC) #344: Mon Dec  8 17:57:34 MST 2014
dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 536870912 (512MB)

Cheers

Fred



Re: macppc install56.iso - CD issues

2014-12-09 Thread patrick keshishian
On 12/9/14, Fred Crowson f...@crowsons.net wrote:
 On 12/09/14 20:51, patrick keshishian wrote:
 On 12/9/14, Fred open...@crowsons.com wrote:
 On 12/09/14 19:07, patrick keshishian wrote:
 On 12/9/14, Fred open...@crowsons.com wrote:
 What happens when you hold the 'c' key during reboot?

 I get gray screen with folder and flashing ?.

 I have had that when I messed up an install (I dual boot my iBook) and
 ended up to use my Mac OS X disks to reformat the drive - with a bigger
 OpenBSD partition.

 Not quite the situation with my macppc, as it is not
 dual booting and it is dealing with CD media not HDD.

 I believe the issue has to do with the newly burned CD
 or the source install56.iso image.

 As I pointed out the official 5.6 CD boots just fine. Later

 I also don't think it is the CD-R media, as I verified I can
 burn an amd64 image (install56.iso file) and it boots
 fine (on an amd64 hw of course).

 Best,
 --patrick


Hi Fred,

 Using:

 -rw-r--r--1 ftp  ftp  228696064 Dec 09 01:32 install56.iso

 from mirror.ox.ac.uk - I have successfully upgraded by burning a cdrom:

Thanks for *this* info. I was hoping someone would
provide something like this.

That's the exact install56.iso I was using yesterday from
Colorado (US) mirror (IIRC):

$ cksum -a sha256 install56.iso
SHA256 (install56.iso) =
586ab0c9d30fba85c19e6c45071fc0dfbe78190bfaf89f244bfbebceeae611ff

$ strings 5.6/macppc/bsd* | grep -A1 ^OpenBSD\ 5.6-current
OpenBSD 5.6-current (GENERIC) #344: Mon Dec  8 17:57:34 MST 2014
dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
OpenBSD 5.6-current (GENERIC.MP) #396: Mon Dec  8 18:14:39 MST 2014
dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC.MP
OpenBSD 5.6-current (RAMDISK) #344: Mon Dec  8 18:30:19 MST 2014
dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/RAMDISK


 ibook:fred ~ uname -a; dmesg|head
 OpenBSD ibook.crowsons.com 5.6 GENERIC#344 macppc
 [ using 551184 bytes of bsd ELF symbol table ]
 console out [ATY,Via_A]console in [keyboard] , using ADB
 using parent ATY,ViaParent:: memaddr 9800 size 800, : consaddr
 9c008000, : ioaddr 9002, size 2: width 1024 linebytes 1024
 height 768 depth 8
 Copyright (c) 1982, 1986, 1989, 1991, 1993
  The Regents of the University of California.  All rights reserved.
 Copyright (c) 1995-2014 OpenBSD. All rights reserved.
 http://www.OpenBSD.org

 OpenBSD 5.6-current (GENERIC) #344: Mon Dec  8 17:57:34 MST 2014
  dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
 real mem = 536870912 (512MB)

 Could the issue be the CD drive in the box?

(this is on a Mac mini G4)
It is starting to look that way, except the fact it boots
with the official 5.6 CD :-)

Couple of experiments I just did:

Pulled my iBook G4 out and it seems OK with the burned
CD image.

so...

   macmini boot off of official 5.6 CD
   macmini drop down to shell
   macmini disklabel cd0

# /dev/rcd0c:
type: ATAPI
disk: OpenBSD5.6 CD 2
label: www.OpenBSD.org
duid: 
flags:
bytes/sector: 2048
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 3255
total sectors: 325488
boundstart:0
boundend: 325488
drivedata: 0

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a:   3254880  ISO9660
  c:   3254880  ISO9660

   macmini eject cd0

   - insert burnt CD (that doesn't boot)

   macmini disklabel cd0

# /dev/rcd0c:
type: ATAPI
disk: ATAPI CD-ROM
label: fictitious
duid: 
flags:
bytes/sector: 2048
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 4001
total sectors: 40
boundstart: 0
boundend: 0
drivedata: 0

0 partitions:
#size   offset  fstype [fsize bsize  cpg]

   macmini eject cd0

   - insert it into iBook

   ibook disklabel cd0

# /dev/rcd0c:
type: ATAPI
disk: OpenBSD/macppc
label: 5.6 install CD
duid: 
flags:
bytes/sector: 2048
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 1117
total sectors: 111664
boundstart: 0
boundend: 111664
drivedata: 0

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a:   1116640  ISO9660
  c:   1116640  ISO9660


I don't understand this. The Mac mini isn't seeing the
burnt media. It has in the past, as I have/had a May 4th
2014 snapshot on it.

Thanks for persisting Fred.

If anyone has any ideas ...

--patrick