Skip to content

Commit 6c88a1a

Browse files
Donny9xiaoxiang781216
authored andcommitted
examples/elf/sotest: enable and run them simultaneously
Signed-off-by: dongjiuzhu1 <[email protected]>
1 parent 15c90ac commit 6c88a1a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/elf/elf_main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@
7171

7272
# define SECTORSIZE 512
7373
# define NSECTORS(b) (((b) + SECTORSIZE - 1) / SECTORSIZE)
74-
# define MOUNTPT "/mnt/romfs"
74+
# define MOUNTPT "/mnt/elf/romfs"
7575

7676
#elif defined(CONFIG_EXAMPLES_ELF_CROMFS)
7777
/* Describe the CROMFS file system */
7878

79-
# define MOUNTPT "/mnt/cromfs"
79+
# define MOUNTPT "/mnt/elf/cromfs"
8080

8181
#elif defined(CONFIG_EXAMPLES_ELF_EXTERN) && defined(CONFIG_EXAMPLES_ELF_FSMOUNT)
8282
/* Describe the external file system */
8383

84-
# define MOUNTPT "/mnt/" CONFIG_EXAMPLES_ELF_FSTYPE
84+
# define MOUNTPT "/mnt/elf/" CONFIG_EXAMPLES_ELF_FSTYPE
8585

8686
#else
8787
# undef MOUNTPT

examples/sotest/sotest_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
# define SECTORSIZE 64
7171
# define NSECTORS(b) (((b)+SECTORSIZE-1)/SECTORSIZE)
72-
# define BINDIR "/mnt/romfs"
72+
# define BINDIR "/mnt/sotest/romfs"
7373

7474
# ifndef CONFIG_EXAMPLES_SOTEST_DEVMINOR_MAX
7575
# define CONFIG_EXAMPLES_SOTEST_DEVMINOR_MAX 5
@@ -127,7 +127,7 @@ int main(int argc, FAR char *argv[])
127127
#ifdef CONFIG_EXAMPLES_SOTEST_BUILTINFS
128128
/* Create a ROM disk for the ROMFS filesystem */
129129

130-
desc.minor = CONFIG_EXAMPLES_SOTEST_DEVMINOR; /* Minor device number of the ROM disk. */
130+
desc.minor = 0; /* Minor device number of the ROM disk. */
131131
desc.nsectors = NSECTORS(sotest_romfs_img_len); /* The number of sectors in the ROM disk */
132132
desc.sectsize = SECTORSIZE; /* The size of one sector in bytes */
133133
desc.image = (FAR uint8_t *)sotest_romfs_img; /* File system image */

0 commit comments

Comments
 (0)