Directory does not fit in FAT16 (capacity 516.06 MB)

2023-12-13 Thread lacsaP Patatetom
hi, to quickly test my efi application `./esp/EFI/BOOT/BOOTX64.EFI`, I use the following command `qemu-system-x86_64 -accel kvm -machine q35 -m 1024 -bios /usr/share/edk2/x64/OVMF.fd -hda fat:./esp/ -snapshot` but it has recently failed with the error message given in subject. for various reasons

Re: Directory does not fit in FAT16 (capacity 516.06 MB)

2023-12-13 Thread Alberto Garcia
On Wed, Dec 13, 2023 at 11:46:51AM +0100, lacsaP Patatetom wrote: > to quickly test my efi application `./esp/EFI/BOOT/BOOTX64.EFI`, I use the > following command `qemu-system-x86_64 -accel kvm -machine q35 -m 1024 -bios > /usr/share/edk2/x64/OVMF.fd -hda fat:./esp/ -snapshot` but it has recently >

Re: Directory does not fit in FAT16 (capacity 516.06 MB)

2023-12-13 Thread lacsaP Patatetom
Le mer. 13 déc. 2023 à 12:24, Alberto Garcia a écrit : > On Wed, Dec 13, 2023 at 11:46:51AM +0100, lacsaP Patatetom wrote: > > to quickly test my efi application `./esp/EFI/BOOT/BOOTX64.EFI`, I use > the > > following command `qemu-system-x86_64 -accel kvm -machine q35 -m 1024 > -bios > > /usr/sh

Re: Directory does not fit in FAT16 (capacity 516.06 MB)

2023-12-13 Thread Narcis Garcia
A FAT16 partition (0x06) can be as large as 2 GiB El 13/12/23 a les 12:23, Alberto Garcia ha escrit: On Wed, Dec 13, 2023 at 11:46:51AM +0100, lacsaP Patatetom wrote: to quickly test my efi application `./esp/EFI/BOOT/BOOTX64.EFI`, I use the following command `qemu-system-x86_64 -accel kvm -ma

Re: Directory does not fit in FAT16 (capacity 516.06 MB)

2023-12-13 Thread lacsaP Patatetom
Le mer. 13 déc. 2023 à 13:29, Narcis Garcia a écrit : > A FAT16 partition (0x06) can be as large as 2 GiB > > > El 13/12/23 a les 12:23, Alberto Garcia ha escrit: > > On Wed, Dec 13, 2023 at 11:46:51AM +0100, lacsaP Patatetom wrote: > >> to quickly test my efi application `./esp/EFI/BOOT/BOOTX64.

Re: Directory does not fit in FAT16 (capacity 516.06 MB)

2023-12-13 Thread Alberto Garcia
On Wed, Dec 13, 2023 at 01:27:49PM +0100, Narcis Garcia wrote: > A FAT16 partition (0x06) can be as large as 2 GiB That's why I say that there's probably a limitation in the QEMU vvfat driver. Berto

Re: Directory does not fit in FAT16 (capacity 516.06 MB)

2023-12-13 Thread Narcis Garcia
Assuming a limit of 65536 sectors or clusters, 8 KiB clusters give a capacity of 536.87 MB (512 MiB). "8 KB" would mean 8.000 bytes per cluster, and this can't have this suffix. There can be some confusion between MB and MiB in the subject too. El 13/12/23 a les 13:39, lacsaP Patatetom ha es

Re: Directory does not fit in FAT16 (capacity 516.06 MB)

2023-12-13 Thread Thomas Huth
On 13/12/2023 13.51, Alberto Garcia wrote: On Wed, Dec 13, 2023 at 01:27:49PM +0100, Narcis Garcia wrote: A FAT16 partition (0x06) can be as large as 2 GiB That's why I say that there's probably a limitation in the QEMU vvfat driver. Yes, it's hard-coded somewhere here: https://gitlab.com/q

Re: Directory does not fit in FAT16 (capacity 516.06 MB)

2023-12-13 Thread lacsaP Patatetom
Le mer. 13 déc. 2023 à 14:57, Thomas Huth a écrit : > On 13/12/2023 13.51, Alberto Garcia wrote: > > On Wed, Dec 13, 2023 at 01:27:49PM +0100, Narcis Garcia wrote: > >> A FAT16 partition (0x06) can be as large as 2 GiB > > > > That's why I say that there's probably a limitation in the QEMU vvfat

Re: Directory does not fit in FAT16 (capacity 516.06 MB)

2023-12-13 Thread Alberto Garcia
On Wed, Dec 13, 2023 at 04:33:00PM +0100, lacsaP Patatetom wrote: > having said that, and if you respect the constraints ("what you > should never do..."), vvfat is a really nice way of performing and > repeating quick tests without having to go through the process of > building/creating/updating d