diff --git a/mkbootimg/OLVASSEL.md b/mkbootimg/OLVASSEL.md index e4e6c6a..7afae94 100644 --- a/mkbootimg/OLVASSEL.md +++ b/mkbootimg/OLVASSEL.md @@ -132,7 +132,7 @@ mérete). Ugyanakkor `iso9660` használata esetén garantálni kell, hogy minden 4 szektor per kluszterrel a legegyszerűbb elérni. Itt is ugyanaz a probléma merül fel, mind a lemezkép készítő, mind a BOOTBOOT betöltők képesek lennének kevessebb kluszterrel is használni a FAT32-t, de néhány UEFI förmver nem, és hibásan FAT16-nak látná. Hogy ezt elkerüljük a minimális kluszterszámmal, az ISO9960 és FAT32 együttes használata esetén a -partíció minimális mérete 128 Megabájt (128*1024*1024/512/4 = 65536, ami pont eggyel több, mint ami még 16 bitbe belefér). +partíció minimális mérete 128 Megabájt (128\*1024\*1024/512/4 = 65536, ami pont eggyel több, mint ami még 16 bitbe belefér). A többi (a másodiktól kezdve) bejegyzés esetén a `type` vagy egy GUID, vagy egy az előre definiált aliaszok közül. Érvénytelen sztring esetén a parancs listázza az összes lehetséges értéket. diff --git a/mkbootimg/README.md b/mkbootimg/README.md index 41c97db..fe82fb7 100644 --- a/mkbootimg/README.md +++ b/mkbootimg/README.md @@ -132,7 +132,7 @@ smaller images, but at least 33 Megabytes (that's a hard lower limit for FAT32). be 2048 bytes aligned, which is achieved by 4 sectors per cluster. The same problem applies here, both the image creator and the BOOTBOOT loader capable of handling FAT32 with smaller cluster numbers, but some UEFI firmware don't, and falsely assumes FAT16. To guarantee the minimum number of clusters, with ISO9660 and FAT32 the boot partition's -minimum size is 128 Megabytes (128*1024*1024/512/4 = 65536, just one larger than what fits in 16 bits). +minimum size is 128 Megabytes (128\*1024\*1024/512/4 = 65536, just one larger than what fits in 16 bits). For the other entries (starting from the second), `type` is either a GUID or one of a pre-defined file system aliases. With an invalid string, the utility will list all possible values. diff --git a/mkbootimg/esp.c b/mkbootimg/esp.c index 9ef4f0e..8a91867 100644 --- a/mkbootimg/esp.c +++ b/mkbootimg/esp.c @@ -109,7 +109,7 @@ void esp_makepart() if(boot_size < i) boot_size = i; /* we must force 16M at least, because if FAT16 has too few clusters, some UEFI thinks it's FAT12... */ if(boot_size < 16) boot_size = 16; - if(boot_fat == 16 && boot_size >= 256) boot_fat = 32; + if(boot_fat == 16 && boot_size >= 128) boot_fat = 32; /* we must force 128M, because if FAT32 has too few clusters, some UEFI thinks it's FAT16... */ i = (iso9660 ? 128 : 33); if(boot_fat == 32 && boot_size < i) boot_size = i;