Skip to content

Commit

Permalink
fixup! tests/usbus_msc: use emulated MTD as test mockup
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Apr 9, 2023
1 parent 64517fb commit 43f12e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/usbus_msc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ Devices should appears under /dev/sdX entries.
If the board does not provide a MTD device, a MTD device can be emulated in RAM
for testing using module `mtd_emulated`:
```
USEMODULE=mtd_emulated BAORD=... make ...
USEMODULE=mtd_emulated BOARD=... make ...
```
The emulated MTD device has by default 64 sectors with 4 pages of 128 bytes
each, the minimum size to be able to create a partition with FAT file system.
These default parameters can be overridden e.g. by `SECTOR_COUNT`,
`PAGES_PER_SECTOR` and `PAGE_SIZE`:
```
CFLAGS='-DSECTOR_COUNT=128' USEMODULE=mtd_emulated BAORD=... make ...
CFLAGS='-DSECTOR_COUNT=128' USEMODULE=mtd_emulated BOARD=... make ...
```

**Notes:** Depending on the MTD device and the USB speed, this operation can take some times.
Expand Down

0 comments on commit 43f12e9

Please sign in to comment.