From owner-freebsd-embedded@FreeBSD.ORG Mon Jan 20 11:06:43 2014 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D4DFBA00 for ; Mon, 20 Jan 2014 11:06:43 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C016A1D5C for ; Mon, 20 Jan 2014 11:06:43 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0KB6hBu088293 for ; Mon, 20 Jan 2014 11:06:43 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0KB6hG8088291 for freebsd-embedded@FreeBSD.org; Mon, 20 Jan 2014 11:06:43 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 20 Jan 2014 11:06:43 GMT Message-Id: <201401201106.s0KB6hG8088291@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jan 2014 11:06:43 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c 2 problems total. From owner-freebsd-embedded@FreeBSD.ORG Thu Jan 23 11:32:46 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 230713A8 for ; Thu, 23 Jan 2014 11:32:46 +0000 (UTC) Received: from nm14-vm9.bullet.mail.ir2.yahoo.com (nm14-vm9.bullet.mail.ir2.yahoo.com [212.82.96.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3CFFE12C3 for ; Thu, 23 Jan 2014 11:32:45 +0000 (UTC) Received: from [212.82.98.127] by nm14.bullet.mail.ir2.yahoo.com with NNFMP; 23 Jan 2014 11:32:36 -0000 Received: from [46.228.39.87] by tm20.bullet.mail.ir2.yahoo.com with NNFMP; 23 Jan 2014 11:32:36 -0000 Received: from [127.0.0.1] by smtp124.mail.ir2.yahoo.com with NNFMP; 23 Jan 2014 11:32:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.it; s=s1024; t=1390476756; bh=/BAWRjcD9xThgKvx6w3GUOv3ZIVhjudlyYXQkbyLQ6g=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; b=bez3z9OcLOPJW7szx+JrjsOGy6hA+QDPdV7pGVfvvqXb5x3jcMajDeMtZd101ysTI+SH80L5Hx/6b7QOENrhC6TmbGmKeJwYA6GyhLVlOkeVn5PyOgQfMMvTVtib2Usfvz2FYAUV52wdHiOUQkV1gOWJ0cK8oiVBEnOkXe3LXG0= X-Yahoo-Newman-Id: 2766.26214.bm@smtp124.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: R6NYXZwVM1kRGM6BI90vdnU8D1IZTA183Zlz48274JM4n7x 6bnpxP8xGfr4k4DhNhAdNZ4Q6bMN9S9N6IY7YV5lu0ha1sNc1OjTMc3KH.La vHxQTunLg9vHBn3UaXscG48770JGfjdwSrExVJL2LAaelbXjEZaNg9h6cTML duL4d9hGGqaMqmLfFBvm4rGU9lwE4Ac0ik397SsEOzVzcCZCkFAYOMou6Vk4 jOwyF0eTUcM2uZgdPtMXxhYfNn5E8Tjz0Mg9D5gFlOm5LdJRaTzLvuUXSxfi feCdV_BSBcHvk28I5zmES2wNquZinB58zJB0wGi_GDj0UdlHvDdk3ASnCQ13 a8TJvU1tEmpL8DTJ7L4H1JJOM.1b6Ha_tw13f6uv3vYGYg5GurBow2JfA001 HemjiWM_Ck6ZvWeJyxO1HqyTPrLZs8j6zpgc1jN0cADf_rZFyGzATgxrzaib oQ._cMRTb3rpMsaHNcv6yE7t4f4ci5jcko8pKSbAbdnshlUDUrNHksy.bSzm Ganj0RREDUTnSnHg7wi41q0ujBsQvELgSkXIWXmb6nFTyWoddFuLyOUjsKJm j3..fLjz6elrJ._am17Nr65RkSXYDhA.EaHllOd0JhNk2Va5DEXXXAb_7QJz n9EjecEDg.qjPGlF.YnbFdDxYJA1ge73GTlt9fmoEGDz09c2ozysDj1atuMv S3VM- X-Yahoo-SMTP: WU.IBxeswBAAnLcBZV3tEZIK0A-- X-Rocket-Received: from flea (ardovm@93.145.108.123 with plain [188.125.69.59]) by smtp124.mail.ir2.yahoo.com with SMTP; 23 Jan 2014 11:32:35 +0000 UTC Received: by flea (Postfix, from userid 1000) id E6C44C00094; Thu, 23 Jan 2014 12:32:34 +0100 (CET) Date: Thu, 23 Jan 2014 12:32:34 +0100 From: Arrigo Marchiori To: Adrian Chadd Subject: Re: Creating code slice before disk image in nanobsd Message-ID: <20140123113234.GB27181@snail.casa> References: <20120629133759.GA19373@snail.casa> <20140114161533.GB19601@snail.casa> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-embedded@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jan 2014 11:32:46 -0000 Hello list, On Tue, Jan 14, 2014 at 08:23:19PM -0800, Adrian Chadd wrote: > Yes, please! Here you are :-) http://www.freebsd.org/cgi/query-pr.cgi?pr=186030 -- rigo http://rigo.altervista.org From owner-freebsd-embedded@FreeBSD.ORG Thu Jan 23 12:00:58 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F4F0AE6 for ; Thu, 23 Jan 2014 12:00:58 +0000 (UTC) Received: from nm9-vm0.bullet.mail.ird.yahoo.com (nm9-vm0.bullet.mail.ird.yahoo.com [77.238.189.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B86B415BF for ; Thu, 23 Jan 2014 12:00:57 +0000 (UTC) Received: from [77.238.189.239] by nm9.bullet.mail.ird.yahoo.com with NNFMP; 23 Jan 2014 12:00:54 -0000 Received: from [46.228.39.68] by tm20.bullet.mail.ird.yahoo.com with NNFMP; 23 Jan 2014 12:00:54 -0000 Received: from [127.0.0.1] by smtp105.mail.ir2.yahoo.com with NNFMP; 23 Jan 2014 12:00:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.it; s=s1024; t=1390478454; bh=IlsPTszrlFxnkBiY4cuggDmv6IhN2R+PxTOXQFixycE=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; b=a0UW9QyKHBiYdvkdeazmufy7l/vQ+h3Mk09lk2OEVgYW2NJq52Lqej36rvyJ2FeD5Ji/7+aCJ0iGjO041y71t16oHJobnqqp2wOkFoG9wzMF62Yd/utjpgE0JmfH+8KZnvkZC6pZQMi+R1g9Eok8VJaOoGGPqs00W0VdHXiAQJA= X-Yahoo-Newman-Id: 442125.79911.bm@smtp105.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: HADkfvIVM1lFqGlC7JULdzdF61Nt7KBKeCOznAJtsO2sNg4 33t4.8zpbW9tcYmSZh3QAaweCTN7S.9htxplqeasQBFFHkbPO8Pg6ptpapQk BPqFLxCxlJzK5iGar.NZnzWqiYn6Jn5FS3rbEwawRCpFfh0vwioIz26kJiOG kUQA6AIuSB2la7YGt5bfsLhHGL0ynbYlOm.14F_u7.VdBH_VvHN4cDC9onFx _peAM1py9GxsZ8edKHMdFp0rdnTl38z3PzS1a0Dfgev3Q9.Ea.GMsgUC3wGk NcWvh7.8gVWkZALln1V7yqoe62zATync_BMtzC.qJg4Zi.Zrnx9Xio_wKuza aa9CnfZZamE5vNsrWXZ8gjLj0ampUpD4ujd0Y9jfc4l.uA.Snkg9T2jXnBS1 46SokNJ5SoDn1Vm4O75w6WerEgt0z0pZ5DpmKt7h_Pdxjqcy.k0fj9DiGdjL A71v72MRiBwqdmZXZ3EjDMkUydECqZd.nf8tmBeYgvFOeeTZKnvyxFzADzDh LZRYKSDnwSjwBHdYPnaMN70K.B16U_TjYaDU227WULCkJVaeRqj7VC_QfIj7 iVjIdekb9qjt9kseUCmpa0hykiIuH5XSkM9vcCyyWmKgo4.UOtWIVqrjYiji JAzN6dxNcqvCegDV0efF0oHvqHGqwgQ62lOaYSFQK_OHshYsxV5lzAKY8OSh 89R1kPxr0M_oo X-Yahoo-SMTP: WU.IBxeswBAAnLcBZV3tEZIK0A-- X-Rocket-Received: from flea (ardovm@93.145.108.123 with plain [188.125.69.59]) by smtp105.mail.ir2.yahoo.com with SMTP; 23 Jan 2014 12:00:54 +0000 UTC Received: by flea (Postfix, from userid 1000) id 407EEC00094; Thu, 23 Jan 2014 13:00:53 +0100 (CET) Date: Thu, 23 Jan 2014 13:00:53 +0100 From: Arrigo Marchiori To: Warren Block Subject: Re: Creating code slice before disk image in nanobsd Message-ID: <20140123120053.GC27181@snail.casa> References: <20120629133759.GA19373@snail.casa> <20140114161533.GB19601@snail.casa> <6027B660-1D2E-4058-B87F-83D8225F0DC3@bsdimp.com> <20140116034220.B43023@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Ian Smith , "freebsd-embedded@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jan 2014 12:00:58 -0000 Hello list, to answer some of Warren's questions, I will describe what the patch currently does. I am not a gpart expert, so you can propose your own considerations and fixes if you know the subject. On Wed, Jan 15, 2014 at 12:50:33PM -0700, Warren Block wrote: > On Thu, 16 Jan 2014, Ian Smith wrote: > > > On Wed, 15 Jan 2014 07:53:08 -0700, Warner Losh wrote: > > > > > I'll take a look at things... It isn't obvious at first blush this is > > > the right thing to do, but I need to think about it a bit... > > > > > > Warner > > > > Perhaps an aside, but I'm pretty sure Warren (cc'd) has said that gpart > > can do anything that fdisk AND bsdlabel can do? > > Yes. Although there is an exception: gpart silently forces alignment to > CHS values on MBR slices, and fdisk does not. So to get a 4K-aligned > slice requires fdisk. gpart can align BSD partitions inside a slice to > 4K, but that is a workaround. (I believe gpart should default to CHS > but use -a alignment or -b values when given for MBR slices, regardless > of the MBR spec. This becomes increasingly important as 4K drives and > SSDs become more common.) I didn't take alignment into account; I just adapted the calculations to match the parameters required by gpart. > > If that's so, and the > > object here is to deprecate fdisk, why not also replace these lines: > > > > + > > + bsdlabel -w -B -b ${NANO_WORLDDIR}/boot/boot ${MD} > > + bsdlabel ${MD} > > + > > > > with their gpart equivalents? > > > > (and no, I don't know what those should be in this context) > > To create the initial MBR, probably already done before the code above: > gpart create -s mbr ${MD} This is done by the patch. [...] > To create a slice and set it active: > gpart add -s freebsd ${MD} [1] [...] > [1] when creating the slice, -a4k or -b1m can be specified but will be > silently rounded to CHS values The -b parameter is also used, therefore your note [1] applies. > gpart set -a active -i1 ${MD} This is done by the patch. > To create the BSDlabel inside the slice and write the bootcode to it: > gpart create -s bsd ${MD}s1 > gpart bootcode -b ${NANO_WORLDDIR}/boot/boot ${MD}s1 > Then BSD partitions can be added with, for example: > gpart add -t freebsd-ufs -s2g ${MD}s1 [2] [...] > [2] when creating BSD partitions, -a4k can be used and they will be > created with an offset inside the slice to end up aligned These were kept as the original: bsdlabel -w -B -b ${NANO_WORLDDIR}/boot/boot ${MD}s1 > For reference, see > http://www.wonkity.com/~wblock/docs/html/disksetup.html#_the_old_standard_mbr Regards, -- rigo http://rigo.altervista.org From owner-freebsd-embedded@FreeBSD.ORG Sat Jan 25 11:13:36 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 18B1D6D for ; Sat, 25 Jan 2014 11:13:36 +0000 (UTC) Received: from olymp.kibab.com (olymp6.kibab.com [IPv6:2a01:4f8:160:84c1::2]) by mx1.freebsd.org (Postfix) with ESMTP id CEFD01799 for ; Sat, 25 Jan 2014 11:13:35 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.8.3 olymp.kibab.com 0F9B53F438 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kibab.com; s=default; t=1390648407; bh=ph7Bkxw3/L+j6t0ZH+TJ6oA0mbAhYAzSk3a4JiayTG4=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=dZrCYTFWOC8ppnIOAIWPCfiuUgcXaP2bQBry2T61LhyZ5JeKrpXzjgliuDk7zK0G7 8ZMZGk2gLlahkbwlTzbAd1ICm5n2MOdONk29t+0Z83v7d/euSrI5TJnPD2iNC9Lk47 zGx76ufeB8WNFXfsyxcWm8jWO/ZX0FTRsXjE5xKc= Message-ID: <52E39C50.2060103@kibab.com> Date: Sat, 25 Jan 2014 12:13:20 +0100 From: Ilya Bakulin MIME-Version: 1.0 To: Nick Hibma Subject: Re: NanoBSD update scripts are broken when using disk labels References: <52926BE0.8050003@kibab.com> <52A7ACAA.3000305@kibab.com> In-Reply-To: <52A7ACAA.3000305@kibab.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: "freebsd-embedded@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jan 2014 11:13:36 -0000 On 11.12.13, 01:07, Ilya Bakulin wrote: > On 25.11.13, 06:01, Olivier Cochard-Labbé wrote: >> On Sun, Nov 24, 2013 at 10:13 PM, Ilya Bakulin wrote: >> Hi, >> >> you can try my version of nanobsd update script that merge updatep1 >> and updatep2 in one script: >> >> http://sourceforge.net/p/bsdrp/code/HEAD/tree/trunk/BSDRP/Files/usr/local/sbin/upgrade > > Hi Olivier, > I have tried your script and it works, thanks! > > Nick, please review the script from Olivier and commit if it is OK from > your side! Hi Nick, could you please review and commit the working NanoBSD update scripts? While here, I'd like to propose to use -DDB_FROM_SRC when executing installworld and distribution target. Without this, the installation breaks when the host system is older than 10-STABLE (when audit user is missing). -- Ilya