Skip to content

Commit 3cad5dc

Browse files
committed
Enable virtio-blk for macOS
virtio-blk is known to work on macOS. Enable the feature by default.
1 parent 7ec5529 commit 3cad5dc

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ OBJS_EXTRA += virtio-net.o
1313
OBJS_EXTRA += virtio-blk.o
1414
MINIMAL_DTS = minimal-virtio.dts
1515
else
16+
CFLAGS += -D ENABLE_VIRTIOBLK
1617
MINIMAL_DTS = minimal.dts
1718
endif
1819

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ For macOS, use the following command:
2424
$ brew install dtc
2525
```
2626

27+
For demonstration purposes, ext4 is used for file system mounting.
28+
`ext4` is a native Linux filesystem, offering stability, high capacity, reliability,
29+
and performance while requiring minimal maintenance. The `mkfs.ext4` command can
30+
create an ext4 file system from disk partitions. This command is a symbolic link of
31+
the [mke2fs](https://man7.org/linux/man-pages/man8/mke2fs.8.html) command, and its
32+
usage is the same as the mke2fs command.
33+
34+
For most GNU/Linux distributions, `mkfs.ext4` command should be installed in advance.
35+
For macOS, use the following command:
36+
```
37+
$ brew install e2fsprogs
38+
```
39+
2740
## Build and Run
2841

2942
Build the emulator:

0 commit comments

Comments
 (0)