From 3b75784a5cf83b34ba7b4ecfe2b80908cedb2982 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 16 Feb 2015 12:42:44 -0600 Subject: prepare for Sun Voyager. Bootloader needs a.out formatted kernel. Unfortunately I get "Illegal instruction" after loading a.out kernel via TFTP. Old gentoo 2.6 kernel boots fine. --- target/sparc/Makefile | 13 +++++++++++++ target/sparc/kernel/sun-voyager | 9 +++++++++ target/sparc/systems/sun-voyager | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 target/sparc/kernel/sun-voyager create mode 100644 target/sparc/systems/sun-voyager (limited to 'target/sparc') diff --git a/target/sparc/Makefile b/target/sparc/Makefile index ac94569db..f203596cf 100644 --- a/target/sparc/Makefile +++ b/target/sparc/Makefile @@ -7,7 +7,12 @@ include $(ADK_TOPDIR)/mk/modules.mk include $(ADK_TOPDIR)/mk/kernel-build.mk include $(ADK_TOPDIR)/mk/image.mk +ifeq ($(ADK_TARGET_KERNEL_ZIMAGE),y) KERNEL:=$(LINUX_DIR)/arch/sparc/boot/zImage +endif +ifeq ($(ADK_TARGET_KERNEL_VMLINUX_AOUT),y) +KERNEL:=$(LINUX_DIR)/arch/sparc/boot/vmlinux.aout +endif QEMU_ARGS:=-M SS-10 QEMU_ARGS+=${ADK_QEMU_ARGS} @@ -49,6 +54,11 @@ ifeq ($(ADK_TARGET_QEMU),y) @echo 'qemu-system-${ADK_TARGET_CPU_ARCH} ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL)' endif endif +ifeq ($(ADK_TARGET_FS),nfsroot) +targethelp: + @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' + @echo 'The nfs root tarball is: ${FW_DIR}/${ROOTFSUSERTARBALL}' +endif # image creation and kernel install kernel-strip: @@ -70,3 +80,6 @@ endif ifeq ($(ADK_TARGET_FS),initramfspiggyback) imageinstall: createinitramfs targethelp endif +ifeq ($(ADK_TARGET_FS),nfsroot) +imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp +endif diff --git a/target/sparc/kernel/sun-voyager b/target/sparc/kernel/sun-voyager new file mode 100644 index 000000000..ffa9bb9f8 --- /dev/null +++ b/target/sparc/kernel/sun-voyager @@ -0,0 +1,9 @@ +CONFIG_SPARC=y +CONFIG_SPARC32=y +CONFIG_SBUS=y +CONFIG_SBUSCHAR=y +CONFIG_PCIC_PCI=y +CONFIG_SERIAL_CONSOLE=y +CONFIG_SERIAL_SUNCORE=y +CONFIG_SERIAL_SUNZILOG=y +CONFIG_SERIAL_SUNZILOG_CONSOLE=y diff --git a/target/sparc/systems/sun-voyager b/target/sparc/systems/sun-voyager new file mode 100644 index 000000000..931a46354 --- /dev/null +++ b/target/sparc/systems/sun-voyager @@ -0,0 +1,11 @@ +config ADK_TARGET_SYSTEM_SUN_VOYAGER + bool "Sun Voyager" + select ADK_sparc + select ADK_sun_voyager + select ADK_CPU_SPARC_V8 + select ADK_TARGET_WITH_VGA + select ADK_TARGET_WITH_SERIAL + select ADK_TARGET_KERNEL_VMLINUX_AOUT + help + Support for Sun Voyager. + -- cgit v1.2.3