From owner-freebsd-stable@freebsd.org Sun May 20 21:05:39 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 D1E14EEFF40 for ; Sun, 20 May 2018 21:05:38 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F2AD70AE5; Sun, 20 May 2018 21:05:38 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w4KL5Vda013697 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 May 2018 23:05:31 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: gpalmer@freebsd.org Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id w4KL5OTV031643; Mon, 21 May 2018 04:05:24 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: i386 nanobsd w/11.1-RELEASE-p10 To: Gary Palmer , freebsd-stable@freebsd.org References: <20180519134604.GD13355@in-addr.com> From: Eugene Grosbein X-Enigmail-Draft-Status: N1110 Message-ID: <5B01E314.6020103@grosbein.net> Date: Mon, 21 May 2018 04:05:24 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20180519134604.GD13355@in-addr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, LOCAL_FROM, RDNS_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * 0.0 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-Spam-Level: ** 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: Sun, 20 May 2018 21:05:39 -0000 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= " > 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.