Skip to content

Commit

Permalink
Add instructions to mass storage example for creating a disk image
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinevg committed Jan 18, 2024
1 parent 8923701 commit f5eec58
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/mass-storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@ async def hello():
logging.info("Host connected!")

main(device, hello())


# Creating a disk image for testing:
#
# dd if=/dev/zero of=disk.img bs=1M count=100
# mkfs -t ext4 disk.img
# mount -t auto -o loop disk.img /mnt

0 comments on commit f5eec58

Please sign in to comment.