search for: de_lba

Displaying 14 results from an estimated 14 matches for "de_lba".

Did you mean: de_bh
2013 Oct 31
2
isohybrid fails with: seek error - 3
...1 ve[3]: 0, cs: 1 ve[4]: 0, cs: 1 ve[5]: 0, cs: 1 ve[6]: 0, cs: 1 ve[7]: 0, cs: 1 ve[8]: 0, cs: 1 ve[9]: 0, cs: 1 ve[10]: 0, cs: 1 ve[11]: 0, cs: 1 ve[12]: 0, cs: 1 ve[13]: 0, cs: 1 ve[14]: 21930, cs: 21931 ve[15]: 43605, cs: 65536 de_boot: 136 de_media: 0 de_seg: 0 de_sys: 0 de_mbz1: 0 de_count: 4 de_lba: 1206548 de_mbz2: 0 isohybrid: /tmp/slint64-13.3720131030-dvd.iso: seek error - 3: Invalid argument in ishybrid.c I see: if (fseek(fp, (de_lba * 2048 + 0x40), SEEK_SET)) err(1, "%s: seek error - 3", argv[0]); Dose that mean that value of de_lba is not acceptable? ISO ima...
2013 Nov 01
2
isohybrid fails with: seek error - 3
...;> ve[10]: 0, cs: 1 >> ve[11]: 0, cs: 1 >> ve[12]: 0, cs: 1 >> ve[13]: 0, cs: 1 >> ve[14]: 21930, cs: 21931 >> ve[15]: 43605, cs: 65536 >> de_boot: 136 >> de_media: 0 >> de_seg: 0 >> de_sys: 0 >> de_mbz1: 0 >> de_count: 4 >> de_lba: 1206548 >> de_mbz2: 0 >> isohybrid: /tmp/slint64-13.3720131030-dvd.iso: seek error - 3: Invalid argument >> >> in ishybrid.c I see: >> >> if (fseek(fp, (de_lba * 2048 + 0x40), SEEK_SET)) >> err(1, "%s: seek error - 3", argv[0]); &...
2013 Nov 01
0
isohybrid fails with: seek error - 3
...cs: 1 > ve[8]: 0, cs: 1 > ve[9]: 0, cs: 1 > ve[10]: 0, cs: 1 > ve[11]: 0, cs: 1 > ve[12]: 0, cs: 1 > ve[13]: 0, cs: 1 > ve[14]: 21930, cs: 21931 > ve[15]: 43605, cs: 65536 > de_boot: 136 > de_media: 0 > de_seg: 0 > de_sys: 0 > de_mbz1: 0 > de_count: 4 > de_lba: 1206548 > de_mbz2: 0 > isohybrid: /tmp/slint64-13.3720131030-dvd.iso: seek error - 3: Invalid argument > > in ishybrid.c I see: > > if (fseek(fp, (de_lba * 2048 + 0x40), SEEK_SET)) > err(1, "%s: seek error - 3", argv[0]); > > Dose that mean tha...
2013 Nov 01
0
isohybrid fails with: seek error - 3
...s: 1 >>> ve[12]: 0, cs: 1 >>> ve[13]: 0, cs: 1 >>> ve[14]: 21930, cs: 21931 >>> ve[15]: 43605, cs: 65536 >>> de_boot: 136 >>> de_media: 0 >>> de_seg: 0 >>> de_sys: 0 >>> de_mbz1: 0 >>> de_count: 4 >>> de_lba: 1206548 >>> de_mbz2: 0 >>> isohybrid: /tmp/slint64-13.3720131030-dvd.iso: seek error - 3: Invalid argument >>> >>> in ishybrid.c I see: >>> >>> if (fseek(fp, (de_lba * 2048 + 0x40), SEEK_SET)) >>> err(1, "%s: seek...
2014 Jun 21
1
isohybrid has 2 variants
Op 2014-06-20 om 15:56 schreef Ady: > > The Perl variant, isohybrid.in, seems to be getting left behind > regarding several patches. I don't recall whether there is at least > some mention in the isohybrid docs about the existence of 2 variants > included in Syslinux (and that is in addition to other isohybrid > methods outside Syslinux). Is there any reference? >
2017 Apr 17
0
Patch: Fix isohybrid.c tool under Windows platforms
...ample the block address bytes 0d 0a 00 00 (= 2573 decimal) of the BIOS boot image in the default entry of the boot catalog would be crippled during fread() in http://git.zytor.com/syslinux/syslinux.git/tree/utils/isohybrid.c#n997 and then misinterpreted in function read_catalogue() when variable de_lba gets set: http://git.zytor.com/syslinux/syslinux.git/tree/utils/isohybrid.c#n519 de_lba is the value which gets written to byte 432 ff. in the isohybrid MBR. During boot the MBR would hopefully see a wrong signature and refuse with "isolinux.bin missing or corrupt.\r\n" rather than e...
2014 Jun 22
0
[PATCH 5/6] utils/isohybrid.c: Change all fseek(3) to fseeko(3)
...offset: %d\n", catoffset); - if (fseek(fp, catoffset * 2048, SEEK_SET)) + if (fseeko(fp, ((off_t) catoffset) * 2048, SEEK_SET)) err(1, "%s: seek error - 2", argv[0]); buf = bufz; @@ -985,7 +985,7 @@ main(int argc, char *argv[]) } } - if (fseek(fp, (de_lba * 2048 + 0x40), SEEK_SET)) + if (fseeko(fp, (((off_t) de_lba) * 2048 + 0x40), SEEK_SET)) err(1, "%s: seek error - 3", argv[0]); buf = bufz; @@ -1021,7 +1021,7 @@ main(int argc, char *argv[]) if (!id) { - if (fseek(fp, 440, SEEK_SET)) + if (fsee...
2009 May 26
2
Syslinux 3.81-pre14... hopefully final this time
I have addressed all the issues that I know about (including, hopefully, the isohybrid version dependence...). I would like to release this this week so please let me know as soon as possible if this version is "go". -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.
2017 Apr 17
2
Patch: Fix isohybrid.c tool under Windows platforms
> Hi, > > Colin Finck wrote: > > Precisely, if isohybrid currently finds a 0x0A (LF) byte in the MBR code > > (which exists in the strings), it adds a 0x0D (CR) before, thereby > > shifting the MBR bytes to the right and making it invalid. > > This can be fixed by opening the file in binary mode with the "b" flag. > > This is a very reasonable
2011 Aug 05
3
isolinux: Generate GPT and Mac bootable images
...um { VERBOSE = 1 , EFI = 2 , MAC = 4}; /* user options */ uint16_t head = 64; /* 1 <= head <= 256 */ @@ -61,10 +66,150 @@ uint16_t ve[16]; uint32_t catoffset = 0; uint32_t c = 0, cc = 0, cs = 0; +uint32_t psize = 0, isosize = 0; + /* boot catalogue parameters */ uint32_t de_lba = 0; uint16_t de_seg = 0, de_count = 0, de_mbz2 = 0; uint8_t de_boot = 0, de_media = 0, de_sys = 0, de_mbz1 = 0; +uint32_t efi_lba = 0, mac_lba = 0; +uint16_t efi_count = 0, mac_count = 0; +uint8_t efi_boot = 0, efi_media = 0, efi_sys = 0; + +int apm_parts = 3; + +uint8_t afp_header[] = { 0x45, 0...
2012 Feb 15
2
[PATCH] isohybrid: Generate MBR even when in EFI mode
...case 'v': @@ -581,6 +587,12 @@ initialise_mbr(uint8_t *mbr) memcpy(mbr, afp_header, sizeof(afp_header)); } + if (!entry) + entry = 1; + + if (mode & EFI) + type = 0; + mbr += MBRSIZE; /* offset 432 */ tmp = lendian_int(de_lba * 4); @@ -633,6 +645,40 @@ initialise_mbr(uint8_t *mbr) tmp = lendian_int(psize); memcpy(&mbr[12], &tmp, sizeof(tmp)); } + if (i == 2 && (mode & EFI)) + { + mbr[0] = 0x0; + mbr[1] = 0xfe; + mbr[2]...
2009 Apr 24
0
[PATCH 2/2] Preserve MBR id in isohybrid
...00\x00") { + $id = pack("V", get_random()); +} + # Print the MBR and partition table seek(FILE, 0, SEEK_SET) or die "$0: $file: $!\n"; @@ -117,12 +124,7 @@ if ( length($mbr) > 432 ) { $mbr .= "\0" x (432 - length($mbr)); $mbr .= pack("VV", $de_lba*4, 0); # Offset 432: LBA of isolinux.bin -if (defined($id)) { - $id = to_int($id); -} else { - $id = get_random(); -} -$mbr .= pack("V", $id); # Offset 440: MBR ID +$mbr .= $id; # Offset 440: MBR ID $mbr .= "\0\0"; # Offset 446: actual partition table # Print par...
2014 Jun 22
16
Announcing a patch series for isohybrid.c
Hi, following will be 6 patch proposals for isohybrid.c 1: Encode GPT partition names as UTF-16LE 2: Correct blocking factor in APM partition block counts 3: Correct end block address of first GPT partition 4: Write GPT backup to the very end of the image 5: Change all fseek(3) to fseeko(3) 6: Introduce option --mbr and make isohybrid.c compilable standalone If the form needs adjustments,
2010 Sep 13
5
isohybrid: seek error - 6: Invalid argument
...5680 ve[7]: 29029, cs: 144709 ve[8]: 26997, cs: 171706 ve[9]: 27749, cs: 199455 ve[10]: 20512, cs: 219967 ve[11]: 31343, cs: 251310 ve[12]: 27002, cs: 278312 ve[13]: 32, cs: 278344 ve[14]: 5731, cs: 284075 ve[15]: 43605, cs: 327680 de_boot: 136 de_media: 0 de_seg: 0 de_sys: 0 de_mbz1: 0 de_count: 4 de_lba: 327 de_mbz2: 0 imgsize: 2265417728, padding: 555008 isohybrid: Warning: more than 1024 cylinders: 2161 isohybrid: Not all BIOSes will be able to boot this device id: 281396446 sizeof(MBR): 512 bytes ... 0432 1c 05 00 00 00 00 00 00 de c4 c5 10 00 00 80 00 |................| 0448 01 00 17 3f e0...