Skip to content

Commit

Permalink
Add support for 64-bit ARM, aarch64, target
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
  • Loading branch information
troglobit committed Feb 20, 2018
1 parent 0a969ec commit 2393a85
Show file tree
Hide file tree
Showing 6 changed files with 5,986 additions and 1 deletion.
5 changes: 5 additions & 0 deletions arch/Kconfig
Expand Up @@ -5,6 +5,9 @@ choice
config ARM
bool "ARM 32-bit"

config ARM64
bool "ARM 64-bit"

config PPC
bool "PowerPC 32-bit"

Expand All @@ -16,9 +19,11 @@ endchoice
config ARCH
string
default "arm" if ARM
default "arm64" if ARM64
default "ppc" if PPC
default "x86" if X86

source "arch/arm/Kconfig"
source "arch/arm64/Kconfig"
source "arch/ppc/Kconfig"
source "arch/x86/Kconfig"
14 changes: 14 additions & 0 deletions arch/arm64/Kconfig
@@ -0,0 +1,14 @@
choice
prompt "Select Target Machine"
default GENERIC
depends on ARM64

config GENERIC
bool "Generic ARM64 target, with Cortex A57 for qemu"

endchoice

config MACH
string
default "generic" if GENERIC
depends on ARM64
13 changes: 13 additions & 0 deletions arch/arm64/config.mk
@@ -0,0 +1,13 @@
.EXPORT_ALL_VARIABLES:

CROSS_COMPILE := aarch64-unknown-linux-gnu-
KERNEL_IMG := Image.gz
QEMU_ARCH := aarch64
# vexpress-a15
QEMU_MACH := virt
# lan9118
QEMU_NIC := rtl8139
QEMU_EXTRA := -cpu cortex-a57
# freescale/fsl-ls2080a-simu.dtb # freescale/fsl-ls2080a-rdb.dtb
#QEMU_DTB := arm/vexpress-v2f-1xv7-ca53x2.dtb

69 changes: 69 additions & 0 deletions arch/arm64/configs/generic_defconfig
@@ -0,0 +1,69 @@
#
# TroglOS Virtual Devboard Default Configuration
#
CONFIG_DOT_CONFIG=y
# CONFIG_ARM is not set
CONFIG_ARM64=y
CONFIG_GENERIC=y
# CONFIG_PPC is not set
# CONFIG_X86 is not set
CONFIG_ARCH="arm64"
CONFIG_MACH="generic"

#
# Boot Loaders and Firmware
#
# CONFIG_RPI_BLOBS is not set
# CONFIG_UBOOT is not set

#
# Kernel
#
CONFIG_LINUX_VERSION="4.15.4"
# CONFIG_LINUX_TESTING is not set
CONFIG_LINUX_CMDLINE="root=/dev/ram mem=256M console=hvc0 console=ttyAMA0,115200"

#
# Libraries
#
CONFIG_CONFUSE=y
CONFIG_LIBITE=y
CONFIG_LIBUEV=y
# CONFIG_LIPIFY is not set
CONFIG_NCURSES=y
CONFIG_ZLIB=y

#
# Networking packages
#
CONFIG_DROPBEAR=y
# CONFIG_INADYN is not set
# CONFIG_LLDPD is not set
# CONFIG_MERECAT is not set
# CONFIG_MINI_SNMPD is not set
# CONFIG_MROUTED is not set
# CONFIG_NETCALC is not set
# CONFIG_NTPCLIENT is not set
# CONFIG_OMPING is not set
# CONFIG_MCJOIN is not set
# CONFIG_PIMD is not set
# CONFIG_REDIR is not set
# CONFIG_SMCROUTE is not set
# CONFIG_UFTPD is not set
# CONFIG_UREDIR is not set

#
# System packages
#
CONFIG_BUSYBOX=y
CONFIG_FINIT=y
# CONFIG_FINIT_BOOT_ANIMATION is not set
# CONFIG_MG is not set
# CONFIG_STRACE is not set
# CONFIG_TETRIS is not set
CONFIG_WATCHDOGD=y

#
# User Defined Programs
#
# CONFIG_USER_HELLO is not set

0 comments on commit 2393a85

Please sign in to comment.