[git] Ignore common linux build files, update README
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -17,3 +17,5 @@ tagit
|
|||||||
TAGS
|
TAGS
|
||||||
tags
|
tags
|
||||||
toolchain
|
toolchain
|
||||||
|
.cache
|
||||||
|
vmlinux
|
||||||
|
|||||||
@@ -4,11 +4,13 @@
|
|||||||
make qemu-virt-arm64-test
|
make qemu-virt-arm64-test
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note, this may fail if your system does not have `aarch64-elf-gcc` installed. To address, download from [here](https://newos.org/toolchains/aarch64-elf-14.2.0-Linux-x86_64.tar.xz), unzip, and add the extracted dir to PATH.
|
||||||
|
|
||||||
## Run
|
## Run
|
||||||
|
|
||||||
```
|
```
|
||||||
qemu-system-aarch64 -cpu max -m 512 -smp 1 -machine virt,highmem=off \
|
qemu-system-aarch64 -cpu max -m 512 -smp 1 -machine virt,highmem=off \
|
||||||
-kernel qemu-virt-arm64-test/lk.elf \
|
-kernel build-qemu-virt-arm64-test/lk.elf \
|
||||||
-net none -nographic \
|
-net none -nographic \
|
||||||
-drive if=none,file=lib/uefi/helloworld_aa64.efi,id=blk,format=raw \
|
-drive if=none,file=lib/uefi/helloworld_aa64.efi,id=blk,format=raw \
|
||||||
-device virtio-blk-device,drive=blk
|
-device virtio-blk-device,drive=blk
|
||||||
|
|||||||
Reference in New Issue
Block a user