From owner-freebsd-embedded@freebsd.org Tue Sep 22 23:08:29 2015 Return-Path: Delivered-To: freebsd-embedded@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1169EA07722 for ; Tue, 22 Sep 2015 23:08:29 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id CE7DD1291 for ; Tue, 22 Sep 2015 23:08:28 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:812:564a:644c:e9f5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 8D8D42E99 for ; Wed, 23 Sep 2015 02:08:18 +0300 (MSK) Date: Wed, 23 Sep 2015 02:08:14 +0300 From: Lev Serebryakov Reply-To: lev@FreeBSD.org Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <496050523.20150923020807@serebryakov.spb.ru> To: freebsd-embedded@freebsd.org Subject: FreeBSD on "Android stick"? MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha512"; boundary="----------0E509111816CEB79C" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2015 23:08:29 -0000 ------------0E509111816CEB79C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hello Freebsd-embedded, I'm thinking about air-gapped computer for some security tasks (master PGP keys, my own CA, things like this) which I could take with me anywhere (or put into safe!). And I'm thinking about cheap Andoid sticks with HDMI output, as they have form-factor exactly as I need/want (USB keyboard could be found anywhere now, and I'm not SO paranoid to be afraid of hardware keylogger). Has somebody experience of installing FreeBSD/arm on such device? --=20 Best regards, Lev mailto:lev@FreeBSD.org ------------0E509111816CEB79C Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: GnuPG v2.0.22 (MingW32) iQJ8BAEBCgBmBQJWAd9eXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePfBUQALMWb+gDjE37oN1gKO45T/Ri 4lZLTr090QT5dS2W/UxYHu4qhWGekF2qVhkfVrmrJvjM/WRVLhH9F4Rva9exvJoI tfsogpQ2oZ4HvM8gL+/8TALl0EhfhWir3zAEv8040FMLL0O/AKZDhyTJ6Hwdz9TK U4cTEeu6E+diFFBqjzC0AXgxNxZ+hR4R3sceb/KHVsMZHnmXtSdIc9nAoKFSZK+I Qr4qxXtyjoKTLCYtlGpbPGyEKO8Wo6dLZ7xSVxjjgrerazehqQ0U+EUwFfWQTbeY hp9dVyZu6qeJju1TBcXzMeOzI0eyVOn/hKn1upUs50UuiKNPmoXaQv+8NiAAO2Dw W8WB2EnBj6El2a3x7cTm7+IwJ+G3V44t7orPdbLoBJ8ljbN0DkPYU+3nL1C0R69P NOzfHZJQG8ZC5UL1AAZETdJU1wgdfYNq0TjF9qZZugG/T5pHZ223NpMF5Rbyj/g9 2IIOjA1mqZzBykWszPJO9jHFDUB/a3Esp+fHCwWyacDE52TtSsfA5gqU402YH6m4 dGbZ6Jngs79Zhc949uXsQKLnBzxSw2ORpFSPCy+CCiexNa9vmoRXlUgR24c3xiUC YOudR13GzBUsVGwgHaLCFbqcaDpk3ztPUgQYcmDptpR699tRbROLkGglk7OewERH K/NaW9Djm87MgWMYQmaX =PHA9 -----END PGP MESSAGE----- ------------0E509111816CEB79C-- From owner-freebsd-embedded@freebsd.org Wed Sep 23 00:30:56 2015 Return-Path: Delivered-To: freebsd-embedded@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C531A07F9B for ; Wed, 23 Sep 2015 00:30:56 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-ig0-x22a.google.com (mail-ig0-x22a.google.com [IPv6:2607:f8b0:4001:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CDBC7161B; Wed, 23 Sep 2015 00:30:55 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: by igbkq10 with SMTP id kq10so110296270igb.0; Tue, 22 Sep 2015 17:30:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=aJiHSsUpi/IpBLmPsrHwpJhspjEtTc7LXx8pbFUkSP0=; b=y5AFRt/cS6rnWqhnXQYOk1h/n3arW3yMl9Y9Xst1Xui8hUHNoqaBvyxs5ONkvKk6Pg 1Wn6ASoT0OMsxsflqYRoGOZKKuYbGcaoDBOLB1sZjE8UShA7+MAdHPha7ydoOmseiRGj NF2MtRrZHl4xvssMneaP0hQcMeTufZBgtIdJvBC4UeYktxoSJweHs0oJi7gyG8xp8tD9 kXZNwB/IfoDkLfqGgRmCXakSEAHjUi5/lMLUbKcHBwvTZRkLyL5SX1LYXlZytOQsoKaj 048uENWfGnLPbsHsKZjd/hwc0sOL8AOLo8C9392jH7/8wW0OiH2/CWCe8Y4f0lUZlaEl Kzzg== MIME-Version: 1.0 X-Received: by 10.50.8.3 with SMTP id n3mr20860669iga.26.1442968255210; Tue, 22 Sep 2015 17:30:55 -0700 (PDT) Received: by 10.64.96.74 with HTTP; Tue, 22 Sep 2015 17:30:55 -0700 (PDT) In-Reply-To: <496050523.20150923020807@serebryakov.spb.ru> References: <496050523.20150923020807@serebryakov.spb.ru> Date: Tue, 22 Sep 2015 17:30:55 -0700 Message-ID: Subject: Re: FreeBSD on "Android stick"? From: Mehmet Erol Sanliturk To: lev@freebsd.org Cc: freebsd-embedded@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2015 00:30:56 -0000 On Tue, Sep 22, 2015 at 4:08 PM, Lev Serebryakov wrote: > Hello Freebsd-embedded, > > > I'm thinking about air-gapped computer for some security tasks (master PGP > keys, my own CA, things like this) which I could take with me anywhere (or > put into safe!). And I'm thinking about cheap Andoid sticks with HDMI > output, as they have form-factor exactly as I need/want (USB keyboard could > be found anywhere now, and I'm not SO paranoid to be afraid of hardware > keylogger). > > Has somebody experience of installing FreeBSD/arm on such device? > > -- > Best regards, > Lev mailto:lev@FreeBSD.org Another very different approach may be as follows ( If it is possible ) : There are the following USB sticks with Physical Write Protect Switch : http://www.amazon.com/Kanguru-FlashBlu30-Physical-Protect-ALK-FB30-8G/dp/B00JJIEHJE/ref=sr_1_1?ie=UTF8&qid=1442967418&sr=8-1&keywords=kanguru+flashblu30 ( Kanguru FlashBlu30 with Physical Write Protect Switch ALK-FB30-8G ) http://www.amazon.com/Kanguru-FlashBlu30-Physical-Protect-ALK-FB30-16G/dp/B00JJIE95G/ref=sr_1_2?ie=UTF8&qid=1442967418&sr=8-2&keywords=kanguru+flashblu30 ( Kanguru FlashBlu30 with Physical Write Protect Switch ALK-FB30-16G ) http://www.amazon.com/Kanguru-FlashBlu30-Physical-SuperSpeed-ALK-FB30-32G/dp/B00JJIEE4M/ref=sr_1_4?ie=UTF8&qid=1442967418&sr=8-4&keywords=kanguru+flashblu30 ( Kanguru FlashBlu30 with Physical Write Protect Switch SuperSpeed USB3.0 Flash Drive ALK-FB30-32G ) http://www.amazon.com/Kanguru-FlashBlu30-Physical-SuperSpeed-ALK-FB30-64G/dp/B00JJIEEA6/ref=sr_1_3?ie=UTF8&qid=1442967418&sr=8-3&keywords=kanguru+flashblu30 ( Kanguru FlashBlu30 with Physical Write Protect Switch SuperSpeed USB3.0 Flash Drive ALK-FB30-64G ) Install FreeBSD into one of them and move its switch to "Locked" position . Use another USB stick for variable data used by ( FreeBSD in "Protected" stick ) . I have an 8 GB one . Linux is seeing it as "Not writeable" and "Writeable" with respect to switch position , but I did not install any OS into it yet . Is there any possibility that FreeBSD can be used from such a "Write Protected" device with variable data in another USB stick device or USB HDD ? Mehmet Erol Sanliturk From owner-freebsd-embedded@freebsd.org Wed Sep 23 16:07:36 2015 Return-Path: Delivered-To: freebsd-embedded@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BCDEDA07673 for ; Wed, 23 Sep 2015 16:07:36 +0000 (UTC) (envelope-from ardovm@yahoo.it) Received: from nm18-vm5.bullet.mail.ir2.yahoo.com (nm18-vm5.bullet.mail.ir2.yahoo.com [212.82.96.229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1C16E1CE9 for ; Wed, 23 Sep 2015 16:07:35 +0000 (UTC) (envelope-from ardovm@yahoo.it) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.it; s=s2048; t=1443024275; bh=t/1umThCDssjhbFBB93d56itTftuZ4bs4gmZScu1Aqw=; h=Date:From:To:Subject:From:Subject; b=iwL+Rg2VdjJRg4Lfx63aRoRvnnFIHgHrVa1+xWUM15WJ1oCmP8cqoi5eI/XbR17S5udENIivMejOr9pcjMCBVGrF4g3Yhw9v6nXTn6QSzhocnmpcDQfbC3RFTXYZ6LCCW4aP7f/qSfW64KmUEHv2IkhhTgcsUeVNXmPCbJcS6PwU06rmpPUopXs7SD18dtFrq7ySg97hSKN3glsi8wVE6wOC2QAF/dJGKlrAV6Tyej7Ezq28MgmYvuJOA+Vx5y0gJAnEVeCfNNzTQAMsVs+0J6njC+3jZ4zXv/Z2f3sOJtNucjPxmj76p8TYrmjnGa5K8y4Jx7BZQ0+Wkygep6IKQg== Received: from [212.82.98.50] by nm18.bullet.mail.ir2.yahoo.com with NNFMP; 23 Sep 2015 16:04:35 -0000 Received: from [46.228.39.94] by tm3.bullet.mail.ir2.yahoo.com with NNFMP; 23 Sep 2015 16:04:35 -0000 Received: from [127.0.0.1] by smtp131.mail.ir2.yahoo.com with NNFMP; 23 Sep 2015 16:04:35 -0000 X-Yahoo-Newman-Id: 426169.12488.bm@smtp131.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: Q64pWGgVM1nYiFSvoW7OBzqsoLPRJzbfzDNbrelAdyrk1us rwZIPS6QJZ.5fhRuwX8gCcvWOsn44h8CKMnWShv2GrVsfA9fC_taHN7V3IYw neSeSsx4touar0icXjAYs8Vpn9_VVoAnVxyd5FGyO_UsnNW.GqPlu8gIHPBY 8xqD2tTf9hXo9fKc6abrfxL7Qo5k1d3b3aqz7dlLua9pV3GDNUuMVLOFk9ai mmFe2TSp.H.027M1ZDlqKfLBkXFE2ge.pPXkd6f_jNKTro6RSu9MegRNgpT6 4B9wDTO2iwxMbWoXSQz7NMXY_5_S9_yjlDZkO5IU9O8XpT3sFDd4AFP59yfp dwXG8_wPCmlfI0GYEbgeK656GTIAiNcyOfHXUxDibtVpNf72grjuXZLQ2_nh kctUrVJoMdFD27H.jzH.QqsLoEgy.Wcc8.AglcjUbxITIeYaftVTAfMhG3f2 2P043mNm8NXl_Q3LFJLd6Ps7LacXPlCcXI9nNrM.mP8LAoUxQDOKT2yyA2RG 9syFZqg2z0GD8XngeTRz269XkC6GeehSfN2E- X-Yahoo-SMTP: WU.IBxeswBAAnLcBZV3tEZIK0A-- Received: by nuvolo.localdomain (Postfix, from userid 1001) id 0262114F254; Wed, 23 Sep 2015 18:04:31 +0200 (CEST) Date: Wed, 23 Sep 2015 18:04:31 +0200 From: Arrigo Marchiori To: FreeBSD Embedded list Subject: [NanoBSD] Double copy when using swap as backing? Message-ID: <20150923160431.GB37383@nuvolo> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2015 16:07:36 -0000 Hello list, I was looking at the nanobsd.sh script from 10-STABLE and I found something that I could not understand. In function create_diskimage(), lines 639-650 result in two invocations of dd: 1- if NANO_IMAGE_MBRONLY is `yes': dd if=/dev/${MD} of=${NANO_DISKIMGDIR}/_.disk.mbr bs=512 count=1 dd conv=sparse if=/dev/${MD} of=${IMG} bs=64k 2- otherwise: dd if=/dev/${MD} of=${IMG} bs=64k dd conv=sparse if=/dev/${MD} of=${IMG} bs=64k Case 2 looks a duplicate to me; the first dd could be avoided. Or did I miss anything? I don't use swap-backed md's therefore I cannot experiment with that part. I just wonder if it may help someone by speeding their builds up. Best regards, -- rigo http://rigo.altervista.org From owner-freebsd-embedded@freebsd.org Wed Sep 23 16:59:21 2015 Return-Path: Delivered-To: freebsd-embedded@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C7FC6A07267 for ; Wed, 23 Sep 2015 16:59:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qg0-f49.google.com (mail-qg0-f49.google.com [209.85.192.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8CCAC1EBC for ; Wed, 23 Sep 2015 16:59:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by qgez77 with SMTP id z77so24422589qge.1 for ; Wed, 23 Sep 2015 09:59:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=yojTaTzIrmFs4D5L7cdXsi+fM2calmwg6HkbaxPH22w=; b=Un3uhlcRJLRl70WHYuqq5ikFWkvNhiC7t9jhN0RxVNc/Tr839atrcF6kW/3I+CqGMT +Vp8NMpUYJd7L0yzXB840jOJIjRUDrnoBp7eHE0pjlK4QgIJv/YyAjmOXKJoKxdQknnt +SqeLI/+405odl7cRitYwhSKNFlztGk2cSI4kbSYtioHTpk43ItEv5iVEcYeKHe7sIFL 2BT7BvEHQqbSoHHmcReyOOPLjAQihWWU/qDwgHkb1yA/k3I29wlIh1hDaWhrsEbhqa5J mXR3GQt1A2IQjgKbEiSuOxrm61PBoHVtIi/I/LUW3PJP1eRqjSZtatVA87W/X1Cu53qA fTPA== X-Gm-Message-State: ALoCoQk9uY08B37MR7bv6h9//EbvfDykRSsV2nPgnXnwFTufmJ5A3UX7I8vK9wdSV92eJfFPPgAP MIME-Version: 1.0 X-Received: by 10.140.234.78 with SMTP id f75mr40923055qhc.20.1443027184096; Wed, 23 Sep 2015 09:53:04 -0700 (PDT) Sender: wlosh@bsdimp.com Received: by 10.140.80.167 with HTTP; Wed, 23 Sep 2015 09:53:04 -0700 (PDT) X-Originating-IP: [40.140.178.190] In-Reply-To: <20150923160431.GB37383@nuvolo> References: <20150923160431.GB37383@nuvolo> Date: Wed, 23 Sep 2015 09:53:04 -0700 X-Google-Sender-Auth: 5erQgrJXzoXD5rOwxLepliCY9Lo Message-ID: Subject: Re: [NanoBSD] Double copy when using swap as backing? From: Warner Losh To: Arrigo Marchiori Cc: FreeBSD Embedded list Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2015 16:59:21 -0000 On Wed, Sep 23, 2015 at 9:04 AM, Arrigo Marchiori wrote: > Hello list, > > I was looking at the nanobsd.sh script from 10-STABLE and I found > something that I could not understand. > > In function create_diskimage(), lines 639-650 result in two > invocations of dd: > > 1- if NANO_IMAGE_MBRONLY is `yes': > dd if=/dev/${MD} of=${NANO_DISKIMGDIR}/_.disk.mbr bs=512 count=1 > dd conv=sparse if=/dev/${MD} of=${IMG} bs=64k > > 2- otherwise: > dd if=/dev/${MD} of=${IMG} bs=64k > dd conv=sparse if=/dev/${MD} of=${IMG} bs=64k > > Case 2 looks a duplicate to me; the first dd could be avoided. Or did > I miss anything? > I think you are right. I have submitted patches in my mailbox that fix this. I've been bad about integrating them because I've been thinking of a big overhaul of nanobsd to push some of its functionality down into the rest of FreeBSD for things like crochet and raspbsd to use to create images rather than forcing them to reinvent the wheel... Warner > I don't use swap-backed md's therefore I cannot experiment with that > part. I just wonder if it may help someone by speeding their builds > up. > > Best regards, > -- > rigo > > http://rigo.altervista.org > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > https://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 Sep 23 18:28:58 2015 Return-Path: Delivered-To: freebsd-embedded@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E53C8A07FD9 for ; Wed, 23 Sep 2015 18:28:58 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id A764414A2 for ; Wed, 23 Sep 2015 18:28:58 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from [127.0.0.1] (unknown [89.113.128.32]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id B2F0B2FD4; Wed, 23 Sep 2015 21:28:56 +0300 (MSK) Reply-To: lev@FreeBSD.org Subject: Re: [NanoBSD] Double copy when using swap as backing? References: <20150923160431.GB37383@nuvolo> To: Warner Losh , Arrigo Marchiori Cc: FreeBSD Embedded list From: Lev Serebryakov Organization: FreeBSD Message-ID: <5602EF68.5030303@FreeBSD.org> Date: Wed, 23 Sep 2015 21:28:56 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2015 18:28:59 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 23.09.2015 19:53, Warner Losh wrote: > I think you are right. I have submitted patches in my mailbox that > fix this. I've been bad about integrating them because I've been > thinking of a big overhaul of nanobsd to push some of its > functionality down into the rest of FreeBSD for things like crochet > and raspbsd to use to create images rather than forcing them to > reinvent the wheel... I lost zany hope to get feedback on patches to fill_pkg and nanobsd scripts submitted long time ago, BTW. - -- // Lev Serebryakov -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJWAu9oXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePEEcP/Rw3L1BqnRSBR77XYBG+l2bo zHBtJm4yEDjep2YQzQ1Cr+t0JDJvh0UcUi9QpnvRjUTb9QmuALsI3CatCzrztbbj pSHJk/nNfz0jwvKdadHw1lNKMzNpyoHFdBdosOU9bwynDAI6f4mA8TJwXHY0Mx8t lK7tW18jn5K+PTGPi6SSqGVHkeWn4L6Cd7UzHg4fNSqj/qtD6yEHYAnORlSbV3Dz xIKCvDw6B6OtHQn4W5gbrp7J02szmQSHswpD8uShDskz0+aaTRWTLTGzrZHF6Sut MMaWx6yir2CKA4Wn81bhMH+lp9BAmE0x11Bojeok/sj2HK3JhKwRvYeqKcOGrmHv x7+R7UrAbrMIUrEqhHNqOxFSLv7A5goAh+0SwP7YWlQ/L5jY1j8d+kCk+U7nBkLo 2WSsbn+cWbUudRAgwnUSLS9YYXRILZMgYI4pns9lXMtVWsgv63NQ8+WToX/XG8+7 3+hNdSrZ+L8XQC9fW/LbhdIslwgeZ6hWcE8Ur/l7TKEtQ9Gf9of4FAmbJkywvYph ZUDODUug1bb0a0MkCwcjD8oIpE4rdb+ql4VDyjmLUXa/V5m6/AD0tE1q2BcHQo7e 7rEZQb38fGfbygVvr7/tZQ2vc1iDrVFyaXbgMK5Mixr+UG6Ifomqi4Tui6mYXvkQ HuZ6Tzq1KDI7ZnqZ3NWx =ji2t -----END PGP SIGNATURE----- From owner-freebsd-embedded@freebsd.org Thu Sep 24 12:01:35 2015 Return-Path: Delivered-To: freebsd-embedded@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11F28A0723A for ; Thu, 24 Sep 2015 12:01:35 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D29914ED for ; Thu, 24 Sep 2015 12:01:34 +0000 (UTC) (envelope-from cochard@gmail.com) Received: by lacdq2 with SMTP id dq2so5442984lac.1 for ; Thu, 24 Sep 2015 05:01:32 -0700 (PDT) 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=PA4czZQXcEO5KbgGdveh+wWbJsQn0F20qtI8Eo+shVI=; b=FUPahGl6O/zcnSedA17GL8sKa2+YEEJCwbDhYUyz0yPV58g/13vgc63y3b8vr5AvPx i8JaBUVjDn7vYJJ04+trfVim9s5FQqedkbZpDjRiTcjo/2W3yw2zzeTkkGhR2Dk4IcfD 0/k4KUDwXPTxHzR+wMuJtw3XpQ89isaeSSZnXX+6aquoKZp2l+f8Lo2Sw3F3/rVHuOZT AY03R3VZ/BLNIteo5OYLiMj6v8H9uqSrG66u0aNMAlyfJFqQwUyQtvcch0YfDsV+lIH3 gH0nh7i5Cb9IoDvKGy7ltZr+JuYXMP2YeWLYIfVu8PdjAS6P7hcqm7h7KHHja4ZXucI/ NSaQ== X-Received: by 10.112.125.102 with SMTP id mp6mr13341366lbb.46.1443096092184; Thu, 24 Sep 2015 05:01:32 -0700 (PDT) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.25.197.68 with HTTP; Thu, 24 Sep 2015 05:01:12 -0700 (PDT) In-Reply-To: References: <20150923160431.GB37383@nuvolo> From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Thu, 24 Sep 2015 14:01:12 +0200 X-Google-Sender-Auth: c9CGlqn6Xx0qGYko1m-eRx3q7v0 Message-ID: Subject: Re: [NanoBSD] Double copy when using swap as backing? To: Warner Losh Cc: Arrigo Marchiori , FreeBSD Embedded list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 12:01:35 -0000 On Wed, Sep 23, 2015 at 6:53 PM, Warner Losh wrote: > > I think you are right. I have submitted patches in my mailbox that fix > this. I've been bad about integrating them because I've been thinking > of a big overhaul of nanobsd to push some of its functionality down > into the rest of FreeBSD for things like crochet and raspbsd to use > to create images rather than forcing them to reinvent the wheel... > > =E2=80=8BIf you are looking of a new killer-tools you should drop an eye on= the new poudriere feature "image": https://github.com/freebsd/poudriere/blob/master/src/share/poudriere/image.= sh This will allow to build a clean FreeBSD AND building ports into the final image too=E2=80=A6 And does poudriere support cross-building with qemu-user :-)