* Legacy Firmware/INT 13H supporting >512 byte sectors?
@ 2018-08-17 14:59 Mihai Moldovan
2018-08-17 16:11 ` Vladimir 'phcoder' Serbinenko
0 siblings, 1 reply; 4+ messages in thread
From: Mihai Moldovan @ 2018-08-17 14:59 UTC (permalink / raw)
To: grub-devel
[-- Attachment #1.1: Type: text/plain, Size: 155 bytes --]
Hi
Just a quick question: did anyone ever come up a BIOS firmware that supports
sector sizes higher than 512 bytes (say 4096 bytes)?
Mihai
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 898 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Legacy Firmware/INT 13H supporting >512 byte sectors?
2018-08-17 14:59 Legacy Firmware/INT 13H supporting >512 byte sectors? Mihai Moldovan
@ 2018-08-17 16:11 ` Vladimir 'phcoder' Serbinenko
2018-08-17 18:01 ` Mihai Moldovan
0 siblings, 1 reply; 4+ messages in thread
From: Vladimir 'phcoder' Serbinenko @ 2018-08-17 16:11 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 602 bytes --]
пт, 17 авг. 2018 г., 17:14 Mihai Moldovan <ionic@ionic.de>:
> Hi
>
>
> Just a quick question: did anyone ever come up a BIOS firmware that
> supports
> sector sizes higher than 512 bytes (say 4096 bytes)?
>
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
>
>
>
> Mihai
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
[-- Attachment #2: Type: text/html, Size: 1168 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Legacy Firmware/INT 13H supporting >512 byte sectors?
2018-08-17 16:11 ` Vladimir 'phcoder' Serbinenko
@ 2018-08-17 18:01 ` Mihai Moldovan
2018-08-17 18:07 ` Toomas Soome
0 siblings, 1 reply; 4+ messages in thread
From: Mihai Moldovan @ 2018-08-17 18:01 UTC (permalink / raw)
To: grub-devel
[-- Attachment #1.1: Type: text/plain, Size: 1013 bytes --]
[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.
Mihai
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 898 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Legacy Firmware/INT 13H supporting >512 byte sectors?
2018-08-17 18:01 ` Mihai Moldovan
@ 2018-08-17 18:07 ` Toomas Soome
0 siblings, 0 replies; 4+ messages in thread
From: Toomas Soome @ 2018-08-17 18:07 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 1276 bytes --]
> 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 <https://www.illumos.org/issues/8303> for reference.
rgds,
toomas
[-- Attachment #2: Type: text/html, Size: 2126 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-08-17 18:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-17 14:59 Legacy Firmware/INT 13H supporting >512 byte sectors? Mihai Moldovan
2018-08-17 16:11 ` Vladimir 'phcoder' Serbinenko
2018-08-17 18:01 ` Mihai Moldovan
2018-08-17 18:07 ` Toomas Soome
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.