head	1.3;
access;
symbols
	netbsd-11-0-RC4:1.3
	netbsd-11-0-RC3:1.3
	netbsd-11-0-RC2:1.3
	netbsd-11-0-RC1:1.3
	perseant-exfatfs-base-20250801:1.3
	netbsd-11:1.3.0.4
	netbsd-11-base:1.3
	netbsd-10-1-RELEASE:1.2
	perseant-exfatfs-base-20240630:1.3
	perseant-exfatfs:1.3.0.2
	perseant-exfatfs-base:1.3
	netbsd-8-3-RELEASE:1.2
	netbsd-9-4-RELEASE:1.2
	netbsd-10-0-RELEASE:1.2
	netbsd-10-0-RC6:1.2
	netbsd-10-0-RC5:1.2
	netbsd-10-0-RC4:1.2
	netbsd-10-0-RC3:1.2
	netbsd-10-0-RC2:1.2
	thorpej-ifq:1.2.0.84
	thorpej-ifq-base:1.2
	thorpej-altq-separation:1.2.0.82
	thorpej-altq-separation-base:1.2
	netbsd-10-0-RC1:1.2
	netbsd-10:1.2.0.80
	netbsd-10-base:1.2
	bouyer-sunxi-drm:1.2.0.78
	bouyer-sunxi-drm-base:1.2
	netbsd-9-3-RELEASE:1.2
	thorpej-i2c-spi-conf2:1.2.0.76
	thorpej-i2c-spi-conf2-base:1.2
	thorpej-futex2:1.2.0.74
	thorpej-futex2-base:1.2
	thorpej-cfargs2:1.2.0.72
	thorpej-cfargs2-base:1.2
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.70
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	netbsd-9-2-RELEASE:1.2
	cjep_staticlib_x:1.2.0.68
	cjep_staticlib_x-base:1.2
	thorpej-i2c-spi-conf:1.2.0.66
	thorpej-i2c-spi-conf-base:1.2
	thorpej-cfargs:1.2.0.64
	thorpej-cfargs-base:1.2
	thorpej-futex:1.2.0.62
	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.60
	bouyer-xenpvh-base:1.2
	is-mlppp:1.2.0.58
	is-mlppp-base:1.2
	phil-wifi-20200406:1.2
	netbsd-8-2-RELEASE: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.56
	ad-namecache-base:1.2
	netbsd-9-0-RC1:1.2
	phil-wifi-20191119:1.2
	netbsd-9:1.2.0.54
	netbsd-9-base:1.2
	phil-wifi-20190609:1.2
	netbsd-8-1-RELEASE:1.2
	netbsd-8-1-RC1:1.2
	isaki-audio2:1.2.0.52
	isaki-audio2-base:1.2
	pgoyette-compat-merge-20190127:1.2
	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.2
	pgoyette-compat-0906:1.2
	netbsd-7-2-RELEASE:1.2
	pgoyette-compat-0728:1.2
	netbsd-8-0-RELEASE:1.2
	phil-wifi:1.2.0.50
	phil-wifi-base:1.2
	pgoyette-compat-0625:1.2
	netbsd-8-0-RC2:1.2
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	netbsd-8-0-RC1:1.2
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	netbsd-7-1-2-RELEASE:1.2
	pgoyette-compat:1.2.0.48
	pgoyette-compat-base:1.2
	netbsd-7-1-1-RELEASE:1.2
	tls-maxphys-base-20171202:1.2
	matt-nb8-mediatek:1.2.0.46
	matt-nb8-mediatek-base:1.2
	nick-nhusb-base-20170825:1.2
	perseant-stdc-iso10646:1.2.0.44
	perseant-stdc-iso10646-base:1.2
	netbsd-8:1.2.0.42
	netbsd-8-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.40
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	jdolecek-ncq:1.2.0.38
	jdolecek-ncq-base:1.2
	pgoyette-localcount-20170320:1.2
	netbsd-7-1:1.2.0.36
	netbsd-7-1-RELEASE:1.2
	netbsd-7-1-RC2:1.2
	nick-nhusb-base-20170204:1.2
	netbsd-7-nhusb-base-20170116:1.2
	bouyer-socketcan:1.2.0.34
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	netbsd-7-1-RC1:1.2
	nick-nhusb-base-20161204:1.2
	pgoyette-localcount-20161104:1.2
	netbsd-7-0-2-RELEASE:1.2
	nick-nhusb-base-20161004:1.2
	localcount-20160914:1.2
	netbsd-7-nhusb:1.2.0.32
	netbsd-7-nhusb-base:1.2
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.30
	pgoyette-localcount-base:1.2
	nick-nhusb-base-20160907:1.2
	nick-nhusb-base-20160529:1.2
	netbsd-7-0-1-RELEASE:1.2
	nick-nhusb-base-20160422:1.2
	nick-nhusb-base-20160319:1.2
	nick-nhusb-base-20151226:1.2
	netbsd-7-0:1.2.0.28
	netbsd-7-0-RELEASE:1.2
	nick-nhusb-base-20150921:1.2
	netbsd-7-0-RC3:1.2
	netbsd-7-0-RC2:1.2
	netbsd-7-0-RC1:1.2
	nick-nhusb-base-20150606:1.2
	nick-nhusb-base-20150406:1.2
	nick-nhusb:1.2.0.26
	nick-nhusb-base:1.2
	netbsd-6-0-6-RELEASE:1.2
	netbsd-6-1-5-RELEASE:1.2
	netbsd-7:1.2.0.24
	netbsd-7-base:1.2
	yamt-pagecache-base9:1.2
	yamt-pagecache-tag8:1.1.2.1
	netbsd-6-1-4-RELEASE:1.2
	netbsd-6-0-5-RELEASE:1.2
	tls-earlyentropy:1.2.0.22
	tls-earlyentropy-base:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.2
	netbsd-6-1-3-RELEASE:1.2
	netbsd-6-0-4-RELEASE:1.2
	netbsd-6-1-2-RELEASE:1.2
	netbsd-6-0-3-RELEASE:1.2
	rmind-smpnet-nbase:1.2
	netbsd-6-1-1-RELEASE:1.2
	riastradh-drm2-base2:1.2
	riastradh-drm2-base1:1.2
	riastradh-drm2:1.2.0.20
	riastradh-drm2-base:1.2
	rmind-smpnet:1.2.0.12
	rmind-smpnet-base:1.2
	netbsd-6-1:1.2.0.18
	netbsd-6-0-2-RELEASE:1.2
	netbsd-6-1-RELEASE:1.2
	khorben-n900:1.2.0.16
	netbsd-6-1-RC4:1.2
	netbsd-6-1-RC3:1.2
	agc-symver:1.2.0.14
	agc-symver-base:1.2
	netbsd-6-1-RC2:1.2
	netbsd-6-1-RC1:1.2
	yamt-pagecache-base8:1.2
	netbsd-6-0-1-RELEASE:1.2
	yamt-pagecache-base7:1.2
	matt-nb6-plus-nbase:1.2
	yamt-pagecache-base6:1.2
	netbsd-6-0:1.2.0.10
	netbsd-6-0-RELEASE:1.2
	netbsd-6-0-RC2:1.2
	tls-maxphys:1.2.0.8
	tls-maxphys-base:1.2
	matt-nb6-plus:1.2.0.6
	matt-nb6-plus-base:1.2
	netbsd-6-0-RC1:1.2
	jmcneill-usbmp-base10:1.2
	yamt-pagecache-base5:1.2
	jmcneill-usbmp-base9:1.2
	yamt-pagecache-base4:1.2
	jmcneill-usbmp-base8:1.2
	jmcneill-usbmp-base7:1.2
	jmcneill-usbmp-base6:1.2
	jmcneill-usbmp-base5:1.2
	jmcneill-usbmp-base4:1.2
	jmcneill-usbmp-base3:1.2
	jmcneill-usbmp-pre-base2:1.2
	jmcneill-usbmp-base2:1.2
	netbsd-6:1.2.0.4
	netbsd-6-base:1.2
	jmcneill-usbmp:1.2.0.2
	jmcneill-usbmp-base:1.2
	jmcneill-audiomp3:1.1.0.4
	jmcneill-audiomp3-base:1.1
	yamt-pagecache-base3:1.1
	yamt-pagecache-base2:1.1
	yamt-pagecache:1.1.0.2
	yamt-pagecache-base:1.1;
locks; strict;
comment	@# @;


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

1.2
date	2011.11.30.20.00.39;	author jakllsch;	state Exp;
branches;
next	1.1;

1.1
date	2011.07.20.22.53.38;	author jakllsch;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2012.04.17.00.06.13;	author yamt;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Fix MKREPRO build (Jan-Benedict Glaw)
@
text
@#	$NetBSD: mk.mv2120,v 1.2 2011/11/30 20:00:39 jakllsch Exp $

SYSTEM_FIRST_OBJ=	marvell_start.o
SYSTEM_FIRST_SFILE=	${THISARM}/marvell/marvell_start.S

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

#
# MV2120 U-Boot is 1.1.4.
#
# This version cannot uncompress (or relocate?) images larger than 4Mbyte.
# It also requires the entry point to be byte-swapped (or maybe just in
# network byte order, this is a LE machine).
#
# U-Boot is already consuming the first 4MiB of memory, our image header
# is 0x40 bytes.  Hence we load the image at 0x400000 and enter at 0x400040.
#

UIMAGE_BASE_PHYS=0x00400000
KERNEL_BASE_PHYS=0x00400040
KERNEL_BASE_VIRT=0xc0400040

MKUBOOTIMAGEARGS=	-A arm -T kernel
MKUBOOTIMAGEARGS+=	-a ${UIMAGE_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

SYSTEM_LD_TAIL_EXTRA+=; \
	${OBJCOPY} -S -O binary $@@ $@@.bin; \
	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@@.bin $@@.ub;

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


1.2
log
@Explain the reasoning behind the load-time memory layout.
Only build kernels the MV2120 can boot.
Use mkubootimage -E.
@
text
@d1 1
a1 1
#	$NetBSD: mk.mv2120,v 1.1 2011/07/20 22:53:38 jakllsch Exp $
d26 3
@


1.1
log
@Add support for HP Media Vault MV2100/MV5100 series Marvell Orion board.
@
text
@d1 1
a1 1
#	$NetBSD$
d8 12
d24 1
a24 1
MKUBOOTIMAGEARGS+=	-a 0x00400000 -e 0x40004000 #byteswapped entry
a26 1
MKUBOOTIMAGEARGS_GZ=	${MKUBOOTIMAGEARGS} -C gz
a27 6
#
# These not have expanding buffer over 4Mbyte. (before version 1.1.5)
# And these cannot handle the endian of entry point. (1.1.4 and older)
#
# MV2120 U-Boot is 1.1.4.
#
a28 1
	echo ${OBJCOPY} -S -O binary $@@ $@@.bin; \
d30 1
a30 9
	echo gzip -c $@@.bin > $@@.bin.gz; \
	gzip -c $@@.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 ${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE:C/((-a (0x)*)([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2}))/\1 -e \3\7\6\5\4/W} $@@.bin $@@-old.ub; \
	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE:C/((-a (0x)*)([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2}))/\1 -e \3\7\6\5\4/W} $@@.bin $@@-old.ub; \
	echo
a32 1
EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.bin.gz@@}
a33 3
EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.gz@@}
EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}.gz.ub@@}
EXTRA_KERNELS+= ${KERNELS:@@.KERNEL.@@${.KERNEL.}-old.ub@@}
@


1.1.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: mk.mv2120,v 1.1 2011/07/20 22:53:38 jakllsch Exp $
a7 12
#
# MV2120 U-Boot is 1.1.4.
#
# This version cannot uncompress (or relocate?) images larger than 4Mbyte.
# It also requires the entry point to be byte-swapped (or maybe just in
# network byte order, this is a LE machine).
#
# U-Boot is already consuming the first 4MiB of memory, our image header
# is 0x40 bytes.  Hence we load the image at 0x400000 and enter at 0x400040.
#

UIMAGE_BASE_PHYS=0x00400000
d12 1
a12 1
MKUBOOTIMAGEARGS+=	-a ${UIMAGE_BASE_PHYS} -E ${KERNEL_BASE_PHYS}
d15 1
d17 6
d24 1
d26 9
a34 1
	${TOOL_MKUBOOTIMAGE} ${MKUBOOTIMAGEARGS_NONE} $@@.bin $@@.ub;
d37 1
d39 3
@


