From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from emagii.se (www.emagii.com [185.133.207.17]) by sourceware.org (Postfix) with ESMTPS id 3EE123858C5E for ; Fri, 10 Mar 2023 00:08:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3EE123858C5E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=emagii.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=emagii.com Received: from valinor.ownit.se (84-55-68-216.customers.ownit.se [84.55.68.216]) by emagii.se (Postfix) with ESMTPSA id BBF021205C0; Fri, 10 Mar 2023 01:08:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emagii.com; s=default; t=1678406910; bh=ve+/xd2KopN5VzdgqgRQCbFezncHygrcX/f3q1QHwI8=; h=From:To:Subject; b=oVWNbmPbc4MO9mGA1FWcfbHo6FHUao0d6pUzcm9i1EC4g/iL1yLc6ooUZ/qzVGlDV HFyQNNZolTKAX9LnWgxPQsPw+ZOUYMJqMd/EPCGdddXh7m/c8aMIF/uS1pcQlQuoF8 ZErXm9aMXtjUb0+cdX+lBxOORGYSz2YGHFgHGN8A= Authentication-Results: emagii.beebytevps.io; spf=pass (sender IP is 84.55.68.216) smtp.mailfrom=binutils@emagii.com smtp.helo=valinor.ownit.se Received-SPF: pass (emagii.beebytevps.io: connection is authenticated) From: binutils@emagii.com To: binutils@sourceware.org Cc: nickc@redhat.com Subject: [PATCH v1 0/7 SECTOR: Support aligning to flash sector boundary Date: Fri, 10 Mar 2023 01:08:10 +0100 Message-Id: <20230310000817.751962-1-binutils@emagii.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-PPP-Message-ID: <167840690966.3747580.856235898739241119@localhost.localdomain> X-PPP-Vhost: emagii.com X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_FAIL,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Patchset 1 Introduce the BANK command which allows the user to define flash sector boundaries. I.E: BANK (bankname) { SECTOR ("32 KB"); SECTOR ("32 KB"); SECTOR ("64 KB"); SECTOR ("64 KB"); SECTOR ("64 KB"); } This can be used later to align a sector to the flash boundary using the ALIGN_SECTOR command in an output sector. A user who want to use their own tool to create the a checksum, maybe using a SHA algorithm need a simple way to understand the limits of the area to calculate the digest on. By aligning to a flash sector, this is much simplified. When writing a new image to the flash, you first have to erase the flash sector, so it is practical to align stuff to flash sector boundaries. [PATCH v1 1/7] SECTOR: NEWS [PATCH v1 2/7] SECTOR: ld.texi [PATCH v1 3/7] SECTOR: ldlex.l [PATCH v1 4/7] SECTOR: ldgram.y [PATCH v1 5/7] SECTOR: language additions [PATCH v1 6/7] SECTOR: add testsuite [PATCH v1 7/7] SECTOR: Makefile.*