Attached file I use to test GPT code.
I used qemu 1.2 with seabios with LSI enabled and a patch
diff --git a/src/blockcmd.c b/src/blockcmd.c
index 77c690f..df4fb1e 100644
--- a/src/blockcmd.c
+++ b/src/blockcmd.c
@@ -146,7 +146,7 @@ scsi_init_drive(struct drive_s *drive, const char *s, int
prio)
// We do not bother with READ CAPACITY(16) because BIOS does not support
// 64-bit LBA anyway.
drive->blksize = be32_to_cpu(capdata.blksize);
- if (drive->blksize != DISK_SECTOR_SIZE) {
+ if (drive->blksize != DISK_SECTOR_SIZE && drive->blksize !=
4096) {
dprintf(1, "%s: unsupported block size %d\n", s,
drive->blksize);
return -1;
}
patch is not 100% ok but allow to test GPT code (this patch return 4096 byte
sectors even for normal int13 interrupt while should return only 512 byte
sectors).
Frediano
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4k-test.asm
URL:
<http://www.zytor.com/pipermail/syslinux/attachments/20130208/270ccb0f/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 604 bytes
Desc: Makefile
URL:
<http://www.zytor.com/pipermail/syslinux/attachments/20130208/270ccb0f/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: print.asm
URL:
<http://www.zytor.com/pipermail/syslinux/attachments/20130208/270ccb0f/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: shutdown.asm
URL:
<http://www.zytor.com/pipermail/syslinux/attachments/20130208/270ccb0f/attachment-0002.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gptmbr_test
Type: application/x-perl
Size: 5882 bytes
Desc: gptmbr_test
URL:
<http://www.zytor.com/pipermail/syslinux/attachments/20130208/270ccb0f/attachment.pl>