From owner-freebsd-arm@freebsd.org Wed Jul 17 13:02:46 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 81FC3AC530 for ; Wed, 17 Jul 2019 13:02:46 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from mail.kronometrix.org (mail.kronometrix.org [95.85.46.90]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.kronometrix.org", Issuer "mail.kronometrix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 28B1980810 for ; Wed, 17 Jul 2019 13:02:45 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from [192.168.1.164] (82-203-145-201.bb.dnainternet.fi [82.203.145.201]) (authenticated bits=0) by mail.kronometrix.org (8.15.2/8.15.2) with ESMTPSA id x6HD2gGB021322 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 17 Jul 2019 13:02:43 GMT (envelope-from sparvu@kronometrix.org) X-Authentication-Warning: mail.kronometrix.org: Host 82-203-145-201.bb.dnainternet.fi [82.203.145.201] claimed to be [192.168.1.164] From: Stefan Parvu Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: recreate FreeBSD 12 ARM image Date: Wed, 17 Jul 2019 16:02:37 +0300 References: <4d0800d92bf7d7a698d25dd4b948ae6d@pyret.net> To: freebsd-arm@freebsd.org In-Reply-To: <4d0800d92bf7d7a698d25dd4b948ae6d@pyret.net> Message-Id: <21ACF091-2543-480D-A098-FD83AC0D6087@kronometrix.org> X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 28B1980810 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of sparvu@kronometrix.org designates 95.85.46.90 as permitted sender) smtp.mailfrom=sparvu@kronometrix.org X-Spamd-Result: default: False [2.58 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_SPAM_MEDIUM(0.97)[0.966,0]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mail.kronometrix.org]; NEURAL_SPAM_LONG(0.74)[0.743,0]; DMARC_NA(0.00)[kronometrix.org]; NEURAL_SPAM_SHORT(0.08)[0.077,0]; IP_SCORE(0.60)[ip: (0.52), ipnet: 95.85.0.0/18(1.46), asn: 14061(1.07), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:14061, ipnet:95.85.0.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jul 2019 13:02:46 -0000 thanks all for answers. I need to digest these to see what method can I = use to make these happen.=20 Somebody mentioned that would be possible to mount the original image = and add my packages=20 and configurations directly to the image. Is this possible ? Stefan Parvu sparvu@kronometrix.org > On 17 Jul 2019, at 14.47, Daniel Engberg = wrote: >=20 > Hi Stefan, >=20 > I've been looking at this myself a little bit unfortunately I haven't = been able to find such solution yet but this might help you on the way. >=20 > To build the image itself you can use FreeBSD's own infrastructure, = I've written a very short tutorial on the Wiki about it which you can = find here: = https://wiki.freebsd.org/FreeBSD/arm/Build_image_using_release_building_in= frastructure . >=20 > In your case I think the "easiest" solution would be to patch the = source tree in chroot and possibly disabling future checkouts later on. = This is documented in the man page: = https://www.freebsd.org/cgi/man.cgi?release(7) >=20 > As far as packages goes it's a bit more tricky, I haven't found a good = solution and easy for it yet but you might want to have a look at: >=20 > firstboot_sentinel > = https://lists.freebsd.org/pipermail/freebsd-current/2013-October/045502.ht= ml > https://www.freebsd.org/cgi/man.cgi?query=3Drc.conf >=20 > firstboot-pkgs > https://www.freshports.org/sysutils/firstboot-pkgs/ >=20 > Best regards, > Daniel