Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1600620/?format=api
{ "id": 1600620, "url": "http://patchwork.ozlabs.org/api/patches/1600620/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20220303204400.2787389-18-sean.anderson@seco.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20220303204400.2787389-18-sean.anderson@seco.com>", "list_archive_url": null, "date": "2022-03-03T20:44:00", "name": "[17/17] ls1046ardb: Add support for JTAG boot", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "ae580349d6954a74fd6449440a62a489a479a57c", "submitter": { "id": 80860, "url": "http://patchwork.ozlabs.org/api/people/80860/?format=api", "name": "Sean Anderson", "email": "sean.anderson@seco.com" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20220303204400.2787389-18-sean.anderson@seco.com/mbox/", "series": [ { "id": 288836, "url": "http://patchwork.ozlabs.org/api/series/288836/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=288836", "date": "2022-03-03T20:43:44", "name": "arm: semihosting: Cleanups and new features", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/288836/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1600620/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1600620/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "bilbo.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=seco.com header.i=@seco.com header.a=rsa-sha256\n header.s=selector1 header.b=dunOKimp;\n\tdkim-atps=neutral", "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>)", "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=seco.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=seco.com header.i=@seco.com header.b=\"dunOKimp\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=seco.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=sean.anderson@seco.com", "dkim=none (message not signed)\n header.d=none;dmarc=none action=none header.from=seco.com;" ], "Received": [ "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby bilbo.ozlabs.org (Postfix) with ESMTPS id 4K8jjZ23LWz9sG1\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 4 Mar 2022 07:47:46 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 30C0583D5F;\n\tThu, 3 Mar 2022 21:45:33 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id B5BBE82A53; Thu, 3 Mar 2022 21:44:57 +0100 (CET)", "from EUR02-VE1-obe.outbound.protection.outlook.com\n (mail-ve1eur02on0602.outbound.protection.outlook.com\n [IPv6:2a01:111:f400:fe06::602])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 40D5781CFC\n for <u-boot@lists.denx.de>; Thu, 3 Mar 2022 21:44:40 +0100 (CET)", "from DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27)\n by AM6PR03MB3573.eurprd03.prod.outlook.com (2603:10a6:209:2f::10) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.26; Thu, 3 Mar\n 2022 20:44:38 +0000", "from DB7PR03MB4523.eurprd03.prod.outlook.com\n ([fe80::9130:93ae:6e27:e9a]) by DB7PR03MB4523.eurprd03.prod.outlook.com\n ([fe80::9130:93ae:6e27:e9a%4]) with mapi id 15.20.5038.014; Thu, 3 Mar 2022\n 20:44:38 +0000" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS,\n T_SCC_BODY_TEXT_LINE,WEIRD_QUOTING autolearn=ham autolearn_force=no\n version=3.4.2", "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=AKT1wuGx+QCXtkoF0oavMGhNq3ddZSF3oHHJ8ZRbuw3JgESXCzdz8+f0gdC5pFycKIxFSbDUyvu6xM/ylVFYCEAbM9ykafTKNzeILu6nS8zm9dnyGGFXeNmJLy7fM+dKH1WL6DU8Y7Jar1f42xXAvDEJDas6lZFERXjw3t8qgsBnc7gVnKaB2ESu7aD5iM0WUntzzLy4glMwqqlZqEVlNeYtay2ZYhiDb4jCSn16hcmJkOD7ngGAZ5y+HYQL7FrWt/Pufdrd204xI1BYKWxx5xE6hrggfS3vHjpb7sz7Mbrl56OO5lmQC66peWfov8BthJYSLc9z1SkfPsqZ0rb6Lw==", "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=naFcqp/ZoMhktxSLp5rjKAtLYO5Ohcfm7PcgOhBny40=;\n b=MtAPXv89sRCWQnEEg6jSCQ9Hk8WM6bIU+pGBnMBEPVFVJtHtrpZTKKwZTtXUZvhuUy+/PzqMOUJaugE8InNTKM3jweXRoRr/KBt3FipQE5hlcTy32UvB6wk3WO4TP7RaOhOuKZCHoAcq3iwu3LaN2EC0VY3V/xyX7aptk7fhN1iaOCfc2iZIZw2i2fYAsDT76z5uu9G/C2xZlVMkOgbtO6nehSY4u2vrG4EOwuSJ3bn+UnP5CeM9PzGdPVEjX0FukRTPDL/uA7BMRLm5oiyQVw6xXmOFETGNvKL9mAej/TvjCtP3Lx4TmqN+fEXFnlXL1uR7Xe+K3qStCmyU8pg92g==", "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com;\n dkim=pass header.d=seco.com; arc=none", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=naFcqp/ZoMhktxSLp5rjKAtLYO5Ohcfm7PcgOhBny40=;\n b=dunOKimp66Rw8WW+CTOWNuj3cyCVwzKXCpiABahr0+2O5YHLIywEhUTy322YSjPGzlDzYD88pB/kdFBL7MVOko2Zk2Zaj9akTD/6ggDz3XlkruOpQ3I5/aSDOrK04GhjYF1DnPKS6HXgq7aLutjQN09jD+uaQok0+wtaCmkyB3qtpCTCAnobQhU3g94w3U7eWrmNN+cC6ZIDvN6gk1P15UfUgYu3GeUirUqUyY30lgsgXrW0PdpmKX5aWhZzWsCArOmd0Cnk0+RNdBGRwmDxxJeq3WiZnf+wvm0ELOKpAnoaAbZqEAcIkm3EQxipKPoydR4sG45Oy/JXAppAxfqEgg==", "From": "Sean Anderson <sean.anderson@seco.com>", "To": "Simon Glass <sjg@chromium.org>", "Cc": "Linus Walleij <linus.walleij@linaro.org>, Tom Rini <trini@konsulko.com>,\n u-boot@lists.denx.de, Sean Anderson <sean.anderson@seco.com>,\n Mingkai Hu <mingkai.hu@nxp.com>, Priyanka Jain <priyanka.jain@nxp.com>,\n Rajesh Bhagat <rajesh.bhagat@nxp.com>", "Subject": "[PATCH 17/17] ls1046ardb: Add support for JTAG boot", "Date": "Thu, 3 Mar 2022 15:44:00 -0500", "Message-Id": "<20220303204400.2787389-18-sean.anderson@seco.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20220303204400.2787389-1-sean.anderson@seco.com>", "References": "<20220303204400.2787389-1-sean.anderson@seco.com>", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-ClientProxiedBy": "MN2PR16CA0013.namprd16.prod.outlook.com\n (2603:10b6:208:134::26) To DB7PR03MB4523.eurprd03.prod.outlook.com\n (2603:10a6:10:19::27)", "MIME-Version": "1.0", "X-MS-PublicTrafficType": "Email", "X-MS-Office365-Filtering-Correlation-Id": "33e534a6-948b-4b74-80d4-08d9fd56a294", "X-MS-TrafficTypeDiagnostic": "AM6PR03MB3573:EE_", "X-Microsoft-Antispam-PRVS": "\n <AM6PR03MB3573A42E8667ED3FDD4F8DEE96049@AM6PR03MB3573.eurprd03.prod.outlook.com>", "X-MS-Exchange-SenderADCheck": "1", "X-MS-Exchange-AntiSpam-Relay": "0", "X-Microsoft-Antispam": "BCL:0;", "X-Microsoft-Antispam-Message-Info": "\n EhMKdX6Uek5W7GLIgLW+XczK/LNyPODtMfFz4CZLT8OBdOG1z+hAW7qegZD0pr9WxGlnOAvDmTLvvo7f/ICHVPykZHqArFbeO+DLdxBP0puOhsp6g8IAH9ZRQMMW6w3pVNAoj8cjK2QpGIZBrm+hzJdVYPlE35QPIDMZuvftLaiUxQaD0ShJx/aHGsr7tH9ewoUDOQC1c6yMjJF85E+ArWShigcsI7sBbES1h85jr9X5lf9vGvY8W1YoOlwcwcfFM9cWEZYUdHBlMTjlz3RbbY08D74JJ54ddD5ezNYRgO0YlC8pt35vaUgVWqr6a3IbGNoDJgaZsf46xjilgeryd6fG/S8/eAkrpJcfrLVqTRLOmdj1tRoohTSqepwU5j7YMar95qXTv8hcLKLMBizynagmdPR9ijkO/cF+/DwnwW75vgunTd/Tm7UByO9By4dlKKOWWsnBmiXhaSRav+Hs3GmlL6FiOs7VoxpjlYoAncaGBP56F8G/OxERel4nQqT9JwOGn9LXwcFEKFaZmZBjoxX230og4xHAJEEJd7VjXbq+xEIecy4yNXiC3TtiPOd1j/4azfcxjig3nhE5c5Yd0loTjsSX2CJMTSlcTzuZCCrNEwswmIuiZC5hqgZruxcWCzWJabQvIQcs/HHikdVrnARSSe+p3+AkEPSrSmqPDFk06/PuobcYNGlCkG6MIkL47JnsOMcgA3EMCEkCBSvd+TNrZdFexs32unwwt79G/EesZn3Y5zxXxcpPJCATB4jKKDvO+Ft8zqK4KKARov0Xs6WK6EK2/JdHPLgiqPpPCd4=", "X-Forefront-Antispam-Report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:DB7PR03MB4523.eurprd03.prod.outlook.com; PTR:; CAT:NONE;\n SFS:(13230001)(366004)(6916009)(36756003)(54906003)(1076003)(2616005)(83380400001)(316002)(38100700002)(38350700002)(186003)(26005)(4326008)(6506007)(6666004)(508600001)(6512007)(2906002)(52116002)(86362001)(5660300002)(966005)(6486002)(8676002)(44832011)(66476007)(66946007)(66556008)(8936002);\n DIR:OUT; SFP:1101;", "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1", "X-MS-Exchange-AntiSpam-MessageData-0": "\n +GoYRA43I7szYf6GKiO52lpmAuXi5LH3cGYd9+Ql7ivr8+gaB1swVzX66KKV6/JvRZHoj1MLFi7jTe0tNJqVaOgwDnsBrnUnKCJF3fOtkheop28WUjIsNFpI8qG5ACWeos1QQuuI+i3n577O72gUfOjtmuGyYohH3ZseaNyuSmpDbzdIvhdHFIN9109yOOUG/QEJZ98sKRFaKuQ0CX6UXWno/xjCZ88JXEUrn/LtXeDRldH8GZ5gKwzU4O64RJ2oDleKeJ6bSFRA+RIwgaG2nyp5vg7BVqkqe7wtXcvpDdv+djCb0HyJ1WDYtZWZKDXTBKCz7b/8LWpy75ReOI60F09TMYQWIpAM4oB1nAdljCkIu3dTUm5Kb/zGVBEJbB8xrivRfC0VxmGjUKdudZW34wvcqN29OyNNWZa1mCYPnH6fg69PqOl5MCEqn5RY+7w3UiAq3wnOOr3ZkfdFS73tWynmnp3JpUS5zEgEcCbpQiSCcK7hEH7GpdgbC5++Wxk1oozzRA5Ot9vCDoO6uarO0W+9c1Ltr+Ds0FlNgwcZlbecCvFgpglIMBvCZTLhJQZDtWPwK3kuUjsoldc18gDoD70UwR0lzbaN6Xm6rQp011bK929DRpoKup5DOTXUXdf4sHlT4SCvHdD+cKVxnoJB5e694NATFvyxBVy44VzGSaSKZvZbY1slVUWh78SMT4VVKo4JglDjyQpSHPhV/91xyO39Zq3qxMjr6UTluuh570zYxjXSRtg+ixGPxCsUKpQpGyVJlfCTjvJ+eNqBiDv1i466CrewWCAPSGrJtngZqUUEO3mhn4T8Ur7FmPUKQ03kLv8iRbXqL+MSpEMWEnAzZqK0nwWnRquRg4/tAtcFOOAvdnPcw3QzuwkuhHAmi1W9ETaBYQDgzYlij1frqrCdpPXosUKYHt0BUXu40/FuCoYJpPsiZnwxgogm04HrtIiG+LrCcjK/Yjn8j5sLKx7vVBdupq7CG7VVBscDS06vQ4HTRnofNn2CeZudyCRzxuztiDZcWWyzeBT3vBmA7WQS5iMPlhjZ1XeSWJA/HA3/WCCOR92Anuxov1GAp3v0beyOyHG3OD0+bPSHxmru84D7KDdFFD4DoNrWY3XhDNh/9gkJFEygcer5arQzT0QbfmNVmC6EqIizip+vp7JbiGB9MMBvSH4vXKGavzX35d97zZ0T/CnBTaz/i7KfksnFpEp3ehPZgXp8EjRZo9ex33qeXrxjzNmDiaC/UvCRKGXBtRFS92mPD12sewHoTRe52uU2Njqhz5vs3Qg4f0DFXUpGDsJyxytqaFHu3wOZIzQuikoNK2342+wXg623jmzHwwOhtfi50dscuiCopwH7PucUkPNzSKOeINp0urZmj3Jsbx/NM2qF6qftBgq3s5JHRUgUrL+1uewyoANexGz7reU5xFGpeqMlolsSP9vI2vGIsJi58JaiINpUjmAxC42Voo+InXzwjn0BHo8L/ow962rjKrp57GPTsRIIw8l7UONDNjsAjpKoJLomk8YQFcdAtnhFDnCjCHpaex9QseKqqZC8v2Z1/xip7P9h3OW94Wx7u+lsnLSZwdIE1Mbr/x6grvC3EO4wV0jPHaJ5V09TwWB8oCyk9WxUGxI0TibBgj0ODDQ=", "X-OriginatorOrg": "seco.com", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 33e534a6-948b-4b74-80d4-08d9fd56a294", "X-MS-Exchange-CrossTenant-AuthSource": "DB7PR03MB4523.eurprd03.prod.outlook.com", "X-MS-Exchange-CrossTenant-AuthAs": "Internal", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "03 Mar 2022 20:44:38.7541 (UTC)", "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted", "X-MS-Exchange-CrossTenant-Id": "bebe97c3-6438-442e-ade3-ff17aa50e733", "X-MS-Exchange-CrossTenant-MailboxType": "HOSTED", "X-MS-Exchange-CrossTenant-UserPrincipalName": "\n V8bPvaoNt5KjXqI6Agsg1FKU7DJIp6wv8rkWF9CscY/NxZUtO4ayZtiHKRkbjBu6FYUOclq0xuxYuoDFdNknxA==", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "AM6PR03MB3573", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.5 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "This adds support for booting entirely from JTAG while using a\nhard-coded RCW. With these steps, it is not necessary to program a\n\"good\" RCW using CodeWarrior. The method here can be performed with any\nJTAG adapter supported by OpenOCD, including the on-board CMSIS-DAP\n(albeit very slowly).\n\nThese steps require LS1046A support in OpenOCD, which is currently in\nthe process of being upstreamed [1].\n\n[1] https://review.openocd.org/c/openocd/+/6855\n\nSigned-off-by: Sean Anderson <sean.anderson@seco.com>\n---\n\n arch/arm/cpu/armv8/fsl-layerscape/spl.c | 2 +\n doc/board/nxp/ls1046ardb.rst | 71 +++++++++++++++++++++++++\n include/configs/ls1046ardb.h | 2 +\n 3 files changed, 75 insertions(+)", "diff": "diff --git a/arch/arm/cpu/armv8/fsl-layerscape/spl.c b/arch/arm/cpu/armv8/fsl-layerscape/spl.c\nindex 564cc27c8b..1a7dde30a5 100644\n--- a/arch/arm/cpu/armv8/fsl-layerscape/spl.c\n+++ b/arch/arm/cpu/armv8/fsl-layerscape/spl.c\n@@ -27,6 +27,8 @@ DECLARE_GLOBAL_DATA_PTR;\n \n u32 spl_boot_device(void)\n {\n+\tif (IS_ENABLED(CONFIG_SPL_SEMIHOSTING))\n+\t\treturn BOOT_DEVICE_SMH;\n #ifdef CONFIG_SPL_MMC\n \treturn BOOT_DEVICE_MMC1;\n #endif\ndiff --git a/doc/board/nxp/ls1046ardb.rst b/doc/board/nxp/ls1046ardb.rst\nindex c73516c070..ffb9d4550b 100644\n--- a/doc/board/nxp/ls1046ardb.rst\n+++ b/doc/board/nxp/ls1046ardb.rst\n@@ -109,3 +109,74 @@ SD boot and eMMC boot\n \n ``{ SW5[0:8], SW4[0] }`` should be ``0010_0000_0``. eMMC is selected only if\n there is no SD card in the slot.\n+\n+JTAG boot\n+^^^^^^^^^\n+\n+To recover a bricked board, or to perform initial programming, the ls1046\n+supports using two hard-coded Reset Configuration Words (RCWs). Unfortunately,\n+this configuration disables most functionality, including the uarts and ethernet.\n+However, the SD/MMC and flash controllers are still functional. To get around\n+the lack of a serial console, we will use ARM semihosting instead. When\n+enabled, OpenOCD will interpret certain instructions as calls to the host\n+operating system. This allows U-Boot to use the console, read/write files, or\n+run arbitrary commands (!).\n+\n+When configuring U-Boot, ensure that ``CONFIG_SEMIHOSTING``,\n+``CONFIG_SPL_SEMIHOSTING``, and ``CONFIG_SEMIHOSTING_SERIAL`` are enabled, and\n+``CONFIG_SYS_NS16550`` is disabled. ``{ SW5[0:8], SW4[0] }`` should be\n+``0100_1111_0``. Additionally, ``SW4[7]`` should be set to ``0``. Connect to\n+the \"console\" USB connector on the front of the enclosure.\n+\n+Create a new file called ``u-boot.tcl`` (or whatever you choose) with the\n+following contents::\n+\n+ # Load the configuration for the LS1046ARDB\n+ source [find board/nxp_rdb-ls1046a.cfg]\n+ # Initialize the scan chain\n+ init\n+ # Stop the processor\n+ halt\n+ # Enable semihosting\n+ arm semihosting enable\n+ # Load U-Boot SPL\n+ load_image spl/u-boot-spl 0 elf\n+ # Start executing SPL at the beginning of OCRAM\n+ resume 0x10000000\n+\n+Then, launch openocd like::\n+\n+ openocd -f u-boot.tcl\n+\n+You should see the U-boot SPL banner followed by the banner for U-Boot proper\n+in the output of openocd. The CMSIS-DAP adapter is slow, so this can take a\n+long time. If you don't see it, something has gone wrong. After a while, you\n+should see the prompt. You can load an image using semihosting by running::\n+\n+ => load hostfs $loadaddr <name of file>\n+\n+Note that openocd's terminal is \"cooked,\" so commands will only be sent to\n+U-Boot when you press enter, and all commands will be echoed twice.\n+Additionally, openocd will block when waiting for input, ignoring gdb, JTAG\n+events, and Ctrl-Cs. To make openocd process these events, just hit enter.\n+\n+Using an external JTAG adapter\n+\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n+\n+The CMSIS-DAP adapter can be rather slow. To speed up booting, use an external\n+JTAG adapter. The following examples assume you are using a J-Link, though any\n+adapter supported by OpenOCD will do. Ensure that ``SW4[7]`` is ``1``. Attach\n+your jtag adapter to J22. Modify ``u-boot.tcl`` and replace the first two lines\n+with the following::\n+\n+ # Load the J-Link configuration (or whatever your adapter is)\n+ source [find interface/jlink.cfg]\n+ # Use JTAG, since the J-Link also supports SWD\n+ transport select jtag\n+ # The reset pin resets the whole CPU\n+ reset_config srst_only\n+ # Load the LS1046A config\n+ source [find target/ls1046a.cfg]\n+\n+You can proceed as normal through the rest of the steps above. I got a speedup\n+of around 100x by using a J-Link.\ndiff --git a/include/configs/ls1046ardb.h b/include/configs/ls1046ardb.h\nindex 8ed1dceb23..ed549c33b6 100644\n--- a/include/configs/ls1046ardb.h\n+++ b/include/configs/ls1046ardb.h\n@@ -143,6 +143,8 @@\n #endif\n #endif\n \n+#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME \"u-boot.img\"\n+\n #include <asm/fsl_secure_boot.h>\n \n #endif /* __LS1046ARDB_H__ */\n", "prefixes": [ "17/17" ] }