head	1.5;
access;
symbols
	netbsd-11-0-RC4:1.4
	netbsd-11-0-RC3:1.4
	netbsd-11-0-RC2:1.4
	netbsd-11-0-RC1:1.4
	perseant-exfatfs-base-20250801:1.4
	netbsd-11:1.4.0.4
	netbsd-11-base:1.4
	netbsd-10-1-RELEASE:1.3
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.2
	perseant-exfatfs-base:1.4
	netbsd-9-4-RELEASE:1.3
	netbsd-10-0-RELEASE:1.3
	netbsd-10-0-RC6:1.3
	netbsd-10-0-RC5:1.3
	netbsd-10-0-RC4:1.3
	netbsd-10-0-RC3:1.3
	netbsd-10-0-RC2:1.3
	thorpej-ifq:1.3.0.36
	thorpej-ifq-base:1.3
	thorpej-altq-separation:1.3.0.34
	thorpej-altq-separation-base:1.3
	netbsd-10-0-RC1:1.3
	netbsd-10:1.3.0.32
	netbsd-10-base:1.3
	bouyer-sunxi-drm:1.3.0.30
	bouyer-sunxi-drm-base:1.3
	netbsd-9-3-RELEASE:1.3
	thorpej-i2c-spi-conf2:1.3.0.28
	thorpej-i2c-spi-conf2-base:1.3
	thorpej-futex2:1.3.0.26
	thorpej-futex2-base:1.3
	thorpej-cfargs2:1.3.0.24
	thorpej-cfargs2-base:1.3
	cjep_sun2x-base1:1.3
	cjep_sun2x:1.3.0.22
	cjep_sun2x-base:1.3
	cjep_staticlib_x-base1:1.3
	netbsd-9-2-RELEASE:1.3
	cjep_staticlib_x:1.3.0.20
	cjep_staticlib_x-base:1.3
	thorpej-i2c-spi-conf:1.3.0.18
	thorpej-i2c-spi-conf-base:1.3
	thorpej-cfargs:1.3.0.16
	thorpej-cfargs-base:1.3
	thorpej-futex:1.3.0.14
	thorpej-futex-base:1.3
	netbsd-9-1-RELEASE:1.3
	bouyer-xenpvh-base2:1.3
	phil-wifi-20200421:1.3
	bouyer-xenpvh-base1:1.3
	phil-wifi-20200411:1.3
	bouyer-xenpvh:1.3.0.12
	bouyer-xenpvh-base:1.3
	is-mlppp:1.3.0.10
	is-mlppp-base:1.3
	phil-wifi-20200406:1.3
	ad-namecache-base3:1.3
	netbsd-9-0-RELEASE:1.3
	netbsd-9-0-RC2:1.3
	ad-namecache-base2:1.3
	ad-namecache-base1:1.3
	ad-namecache:1.3.0.8
	ad-namecache-base:1.3
	netbsd-9-0-RC1:1.3
	phil-wifi-20191119:1.3
	netbsd-9:1.3.0.6
	netbsd-9-base:1.3
	phil-wifi:1.3.0.4
	phil-wifi-20190609:1.3
	isaki-audio2:1.3.0.2
	isaki-audio2-base:1.3
	pgoyette-compat-merge-20190127:1.1.2.3
	pgoyette-compat-20190127:1.3
	pgoyette-compat-20190118:1.3
	pgoyette-compat-1226:1.3
	pgoyette-compat-1126:1.3
	pgoyette-compat-1020:1.3
	pgoyette-compat:1.1.0.2
	pgoyette-compat-0930:1.1;
locks; strict;
comment	@# @;


1.5
date	2026.04.23.07.29.52;	author yurix;	state dead;
branches;
next	1.4;
commitid	oJdV8FpoXRB7q3DG;

1.4
date	2024.02.17.15.08.32;	author christos;	state Exp;
branches;
next	1.3;
commitid	VuyVDbsv2cvYxNYE;

1.3
date	2018.10.18.09.01.54;	author skrll;	state Exp;
branches
	1.3.4.1;
next	1.2;
commitid	0r6pPkie0NRL4qWA;

1.2
date	2018.10.14.18.58.44;	author aymeric;	state Exp;
branches;
next	1.1;
commitid	tPuLhEctH1G3zXVA;

1.1
date	2018.09.19.17.31.39;	author aymeric;	state Exp;
branches
	1.1.2.1;
next	;
commitid	7kKlYZ0Pngu1SJSA;

1.3.4.1
date	2018.10.18.09.01.54;	author christos;	state dead;
branches;
next	1.3.4.2;
commitid	jtc8rnCzWiEEHGqB;

1.3.4.2
date	2019.06.10.22.06.05;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.1.2.1
date	2018.09.19.17.31.39;	author pgoyette;	state dead;
branches;
next	1.1.2.2;
commitid	SQ44grEPCeKPh4UA;

1.1.2.2
date	2018.09.30.01.45.40;	author pgoyette;	state Exp;
branches;
next	1.1.2.3;
commitid	SQ44grEPCeKPh4UA;

1.1.2.3
date	2018.10.20.06.58.27;	author pgoyette;	state Exp;
branches;
next	;
commitid	mTSoqZEZ4arHnFWA;


desc
@@


1.5
log
@
evbarm: drop unused altera configuration files
@
text
@#	$NetBSD: mk.altera,v 1.4 2024/02/17 15:08:32 christos Exp $

.if !empty(MACHINE_ARCH:M*eb)
EXTRA_LINKFLAGS+=	--be8
.endif

CPPFLAGS+=		-mcpu=cortex-a9 -mfpu=neon

SYSTEM_FIRST_OBJ=	armv6_start.o
SYSTEM_FIRST_SFILE=	${ARM}/arm/armv6_start.S

_OSRELEASE!=		${HOST_SH} $S/conf/osrelease.sh

MKUBOOTIMAGEARGS=	-A arm -T kernel -O linux
MKUBOOTIMAGEARGS+=	-a $(KERNEL_BASE_PHYS) -e $(KERNEL_BASE_PHYS)
MKUBOOTIMAGEARGS+=	-n "NetBSD/$(BOARDTYPE) ${_OSRELEASE}"
.if ${MKREPRO_TIMESTAMP:Uno} != "no"
MKUBOOTIMAGEARGS+=	-t "${MKREPRO_TIMESTAMP}"
.endif
MKUBOOTIMAGEARGS_NONE=	${MKUBOOTIMAGEARGS} -C none
MKUBOOTIMAGEARGS_GZ=	${MKUBOOTIMAGEARGS} -C gz

SYSTEM_LD_TAIL_EXTRA+=; \
	echo ${OBJCOPY} -S -O binary $@@ $@@.bin; \
	${OBJCOPY} -S -O binary $@@ $@@.bin; \
	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@@.bin $@@.ub; \
	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@@.bin $@@.ub; \
	echo ${TOOL_GZIP} -c $@@.bin > $@@.bin.gz; \
	${TOOL_GZIP} -c $@@.bin > $@@.bin.gz; \
	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@@.bin.gz $@@.gz.ub; \
	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@@.bin.gz $@@.gz.ub

EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.bin@@}
EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.ub@@}
EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.bin.gz@@}
EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.gz.ub@@}
@


1.4
log
@Fix MKREPRO build (Jan-Benedict Glaw)
@
text
@d1 1
a1 1
#	$NetBSD: mk.altera,v 1.3 2018/10/18 09:01:54 skrll Exp $
@


1.3
log
@Provide generic start code that assumes the MMU is off and caches are
disabled as per the linux booting protocol for ARMv6 and ARMv7 boards.
u-boot image type should be changed to 'linux' for correct behaviour.

The new start code builds a minimal "bootstrap" L1PT with cached access
disabled and uses the same table for all processors.  AP startup is
performed in less steps and more code is written in C.

The bootstrap tables and stack are placed into an (orphaned) section
"_init_memory" which is given to uvm when it is no longer used.

Various kernels have been converted to use this code and tested.  Some
boards were provided by TNF. Thanks!

The GENERIC kernel now boots on boards using the TEGRA, SUNXI and EXYNOS
kernels. The GENERIC kernel will also work on RPI2 using u-boot.

Thanks to martin@@ and aymeric@@ for testing on parallella and nanosoc
respectively
@
text
@d1 1
a1 1
#	$NetBSD: mk.altera,v 1.2 2018/10/14 18:58:44 aymeric Exp $
d17 3
@


1.3.4.1
log
@file mk.altera was added on branch phil-wifi on 2019-06-10 22:06:05 +0000
@
text
@d1 33
@


1.3.4.2
log
@Sync with HEAD
@
text
@a0 33
#	$NetBSD: mk.altera,v 1.3 2018/10/18 09:01:54 skrll Exp $

.if !empty(MACHINE_ARCH:M*eb)
EXTRA_LINKFLAGS+=	--be8
.endif

CPPFLAGS+=		-mcpu=cortex-a9 -mfpu=neon

SYSTEM_FIRST_OBJ=	armv6_start.o
SYSTEM_FIRST_SFILE=	${ARM}/arm/armv6_start.S

_OSRELEASE!=		${HOST_SH} $S/conf/osrelease.sh

MKUBOOTIMAGEARGS=	-A arm -T kernel -O linux
MKUBOOTIMAGEARGS+=	-a $(KERNEL_BASE_PHYS) -e $(KERNEL_BASE_PHYS)
MKUBOOTIMAGEARGS+=	-n "NetBSD/$(BOARDTYPE) ${_OSRELEASE}"
MKUBOOTIMAGEARGS_NONE=	${MKUBOOTIMAGEARGS} -C none
MKUBOOTIMAGEARGS_GZ=	${MKUBOOTIMAGEARGS} -C gz

SYSTEM_LD_TAIL_EXTRA+=; \
	echo ${OBJCOPY} -S -O binary $@@ $@@.bin; \
	${OBJCOPY} -S -O binary $@@ $@@.bin; \
	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@@.bin $@@.ub; \
	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@@.bin $@@.ub; \
	echo ${TOOL_GZIP} -c $@@.bin > $@@.bin.gz; \
	${TOOL_GZIP} -c $@@.bin > $@@.bin.gz; \
	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@@.bin.gz $@@.gz.ub; \
	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@@.bin.gz $@@.gz.ub

EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.bin@@}
EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.ub@@}
EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.bin.gz@@}
EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.gz.ub@@}
@


1.2
log
@Make the DE0 NanoSoC work also in big-endian mode
@
text
@d1 1
a1 1
#	$NetBSD: mk.altera,v 1.1 2018/09/19 17:31:39 aymeric Exp $
d9 2
a10 4
SYSTEM_FIRST_OBJ=	altera_start.o
SYSTEM_FIRST_SFILE=	${THISARM}/altera/altera_start.S

GENASSYM_EXTRAS+=	${THISARM}/altera/genassym.cf
@


1.1
log
@Add support for the DE0 NanoSoC board.

It's Cyclone V based and thus includes a dual-core Cortex A9 @@925MHz.
Most standard peripherals are supported (USB, SDCard, Ethernet) and
no unusual peripheral is supported yet (FPGA, GPIO, ...)
@
text
@d1 6
a6 1
#	$NetBSD$
@


1.1.2.1
log
@file mk.altera was added on branch pgoyette-compat on 2018-09-30 01:45:40 +0000
@
text
@d1 30
@


1.1.2.2
log
@Ssync with HEAD
@
text
@a0 30
#	$NetBSD: mk.altera,v 1.1 2018/09/19 17:31:39 aymeric Exp $
CPPFLAGS+=		-mcpu=cortex-a9 -mfpu=neon

SYSTEM_FIRST_OBJ=	altera_start.o
SYSTEM_FIRST_SFILE=	${THISARM}/altera/altera_start.S

GENASSYM_EXTRAS+=	${THISARM}/altera/genassym.cf

_OSRELEASE!=		${HOST_SH} $S/conf/osrelease.sh

MKUBOOTIMAGEARGS=	-A arm -T kernel -O linux
MKUBOOTIMAGEARGS+=	-a $(KERNEL_BASE_PHYS) -e $(KERNEL_BASE_PHYS)
MKUBOOTIMAGEARGS+=	-n "NetBSD/$(BOARDTYPE) ${_OSRELEASE}"
MKUBOOTIMAGEARGS_NONE=	${MKUBOOTIMAGEARGS} -C none
MKUBOOTIMAGEARGS_GZ=	${MKUBOOTIMAGEARGS} -C gz

SYSTEM_LD_TAIL_EXTRA+=; \
	echo ${OBJCOPY} -S -O binary $@@ $@@.bin; \
	${OBJCOPY} -S -O binary $@@ $@@.bin; \
	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@@.bin $@@.ub; \
	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@@.bin $@@.ub; \
	echo ${TOOL_GZIP} -c $@@.bin > $@@.bin.gz; \
	${TOOL_GZIP} -c $@@.bin > $@@.bin.gz; \
	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@@.bin.gz $@@.gz.ub; \
	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@@.bin.gz $@@.gz.ub

EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.bin@@}
EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.ub@@}
EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.bin.gz@@}
EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.gz.ub@@}
@


1.1.2.3
log
@Sync with head
@
text
@d1 2
a2 5
#	$NetBSD: mk.altera,v 1.3 2018/10/18 09:01:54 skrll Exp $

.if !empty(MACHINE_ARCH:M*eb)
EXTRA_LINKFLAGS+=	--be8
.endif
d4 2
a5 1
CPPFLAGS+=		-mcpu=cortex-a9 -mfpu=neon
d7 1
a7 2
SYSTEM_FIRST_OBJ=	armv6_start.o
SYSTEM_FIRST_SFILE=	${ARM}/arm/armv6_start.S
@


