Skip to contentSkip to conversation

buggy BIOSes (Re: pretty colors in gfxterm)

DISCUSSION Robert Millan 2 participants 4 messages Aug 31, 2007 – Sep 3, 2007 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 3 lines

Besides that, it is really necessary to check what workarounds for buggy BIOSes are missing in GRUB 2. The current bootstrap code on PC is based on somewhere around GRUB 0.96, so it is a bit outdated.

I just had a look. Is there something other than:

2005-03-15 Yoshinori K. Okuji <[email protected]>

* stage2/fsys_fat.c (fat_mount): Ignore the 3rd bit of a media descriptor, because some BIOSes overwrite this value, according to the storage mode (e.g. USB Floppy or USB HDD).

[...]

2005-02-15 Yoshinori K. Okuji <[email protected]>

* stage2/builtins.c (install_func): If DEST_DRIVE is a hard disk, enable the workaround in Stage 1 by replacing the jmp with double nop's.

* stage1/stage1.h (STAGE1_BOOT_DRIVE_CHECK): New macro. (STAGE1_BOOT_DRIVE_MASK): Removed.

* stage1/stage1.S (boot_drive_check): New label. This implements a different workaround for buggy BIOSes which don't pass boot drive correctly. This is effective for BIOSes which pass a value without the seventh bit (0x80).
(boot_drive_mask): Removed.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
#2 lore raw
Quoted 5 lines · Robert Millan
Quoted 3 lines

Besides that, it is really necessary to check what workarounds for buggy BIOSes are missing in GRUB 2. The current bootstrap code on PC is based on somewhere around GRUB 0.96, so it is a bit outdated.

I just had a look. Is there something other than:

I also looked at the ChangeLog, and found nothing else. So can we assume that all workarounds have been applied to GRUB 2 as well?

Thanks,
Okuji

#3 lore raw
Quoted 9 lines · Yoshinori K. Okuji
Quoted 5 lines · Robert Millan
Quoted 3 lines

Besides that, it is really necessary to check what workarounds for buggy BIOSes are missing in GRUB 2. The current bootstrap code on PC is based on somewhere around GRUB 0.96, so it is a bit outdated.

I just had a look. Is there something other than:

I also looked at the ChangeLog, and found nothing else. So can we assume that all workarounds have been applied to GRUB 2 as well?

In GRUB 2 we have:

2005-03-18 Yoshinori K. Okuji <[email protected]>

* fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media descriptor. This is ported from GRUB Legacy.

but I couldn't find this one from GRUB Legacy:

2005-02-15 Yoshinori K. Okuji <[email protected]>

* stage2/builtins.c (install_func): If DEST_DRIVE is a hard disk, enable the workaround in Stage 1 by replacing the jmp with double nop's.

* stage1/stage1.h (STAGE1_BOOT_DRIVE_CHECK): New macro. (STAGE1_BOOT_DRIVE_MASK): Removed.

* stage1/stage1.S (boot_drive_check): New label. This implements a different workaround for buggy BIOSes which don't pass boot drive correctly. This is effective for BIOSes which pass a value without the seventh bit (0x80).
(boot_drive_mask): Removed.

As for other changes, I can't find them. Did you have anything else in mind when you mentioned these workarounds?

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
#4 lore raw
Quoted 8 lines · Robert Millan

but I couldn't find this one from GRUB Legacy:

2005-02-15 Yoshinori K. Okuji <[email protected]>

* stage2/builtins.c (install_func): If DEST_DRIVE is a hard disk, enable the workaround in Stage 1 by replacing the jmp with double nop's.

Quoted 8 lines

* stage1/stage1.h (STAGE1_BOOT_DRIVE_CHECK): New macro. (STAGE1_BOOT_DRIVE_MASK): Removed.

* stage1/stage1.S (boot_drive_check): New label. This implements a different workaround for buggy BIOSes which don't pass boot drive correctly. This is effective for BIOSes which pass a value without the seventh bit (0x80).
(boot_drive_mask): Removed.

This has already been included, as far as I see the code.

Quoted 2 lines

As for other changes, I can't find them. Did you have anything else in mind when you mentioned these workarounds?

No. The code in GRUB 2 looks more up-to-date than I thought. :)

Okuji