From owner-freebsd-embedded@FreeBSD.ORG Mon Jan 13 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 3165B5E6 for ; Mon, 13 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 1C9D8113B for ; Mon, 13 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 s0DB6gTO095795 for ; Mon, 13 Jan 2014 11:06:42 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0DB6gg0095793 for freebsd-embedded@FreeBSD.org; Mon, 13 Jan 2014 11:06:42 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 13 Jan 2014 11:06:42 GMT Message-Id: <201401131106.s0DB6gg0095793@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, 13 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 Tue Jan 14 16:17:21 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 880E5B4D for ; Tue, 14 Jan 2014 16:17:21 +0000 (UTC) Received: from nm25-vm7.bullet.mail.ird.yahoo.com (nm25-vm7.bullet.mail.ird.yahoo.com [212.82.109.208]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A345615C4 for ; Tue, 14 Jan 2014 16:17:20 +0000 (UTC) Received: from [77.238.189.232] by nm25.bullet.mail.ird.yahoo.com with NNFMP; 14 Jan 2014 16:15:34 -0000 Received: from [46.228.39.104] by tm13.bullet.mail.ird.yahoo.com with NNFMP; 14 Jan 2014 16:15:34 -0000 Received: from [127.0.0.1] by smtp141.mail.ir2.yahoo.com with NNFMP; 14 Jan 2014 16:15:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.it; s=s1024; t=1389716134; bh=nZ7qwdN3AgRSRrFkk3IJD8cao0tbTqWZ74hKi7wyOeY=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Received:Date:From:To:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; b=rg4vm04YvekP3QZv67QPBLm4JPiF+7kpx6EWjRMPP6CgrcuoCvlG6cZAy8uXqjg3W56kDjTTDM3nCmLpGD7Gp7D7zSFVsAmbl6rpcQ4ilzy2dr+hEAHJ76QQabs5+YKPnV0K9e12QvFbFa4RGOEA6FviECOWrTvCVF56cohhLm0= X-Yahoo-Newman-Id: 850187.28043.bm@smtp141.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: ikkpfgkVM1kNqGy1VDTwhm.b4EmXJjGIKxjjH4OHgjlN8zj sRDqPFM1e6wgRIiPNPq6DWrZuKhoQaZp0oxPagrSdK5xkvevpEJH1eIuPmj8 Ypi5SHGkPk9GL_foNNGgcMqvvsBdo4bT.5ZY2BWdATgqHOZy3cezFsaep6l8 XRWWBOYUhCPdpotwSxb4p1KmfLHvBfs6DZVJRckhOR7.TAxmN35qSWIsf3o1 09vFc_ce_9qOSChykUx69sIrtaeK.Kr_F5n2mkPp7pCH4f9wczmE9TVZ2.T8 Pz0qmOjmLvfPV.f1HDr1Ii2vQoTHCovKHNQtCpCl24WiwJoW3ESpJ35dtB9R n5_om7pr245EHSPdww0Jg_dndANIO0IEma6TAE54C9iT1VSvYhM763gu6RNy tc3_zEYlmjdW4CUiXZ0UJ7VVpIdkhlrwiCf59i37emTkIAwSYHxkaO..xBHX tJR.Eov2a4AXkOQaBsVNaUChQrLbPr93ETpNKYoBssxSiIvsWQjDdH4U.MeW RmeR9nbXx8fL_21ZnarWkZP9D4X4JR2zQLwdFb5lgq1E09B4XOtBBT18KI7l hx76sczCiKDqMOFoncMRjfdLBy9dO16hGM1si7HQ9kz5NRjB4JKvXAKnM_na vMJ21iY643AeQVY4jbB_pyZ_MdO3bB9dR0cbxX0JJ.K1NR9OdhazcuXVNvK4 dxAYerTthD9lq8mP0vQTDeD.vG7Z5EolXdQ-- X-Yahoo-SMTP: WU.IBxeswBAAnLcBZV3tEZIK0A-- X-Rocket-Received: from flea (ardovm@93.145.89.43 with plain [188.125.69.59]) by smtp141.mail.ir2.yahoo.com with SMTP; 14 Jan 2014 16:15:34 +0000 UTC Received: by flea (Postfix, from userid 1000) id C4A89C00090; Tue, 14 Jan 2014 17:15:33 +0100 (CET) Date: Tue, 14 Jan 2014 17:15:33 +0100 From: Arrigo Marchiori To: freebsd-embedded@freebsd.org Subject: Re: Creating code slice before disk image in nanobsd Message-ID: <20140114161533.GB19601@snail.casa> References: <20120629133759.GA19373@snail.casa> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20120629133759.GA19373@snail.casa> User-Agent: Mutt/1.5.21 (2010-09-15) 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: Tue, 14 Jan 2014 16:17:21 -0000 Hello list, 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. Another effect of that patch is using gpart instead of fdisk. Is it of interest to anyone? Shall I file a PR? You can find the original patch and explanation at http://lists.freebsd.org/pipermail/freebsd-embedded/2012-June/001580.html Regards, -- rigo http://rigo.altervista.org From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 15 04:23:20 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 8B79D612 for ; Wed, 15 Jan 2014 04:23:20 +0000 (UTC) Received: from mail-qa0-x232.google.com (mail-qa0-x232.google.com [IPv6:2607:f8b0:400d:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4B81D1310 for ; Wed, 15 Jan 2014 04:23:20 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id cm18so495179qab.37 for ; Tue, 14 Jan 2014 20:23:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Kn4WsouLOq2HmFY/U3OmRkkP46xrzBePjFqlcEVIbrg=; b=ePBaAttOrYExUkkF2TKYM1eWs1c2ZR8o4HqabwzdqaK1i71jRNc3D6TYqoJnCAM0k/ 9TXY4Ia7DILElJyTmsNUrKyqZXK2/v6L2bdtfmYt8M3sq/LBAjo0iIQUk7md8HkXZUbv oh2p0o1g5Vqu60Ocgsm/2ahS6/7IpH4WlWCcAjoY5dsMs1YRs8Kwv08tNPM4IgZivU3K mKopwAp963jnjBCrNOE7JIY4DzqVWSVNh7aXELJ9FF3aZH8I1CUKecHvtiAwPCEqFXqS kLtK3/IiHBcaJkHxUu6iAdvxKvKQCEBbMHdr2o9RNOErsR0Xu51sIv7YozbFxf6ok9/d a+bQ== MIME-Version: 1.0 X-Received: by 10.49.28.65 with SMTP id z1mr9834553qeg.78.1389759799419; Tue, 14 Jan 2014 20:23:19 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.52.8 with HTTP; Tue, 14 Jan 2014 20:23:19 -0800 (PST) In-Reply-To: <20140114161533.GB19601@snail.casa> References: <20120629133759.GA19373@snail.casa> <20140114161533.GB19601@snail.casa> Date: Tue, 14 Jan 2014 20:23:19 -0800 X-Google-Sender-Auth: M6FAp_AVRNhw6kT7S2rwG4WvdoY Message-ID: Subject: Re: Creating code slice before disk image in nanobsd From: Adrian Chadd To: Arrigo Marchiori Content-Type: text/plain; charset=ISO-8859-1 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 04:23:20 -0000 Yes, please! -a On 14 January 2014 08:15, Arrigo Marchiori wrote: > Hello list, > > 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. > > Another effect of that patch is using gpart instead of fdisk. > > Is it of interest to anyone? Shall I file a PR? > > You can find the original patch and explanation at > http://lists.freebsd.org/pipermail/freebsd-embedded/2012-June/001580.html > > Regards, > -- > rigo > > http://rigo.altervista.org > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org" From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 15 14:53:11 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 7CE372BA for ; Wed, 15 Jan 2014 14:53:11 +0000 (UTC) Received: from mail-ie0-f170.google.com (mail-ie0-f170.google.com [209.85.223.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 445ED1A3E for ; Wed, 15 Jan 2014 14:53:10 +0000 (UTC) Received: by mail-ie0-f170.google.com with SMTP id u16so266796iet.1 for ; Wed, 15 Jan 2014 06:53:10 -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=FYZQCT6NRdx5PDqQvu+YeESg3LVCHkaWiNBNFINHy/Y=; b=SX6XBZPYlE7AEhVViJiCvxZ5xhT33iQga2Ez5T2NfiCmru02dIpKbrR0s7bsEgxlxc zGsaqf69PYyjFaATHSB11DbmDooRKXXsjJxsMa6bFmaJFwb0S73tOptyGQR7Mgo2ibAn D7e39D15T9/U0bnJYdkg7Lvuz2+rdSsMMnqGpTUu4xIw1EHJ3qs6hRuBfWNtaGqR4cz5 M5VVTUtU4LTPvdnocE2RUK7QKyJKdRwcFfJ8C7gZzOicQE66eJQC1Ov4F1GOfs/IP7wr d9h0DHLYjtQC/eU+gof34tBAfIOsZndVHhaF871OJV5CUQMRLOdyKT7dRJY1X55K1A5i 9sCQ== X-Gm-Message-State: ALoCoQkhEiRkMmG0Y1TTQLlPpOIrIGAMNv4Iq/pBibaBgkmkVSxRKjAR3AJ4yUH0Eo073/Q5gHWU X-Received: by 10.50.114.168 with SMTP id jh8mr3236544igb.6.1389797590152; Wed, 15 Jan 2014 06:53:10 -0800 (PST) Received: from [10.0.0.23] (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id gc2sm29583452igd.6.2014.01.15.06.53.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 06:53:09 -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: Date: Wed, 15 Jan 2014 07:53:08 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <6027B660-1D2E-4058-B87F-83D8225F0DC3@bsdimp.com> References: <20120629133759.GA19373@snail.casa> <20140114161533.GB19601@snail.casa> To: Adrian Chadd 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 14:53:11 -0000 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 On Jan 14, 2014, at 9:23 PM, Adrian Chadd wrote: > 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 >> _______________________________________________ >> freebsd-embedded@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded >> To unsubscribe, send any mail to = "freebsd-embedded-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to = "freebsd-embedded-unsubscribe@freebsd.org" From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 15 17:04:23 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 AC42F578; Wed, 15 Jan 2014 17:04:23 +0000 (UTC) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 251401AAC; Wed, 15 Jan 2014 17:04:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id s0FGoZAr002289; Thu, 16 Jan 2014 03:50:36 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 16 Jan 2014 03:50:35 +1100 (EST) From: Ian Smith To: Warner Losh Subject: Re: Creating code slice before disk image in nanobsd In-Reply-To: <6027B660-1D2E-4058-B87F-83D8225F0DC3@bsdimp.com> Message-ID: <20140116034220.B43023@sola.nimnet.asn.au> References: <20120629133759.GA19373@snail.casa> <20140114161533.GB19601@snail.casa> <6027B660-1D2E-4058-B87F-83D8225F0DC3@bsdimp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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:04:23 -0000 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? 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) cheers, Ian > On Jan 14, 2014, at 9:23 PM, Adrian Chadd wrote: > > > Yes, please! > > > > > > -a > > > > > > On 14 January 2014 08:15, Arrigo Marchiori wrote: > >> Hello list, > >> > >> 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. > >> > >> Another effect of that patch is using gpart instead of fdisk. > >> > >> Is it of interest to anyone? Shall I file a PR? > >> > >> You can find the original patch and explanation at > >> http://lists.freebsd.org/pipermail/freebsd-embedded/2012-June/001580.html > >> > >> Regards, > >> -- > >> rigo > >> > >> http://rigo.altervista.org 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 From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 15 19:50:37 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 356FC679; Wed, 15 Jan 2014 19:50:37 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D86DE1FB0; Wed, 15 Jan 2014 19:50:36 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id s0FJoY3X083402; Wed, 15 Jan 2014 12:50:34 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id s0FJoXxW083399; Wed, 15 Jan 2014 12:50:33 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 15 Jan 2014 12:50:33 -0700 (MST) From: Warren Block To: Ian Smith Subject: Re: Creating code slice before disk image in nanobsd In-Reply-To: <20140116034220.B43023@sola.nimnet.asn.au> Message-ID: References: <20120629133759.GA19373@snail.casa> <20140114161533.GB19601@snail.casa> <6027B660-1D2E-4058-B87F-83D8225F0DC3@bsdimp.com> <20140116034220.B43023@sola.nimnet.asn.au> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 15 Jan 2014 12:50:34 -0700 (MST) 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 19:50:37 -0000 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.) > 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} gpart bootcode -b ${NANO_WORLDDIR}/boot/boot ${MD} To create a slice and set it active: gpart add -s freebsd ${MD} [1] gpart set -a active -i1 ${MD} 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] [1] when creating the slice, -a4k or -b1m can be specified but will be silently rounded to CHS values [2] when creating BSD partitions, -a4k can be used and they will be created with an offset inside the slice to end up aligned For reference, see http://www.wonkity.com/~wblock/docs/html/disksetup.html#_the_old_standard_mbr > cheers, Ian > > > On Jan 14, 2014, at 9:23 PM, Adrian Chadd wrote: > > > > > Yes, please! > > > > > > > > > -a > > > > > > > > > On 14 January 2014 08:15, Arrigo Marchiori wrote: > > >> Hello list, > > >> > > >> 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. > > >> > > >> Another effect of that patch is using gpart instead of fdisk. > > >> > > >> Is it of interest to anyone? Shall I file a PR? > > >> > > >> You can find the original patch and explanation at > > >> http://lists.freebsd.org/pipermail/freebsd-embedded/2012-June/001580.html > > >> > > >> Regards, > > >> -- > > >> rigo > > >> > > >> http://rigo.altervista.org > From owner-freebsd-embedded@FreeBSD.ORG Thu Jan 16 04:59:47 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 92F0E40C for ; Thu, 16 Jan 2014 04:59:47 +0000 (UTC) Received: from mail-vc0-x233.google.com (mail-vc0-x233.google.com [IPv6:2607:f8b0:400c:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4AB111AF5 for ; Thu, 16 Jan 2014 04:59:47 +0000 (UTC) Received: by mail-vc0-f179.google.com with SMTP id ia6so795407vcb.10 for ; Wed, 15 Jan 2014 20:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=3z197K2aDp5nqKChM5dqgaq5EsRBCSufyOhxUJ/SGcw=; b=Rd6ySlEePZdnISSRGpoVCXa1wdGcBt1TofI5++ZzVBEEuqO088yBGbaWlBaKjuRrSB 3xLAo7964VjuNQb78Dx4xmZY4BEhvlvgxqEYcEjz895GqhzJ2AAEWhxDUOWkjous7W8H myvwXDqB6EFIlK+MxPL7g0XhdFdk8sfQ3/bLypr734acFrUvRYVW+yWcZwxmWINcaYyy lpEeT78nHPFtDYq7vv07KsPNliktpxueC1V4nRxYvb40pIGhyHegkIA5ZVmieUPbKKdq QPlpuM6YXcRp53Uo2axoKPpY3gepGWGbv7tEZJeCaNeW9Uks+yANNjp647QsP4aQRpuP INuw== X-Received: by 10.52.74.99 with SMTP id s3mr3362vdv.42.1389848386311; Wed, 15 Jan 2014 20:59:46 -0800 (PST) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.58.171.1 with HTTP; Wed, 15 Jan 2014 20:59:26 -0800 (PST) In-Reply-To: References: <20120629133759.GA19373@snail.casa> <20140114161533.GB19601@snail.casa> <6027B660-1D2E-4058-B87F-83D8225F0DC3@bsdimp.com> <20140116034220.B43023@sola.nimnet.asn.au> From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Thu, 16 Jan 2014 05:59:26 +0100 X-Google-Sender-Auth: VVFMY9qeW4Dsm4QS2BAcIRw6kfg Message-ID: Subject: Re: Creating code slice before disk image in nanobsd To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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, 16 Jan 2014 04:59:47 -0000 On Wed, Jan 15, 2014 at 8:50 PM, Warren Block wrote: > >> >> To create the initial MBR, probably already done before the code above: > gpart create -s mbr ${MD} > gpart bootcode -b ${NANO_WORLDDIR}/boot/boot ${MD} > Regarding the remplacement of boot0cfg by gpart, the exact command that nanobsd uses is: NANO_BOOT0CFG="-o packet -s 1 -m 3" NANO_BOOTLOADER="boot/boot0sio" boot0cfg -B -b ${NANO_WORLDDIR}/${NANO_BOOTLOADER} ${NANO_BOOT0CFG} ${MD} A PC Engines WRAP need the NANO_BOOT0CFG="-o nopacket" for booting. Does gpart bootcode support all these boot0cfg options too ? (I didn't find it in the man page). Regards, Olivier From owner-freebsd-embedded@FreeBSD.ORG Thu Jan 16 06:05:31 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 85B27781 for ; Thu, 16 Jan 2014 06:05:31 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2F4781098 for ; Thu, 16 Jan 2014 06:05:31 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id s0G65SvB086672; Wed, 15 Jan 2014 23:05:28 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id s0G65SEL086669; Wed, 15 Jan 2014 23:05:28 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 15 Jan 2014 23:05:28 -0700 (MST) From: Warren Block To: =?ISO-8859-15?Q?Olivier_Cochard-Labb=E9?= Subject: Re: Creating code slice before disk image in nanobsd In-Reply-To: Message-ID: References: <20120629133759.GA19373@snail.casa> <20140114161533.GB19601@snail.casa> <6027B660-1D2E-4058-B87F-83D8225F0DC3@bsdimp.com> <20140116034220.B43023@sola.nimnet.asn.au> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-ID: X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 15 Jan 2014 23:05:28 -0700 (MST) Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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, 16 Jan 2014 06:05:31 -0000 On Thu, 16 Jan 2014, Olivier Cochard-Labbé wrote: > On Wed, Jan 15, 2014 at 8:50 PM, Warren Block wrote: > > > To create the initial MBR, probably already done before the code above: >   gpart create -s mbr ${MD} >   gpart bootcode -b ${NANO_WORLDDIR}/boot/boot ${MD} > > > Regarding the remplacement of boot0cfg by gpart, the exact command that nanobsd uses is: It was about using gpart instead of fdisk and bsdlabel. boot0cfg is another matter. > NANO_BOOT0CFG="-o packet -s 1 -m 3" > NANO_BOOTLOADER="boot/boot0sio" > boot0cfg -B -b ${NANO_WORLDDIR}/${NANO_BOOTLOADER} ${NANO_BOOT0CFG} ${MD} > > A PC Engines WRAP need the NANO_BOOT0CFG="-o nopacket" for booting. > > Does gpart bootcode support all these boot0cfg options too ? (I didn't find it in the man page). I don't think so, at present anyway. From owner-freebsd-embedded@FreeBSD.ORG Fri Jan 17 20:38:35 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 554C6927; Fri, 17 Jan 2014 20:38:35 +0000 (UTC) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1B2FB183D; Fri, 17 Jan 2014 20:38:35 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:396f:111a:890d:cdd5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id EF7AC4AC2D; Sat, 18 Jan 2014 00:38:26 +0400 (MSK) Date: Sat, 18 Jan 2014 00:38:17 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <632415116.20140118003817@serebryakov.spb.ru> To: freebsd-embedded@freebsd.org Subject: True embedded developing under FreeBSD -- how to install gcc-arm-embedded properly? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: kientzle@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jan 2014 20:38:35 -0000 Hello, Freebsd-embedded. I want to program Coretx-M devices (STM32 and Tiva C ones) under FreeBSD. Is here any proper way to install gcc-arm-embedded ()? It is "arm-none-eabi" in theory, but all Linux guides suggest to install it from https://launchpad.net/gcc-arm-embedded and not from "vanilla" binutils/gcc source. And all guided has instructions how to install these tools from sources, but it includes compiling gcc TWICE (!), with building newlib in-between. I cannot see these two compilations in "devel/cross-gcc" port. So, my questions are: (1) Is `devel/arm-eabi-gcc' (effectivly `devel/cross-gcc') is Ok? (2) Is here any plans to update cross-gcc to latest 4.8.x? (3) Is here any proper way to packetize/portify gcc-arm-embedded toolchain by receipts from gcc-arm-embedded project? I don't see any obious way to build gcc twice in one port (wth newlib / dietlibc in between), for example. (4) Is here any interest to have "proper embedded toolchain" port? By "proper embedded toolchain" I mean package which will include binutils + gcc + libc in ONE package, as it is conventional in embedded world, where it is not common to update separate parts of ooolchain separately. -- // Black Lion AKA Lev Serebryakov