From patchwork Thu Sep 28 13:28:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1840852 X-Patchwork-Delegate: jogo@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=h15QLiDM; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=bptYSHvk; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RxDsB4zV8z1ypN for ; Thu, 28 Sep 2023 23:31:24 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KxPJguiLxctMXaLedIWBQrarWMYW2H+g9EukGqaJWw4=; b=h15QLiDMvQ31N4 Awxq7dPTiG+bLJXv7JrQuzupa8RlFyawdrgdVcgC/GlT7ZekVyp2fTLgg2Xh44dr3PFT/sCbC5Su6 lVm9XV621n+VjrovnLjp8bBzYSeHOBSYrkrVk7HkQMlXZ6bfwPkenY3JXVuCLPgoP72XSSnu81lU1 fvO8E///TQCh/jYAtmbLUmnKA7JkR/kKVvPP1XFUmxnSl1eBcQ5s58uzGw+1PmWO2F+sFygeQFHAm vdFd7Y6N9cAaeC17O7ItCKHbJarcMpVatVxEA8RVHSTQ/qXmtZ/biZxo1EqPZMriOHAe0KswxKSYS uboVfCFzTy4phzbOHYKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlr4Z-004JiE-1i; Thu, 28 Sep 2023 13:28:55 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qlr4M-004JXr-12 for openwrt-devel@lists.openwrt.org; Thu, 28 Sep 2023 13:28:44 +0000 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b9c907bc68so214632241fa.2 for ; Thu, 28 Sep 2023 06:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695907721; x=1696512521; darn=lists.openwrt.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=y6dsgjzE3fkWuEN3UzAhFCDs0qs4M2ve/4DICptdoNw=; b=bptYSHvknLVyYvcyORHqAVg0T/TVn1Fe3ZmLdo7NuisdJ7qcXMRSzUlbbfdg5pu5ZL b5xIgzIqFviFpt6EjSzCNOmIX2daOVNql28ceLFX86LwnUTRTlZR3Nl14Asq3FeZvN74 C1Nj5nNFj1JgH9MzR75qNhlZIsQqbiZX0v0T1B2wTEUooaXADvHgwC8AVWU9fNCIe/HK bMdMFnZxqDoh6UFBKgO9x2qDLN+HM+v+shSIxEetkFbUtyW1m3hs24OczmxpL7Y5nN9U z1UuNm6BPXmxbOT8fBjE00Pq0e7QimOdG/erWgBLxDyIoU/Pl8xMyWtMGykicAbxxNxm cdcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695907721; x=1696512521; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y6dsgjzE3fkWuEN3UzAhFCDs0qs4M2ve/4DICptdoNw=; b=UaemCg5dAUdoVA6/HCDEr0kE8YipqSRfX2Abvpb+OFZs9+2uQ+5Dpf9+drnLW2PiAU 5i0I25qnRQfardOqJ4QmCvuOlh/78yqo4BLrPnFI/9gmLv9oA0kSwITjbj2oubA/HXw2 EqHgAy5gVqFQiQlRC7K/7M3ktehM+SSqdw1ogD8tWZpmiCW6+ais/g4ddOHTbMVGprza 2sv8ubrfxnOsJOmRLald7QmeBFotJrULuAhXzwvzLRDC1A04q85Yz9GT5/dpmEUAHc1l gde0YacjZk2B97bdb2O12zxhd07MYCMCfiT+a4lCXAwGKbfVyOiYKqVnyIt5x+t3iIIK t6Sg== X-Gm-Message-State: AOJu0YwCUmkSqmY6vMKN0Q/TR+ROpEjSOoR7O2AWOE6NQaMzXkoeujSa zUw6OnAtRhwHx3RGLQu5+T0Fug== X-Google-Smtp-Source: AGHT+IEch6MeuLlpN1EwDP/8RRszCilA8CXDOdpYVzji8ci2ovEaPkYVZBdXfGbtbT43CDBGvgckhg== X-Received: by 2002:a2e:8450:0:b0:2bc:e2bc:81ff with SMTP id u16-20020a2e8450000000b002bce2bc81ffmr1207670ljh.51.1695907721011; Thu, 28 Sep 2023 06:28:41 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id c13-20020a05651c014d00b002c01ecf6c01sm3574690ljd.51.2023.09.28.06.28.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 06:28:40 -0700 (PDT) From: Linus Walleij Date: Thu, 28 Sep 2023 15:28:31 +0200 Subject: [PATCH v2 8/9] Delete arm-magic script MIME-Version: 1.0 Message-Id: <20230928-ixp4xx-v2-8-ce011eef8239@linaro.org> References: <20230928-ixp4xx-v2-0-ce011eef8239@linaro.org> In-Reply-To: <20230928-ixp4xx-v2-0-ce011eef8239@linaro.org> To: Imre Kaloz , Krzysztof Halasa , Howard Harte , openwrt-devel@lists.openwrt.org X-Mailer: b4 0.12.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230928_062842_479454_552A59BC X-CRM114-Status: GOOD ( 14.25 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This script was used to modify the wrong machine type passed from the boot loader to the kernel. The device tree kernels does not use the machine type so this script is no longer needed. Signed-off-by: Linus Walleij --- scripts/arm-magic.sh | 42 1 file changed, 42 deletions(-) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:22e listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hauke Mehrtens , Linus Walleij , Raylynn Knight Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This script was used to modify the wrong machine type passed from the boot loader to the kernel. The device tree kernels does not use the machine type so this script is no longer needed. Signed-off-by: Linus Walleij --- scripts/arm-magic.sh | 42 ------------------------------------------ 1 file changed, 42 deletions(-) diff --git a/scripts/arm-magic.sh b/scripts/arm-magic.sh deleted file mode 100755 index b4b0fa94f574..000000000000 --- a/scripts/arm-magic.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -# -# Empty/wrong machtype-workaround generator -# -# Copyright (C) 2006-2012 Imre Kaloz -# based on linux/arch/arm/boot/compressed/head-xscale.S -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -# NOTE: for now it's for only IXP4xx in big endian mode - -# list of supported boards, in "boardname machtypeid" format -for board in "avila 526" "gateway7001 731" "nslu2 597" "nas100d 865" "wg302v1 889" "wg302v2 890" "pronghorn 928" "pronghornmetro 1040" "compex 1273" "wrt300nv2 1077" "loft 849" "dsmg600 964" "fsg3 1091" "ap1000 1543" "tw2662 1658" "tw5334 1664" "ixdpg425 604" "cambria 1468" "sidewinder 1041" "ap42x 4418" -do - set -- $board - hexid=$(printf %x\\n $2) - if [ "$2" -lt "256" ]; then - # we have a low machtypeid, we just need a "mov" (e3a) - printf "\xe3\xa0\x10\x$hexid" > $BIN_DIR/$IMG_PREFIX-$1-zImage - else - # we have a high machtypeid, we need a "mov" (e3a) and an "orr" (e38) - if [ "$2" -lt "4096" ]; then - printf "\xe3\xa0\x10\x$(echo $hexid|cut -b "2 3")\xe3\x81\x1c\x$(echo $hexid|cut -b 1)" > $BIN_DIR/$IMG_PREFIX-$1-zImage - else - printf "\xe3\xa0\x10\x$(echo $hexid|cut -b "3 4")\xe3\x81\x1c\x$(echo $hexid|cut -b "1 2")" > $BIN_DIR/$IMG_PREFIX-$1-zImage - fi - fi - # generate the image - cat $BIN_DIR/$IMG_PREFIX-zImage >> $BIN_DIR/$IMG_PREFIX-$1-zImage -done