
On Mon, Jul 31, 2023 at 1:15 AM Simon Glass sjg@chromium.org wrote:
At present it is not possible to read from some CDROM drives since the FAT sector size does not match the media's block size. Add a conversion option for this, so that reading is possible.
This does increase SPL size for read-only FAT support by 25 bytes but all but 6 are covered by the previous patch. We could reduce the overhead of this feature to 0 bytes by making the code uglier (using a static variable).
Signed-off-by: Simon Glass sjg@chromium.org
Changes in v2:
- Use log_warning() for the warning
fs/fat/Kconfig | 13 ++++++ fs/fat/fat.c | 107 ++++++++++++++++++++++++++++++++++++++++----- fs/fat/fat_write.c | 8 ++-- 3 files changed, 114 insertions(+), 14 deletions(-)
As discussed in another thread [1], this patch will not be accepted due to invalid use case of using -cdrom on isohybrid images.
[1] https://patchwork.ozlabs.org/project/uboot/patch/20230619125956.v4.32.Ia1384...
Regards, Bin