WIP: aarch64 support

parent 563261b1
Pipeline #8958 failed with stage
in 4 minutes and 16 seconds
......@@ -21,7 +21,7 @@
[submodule "kernel"]
path = kernel
url = https://gitlab.redox-os.org/redox-os/kernel.git
branch = master
branch = aarch64-rebase
[submodule "rust"]
path = rust
url = https://gitlab.redox-os.org/redox-os/rust.git
......
......@@ -118,7 +118,7 @@ FORCE:
# Create a listing for any binary
%.list: %
export PATH="$(PREFIX_PATH):$$PATH" && \
$(OBJDUMP) -C -M intel -D $< > $@
$(OBJDUMP) -C -D $< > $@
# Wireshark
wireshark: FORCE
......
#!/usr/bin/env bash
set -ex
rm -f build/libkernel.a build/kernel
touch kernel
make build/kernel
mkimage \
-A arm64 \
-O "linux" \
-T kernel \
-C none \
-a 0x40000000 \
-e 0x40001000 \
-n 'Redox kernel (qemu AArch64 virt)' \
-d build/kernel \
build/kernel.uimage
qemu-system-aarch64 \
-M virt \
-cpu cortex-a57 \
-bios u-boot.bin \
-device loader,file=build/kernel.uimage,addr=0x41000000,force-raw=on \
-serial mon:stdio \
-nographic \
-s
......@@ -7,14 +7,14 @@ prompt = false
# Package settings
[packages]
drivers = {}
init = {}
nulld = {}
#pciids = {}
ramfs = {}
randd = {}
redoxfs = {}
zerod = {}
#drivers = {}
#init = {}
#nulld = {}
pciids = {}
#ramfs = {}
#randd = {}
#redoxfs = {}
#zerod = {}
[[files]]
path="/etc/init.rc"
......
Subproject commit ea6b1e7f8b605c4f997c00c585f5cecd4ad57aba
Subproject commit dd9dba7dc2762a37b5da3c53a67d0e92dd0f96c4
......@@ -2,7 +2,7 @@
# Configuration
## Architecture to build Redox for (aarch64 or x86_64)
ARCH?=x86_64
ARCH?=aarch64
## Flags to pass to the installer (empty to download binary packages)
INSTALLER_FLAGS?=--cookbook=cookbook
## Enabled to use binary prefix (much faster)
......@@ -41,7 +41,7 @@ export RUST_TARGET_PATH=$(ROOT)/kernel/targets
export XARGO_RUST_SRC=$(ROOT)/rust/src
## Kernel variables
KTARGET=$(ARCH)-unknown-none
KTARGET=$(ARCH)-unknown-redox
KBUILD=build/kernel
## Userspace variables
......
......@@ -2,7 +2,7 @@ build/libkernel.a: kernel/Cargo.lock kernel/Cargo.toml kernel/src/* kernel/src/*
export PATH="$(PREFIX_PATH):$$PATH" && \
export INITFS_FOLDER=$(ROOT)/build/initfs && \
cd kernel && \
cargo rustc --lib --target=$(ROOT)/kernel/targets/$(KTARGET).json --release -Z build-std=core,alloc -- -C soft-float -C debuginfo=2 -C lto --emit link=../$@
cargo rustc --lib --target=$(KTARGET) --release -Z build-std=core,alloc -- -C soft-float -C debuginfo=2 -C lto --emit link=../$@
build/libkernel_coreboot.a: kernel/Cargo.toml kernel/src/* kernel/src/*/* kernel/src/*/*/* kernel/src/*/*/*/* build/initfs_coreboot.tag
export PATH="$(PREFIX_PATH):$$PATH" && \
......
File added
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment