mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2025-12-23 22:47:55 -05:00
create-image: use mtools to populate image
Use the `mtools` set of utilities to populate the image without the need to run mount the image (requring sudo).
This commit is contained in:
committed by
Matthew Leach
parent
76624b8be0
commit
abd5ef39c2
15
README.md
15
README.md
@@ -66,10 +66,11 @@ x86) before running on bare metal.
|
||||
## Building and Running
|
||||
|
||||
### Prerequisites
|
||||
You will need QEMU for aarch64 emulation and dosfstools to create the virtual file system.
|
||||
You will need QEMU for aarch64 emulation, dosfstools and mtools to create the
|
||||
virtual file system.
|
||||
|
||||
```bash
|
||||
sudo apt install qemu-system-aarch64 dosfstools
|
||||
sudo apt install qemu-system-aarch64 dosfstools mtools
|
||||
```
|
||||
|
||||
Additionally you will need a version of the [aarch64-none-elf](https://developer.arm.com/Tools%20and%20Software/GNU%20Toolchain) toolchain installed.
|
||||
@@ -104,14 +105,12 @@ into the `build` directory.
|
||||
|
||||
Once that is done, you can create the image using the following command:
|
||||
```bash
|
||||
sudo ./scripts/create-image.sh
|
||||
./scripts/create-image.sh
|
||||
```
|
||||
|
||||
This will create an image file named `moss.img` in the root directory of the project,
|
||||
format it as VFAT 32 and create the necessary files and directories for the kernel.
|
||||
|
||||
This script needs to run with sudo to mount the image through a loop device,
|
||||
which is required to properly create the image for the kernel to work.
|
||||
This will create an image file named `moss.img` in the root directory of the
|
||||
project, format it as VFAT 32 and create the necessary files and directories for
|
||||
the kernel.
|
||||
|
||||
### Running via QEMU
|
||||
|
||||
|
||||
Reference in New Issue
Block a user