NetBSD Problem Report #9506
Received: (qmail 27193 invoked from network); 29 Feb 2000 14:59:35 -0000
Message-Id: <200002291459.XAA16888@azarin.localnet>
Date: Tue, 29 Feb 2000 23:59:11 +0900 (JST)
From: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
Reply-To: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
To: gnats-bugs@gnats.netbsd.org
Cc: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
Subject: cdrecord doesn't work on powerpc port
X-Send-Pr-Version: 3.95
>Number: 9506
>Category: pkg
>Synopsis: cdrecord doesn't work on powerpc due to endian detect problem
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 29 07:00:01 +0000 2000
>Closed-Date: Mon Mar 13 19:24:08 +0000 2000
>Last-Modified: Mon Mar 13 19:25:14 +0000 2000
>Originator: SUNAGAWA Keiki
>Release: 2000-02-29
>Organization:
home
>Environment:
System: NetBSD azarin 1.4P NetBSD 1.4P (AZARIN) #84: Wed Dec 1 21:54:14 JST 1999 kei@azarin:/a/anoncvs/netbsd/src/sys/arch/macppc/compile/AZARIN macppc
>Description:
Due to the problem of detecting endianness, cdrecord didn't recognize
my MATSUSHITA CW-7502 on my macppc machine.
>How-To-Repeat:
connect CD-R to a powerpc box and see cdrecord fails to work.
>Fix:
replace patch-ac to this (patch to the patch file is hard to read, so
I send new version).
XXX with this patch, my macppc box properly probe my CD-R drive, but
on-board mesh is instable with DMA bulk transfer and causes SCSI bus
lock up. It's only SCSI hardware on my macppc box, so please someone
who has another on-board SCSI or cards test and commit this?
My sparc classic works well with this drive for 4x speed writing with
this patch.
XXX I didn't test this with little endian machine.
$NetBSD$
--- include/btorder.h.orig Mon Jul 20 08:28:10 1998
+++ include/btorder.h Tue Feb 15 23:18:23 2000
@@ -25,6 +25,7 @@
#define _BTORDER_H
#include <sys/types.h> /* try to load isa_defs.h on Solaris */
+#include <sys/endian.h>
#if defined(_BIT_FIELDS_LTOH) || defined(_BIT_FIELDS_HTOL)
@@ -46,14 +47,14 @@
# endif
# if defined(__i386) || defined(i386) || \
- defined(__alpha) || defined(alpha)
+ defined(__alpha) || defined(alpha) || defined(__arm6__) || defined(__arm__)
# define _BIT_FIELDS_LTOH
# endif
# if defined(__ppc__) || defined(ppc) || defined(__ppc) || \
- defined(__PPC) || defined(powerpc)
+ defined(__PPC) || defined(powerpc) || defined(__powerpc__)
-# if defined(__BIG_ENDIAN__)
+# if defined(__BIG_ENDIAN__) || BYTE_ORDER == BIG_ENDIAN
# define _BIT_FIELDS_HTOL
# else
# define _BIT_FIELDS_LTOH
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: scw
State-Changed-When: Sat Mar 4 16:59:26 GMT 2000
State-Changed-Why:
Added the BYTE_ORDER == BIG_ENDIAN patch.
Please test this on a PowerPC platform to ensure the problem is fixed.
State-Changed-From-To: feedback->closed
State-Changed-By: scw
State-Changed-When: Mon Mar 13 19:24:08 GMT 2000
State-Changed-Why:
Fixed. Although the submitter has spotted another MACHINE != MACHINE_ARCH
problem with cdrecord which will be reported in a new PR.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.