head	1.3;
access;
symbols
	perseant-exfatfs-base-20250801:1.3
	perseant-exfatfs-base-20240630:1.3
	perseant-exfatfs:1.3.0.2
	perseant-exfatfs-base:1.3
	netbsd-9-4-RELEASE:1.2
	bouyer-sunxi-drm:1.2.0.28
	bouyer-sunxi-drm-base:1.2
	netbsd-9-3-RELEASE:1.2
	thorpej-i2c-spi-conf2:1.2.0.26
	thorpej-i2c-spi-conf2-base:1.2
	thorpej-futex2:1.2.0.24
	thorpej-futex2-base:1.2
	thorpej-cfargs2:1.2.0.22
	thorpej-cfargs2-base:1.2
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.20
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	netbsd-9-2-RELEASE:1.2
	cjep_staticlib_x:1.2.0.18
	cjep_staticlib_x-base:1.2
	thorpej-i2c-spi-conf:1.2.0.16
	thorpej-i2c-spi-conf-base:1.2
	thorpej-cfargs:1.2.0.14
	thorpej-cfargs-base:1.2
	thorpej-futex:1.2.0.12
	thorpej-futex-base:1.2
	netbsd-9-1-RELEASE:1.2
	bouyer-xenpvh-base2:1.2
	phil-wifi-20200421:1.2
	bouyer-xenpvh-base1:1.2
	phil-wifi-20200411:1.2
	bouyer-xenpvh:1.2.0.10
	bouyer-xenpvh-base:1.2
	is-mlppp:1.2.0.8
	is-mlppp-base:1.2
	phil-wifi-20200406:1.2
	ad-namecache-base3:1.2
	netbsd-9-0-RELEASE:1.2
	netbsd-9-0-RC2:1.2
	ad-namecache-base2:1.2
	ad-namecache-base1:1.2
	ad-namecache:1.2.0.6
	ad-namecache-base:1.2
	netbsd-9-0-RC1:1.2
	phil-wifi-20191119:1.2
	netbsd-9:1.2.0.4
	netbsd-9-base:1.2
	phil-wifi-20190609:1.2
	isaki-audio2:1.2.0.2
	isaki-audio2-base:1.2
	pgoyette-compat-merge-20190127:1.1.2.3
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.1
	pgoyette-compat-0906:1.1
	pgoyette-compat-0728:1.1
	phil-wifi:1.1.0.4
	phil-wifi-base:1.1
	pgoyette-compat:1.1.0.2
	pgoyette-compat-0625:1.1;
locks; strict;
comment	@# @;


1.3
date	2022.10.29.14.01.36;	author jmcneill;	state dead;
branches;
next	1.2;
commitid	DncG4DVZ4ZTGtCZD;

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

1.1
date	2018.06.14.10.56.39;	author jmcneill;	state Exp;
branches
	1.1.2.1
	1.1.4.1;
next	;
commitid	Va0UTFGfPhvwOeGA;

1.1.2.1
date	2018.06.14.10.56.39;	author pgoyette;	state dead;
branches;
next	1.1.2.2;
commitid	8PtAu9af7VvhiDHA;

1.1.2.2
date	2018.06.25.07.25.40;	author pgoyette;	state Exp;
branches;
next	1.1.2.3;
commitid	8PtAu9af7VvhiDHA;

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

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


desc
@@


1.3
log
@GC unused files.
@
text
@#	$NetBSD: mk.virt,v 1.2 2018/10/18 09:01:54 skrll Exp $

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

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

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

KERNEL_BASE_PHYS?=$(LOADADDRESS)
KERNEL_BASE_VIRT?=$(LOADADDRESS)

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_GZIP} -9c $@@.bin > $@@.bin.gz; \
	${TOOL_GZIP} -9c $@@.bin > $@@.bin.gz; \
	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@@.bin.gz $@@.gz.ub; \
	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@@.bin.gz $@@.gz.ub; \
	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@@.bin $@@.ub; \
	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@@.bin $@@.ub; \
	echo

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
@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.virt,v 1.1 2018/06/14 10:56:39 jmcneill Exp $
@


1.1
log
@Add support for QEMU ARM Virtual Machine ("virt").
@
text
@d1 1
a1 1
#	$NetBSD$
d7 2
a8 2
SYSTEM_FIRST_OBJ=	virt_start.o
SYSTEM_FIRST_SFILE=	${THISARM}/virt/virt_start.S
@


1.1.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: mk.virt,v 1.2 2018/10/18 09:01:54 skrll Exp $
d7 2
a8 2
SYSTEM_FIRST_OBJ=	armv6_start.o
SYSTEM_FIRST_SFILE=	${ARM}/arm/armv6_start.S
@


1.1.2.1
log
@file mk.virt was added on branch pgoyette-compat on 2018-06-25 07:25:40 +0000
@
text
@d1 35
@


1.1.2.2
log
@Sync with HEAD
@
text
@a0 35
#	$NetBSD: mk.virt,v 1.1 2018/06/14 10:56:39 jmcneill Exp $

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

SYSTEM_FIRST_OBJ=	virt_start.o
SYSTEM_FIRST_SFILE=	${THISARM}/virt/virt_start.S

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

KERNEL_BASE_PHYS?=$(LOADADDRESS)
KERNEL_BASE_VIRT?=$(LOADADDRESS)

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_GZIP} -9c $@@.bin > $@@.bin.gz; \
	${TOOL_GZIP} -9c $@@.bin > $@@.bin.gz; \
	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@@.bin.gz $@@.gz.ub; \
	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_GZ} $@@.bin.gz $@@.gz.ub; \
	echo ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@@.bin $@@.ub; \
	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@@.bin $@@.ub; \
	echo

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 1
a1 1
#	$NetBSD: mk.virt,v 1.2 2018/10/18 09:01:54 skrll Exp $
d7 2
a8 2
SYSTEM_FIRST_OBJ=	armv6_start.o
SYSTEM_FIRST_SFILE=	${ARM}/arm/armv6_start.S
@


