Your message dated Mon, 08 Aug 2005 06:02:07 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#321655: fixed in powerpc-utils 1.1.3-17
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 6 Aug 2005 17:51:23 +0000
>From [EMAIL PROTECTED] Sat Aug 06 10:51:23 2005
Return-path: <[EMAIL PROTECTED]>
Received: from 153-133-088-212.ip-addr.teresto.net (Redstar.dorchain.net)
[212.88.133.153]
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1E1SpO-00066S-00; Sat, 06 Aug 2005 10:51:22 -0700
Received: (from [EMAIL PROTECTED])
by Redstar.dorchain.net (8.13.4/8.13.4) id j76HpKNG001393
for [EMAIL PROTECTED]; Sat, 6 Aug 2005 19:51:20 +0200
Date: Sat, 6 Aug 2005 19:51:20 +0200
From: Joerg Dorchain <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: nvsetenv and nvsetvol should sync nvram after changes
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="5G+Imvfxoe+o1e80"
Content-Disposition: inline
X-message-flag: Formating hard disk. please wait... 10%... 20%...
User-Agent: Mutt/1.5.9i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
--5G+Imvfxoe+o1e80
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Package: powerpc-utils
Version: 1.1.3-16
Tags: patch
Hi,
nvsetenv and nvsetvol can write to the nvram. The current generic_nvram
driver (2.6.12) has no special close function. The pmac_nvram driver can
only read or write whole nvram banks, so it allocates a ram buffer for
them.
This leads to the effect that the updated values can get lost, as
the changes are not written back to the physical nvram (happens e.g. on
an iBook G4)
The enclosed patch works around this problem from userspace by calling
the available ioctl for syncing the nvram explicitly.
Bye,
Joerg
--- nvsetenv.c.orig 2005-08-06 19:20:54.000000000 +0200
+++ nvsetenv.c 2005-08-06 19:31:54.000000000 +0200
@@ -14,6 +14,12 @@
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
+#include <sys/ioctl.h>
+#include <asm/nvram.h>
+#ifndef IOC_NVRAM_SYNC
+#warning IOC_NVRAM_SYNC undefined -- update your headers
+#define IOC_NVRAM_SYNC _IO('p', 0x43)
+#endif
=20
#define NVSTART 0x1800 // Start of the NVRam OF partition
#define NVSIZE 0x800 // Size of of the NVRam
@@ -325,6 +331,7 @@
else
nvOld(ac, av, i, nvfd);
=20
+ (void) ioctl(nvfd, IOC_NVRAM_SYNC);
(void) close(nvfd);
exit(EXIT_SUCCESS);
}
--- nvsetvol.c.orig 2005-08-06 19:21:09.000000000 +0200
+++ nvsetvol.c 2005-08-06 19:33:23.000000000 +0200
@@ -15,6 +15,12 @@
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
+#include <sys/ioctl.h>
+#include <asm/nvram.h>
+#ifndef IOC_NVRAM_SYNC
+#warning IOC_NVRAM_SYNC undefined -- update your headers
+#define IOC_NVRAM_SYNC _IO('p', 0x43)
+#endif
=20
typedef struct {
unsigned char sig;
@@ -99,6 +105,7 @@
die("error writing /dev/nvram");
printf("new volume is %d\n", buf[VOLADDR]);
}
+ ioctl(fd, IOC_NVRAM_SYNC);
close(fd);
return 0;
}
--- nvvideo.c.orig 2005-08-06 19:21:46.000000000 +0200
+++ nvvideo.c 2005-08-06 19:38:25.000000000 +0200
@@ -3,6 +3,12 @@
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
+#include <sys/ioctl.h>
+#include <asm/nvram.h>
+#ifndef IOC_NVRAM_SYNC
+#warning IOC_NVRAM_SYNC undefined -- update your headers
+#define IOC_NVRAM_SYNC _IO('p', 0x43)
+#endif
=20
#define NVSTART 0x140f
#define NVSIZE 0x2
@@ -96,6 +102,7 @@
break;
}
=20
+ (void) ioctl(nvfd, IOC_NVRAM_SYNC);
(void) close(nvfd);
exit(EXIT_SUCCESS);
}
--5G+Imvfxoe+o1e80
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFC9PiYjY4+4PdzvOARAgNxAKCIPiFq+/w9TXyF7bpFmVaqnu+07QCfZcNf
VcN57zWbOBWXGl6Kdg6M+YY=
=49QR
-----END PGP SIGNATURE-----
--5G+Imvfxoe+o1e80--
---------------------------------------
Received: (at 321655-close) by bugs.debian.org; 8 Aug 2005 13:11:10 +0000
>From [EMAIL PROTECTED] Mon Aug 08 06:11:10 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
id 1E27GZ-0005UH-00; Mon, 08 Aug 2005 06:02:07 -0700
From: Michael Schmitz <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.56 $
Subject: Bug#321655: fixed in powerpc-utils 1.1.3-17
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Mon, 08 Aug 2005 06:02:07 -0700
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 2
Source: powerpc-utils
Source-Version: 1.1.3-17
We believe that the bug you reported is fixed in the latest version of
powerpc-utils, which is due to be installed in the Debian FTP archive:
powerpc-utils_1.1.3-17.diff.gz
to pool/main/p/powerpc-utils/powerpc-utils_1.1.3-17.diff.gz
powerpc-utils_1.1.3-17.dsc
to pool/main/p/powerpc-utils/powerpc-utils_1.1.3-17.dsc
powerpc-utils_1.1.3-17_powerpc.deb
to pool/main/p/powerpc-utils/powerpc-utils_1.1.3-17_powerpc.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Michael Schmitz <[EMAIL PROTECTED]> (supplier of updated powerpc-utils package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Mon, 08 Aug 2005 14:40:34 +0200
Source: powerpc-utils
Binary: powerpc-utils
Architecture: source powerpc
Version: 1.1.3-17
Distribution: unstable
Urgency: low
Maintainer: Michael Schmitz <[EMAIL PROTECTED]>
Changed-By: Michael Schmitz <[EMAIL PROTECTED]>
Description:
powerpc-utils - Various utilities for Linux/PowerPC
Closes: 320566 321655
Changes:
powerpc-utils (1.1.3-17) unstable; urgency=low
.
* Fix for iBook G4 failure to save nvram data (as manifest by failure to
properly store the boot chime volume). Patch by Joerg Dorchain
<[EMAIL PROTECTED]>.
Closes: #321655, #320566.
Files:
4ea63ae06176a5055a47c82e79813f96 640 base required powerpc-utils_1.1.3-17.dsc
dd8e10fa8b09837e470cd73065db1ca6 26762 base required
powerpc-utils_1.1.3-17.diff.gz
1e474d861faa96e6eccc7d5c8e70421f 37674 base required
powerpc-utils_1.1.3-17_powerpc.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFC91MdjH3TJU9qR44RAr4AAJ9Z9ZO0pGy4uYQbMcaf1jVtPdcVRQCbBuj4
9ulVjAKh5osJWnUFf3IsIHg=
=bUNp
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]