From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A8E29EB64DA for ; Sat, 24 Jun 2023 23:55:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 304FA847D3; Sun, 25 Jun 2023 01:55:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="AHP+SEbE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 861E7857D5; Sun, 25 Jun 2023 01:55:37 +0200 (CEST) Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0685F847B2 for ; Sun, 25 Jun 2023 01:55:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jpewhacker@gmail.com Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-666ecb21f86so1899329b3a.3 for ; Sat, 24 Jun 2023 16:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687650933; x=1690242933; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=L/efw05IWgwDKMQxU10U75+MxYKJNCxDVifbW2TWiQY=; b=AHP+SEbEmA9oLvRVApCDChUmBmacAFlW4NJ7ZdBZu3f2knq8thzYvFIEbP/Wa9BWfk NMnW3mi7lZNR9alRTnTh+2D3zU7PPCKmUyJ+6PgKFixoogddd8z8lX2GVe31QS254fAi l/5MTvh5d5NtlUGiHBw20D20xZ9xaTEre0y5q5IQvt+rjBPRYsCQzgCEZAeJ0W3G7raE hhTg8inErnRweAkG9fT0f0oSj42zhKFOHViESSSFaJ+oPYH07k7n24u4psTWvp7J734x vbdMWWH3FnTVG2yrfYKxOJhCLTlOq5LVzGw4YFu4aPp8Qwm29zSV8ZalIQbC653wXzXn 2d0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687650933; x=1690242933; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L/efw05IWgwDKMQxU10U75+MxYKJNCxDVifbW2TWiQY=; b=k59bVXeCReqpanIeH2UxUJYq06yXQmc41robtQGQC1KsWvP68wz3O7VXqTCUMi0Ivf DrqShUkOkaHAEmOEEGsYGNNAYUHa7hIw+f3lGJt0FjKGt2HUrkXZItVpHJ+niwCb+SJf +gQC/e7B2Mc/rRAu/Zho5qesyWo5DncS29Yxjc4VAEyDyJ+4diOS0XJSVzk0NKD+jZjC FtdaAsWgLjKhABuaRBHv7Bof2wZtsmzWdM//a2YbUSQzkaV75/Yat3vyPSIe/BvSHFbV LfOqRgUVpWBXw7hq8qTuFXFU8+sukSlL46loikBA6QNJUEVJ1nt9GXX85s6u60H/xd54 9sPA== X-Gm-Message-State: AC+VfDycu7TRSQy8S6Tr0LM2ti+vxVmoZbPJ/AljMEtl7znFnf/BPRpo T9F9diacYccoTY1g75UVtEXKjs3RIiA= X-Google-Smtp-Source: ACHHUZ4jfQkT1gRbm1c/E+tQJ4VaBZSXxAQ90zKtvdXSIBh3oZvzjnwTiEdiPh0K+neEianlcNY6ww== X-Received: by 2002:a05:6830:1394:b0:6b7:2ef2:5beb with SMTP id d20-20020a056830139400b006b72ef25bebmr108277otq.32.1687550442586; Fri, 23 Jun 2023 13:00:42 -0700 (PDT) Received: from localhost.localdomain ([204.77.163.107]) by smtp.gmail.com with ESMTPSA id c13-20020a9d6c8d000000b006b5d7fd66f7sm146132otr.26.2023.06.23.13.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 13:00:41 -0700 (PDT) From: Joshua Watt X-Google-Original-From: Joshua Watt To: u-boot@lists.denx.de Cc: Joshua Watt Subject: [PATCH 0/2] Fix 'mbr' command with hybrid MBR/GPT Date: Fri, 23 Jun 2023 14:59:58 -0500 Message-Id: <20230623200031.2689749-1-JPEWhacker@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean When dealing with a hybrid MBR/GPT partition table, the 'mbr' command would misbehave because it was reading the GPT partitions instead of reading from the MBR when verifying. Fix this by forcing 'mbr verify' to read MBR partitions. Joshua Watt (2): disk: part: Add API to get partitions with specific driver cmd: mbr: Force DOS driver to be used for verify cmd/mbr.c | 2 +- disk/part.c | 38 +++++++++++++++++++++++++++++++------- include/part.h | 2 ++ 3 files changed, 34 insertions(+), 8 deletions(-) -- 2.33.0