From nobody Thu Oct 19 04:41:51 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S9w6k2Kr4z4xxSx for ; Thu, 19 Oct 2023 04:42:06 +0000 (UTC) (envelope-from sergeantsagara@protonmail.com) Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S9w6h3nMXz4SDs for ; Thu, 19 Oct 2023 04:42:04 +0000 (UTC) (envelope-from sergeantsagara@protonmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=kde5cSnS; spf=pass (mx1.freebsd.org: domain of sergeantsagara@protonmail.com designates 185.70.43.22 as permitted sender) smtp.mailfrom=sergeantsagara@protonmail.com; dmarc=pass (policy=quarantine) header.from=protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1697690520; x=1697949720; bh=tJPmhkiS46+zG+O09Znk4Vfh9Spcfd3DhuuWi97Pmn4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=kde5cSnSn33oVCY6+INvtt2h+9gY/dSMz/Z+AeTZ79TjwAH8oWMJOHpLV1xmKeeAc B318zVTw9nh3YRUVH4G2ssB7mhT4HVYYA779ocuNZWRS5dGwetHE+YNrN5HAJFv5+/ LZf1v6jqNQiKmxBXZ6Td6VtWFEHcHx44IzWWKT4gV7b7IRaeXNid427JH3tSDG2RnA Tf5h/K6HmwACxBpcD2vdQ7sH0JFv40blNYH8imYyyj6ETZweOpRJmRJ3IRnozavbc4 V0isMCQnLLV1/bY/C2b+6hQGbbssqOp/UHMEFtH2vSjx2XCvvOD6HXQSluR0ZA+48T IQ8EEpdQr6c0A== Date: Thu, 19 Oct 2023 04:41:51 +0000 To: Warner Losh From: Rahul Rameshbabu Cc: freebsd-arm@freebsd.org Subject: Re: State of the freebsd/crochet project? Message-ID: <87wmvjjkae.fsf@protonmail.com> In-Reply-To: References: <87ttqrqnal.fsf@protonmail.com> Feedback-ID: 26003777:user:proton List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.40 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; RWL_MAILSPIKE_EXCELLENT(-0.40)[185.70.43.22:from]; R_SPF_ALLOW(-0.20)[+ip4:185.70.43.0/24]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=protonmail3]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:62371, ipnet:185.70.43.0/24, country:CH]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[protonmail.com:+]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FREEMAIL_FROM(0.00)[protonmail.com]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4S9w6h3nMXz4SDs Hi Warner, On Tue, 17 Oct, 2023 09:01:33 -0600 "Warner Losh" wrote: > On Tue, Oct 17, 2023, 7:44 AM void wrote: > > On Tue, Oct 17, 2023 at 07:13:28AM -0600, Warner Losh wrote: > > >Crochet has no active maintainers. Most people have moved on to poudrie= re. > > Does poudriere handle the msdos uboot *and* efi part when=20 > creating the image? > > Yes. I worked with manu years ago to put all the needed metadata for the = different boards into the ports... It does but it seems to have an unfortunate caveat. It assumes that FAT16 is supported by all embedded targets. The Raspberry Pi 4 and I assume the Pi 5 as well drop support for FAT16, so the boot partition needs to be FAT32. There are two ways I see for solving this in 'poudriere image'. 1. Create a new image type of 'embedded+fat32' 2. Have a flag for customizing the boot partition size (fat16, fat32) I am leaning towards option 1 right now personally. Can submit a PR for this if this is indeed needed. > > I've not used poudriere-image before. > Do you know if it works? Near the top of the man page=20 > there's this: > > "WARNING: This feature is still considered ALPHA." > > They have worked for years.=20 > > Warner > > This is from poudriere-devel-3.3.99.20220831_3 > --=20 Overall, I found poudriere nice *once* I understood the architecture. 1. pkg install qemu-user-static 2. sysrc qemu_user_static_enable=3D"YES" 3. service qemu_user_static onestart # If wanting to continue without a r= eboot 4. poudriere jail -c -j 15_0_aarch64 -K GENERIC -m git+https -v 15.0-CURR= ENT -a arm64.aarch64 i. Can configure things like GENERIC-NODEBUG if wanting to go with a non-debug kernel 5. poudriere ports -c -p latest -m git -B main 6. poudriere image -j 15_0_aarch64 -p latest -n freebsd-rpi -h rpi -s 4g = -t embedded i. Should use the overlaydir flag to probably pass rpi-firmware and u-boot-rpi3/u-boot-rpi4/whatever u-boot port is appropriate. Have not experimented with that yet. I think the fact that there are not specialized documentation for using poudriere for specific boards is a bit problematic. I would like to do the following if possible. 1. Mark crochet as public archive on GitHub so developers do not spend time trying to improve it. 2. Redirect developers to the poudriere project specifically referencing 'poudriere image' from the crochet project README 3. Update the poudriere image documentation/manpage with an EXAMPLE section for embedded (maybe other examples too) 4. I would also like to update the Raspberry Pi FreeBSD wiki page with these details specifically with regards to this flow for building images. i. I currently do not access to edit the page. 5. Maybe add some information about poudriere to the FreeBSD ARM page i. https://wiki.freebsd.org/arm Let me know your thoughts/suggestions on this. -- Thanks, Rahul Rameshbabu