sofware/liblitesdcard: enable Long Filename (LFN).

This commit is contained in:
Florent Kermarrec 2020-06-09 13:35:14 +02:00
parent fb282d1a72
commit f1aba7e45c
4 changed files with 15596 additions and 3 deletions

View File

@ -591,7 +591,7 @@ void sdcardboot(void)
if (result) if (result)
result &= copy_image_from_sdcard_to_ram("Image", MAIN_RAM_BASE + KERNEL_IMAGE_RAM_OFFSET); result &= copy_image_from_sdcard_to_ram("Image", MAIN_RAM_BASE + KERNEL_IMAGE_RAM_OFFSET);
if (result) if (result)
result &= copy_image_from_sdcard_to_ram("ROOTFS", MAIN_RAM_BASE + ROOTFS_IMAGE_RAM_OFFSET); /* FIXME should be rootfs.cpio */ result &= copy_image_from_sdcard_to_ram("rootfs.cpio", MAIN_RAM_BASE + ROOTFS_IMAGE_RAM_OFFSET);
f_mount(0, "", 0); f_mount(0, "", 0);
if (result) if (result)
boot(0, 0, 0, MAIN_RAM_BASE + EMULATOR_IMAGE_RAM_OFFSET); boot(0, 0, 0, MAIN_RAM_BASE + EMULATOR_IMAGE_RAM_OFFSET);

View File

@ -1,7 +1,7 @@
include ../include/generated/variables.mak include ../include/generated/variables.mak
include $(SOC_DIRECTORY)/software/common.mak include $(SOC_DIRECTORY)/software/common.mak
OBJECTS=ff.o sdcard.o spisdcard.o OBJECTS=ffunicode.o ff.o sdcard.o spisdcard.o
all: liblitesdcard.a all: liblitesdcard.a

View File

@ -97,7 +97,7 @@
*/ */
#define FF_USE_LFN 0 #define FF_USE_LFN 1
#define FF_MAX_LFN 255 #define FF_MAX_LFN 255
/* The FF_USE_LFN switches the support for LFN (long file name). /* The FF_USE_LFN switches the support for LFN (long file name).
/ /

File diff suppressed because it is too large Load Diff