Add Arm64 support - #3
Draft
artiepoole wants to merge 28 commits into
Draft
Conversation
```
qemu-system-aarch64 \
-M virt,dumpdtb=qemu-virt-arm64.dtb \
-cpu cortex-a57 \
-m 2G \
-kernel zig-out/img/ArtInitium.arm64.img \
-dtb zig-out/dtb/qemu-virt-arm64.dtb \
-device virtio-gpu-pci \
-device virtio-keyboard-pci \
-device virtio-mouse-pci \
-serial file:serial.log
dtc -I dtb -O dts qemu-virt-arm64.dtb > dts/qemu-virt-arm64.dts
```
building would build only one target or nothing because we re-defined the default step - each file-based build target (per arch) returns a step which should be added to the build_selected step - added binman path variable - pipx location not in my path by default - use llvm-objcopy by using a weird zig syntax (b.graph.zig_exe) so that no cross comp tools needed - remove dtb from arm64 image file, and don't specify size. the dtb is passed separately
we store it in x19, and use it as the argument to ArtInitium_entry later.
…hat I write each part as an exercise
…eader struct which has methods
…om the Header struct which has methods" This reverts commit 7bebd9e. This is not necessary because member functions are not part of the struct (no vtable) so it's not the same as c++. It is safe to keep it as one struct
Signed-off-by: Artie Poole <stuart.poole@canonical.com>
Signed-off-by: Artie Poole <stuart.poole@canonical.com>
Signed-off-by: Artie Poole <stuart.poole@canonical.com>
Signed-off-by: Artie Poole <stuart.poole@canonical.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provides support for arm64 up until the device tree is parsed once.