Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JsLbE-0005HK-0N for mharc-grub-devel@gnu.org; Sat, 03 May 2008 13:32:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JsLbC-0005HE-AQ for grub-devel@gnu.org; Sat, 03 May 2008 13:32:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JsLbB-0005H1-Nr for grub-devel@gnu.org; Sat, 03 May 2008 13:32:37 -0400 Received: from [199.232.76.173] (port=44186 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JsLbB-0005Gy-AW for grub-devel@gnu.org; Sat, 03 May 2008 13:32:37 -0400 Received: from mx.gbnetc.it ([62.123.21.220] helo=firemaiden.gbnetc.it) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JsLbA-0001XN-Mo for grub-devel@gnu.org; Sat, 03 May 2008 13:32:37 -0400 Received: from localhost (localhost [127.0.0.1]) by firemaiden.gbnetc.it (Postfix) with ESMTP id 6FA1C944E1C for ; Sat, 3 May 2008 19:42:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at gbnetc.it Received: from firemaiden.gbnetc.it ([127.0.0.1]) by localhost (firemaiden.gbnetc.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fHnQtMvpg6Lj for ; Sat, 3 May 2008 19:42:18 +0200 (CEST) Received: from posta.micomnet.it (unknown [62.123.21.221]) by firemaiden.gbnetc.it (Postfix) with ESMTP id BA0A9944F9C for ; Sat, 3 May 2008 19:42:18 +0200 (CEST) MIME-Version: 1.0 Date: Sat, 03 May 2008 19:35:25 +0200 From: Marco "Vega" Trucillo To: grub-devel@gnu.org Message-ID: X-Sender: vega+grub@gbnetc.it User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: ata.c and sata disks X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2008 17:32:38 -0000 Hi to all, I tried to modify ata.c simply add more ioaddress (I attach the diff file from 1.96 version), and it work and recognize my four sata disk on different pc. If I try to change sata port, the name of device on grub change because it depend by index of ioaddress in grub_ata_io_address array.=20 There is some reason because ata.c currently report thar support "only tw= o ide drives" ? the driver seems work well... I can read file for my partition, and then boot linux and even windows with chainloader. (i.e.: chailoader (ata4,1)+1 and boot) and forgive me if I write something of stupid... bye Marco --- ata.c 2008-05-03 19:30:37.000000000 +0200 +++ ata.c~ 2008-05-03 18:06:15.000000000 +0200 @@ -32,11 +32,9 @@ GRUB_ATA_LBA48 } grub_ata_addressing_t; - -/* try address of commons sata controller */ -static const int grub_ata_ioaddress[] =3D {0x1f0, 0x170 ,0x9800,0x9000,0x8800,0x18f8,0x18f0}; -static const int grub_ata_ioaddress2[] =3D {0x3f6, 0x376,0x9402,0x8802,0x8402,0x18ce,0x18ca}; - +/* At the moment, only two IDE ports are supported. */ +static const int grub_ata_ioaddress[] =3D { 0x1f0, 0x170 }; +static const int grub_ata_ioaddress2[] =3D { 0x3f6, 0x376 }; #define GRUB_CDROM_SECTOR_SIZE 2048 @@ -338,7 +336,7 @@ int port; int device; - for (port =3D 0; port <=3D 6; port++) + for (port =3D 0; port <=3D 1; port++) { for (device =3D 0; device <=3D 1; device++) {