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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BABC2C48BDF for ; Thu, 10 Jun 2021 08:44:47 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id BE871613BC for ; Thu, 10 Jun 2021 08:44:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BE871613BC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7624B82E2F; Thu, 10 Jun 2021 10:44:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="qLRM7pc6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1A9B182EAC; Thu, 10 Jun 2021 10:44:42 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on20616.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe5b::616]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0877282D6E for ; Thu, 10 Jun 2021 10:44:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michals@xilinx.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BzHmSE0maMb+56n06KAiS6mpQ8cfPmSBjc3SRVeNCEs6YRgZIXbPQ4Vw5Ht5ftKzqBsjgWUMFaMpgETwy8MBnXycB1dmbbBzhBFZkLp34Gq+koepCTbja1FoAv2+S+dg1eV9SmuC935xrx8icKp/pMz+9jfil4D3pAHE5qug7IBp1ielQt38gr6a1FLo0P8Ms/1Nq7T/F9aDESSUR51Vof/l6c/vLNiabxfJ5iA5rTLVk0uUQyGUqe/IvIcSDgqC9a9wvUPkM3OplIorrn4NLGT3pa+M2Sz1B+B28gAOwFnIKLl4DnkXebQyyyPBO5wdfTDhNpbT42PDeWucYYvY1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i9AsUGA01FmEE7bixbfDGVc//rpwihINLlVq5Hf3zh8=; b=jlADy7oppp4ozBb3SeUdDZMQX3nGlLgUYU7IenlR0K2ibRMlSd+/q8aJI/Vts2oCSOr7FzGByg6p4h1kUbXVYiNv4zK9+XMuEuZLCpwpZPjtO7j6R46I9WKA/2QSsV+sqWcK/rdeosZJsL5N3b7N59kGH9n+FMyA4t9/tN+0KfALMSVE2TbJF3VLgXZoIFHb3mTe4NmeEL3i7A8wxs16Ev9DwFRuPlWUUO5OtHUPvxahmzdLI/MPnKM3O8v+9TSuampWie+67VtO3/nygx1bXlBzlJW0xaVBBgPNe2Pn3/eJ2NvXJQvhJgYKUfE9LbXtajXHJJ0NXYh4CF5nY98aCw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i9AsUGA01FmEE7bixbfDGVc//rpwihINLlVq5Hf3zh8=; b=qLRM7pc6FjycSqgvhqy+P8828RnHm+4JrVir5NZXVhM+M+hDgQtFyf5+rCmduv9tMo9PUZ7JNdw9DY0LRaAPBP2wn02/8s4+t5R2RTTwlkrZe0hGSG9//hsf+HbaXJgqapr7eHx5xq+dgymVAUSFgfLIH2Gc8OPN4ISy+hDSWy8= Received: from SN6PR08CA0022.namprd08.prod.outlook.com (2603:10b6:805:66::35) by DM6PR02MB6560.namprd02.prod.outlook.com (2603:10b6:5:1bb::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.23; Thu, 10 Jun 2021 08:44:35 +0000 Received: from SN1NAM02FT0034.eop-nam02.prod.protection.outlook.com (2603:10b6:805:66:cafe::4b) by SN6PR08CA0022.outlook.office365.com (2603:10b6:805:66::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Thu, 10 Jun 2021 08:44:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0034.mail.protection.outlook.com (10.97.5.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4219.21 via Frontend Transport; Thu, 10 Jun 2021 08:44:32 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 10 Jun 2021 01:44:29 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Thu, 10 Jun 2021 01:44:29 -0700 Envelope-to: u-boot@lists.denx.de, ilias.apalodimas@linaro.org, xypron.glpk@gmx.de Received: from [172.30.17.109] (port=33732) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lrGIf-0000FW-6W; Thu, 10 Jun 2021 01:44:29 -0700 To: Heinrich Schuchardt , Ilias Apalodimas CC: U-Boot Mailing List From: Michal Simek Subject: EFI from usb HDD Message-ID: Date: Thu, 10 Jun 2021 10:44:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dc841eda-2634-41c7-bff8-08d92bebf82b X-MS-TrafficTypeDiagnostic: DM6PR02MB6560: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G33UGTN67zyflcp2Hb8l3kQJ0ScxrgZ32YFzaWf85EZ2/x6HiWEGEqgAxjetlIQFyKsBDLdlm5pPlXmmPBmErZW9PEtNSgrS4l8wSo72RWOt9crdrLyI16bh8oMO6ziBb/7DGGCVkfvqf8p1GR3f0YY6hXl1cTU44a3JvAYLgkzSoUrFb/IkKA6Ej6kZyudJZtskyy55DYuYwqU5KWChiUl+amZ4e/0Wpj1u772evvGCwVtKBP1x61iM2JPM3qy4dvKHVRNanXkM1mRLNmjgv6m1X0Xf/zV1uaqYIBr9j3a97nh7QedNN4yp3E3LDPlpB/NtYx1Evwk8TWbeDNLcHjD9uFGyEjX+C5TK/R23laOrUIZ1uIiwXzKFLwn9E8wsZj24fo9bhSYLrzULqXm6Be3dNO8rKeaG3aCLjS9Ca32Q9rMmsKWnNoQsv22pMvEXAqGN52YL80MhcTQ9s1es7Y5N2SR0rcciTHjedD9h55/LpszFIFi6xKkb3BWhObPLjf53wBvgocp9IQQS1gSAl4D/25mcJDudQP0t8cn7bKXqeB9K1gH2rGEpG05z1jTyy6jj46xi4mJlNl82mvPZzMcSAhp/Dlldut5jhLFnQymvh33vVsHqtyLwasXEX74+swuiT0IwR/XM9SAl5BkiSD6660XvMTXObqCwn8XdqN2CE7zRwbgXmnh35zDxTAmZ1qx0BluDtvanNg+fqTZnup7asl7HGHCLJ8YKZ9Zh1Sg= X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(396003)(39850400004)(346002)(376002)(136003)(36840700001)(46966006)(82310400003)(4326008)(9786002)(36860700001)(45080400002)(336012)(356005)(316002)(8936002)(7636003)(2616005)(478600001)(70586007)(31686004)(82740400003)(70206006)(26005)(31696002)(2906002)(110136005)(47076005)(5660300002)(36756003)(83380400001)(8676002)(44832011)(3480700007)(186003)(426003)(50156003)(43740500002)(554374003); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2021 08:44:32.9751 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dc841eda-2634-41c7-bff8-08d92bebf82b X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0034.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB6560 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.4 at phobos.denx.de X-Virus-Status: Clean Hi, I am playing with booting from USB via EFI. And I see very weird behavior. I have burnt image with grub to USB flashdisk and I have tested it on 3 zynqmp boards. zcu102, zcu104 and SOM Kria board. On zcu102 grub is going to boot menu and everything is working fine as expected. On zcu104 and SOM Kria I am able to get grub not to menu. When I list partitions in grub I see that only SDs are listed: grub> ls (hd0) (hd0,msdos1) (hd1) (hd1,msdos1) On zcu102(working board) I also see usb(gpt) partitions and SD. grub> ls (hd0) (hd0,gpt2) (hd0,gpt1) (hd1) (hd1,msdos1) On zcu104 I see one more error message "PE image measurement failed" But I can't see it on SOM. U-Boot image is just the same for all boards. I am using generic xilinx_zynqmp_virt_defconfig. When I compare DT description for USB between zcu102 and zcu104 they are the same. SOM doesn't have usb enabled by default (but I enabled it) but grub starts which means that communication with USB is fine. It is based on my latest patches available here. u-boot/custodians/u-boot-microblaze.git (usb-efi-issue branch) Also when I list usb I see all partitions just fine. ZynqMP> part list usb 0 Partition Map for USB device 0 -- Partition Type: EFI Part Start LBA End LBA Name Attributes Type GUID Partition GUID 1 0x00000800 0x001007fe "Microsoft basic data" attrs: 0x0000000000000000 type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 type: data guid: 0e7f8b3d-296b-4720-be9d-c4687d3c4a77 2 0x00100800 0x001197fe "Microsoft basic data" attrs: 0x0000000000000000 type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 type: data guid: 8892eddc-231a-4e6e-a5e1-c310f4482fb7 Do you have any idea why on one system is working fine to get to menu and on others there is an issue to get all partitions even u-boot is able to see them and can work with them. Thanks, Michal