Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Disable "OS bootversion check" on crunched binaries for inst...
details: https://anonhg.NetBSD.org/src/rev/c83cc69750a9
branches: trunk
changeset: 333969:c83cc69750a9
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Mon Nov 24 08:08:23 2014 +0000
description:
Disable "OS bootversion check" on crunched binaries for installation media.
This oscheck() function seems implemented to check compatibility
between bootloaders and /netbsd kernel, but checking /netbsd using kvm(3)
doesn't make sense on installation or even future cross builds, and
probably we will never bump bootloader version without compatibility
per recent 14 years history.
This works around overflow of 1440KB 2HD sysinst.fs, and would also be
worth to pullup to netbsd-7.
diffstat:
distrib/atari/floppies/common/list.images | 4 ++--
sys/arch/atari/stand/installboot/Makefile | 5 ++++-
sys/arch/atari/stand/installboot/installboot.c | 8 +++++++-
3 files changed, 13 insertions(+), 4 deletions(-)
diffs (78 lines):
diff -r acb76b67afda -r c83cc69750a9 distrib/atari/floppies/common/list.images
--- a/distrib/atari/floppies/common/list.images Mon Nov 24 07:53:43 2014 +0000
+++ b/distrib/atari/floppies/common/list.images Mon Nov 24 08:08:23 2014 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: list.images,v 1.9 2010/02/21 20:18:08 tsutsui Exp $
+# $NetBSD: list.images,v 1.10 2014/11/24 08:08:23 tsutsui Exp $
SRCDIRS bin sbin usr.bin usr.sbin gnu/usr.bin sys/arch/atari/stand
-LIBS libhack.o -lprop -lrmt -lz -lutil -lcurses -lterminfo -lkvm -ll -lm
+LIBS libhack.o -lprop -lrmt -lz -lutil -lcurses -lterminfo -ll -lm
# init invokes the shell as -sh
ARGVLN sh -sh
diff -r acb76b67afda -r c83cc69750a9 sys/arch/atari/stand/installboot/Makefile
--- a/sys/arch/atari/stand/installboot/Makefile Mon Nov 24 07:53:43 2014 +0000
+++ b/sys/arch/atari/stand/installboot/Makefile Mon Nov 24 08:08:23 2014 +0000
@@ -1,11 +1,14 @@
-# $NetBSD: Makefile,v 1.7 2014/11/24 07:52:04 tsutsui Exp $
+# $NetBSD: Makefile,v 1.8 2014/11/24 08:08:23 tsutsui Exp $
WARNS= 4
PROG= installboot
NOMAN= # defined
SRCS= installboot.c disklabel.c
BINDIR= /usr/mdec
+.ifndef SMALLPROG
+CPPFLAGS+= -DCHECK_OS_BOOTVERSION
LDADD= -lkvm
+.endif
# XXX needs proper struct or union to calculate boot sector uint16_t cksums
CFLAGS+= -fno-strict-aliasing
diff -r acb76b67afda -r c83cc69750a9 sys/arch/atari/stand/installboot/installboot.c
--- a/sys/arch/atari/stand/installboot/installboot.c Mon Nov 24 07:53:43 2014 +0000
+++ b/sys/arch/atari/stand/installboot/installboot.c Mon Nov 24 08:08:23 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: installboot.c,v 1.33 2014/11/24 07:34:45 tsutsui Exp $ */
+/* $NetBSD: installboot.c,v 1.34 2014/11/24 08:08:23 tsutsui Exp $ */
/*
* Copyright (c) 1995 Waldi Ravens
@@ -54,7 +54,9 @@
#include "installboot.h"
static void usage(void);
+#ifdef CHECK_OS_BOOTVERSION
static void oscheck(void);
+#endif
static u_int abcksum(void *);
static void setNVpref(void);
static void setIDEpar(u_int8_t *, size_t);
@@ -99,8 +101,10 @@
char *devchr;
int fd, c;
+#ifdef CHECK_OS_BOOTVERSION
/* check OS bootversion */
oscheck();
+#endif
/* parse options */
while ((c = getopt(argc, argv, "Nmt:u:v")) != -1) {
@@ -177,6 +181,7 @@
return(EXIT_SUCCESS);
}
+#ifdef CHECK_OS_BOOTVERSION
static void
oscheck(void)
{
@@ -208,6 +213,7 @@
errx(EXIT_FAILURE, "Kern bootversion: %d, expected: %d",
kvers, BOOTVERSION);
}
+#endif
static void
install_fd(char *devnm, struct disklabel *label)
Home |
Main Index |
Thread Index |
Old Index