@@ -33,7 +33,7 @@ usage is the same as the mke2fs command.
33
33
34
34
For most GNU/Linux distributions, ` mkfs.ext4 ` command should be installed in advance.
35
35
For macOS, use the following command:
36
- ```
36
+ ``` shell
37
37
$ brew install e2fsprogs
38
38
```
39
39
@@ -66,26 +66,26 @@ Enter `root` to access shell.
66
66
67
67
You can exit the emulator using: \< Ctrl-a x\> . (press Ctrl+A, leave it, afterwards press X)
68
68
69
- ## Build Linux kernel image and root file system
70
-
71
- An automated build script is provided to compile the RISC-V cross-compiler, Busybox, and Linux kernel from source.
72
- Please note that it only supports the Linux host environment.
73
-
74
- ``` shell
75
- $ make build-image
76
- ```
77
-
78
69
## Usage
79
70
80
- ```
71
+ ``` shell
81
72
./semu -k linux-image [-b dtb-file] [-i initrd-image] [-d disk-image]
82
73
```
83
74
84
75
* ` linux-image ` is the path to the Linux kernel ` Image ` .
85
76
* ` dtb-file ` is optional, as it specifies the user-specified device tree blob.
86
- * ` initrd-image ` is optional, as it specifies the user-specified init RAM disk image.
77
+ * ` initrd-image ` is optional, as it specifies the user-specified initial RAM disk image.
87
78
* ` disk-image ` is optional, as it specifies the path of a disk image in ext4 file system for the virtio-blk device.
88
79
80
+ ## Build Linux kernel image and root file system
81
+
82
+ An automated build script is provided to compile the RISC-V cross-compiler, Busybox, and Linux kernel from source.
83
+ Please note that it only supports the Linux host environment.
84
+
85
+ ``` shell
86
+ $ make build-image
87
+ ```
88
+
89
89
## License
90
90
91
91
` semu ` is released under the MIT License.
0 commit comments