From owner-freebsd-arm@freebsd.org Thu Nov 8 05:36:28 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6382B110E25B for ; Thu, 8 Nov 2018 05:36:28 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F31226F0F0; Thu, 8 Nov 2018 05:36:26 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 2c9e27df; Thu, 8 Nov 2018 06:36:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=CZzXIYcyhMnNbJmkuD49TH6lz3A=; b=F3xdEBe02I1RDdg1d+4Ohhp0QM3d WdOppjB6WpJLRSY3kmxSJmHdvBfovoiqAWkd8esLitMlpOYAXRru2ghyhjS3GJsc uk+9ZLmDy5vHXLAFzww1j7bbA0SvPfNd5dMYyp1l5No95jlB2PD8zQjleWhNtoyW AHt32NasnEruRWg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=OMWAfOsJ2hA5JbxJQ+ARJntyR31Hm0VcULIEKeChhRAT2/JmF/kWFsTl mFGMY9toMssHgEpIpPvPFCdDrAsDwuI6KWiln824LzTSJ98DJSJo0eeVsuRjm2m5 LZ0Si0rAQJTIAn3UMglVC6kbdjBO4eymczgCib4jwDQGjjnQ4Cw= Received: from knuckles.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 4438e244 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 8 Nov 2018 06:36:24 +0100 (CET) Date: Thu, 8 Nov 2018 06:36:24 +0100 From: Emmanuel Vadot To: Ian Lepore Cc: ticso@cicely.de, Warner Losh , "freebsd-arm@freebsd.org" , Bernd Walter Subject: Re: GENERICSD images? Message-Id: <20181108063624.baffbf259be9f44bfdeee9f2@bidouilliste.com> In-Reply-To: <1541287457.52306.13.camel@freebsd.org> References: <20181103151920.GZ79858@cicely7.cicely.de> <20181103191032.GA79858@cicely7.cicely.de> <20181103225543.GH79858@cicely7.cicely.de> <1541287457.52306.13.camel@freebsd.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: F31226F0F0 X-Spamd-Result: default: False [-1.74 / 200.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; MX_GOOD(-0.01)[mx-backup.blih.net,mail.blih.net]; NEURAL_HAM_SHORT(-0.70)[-0.700,0]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; IP_SCORE(-0.13)[asn: 12876(-0.63), country: FR(-0.02)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org 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: Thu, 08 Nov 2018 05:36:28 -0000 On Sat, 03 Nov 2018 17:24:17 -0600 Ian Lepore wrote: > On Sat, 2018-11-03 at 23:55 +0100, Bernd Walter wrote: > > On Sat, Nov 03, 2018 at 03:18:21PM -0600, Warner Losh wrote: > > > > > > On Sat, Nov 3, 2018 at 1:11 PM Bernd Walter > > e> wrote: > > > > > > > > > > > On Sat, Nov 03, 2018 at 11:51:38AM -0700, Russell Haley wrote: > > > > > > > > > > On Sat, Nov 3, 2018 at 8:28 AM Bernd Walter > > > > ly.de> > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > When and how would you use the GENERICSD images? > > > > > > I assume they have a generic kernel, but do they need a > > > > > > specific u-boot > > > > > > installed before they can get used? > > > > > > What systems are supported? > > > > > > > > > > > Hi Bernd, > > > > > > > > > > I could be mistaken, but I think you are referring to the SD > > > > > images that > > > > > can be downloaded for various Arm boards found here: > > > > > https://www.freebsd.org/where.html > > > > > > > > > > See the SD Image column for each currently supported FreeBSD > > > > > version. > > > > These > > > > > > > > > > images are for "well supported" Arm boards and are an easy way > > > > > to get up > > > > > and running. To apply an image to an SD card, I typically use > > > > > xzcat .img.xz | dd of=/dev/da0 bs=1M > > > > > > > > > > where ./dev/da0 is whatever device your SD card is found at > > > > > (check dmesg > > > > if > > > > > > > > > > you're not sure. "geom part list /dev/da0" can also be helpful > > > > > ) > > > > > > > > > > UFS will automatically grow the partition to the size of the SD > > > > > card on > > > > > first boot. > > > > > > > > > > If you wish to create your own image, you can look at crochet > > > > > (a build > > > > too > > > > > > > > > > written in bash) or there is an excellent write up by Udit on > > > > > building > > > > > custom images here: > > > > > > > > > http://uditagarwal.in/index.php/2018/04/17/building-freebsds-sdio > > > > -driver-for-beaglebone-black/ > > > > > > > > > > > > > > > Hope that helps? > > > > No, I didn't ask about those images in general, I specifically > > > > asked about > > > > the use case of the GENERICSD image. > > > > AFAIK crochet isn't advised anymore. > > > > But the link is interesting, although unrelated to my question > > > > and it is > > > > specifically about beaglebones - Allwinner based boards have to > > > > be handled > > > > differently as they expect their bootcode at a specific media > > > > location. > > > > > > > We now have a GENERIC kernel. This image is built with that kernel. > > > You're > > > expected to roll your own u-boot into this image for the board you > > > are > > > using. There are several u-boot ports that are known to work (or > > > worked at > > > one time). > > That's a good simplification. > > I already had known about the GENERIC kernel, but this image was new > > for > > me as I wondered how it is handling the board specific boot code. > > > > > > > > There's a script that will add u-boot for the board based on > > > metadata the > > > port installs, but I'm having trouble finding it at the moment to > > > give you > > > more specifics... > > Would be cool to know when you or someone else find it. > > So far searching for GENERICSD only showed several fileservers. > > Warner was refering to this : https://gist.github.com/evadot/1bcad7c4c1e5cc7f9a692f4d19ab5421 I need to make a package out of this so everybody can start using it and find bugs/make improvement. > A cool thing that could come of this is a website where you choose your > board type and it creates on the fly a burnable image for you to > download from the GENERICSD plus the board-specific boot stuff. That was the main goal of the GENERICSD image + u-boot-install, now that we have 13 branched I may start again working toward more generic arm sd images. > -- Ian > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- Emmanuel Vadot