From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 15 17:58:12 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 E4C145C8 for ; Wed, 15 Jan 2014 17:58:11 +0000 (UTC) Received: from mail-ig0-f176.google.com (mail-ig0-f176.google.com [209.85.213.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AAD1D1219 for ; Wed, 15 Jan 2014 17:58:11 +0000 (UTC) Received: by mail-ig0-f176.google.com with SMTP id j1so11109539iga.3 for ; Wed, 15 Jan 2014 09:58:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=EJ41e3vu2kUJkTs7+EU/aYrXXcs04nWtyNrpcL61lzg=; b=H6q3DhlSFzQtGSaNM+mZj5cWFwsRdpkUaSuVEF6emnIpiV8p88VJP+XxO5GMMQQTt9 YtQwTAZ4teFigrWeHblYlqVSZToqR23nt6O25NpRn+BLw4e9HuH6+gf4Fc+Ybjh1/W86 XOCVleiqRiD3ceiZXVaJz8NfY99GCMsYfhqJkVtKKVcVZMDKX6BY62gXrmuEVRegZ9bn OfYOJa1Yay18BK8y41WpvBUkgDR2XPputgsiU3V5otJLcQzBtfuSJ64bnukrQ/1tEXYv zF2sFyNmh4phMCT10fETRQy2MRZkB+kve5dvo2+YvrCKuJdix2xAozrT8bXf1dNwR9fq r+Vw== X-Gm-Message-State: ALoCoQnsdQwNws14dqmblZnifgPi2ULZWw1gPz8Sv6BnWarsZORkM6LwKQ+DOZzGRB1PsdSXyuRA X-Received: by 10.50.20.67 with SMTP id l3mr4520953ige.16.1389808684740; Wed, 15 Jan 2014 09:58:04 -0800 (PST) Received: from monkey-bot.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPSA id qk7sm30339745igc.8.2014.01.15.09.58.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 09:58:04 -0800 (PST) Sender: Warner Losh Subject: Re: Creating code slice before disk image in nanobsd Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20140116034220.B43023@sola.nimnet.asn.au> Date: Wed, 15 Jan 2014 10:58:01 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <27058E38-76ED-45DE-A075-09EB84D618BD@bsdimp.com> References: <20120629133759.GA19373@snail.casa> <20140114161533.GB19601@snail.casa> <6027B660-1D2E-4058-B87F-83D8225F0DC3@bsdimp.com> <20140116034220.B43023@sola.nimnet.asn.au> To: Ian Smith X-Mailer: Apple Mail (2.1085) 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: Wed, 15 Jan 2014 17:58:12 -0000 On Jan 15, 2014, at 9:50 AM, Ian Smith wrote: > On Wed, 15 Jan 2014 07:53:08 -0700, Warner Losh wrote: >=20 >> I'll take a look at things... It isn't obvious at first blush this is=20= >> the right thing to do, but I need to think about it a bit... >>=20 >> Warner >=20 > Perhaps an aside, but I'm pretty sure Warren (cc'd) has said that = gpart=20 > can do anything that fdisk AND bsdlabel can do? If that's so, and the=20= > object here is to deprecate fdisk, why not also replace these lines: >=20 > + > + bsdlabel -w -B -b ${NANO_WORLDDIR}/boot/boot ${MD} > + bsdlabel ${MD} > + >=20 > with their gpart equivalents? >=20 > (and no, I don't know what those should be in this context) That's why I want to look at it. I also saw it continued to do geometry = calculations, which are somewhat lame these days generally (but I don't = know about this specific case). A lot of that code was written in the = days of yore when you had to do a lot of work and geom was but a future = dream. Warner > cheers, Ian >=20 >> On Jan 14, 2014, at 9:23 PM, Adrian Chadd wrote: >>=20 >>> Yes, please! >>>=20 >>>=20 >>> -a >>>=20 >>>=20 >>> On 14 January 2014 08:15, Arrigo Marchiori wrote: >>>> Hello list, >>>>=20 >>>> in 2012 I wrote a patch to build the code image before the full = disk >>>> image. It seemed to apply cleanly to 8-STABLE and it seems to apply = now >>>> cleanly to 9-STABLE. >>>>=20 >>>> Another effect of that patch is using gpart instead of fdisk. >>>>=20 >>>> Is it of interest to anyone? Shall I file a PR? >>>>=20 >>>> You can find the original patch and explanation at >>>> = http://lists.freebsd.org/pipermail/freebsd-embedded/2012-June/001580.html >>>>=20 >>>> Regards, >>>> -- >>>> rigo >>>>=20 >>>> http://rigo.altervista.org