From nobody Tue Jul 19 20:35:36 2022 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 4LnVw73lkQz4X0md; Tue, 19 Jul 2022 20:35:51 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LnVw63MJrz4QLM; Tue, 19 Jul 2022 20:35:50 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-ej1-f48.google.com with SMTP id z23so29409504eju.8; Tue, 19 Jul 2022 13:35:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/w+G9yN0XfU6xm0/rIyncP46gaeXu6c7Hk1jK7m4nRI=; b=m1Q1hAmIesT3a6SPoS/6UEK2UfR0Mjl8c5KWua3XxJt7ErvqL/o2gV0j8b2FiWYDpe ANFFADltWvruFlAtA41pQOrGTREf2t5Te44BH42cddcIymxAQpDND1N/7Rwzo93W4gJf hb0yaQjZew6KoVU0sbjHqPiruxKsDCH952LJa2/zJ3SvtJFG+WVrT45bD4leyIyHyJg0 Ei0RiZ5YVf+El1gRPYEYBguM9xDIwLIBJujscqQZBboouv2Xu9dzroDDvCXpTYw6Ak05 B//FcclKA8XUPPHdqXfcX0j4SYZ24RQGQ4uZMBJTy65bJhStk8Sz+AreDGmxxnInI3ty 22MA== X-Gm-Message-State: AJIora8bTbegtVdcyC3eooY8maxGZrJGXR5Tw29cZDjuBpZr1wdj+R0v a5Knbuc8b3fUZjLjBIEjaWYZZxmcv1OAPLMMK9w= X-Google-Smtp-Source: AGRyM1tJubQQy4BW0nkMYz4SHiol328DqLtRY/cPplibGlgrfHDirBccm0YgDr9TpuATDg4EmiaSu1f/jjqju2DeRGM= X-Received: by 2002:a17:906:ff48:b0:72f:10c:bb3f with SMTP id zo8-20020a170906ff4800b0072f010cbb3fmr21198024ejb.718.1658262949089; Tue, 19 Jul 2022 13:35:49 -0700 (PDT) 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 References: <16906DFD-286B-4D59-9438-CA9CD9026C55@yahoo.com> <202207171708.26HH81bA062303@gndrsh.dnsmgr.net> In-Reply-To: <202207171708.26HH81bA062303@gndrsh.dnsmgr.net> From: Ed Maste Date: Tue, 19 Jul 2022 16:35:36 -0400 Message-ID: Subject: Re: git: 1dfcff294e44 - main - release: increase IMAGE_SIZE for arm, arm64, riscv [odd alignment for SBC images] To: "Rodney W. Grimes" Cc: Mark Millard , Glen Barber , Warner Losh , dev-commits-src-main@freebsd.org, "Dr. Rolf Jansen" , freebsd-arm Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4LnVw63MJrz4QLM X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of carpeddiem@gmail.com designates 209.85.218.48 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[dev-commits-src-main@freebsd.org,freebsd-arm@freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.218.48:from]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; RCVD_COUNT_TWO(0.00)[2]; R_DKIM_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.218.48:from]; RCVD_TLS_LAST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[carpeddiem]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCPT_COUNT_SEVEN(0.00)[7]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FREEMAIL_CC(0.00)[yahoo.com,freebsd.org,bsdimp.com,cyclaero.com] X-ThisMailContainsUnwantedMimeParts: N On Sun, 17 Jul 2022 at 13:08, Rodney W. Grimes wrote: > Perhaps an assert for kern.geom.part.mbr.enforce_chs not > being zero in /usr/src/release scripts is in order so that > the builds blow up rather than produce BAD images. This is a good interim step (before switching to mkimg). Perhaps: diff --git a/release/tools/arm.subr b/release/tools/arm.subr index 77b708bca4a2..94e0ee89deaf 100644 --- a/release/tools/arm.subr +++ b/release/tools/arm.subr @@ -62,6 +62,10 @@ umount_loop() { } arm_create_disk() { + if [ $(sysctl -n kern.geom.part.mbr.enforce_chs) != 0 ]; then + return 1 + fi + # Create the target raw file and temporary work directory. chroot ${CHROOTDIR} gpart create -s ${PART_SCHEME} ${mddev} if [ "${PART_SCHEME}" = "GPT" ]; then