Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 May 2008 22:58:57 +0200
From:      Aragon Gouveia <aragon@phat.za.net>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        freebsd-gnome@freebsd.org
Subject:   Re: New policykit/consolekit/hald problem(s)
Message-ID:  <20080511205857.GA37397@phat.za.net>
In-Reply-To: <20080511204235.GA35607@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>

next in thread | previous in thread | raw e-mail | index | archive | help
| 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?
> 
> # atacontrol list
> atacontrol: ioctl(IOCATADEVICES): Device not configured
> 
> The system has an ICH9 controller and a Marvell 88SX6101 controller onboard. 
> The optical drive is connected to the Marvell controller (PATA).

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.

        if (!strcmp(argv[1], "list") && argc == 2) {
                int maxchannel;
        
                if (ioctl(fd, IOCATAGMAXCHANNEL, &maxchannel) < 0)
                        err(1, "ioctl(IOCATAGMAXCHANNEL)");
                for (channel = 0; channel < maxchannel; channel++)
                        info_print(fd, channel, 1);
                exit(EX_OK);
        }

I edited the for loop to initialise channel to 2 and the output looks more
sane now:

# 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


However, this hasn't fixed hald.  Maybe it is making a similar mistake as
atacontrol?


Thanks,
Aragon




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080511205857.GA37397>