From owner-freebsd-stable@freebsd.org Tue May 22 01:33:43 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1923DEAE356 for ; Tue, 22 May 2018 01:33:43 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from mail.in-addr.com (mail.in-addr.com [IPv6:2a01:4f8:191:61e8::2525:2525]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AD93D7A970 for ; Tue, 22 May 2018 01:33:42 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by mail.in-addr.com with local (Exim 4.91 (FreeBSD)) (envelope-from ) id 1fKwBG-0002Bd-SP; Tue, 22 May 2018 02:33:38 +0100 Date: Tue, 22 May 2018 02:33:38 +0100 From: Gary Palmer To: Eugene Grosbein Cc: freebsd-stable@freebsd.org Subject: Re: i386 nanobsd w/11.1-RELEASE-p10 Message-ID: <20180522013338.GE13355@in-addr.com> References: <20180519134604.GD13355@in-addr.com> <5B01E314.6020103@grosbein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5B01E314.6020103@grosbein.net> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2018 01:33:43 -0000 On Mon, May 21, 2018 at 04:05:24AM +0700, Eugene Grosbein wrote: > On 19.05.2018 20:46, Gary Palmer wrote: > > > > Hi, > > > > I haven't tried building an i386 image with nanobsd since 8.x or 9.x, > > so apologies if this is a known issue > > > > I've tried to build an i386 nanobsd using nanobsd on an amd64 host, > > and when that didn't work in an i386 jail on an amd64 host, and > > now in an i386 vm. > > I routinely update my 11.1-STABLE/i386 home router running nanobsd > built using 11.1-STABLE/amd64 desktop. I do not use any of chroot/jail/vm to build it. > > > The i386 vm is failing with the logs at the end of the message, > > taken from _.bw in the nanobsd build directory. I think similar > > errors were seen in the other environments also. A "make buildworld" > > in /usr/src passes, so it looks like something specific to nanobsd > > is tickling the problem. > > > > I included the first few lines from the start of boot2.s also. > > > > The nanobsd config file has been stripped down to remove any > > options that should affect the build > > > > == begin == > > NANO_PMAKE="make -j 1" > > NANO_NAME=net5501-nopkg > > NANO_SRC=/usr/src > > NANO_OBJ=/mnt/space/obj/nanobsd.${NANO_NAME} > > NANO_KERNEL=NET5501 > > NANO_IMAGES=2 > > NANO_INIT_IMG2=0 > > # The following are in 512 byte sectors. The "2" is to convert from > > # sectors to kilobytes > > NANO_CONFSIZE=48195 # 32 MB > > NANO_DATASIZE=1975932 > > NANO_RAM_ETCSIZE=$(( 2 * 1024 * 64 )) # 64 MB > > NANO_RAM_TMPVARSIZE=$(( 2 * 1024 * 32 )) # 32 MB > > > > FlashDevice generic 2048m > > == end == > > Here is my gw.conf: > > src=/home/nanobsd/gw > NANO_PMAKE="make -j9" > NANO_NAME=gw > NANO_KERNEL=GW > NANO_DRIVE=ada0 > NANO_MEDIASIZE=2097152 > NANO_SECTS=63 > NANO_HEADS=255 > NANO_BOOTLOADER="boot/boot0" > NANO_BOOT0CFG="-o packet -s 1 -m 3 -t 36" > # no NANO_DATASIZE but this should be irrelevant > NANO_RAM_ETCSIZE=16384 # 8MB > NANO_RAM_TMPVARSIZE=409600 # 200MB for large /var/spool > NANO_CUSTOMIZE="..." > NANO_LATE_CUSTOMIZE="..." > CONF_BUILD=' > TARGET=i386 > TARGET_ARCH=i386 > NANO_ARCH=i386 > CPUTYPE?=k6-3 > BOOT_COMCONSOLE_SPEED=115200 > BOOT_MBR_FLAGS=0x0 > BOOT_BOOT1_FLAGS=0x0 > # here come lots of WITHOUT_XXX > MODULES_OVERRIDE=ipfw_nat > ' > CONF_INSTALL=" > $CONF_BUILD > WITHOUT_BINUTILS= > WITHOUT_CLANG= > WITHOUT_CLANG_FULL= > WITHOUT_CXX= > WITHOUT_TOOLCHAIN= > WITHOUT_INSTALLLIB= > " Thanks. Using this as a base I was able to build an i386 image and boot it. Not entirely sure what was tickling the problem in my old configuration > > No /etc/src.conf or /etc/make.conf present. > > That's not good, see above for CONF_BUILD and CONF_INSTALL. > I've just run /usr/src/tools/tools/nanobsd/nanobsd.sh -c gw.conf > using my amd64 system and get images for i386. I had a bunch of stuff in my old config for both settings, but trimmed them out to see if that was causing the compile problem Thanks Gary