Date: Sun, 11 May 2008 18:04:22 -0400 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Aragon Gouveia <aragon@phat.za.net> Cc: freebsd-gnome@freebsd.org Subject: Re: New policykit/consolekit/hald problem(s) Message-ID: <1210543462.49665.20.camel@shumai.marcuscom.com> In-Reply-To: <20080511205857.GA37397@phat.za.net> References: <20080511071119.GA77668@phat.za.net> <1210531604.49665.9.camel@shumai.marcuscom.com> <20080511195559.GA29942@phat.za.net> <1210536509.49665.18.camel@shumai.marcuscom.com> <20080511204235.GA35607@phat.za.net> <20080511205857.GA37397@phat.za.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-eDmj37fZKno6wfMEPLiP Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2008-05-11 at 22:58 +0200, Aragon Gouveia wrote: > | By Aragon Gouveia <aragon@phat.za.net> > | [ 2008-05-11 22:42 +0200 ] > > | By Joe Marcus Clarke <marcus@marcuscom.com> > > | [ 2008-05-11 22:08 +0200 ] > > > It appears you have a problem with your ATA controller. Hal isn't > > > picking up any children on atapci0. What does atacontrol list report= ? > >=20 > > # atacontrol list > > atacontrol: ioctl(IOCATADEVICES): Device not configured > >=20 > > The system has an ICH9 controller and a Marvell 88SX6101 controller onb= oard.=20 > > The optical drive is connected to the Marvell controller (PATA). >=20 > I think I see what the problem is in the atacontrol utility. It assumes = ata > channels start from zero, but that is not the case for my system which > starts from 2. >=20 > if (!strcmp(argv[1], "list") && argc =3D=3D 2) { > int maxchannel; > =20 > if (ioctl(fd, IOCATAGMAXCHANNEL, &maxchannel) < 0) > err(1, "ioctl(IOCATAGMAXCHANNEL)"); > for (channel =3D 0; channel < maxchannel; channel++) > info_print(fd, channel, 1); > exit(EX_OK); > } >=20 > I edited the for loop to initialise channel to 2 and the output looks mor= e > sane now: >=20 > # atacontrol list > ATA channel 2: > Master: acd0 <LITE-ON DVDRW SOHW-1653S/CS0T> ATA/ATAPI revision 5 > Slave: no device present > ATA channel 3: > Master: ad6 <ST3750330AS/SD15> Serial ATA II > Slave: no device present > ATA channel 4: > Master: ad8 <ST3750330AS/SD15> Serial ATA II > Slave: no device present > ATA channel 5: > Master: no device present > Slave: no device present > ATA channel 6: > Master: no device present > Slave: no device present > ATA channel 7: > Master: no device present > Slave: no device present > ATA channel 8: > Master: no device present > Slave: no device present > atacontrol: ioctl(IOCATADEVICES): Device not configured >=20 >=20 > However, this hasn't fixed hald. Maybe it is making a similar mistake as > atacontrol? I think you need to bring this up with Soren (sos@). If atacontrol is making this assumption, it's probably doing so for a reason. Maybe there's a deeper kernel bug that needs to be fixed. Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-eDmj37fZKno6wfMEPLiP Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkgnbWYACgkQb2iPiv4Uz4f+kgCeN549fLmYbDC6Ymr0ZV18bk/g hcwAni/ro/pYHLCKTiJgBhf/Y5O9UdRx =30hE -----END PGP SIGNATURE----- --=-eDmj37fZKno6wfMEPLiP--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1210543462.49665.20.camel>