I have to make a UEFI boot disk with a UEFI System Partition that is larger 
than 65K sectors.  In order to do that, I have to get the "Sector Count" in the 
boot catalog set to zero.

I made the following patch to make that work:

--- orig>eltorito.c 2018-11-14 12:18:47 -0500
+++ eltorito.c 2018-11-14 12:17:49 -0500
@@ -429,7 +429,7 @@
      * However, round up to the nearest integral CD (2048-byte) sector.
      * This is only used for no-emulation booting.
      */
-    nsectors = boot_entry->load_size ? boot_entry->load_size :
+    nsectors = (boot_entry->load_size >= 0) ? boot_entry->load_size :
                    ISO_BLOCKS(de->size) * (SECTOR_SIZE/512);

     if (verbose > 0) {
@@ -634,6 +634,7 @@
     current_boot_entry = (struct eltorito_boot_entry_info *)
               e_malloc(sizeof (struct eltorito_boot_entry_info));
     memset(current_boot_entry, 0, sizeof (*current_boot_entry));
+    current_boot_entry->load_size = -1;

     if (!first_boot_entry) {
          first_boot_entry = current_boot_entry;

This patch is against the 3.01 sources.  The version we are using is actually 
2.01 (with the fix to allow EFI partitions from the latest code and our own 
Rockridge extensions), but it looks like the patch is still relevant.

FYI, we have ported CDRTools to the Stratus VOS operating system, but only use 
it in house to generate distribution media for the OS.  We don't make it 
available to customers and version 2.01 does the job....  [That's why we 
haven't upgraded.]

Herbie Robinson
Software Architect
Stratus Technologies | www.stratus.com
5 Mill and Main Place, Suite 500 | Maynard, MA 01754
T: +1-978-461-7531 | E: herbie.robin...@stratus.com
[Stratus Technologies]<http://go.stratus.com/US>

_______________________________________________
Cdrtools-developers mailing list
Cdrtools-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdrtools-developers

Reply via email to