Received: from list by lists.gnu.org with archive (Exim 4.71) id 1fqjAH-0008K4-3i for mharc-grub-devel@gnu.org; Fri, 17 Aug 2018 14:08:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqjAD-0008I3-AZ for grub-devel@gnu.org; Fri, 17 Aug 2018 14:08:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqjA9-0008Gz-Bq for grub-devel@gnu.org; Fri, 17 Aug 2018 14:07:57 -0400 Received: from st13p35im-asmtp001.me.com ([17.164.199.64]:61983) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fqjA9-0008GD-79 for grub-devel@gnu.org; Fri, 17 Aug 2018 14:07:53 -0400 Received: from process-dkim-sign-daemon.st13p35im-asmtp001.me.com by st13p35im-asmtp001.me.com (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) id <0PDM003009U0VH00@st13p35im-asmtp001.me.com> for grub-devel@gnu.org; Fri, 17 Aug 2018 18:07:51 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=04042017; t=1534529271; bh=j+DfhuJllwdtpKKTpB4243Y6PXLXUEB1gr0ZBPPCyxI=; h=From:Content-type:MIME-version:Subject:Date:To:Message-id; b=v4Tqds3lqmGO7UUO6NFheZZpuvLqT7EhWFs1pXLwlU2g2i/Zu9XAnA2XNdbGRV7aG O6iuo5Nz0czP5rALy3EDokSwSnJxSz2K4XuXQl3N9A1MR5ATaw+14yeLvFZ/69JktA YymGtbZ8kucrjoAcDH11WYvSsLKziLrNvq4sTxi5Gm3FGznt2+8jSB8aLduOOFk+GZ sNYNPxMThUo6dGCMggyyVdyz8In0XE/TAJBTpCOKDQxMrunRcP23eP16DEgnszKYNC A/aXcZLGSGFC6REeQ6zAajix9O2sCM2V6ZyZmtfcBJZq+9x46KhU9m0bAqrDGEM0rE b8EYlAFZB4frQ== Received: from icloud.com ([127.0.0.1]) by st13p35im-asmtp001.me.com (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPSA id <0PDM0063MACZ4860@st13p35im-asmtp001.me.com> for grub-devel@gnu.org; Fri, 17 Aug 2018 18:07:49 +0000 (GMT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1011 suspectscore=2 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1808170193 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-17_05:,, signatures=0 From: Toomas Soome Content-type: multipart/alternative; boundary="Apple-Mail=_8584B400-2D21-4E10-9577-1B6CC1CA85B2" MIME-version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Legacy Firmware/INT 13H supporting >512 byte sectors? Date: Fri, 17 Aug 2018 21:07:46 +0300 References: <171d135e-4f54-5253-e06c-60d09b64e7aa@ionic.de> <4858ff1e-0788-34c3-8e46-eeb2aed241bb@ionic.de> To: The development of GNU GRUB In-reply-to: <4858ff1e-0788-34c3-8e46-eeb2aed241bb@ionic.de> Message-id: <9B198011-847F-496E-92CC-4B39F642C4BC@me.com> X-Mailer: Apple Mail (2.3445.9.1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 17.164.199.64 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2018 18:08:00 -0000 --Apple-Mail=_8584B400-2D21-4E10-9577-1B6CC1CA85B2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 17 Aug 2018, at 21:01, Mihai Moldovan wrote: >=20 > [resent to list, since I forgot to add a CC header] >=20 > * On 08/17/2018 06:11 PM, Vladimir 'phcoder' Serbinenko wrote: >> Sure. Any BIOS able to read CD supports 2K sectors. >> If you mean HDD then I have never seen one. I wrote support for = non-512B sectors >> in GRUB but so far it's untested as I couldn't find such a BIOS >=20 > Ah, of course. CD sectors are 2K big. Yeah, that makes sense. >=20 > I meant HDD sectors, yes. >=20 >=20 > My firmware is doing weird things: it always reports a sector size of = 512 bytes, > reads and outputs data in 512 byte chunks, but sector addressing is = actually > HDD-dependent (i.e., for 4Kn drives 4K-based). >=20 > I'll work around that using some heuristic, but that's only part of = the problem. >=20 >=20 > The bigger issue will probably be the boot image, which likely is too = small to > incorporate sophisticated code. I guess I could trick THAT into = behaving > correctly by spreading the core image file out over several sectors = and only > using the first 512 bytes of each sector. >=20 Yes there are systems supporting BIOS INT13, see = https://www.illumos.org/issues/8303 = for reference. rgds, toomas= --Apple-Mail=_8584B400-2D21-4E10-9577-1B6CC1CA85B2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On 17 Aug 2018, at 21:01, Mihai Moldovan <ionic@ionic.de> = wrote:

[resent to list, since I forgot to add a CC header]

* On 08/17/2018 06:11 PM, Vladimir 'phcoder' = Serbinenko wrote:
Sure.= Any BIOS able to read CD supports 2K sectors.
If you mean = HDD then I have never seen one. I wrote support for non-512B sectors
in GRUB but so far it's untested as I couldn't find such a = BIOS

Ah, of course. CD sectors = are 2K big. Yeah, that makes sense.

I meant = HDD sectors, yes.


My = firmware is doing weird things: it always reports a sector size of 512 = bytes,
reads and outputs data in 512 byte chunks, but = sector addressing is actually
HDD-dependent (i.e., for 4Kn = drives 4K-based).

I'll work around that = using some heuristic, but that's only part of the problem.


The bigger issue will probably = be the boot image, which likely is too small to
incorporate = sophisticated code. I guess I could trick THAT into behaving
correctly by spreading the core image file out over several = sectors and only
using the first 512 bytes of each = sector.



Yes = there are systems supporting  BIOS INT13, see https://www.illumos.org/issues/8303 for = reference.

rgds,
toomas
= --Apple-Mail=_8584B400-2D21-4E10-9577-1B6CC1CA85B2--