From patchwork Thu Oct 23 09:43:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 643 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1761212645; bh=InWVwrUME6nj+cwO7VDSzo7S3Xhg+IV0fjRAo1/pvs8=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Q5pKhVCmgabC+RlsvCRTtD6MJtHnnRPs8C2HWGEmEhjmvjIqLIfnXmYzmTJggawSw QGNAYDnwXzMsAeXUHCd50Qak0mLqqCGlQ+hv8eJQh2nKMjgvf5KT9/QiFxFzUDCYiF dl6arMkDUDNcemxa9+Xp/hJXhcTDBy5MHiXFHZwaSUYqUIFrnz1OIsY/N+9a9tbX9/ +dOWLBUnsnQC3RcLQwBEYTjIpAZKDJ0zFntKV51uBj3vmRl9Y56ylPuYiPVI9+eodd ut2HgjU0QYxQsG/AeGxxOQHfAovm3FuPj8Cl7xqwF/haL1rwUXTkd2zBGk5wyI/CG1 DTDRL8oLWKNiw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0C5FC68244 for ; Thu, 23 Oct 2025 03:44:05 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 1hNeJxScyGc5 for ; Thu, 23 Oct 2025 03:44:04 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1761212644; bh=InWVwrUME6nj+cwO7VDSzo7S3Xhg+IV0fjRAo1/pvs8=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=QwVKOnLWhUNvU6/tmFk/4bCVUu2tjjHEwu2i9CN2JXW2pFSOZ1unVjhM0ewnEzilZ 5jA449Qx5FKHW+ZGasJXsUTz0XhfDFwZ+JKBXv/37vVlCM+XEg4F2YydYjvNmCjCAv qLlpXKBHuEFVz3kFGp/Sel2M08OztTa85yGoxw9JujEibvCmnAFSGpFDvXyRzDD0VG XJfUfVeRcHDr++vrzb34obIhVPGSBuSX1UsTaaYDhiD3lqFi6ZvxWhvJz51IkR9/XV w9Jr07kxsq2iLiW080sD4ac5NcrnNL73+n160DTgBfbhaqpLyHMK3nroDt0h3yrcd0 9/sfbYps+qnSg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id F05626822E for ; Thu, 23 Oct 2025 03:44:04 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1761212642; bh=nOBkqxi0oNkiuchAM43XUTKQT7XLi1gmcj3pRW1NTl4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y66hGp6vDTjRVcbjm1XJsDDrA5HnZsVRQcZUPX/Fk0XVmcjhF5gNcZ99iMHQnNhDz FJvl8PnnISAty2391yZ5eLNhhLuNX7st5si8DIGxqHW+2VFNqUr6YvfqgntfJP7SxU IRSNSuwYNTpe/wzWElnxngyzzAb0bUW6YaeIuZ6Pq/cqml0eMrDRCcupfwlKajaO2F qCZD4l+8njAywL3bFB9pXWwTjIxc///BLhl0T5GRbPDPAMxmGRueAVxDVPgWn2/C0O G3w0mRjJYFJNUjla2/676m8+JY+3QIBLa7cr1slCwGsLwq+1PEkfuN6+4PXtWCfLHn 4Du4p/1Er9sIg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E85636822F; Thu, 23 Oct 2025 03:44:02 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id 2whTqESdA1PJ; Thu, 23 Oct 2025 03:44:02 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1761212637; bh=gznk3om/rU/EDcYZgp6D0XMGvIYgfn9i8Cm0aEtzJ+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mTUHbFD8hK/UTxuhfEmnYNP21VtJxlUkh8HQQfmtXS+SR8dsesYHBri51yFVXIzhM +/TlZi8NQfq+dyPQY1FFcfdg62No5ZbTZyRw4doYsNur3I25oA6PbuW5cC1eD8ZQG6 0NEVKvCuT4so2oHAaKeNpIS3+F30CkqJsJa86D8VOYuEIlY2pJ2Rlsn1goH4R+ndVx 8yRGWAeZUsEDXQEM81gVINzWIIVrF7GRiT3Bqs+TYEFYH3OWHx0t/kkkwJQ/XC4RvO roWboC7MD4TVYdIX16SJSJlHEpHbne+webNfzxZzbu0QNN+0mCL9ilMb+SurFzmZXD WqL7nZAZaGtVw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id CDC1968245; Thu, 23 Oct 2025 03:43:56 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Thu, 23 Oct 2025 03:43:00 -0600 Message-ID: <20251023094308.3406453-12-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251023094308.3406453-1-sjg@u-boot.org> References: <20251023094308.3406453-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: UQD6PGXGPH5CLOEUK562Q6AAI7UHC67U X-Message-ID-Hash: UQD6PGXGPH5CLOEUK562Q6AAI7UHC67U X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 11/11] scripts: build-qemu: Allow enabling TKey access List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Provide a -T/--tkey option to enable access to a USB-attached Tillitis TKey. Signed-off-by: Simon Glass --- scripts/build-qemu | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/build-qemu b/scripts/build-qemu index ddaafc7587f..70dfe968f66 100755 --- a/scripts/build-qemu +++ b/scripts/build-qemu @@ -51,6 +51,8 @@ def parse_args(): help='Run qboot instead of U-Boot') parser.add_argument('-x', '--xpl', action='store_true', help='Use xPL image rather than U-Boot proper') + parser.add_argument('-T', '--tkey', action='store_true', + help='Enable TKey USB passthrough for testing') parser.add_argument( '--sct-seq', help='SCT sequence-file to be written into the SCT image if -e') @@ -153,6 +155,9 @@ class BuildQemu: default_bios = 'u-boot.rom' self.helper.qemu = 'qemu-system-i386' self.qemu_extra.extend(['-machine', 'q35']) + if args.tkey: + # Pass through TKey USB device to QEMU + self.qemu_extra.extend(['-device', 'usb-host,vendorid=0x1207,productid=0x8887']) if self.helper.bitness == 64: self.board = 'qemu-x86_64' self.helper.qemu = 'qemu-system-x86_64'