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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8506FC433F5 for ; Fri, 22 Oct 2021 07:38:10 +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 D29D7610CF for ; Fri, 22 Oct 2021 07:38:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D29D7610CF Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=prevas.dk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 71D4F8320D; Fri, 22 Oct 2021 09:38:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk 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=prevas.dk header.i=@prevas.dk header.b="JMeQzsRV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 46D3B834D6; Fri, 22 Oct 2021 09:38:04 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0715.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::715]) (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 A61158320D for ; Fri, 22 Oct 2021 09:37:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rasmus.villemoes@prevas.dk ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UuPVLjvbctk0gMgPttOLrrA4BVE//oBaQHPQ+XfQB1I/WRXYa1ttc6fa1/SpkfdWQTAqLkbMnLhYOHs+dB16Y3Vg3dMzfdk3LBSk0kZpewTdLj/spatt/4qC/xFp8o+h0KDquyFtZE8ZhrTBQewGKVXEAE8iL+MQtBUdpE9cmp2gxbMjB7f/pQDVaKBvYIUpMKmRyW6jeZI7STEiu91PWlaGq54couKMQTKMnvJvJjlLwyZkQt81S4OtUjCxxilnm1fakitXa+FPwvzxVu/bM4u2FY80FdZlLuU+DKqb//wSX2k7jFXT+L4MCnw0FBHXfzlcVedk46UtQ5ErbJaoZA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kg6agkoqpGG7SLYy0gjVQsosz8yr11+xRDW6MpZllxc=; b=j1F7Qg4g3R6xupJtOne17Lx6lGyO4y2+DyP3xCXo8MhbydQlJ8ZjD6rqX6RwtDvHNmfR0pH+vLyAkJC7uVOhK067q31BoYdEY2L3YwQ2BQu3PTooufG4Puu/cjiNNdUANebYXtAqVHprMU268IOjqVm2sdCdvXhLq5Wm8o0LDqbo63rr/55siRBid0/fqnOm2c6uv1YWWpkBX2mJ8IepCAbQ1ukSXcd0Wt2TwDHQWBOHJaRopIWYeoO1T/tmDY7val+02DEKXLRwqqE6i1jQhKL/qzjmTWHSEgmg8+5YleccedfzoFhXI6iQWqOFv+Pu6R2NyvwewP44/ip9X7RSQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kg6agkoqpGG7SLYy0gjVQsosz8yr11+xRDW6MpZllxc=; b=JMeQzsRVfTvCwpJT6of1dUoVK2zZE5F64+Qeb3KPB6H+Krkl37uHluRlUfdfe7e3mysaIQ+FCVmZoy8US9jV9tGZKGMXxrIoz/UKoJcjoSkOa3mL3QWMgnSEX46mvmgcw8ObuVw69/KnwB23XA7V87hYDnY3JM+YKS8f5W22sqA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=prevas.dk; Received: from HE1PR1001MB1355.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:3:f5::16) by HE1PR1001MB1004.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:3:6f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Fri, 22 Oct 2021 07:37:57 +0000 Received: from HE1PR1001MB1355.EURPRD10.PROD.OUTLOOK.COM ([fe80::1574:9b9b:be30:c18d]) by HE1PR1001MB1355.EURPRD10.PROD.OUTLOOK.COM ([fe80::1574:9b9b:be30:c18d%12]) with mapi id 15.20.4608.018; Fri, 22 Oct 2021 07:37:56 +0000 To: u-boot Cc: Ye Li , Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" , =?UTF-8?Q?Kurt_=c3=98stergaard_Frandsen?= From: Rasmus Villemoes Subject: serial download on imx8mp Message-ID: <0996154d-774c-607f-8b5c-9cc0d268ecaa@prevas.dk> Date: Fri, 22 Oct 2021 09:37:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM4PR07CA0031.eurprd07.prod.outlook.com (2603:10a6:205:1::44) To HE1PR1001MB1355.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:3:f5::16) MIME-Version: 1.0 Received: from [192.168.1.149] (80.208.69.72) by AM4PR07CA0031.eurprd07.prod.outlook.com (2603:10a6:205:1::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.11 via Frontend Transport; Fri, 22 Oct 2021 07:37:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 52659d3d-34ab-4dd8-fe68-08d9952edd6e X-MS-TrafficTypeDiagnostic: HE1PR1001MB1004: X-LD-Processed: d350cf71-778d-4780-88f5-071a4cb1ed61,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Jc95gBke+lWpccP00LgC73gHJVzLAKi6LNOsFXHdFrW0K7us/9fdfFin44zYaqUGGfxvCqEMISiu8V2hNWicoz1cc0CqUwGqhLX7p+cY3VB4v+PyvgxsfWctbJfzkGRXcwJynb4E6KwyZfvzndi1GIAUfwhgEj4QAJJV5yezoLLuiC4q7aK2YOpgQHXusZeygmU2e7x+FzN7ZfbrRN7ZB8AHMTy2K6Ug6pxS9WvzXSUBo9KIvdYLO5AbLom3u33ES2z+KXLr0Mzt/DZV4R9Cs/zuGYsFW5cOxqEvddjhcivmYy/eLMTrXkdFpzUd9G/PpTH2SCgvM2wv1sw2V4NvZjO2ft7qS9PGZCdwDw/wVRpqm2SQ3bKYfNja2ZJalmiEPC3n7y+HqppBIC3g0h3lex7Rkx3opAgMxBPlZohv+5dtQau4mN8h1MbcdwWthGLe81noT+YtUTshMMNtTa7p1Nu1bMlUyNKVjWkEyroLShwvmXG3hkayk1rpbT0F+4sKCljbQd8rvMEjHddxRlOunKExKIhqnPcqO/1T1c8K/yvvYtBFk4iCqAWFIlJ6RNKllLBqY6Nlz8a4N/f77rRyMeSYbelPi7IJYmWg+SijrUZs6N5NHRf4yx/PMnDhlAWnYYRPBYD75FN2U5YRLqVcuYZf5HGgQzWzoocG6bsH+xiZDZnfTj4FakNwSsMgAB1YZKbJXj5e2vzWv0AQHl79LX3YKLI5UVMro0E+ZFgEpEZjQDcaMgdQ/5Q/CqBKZRR2R4VBOs9bjZjBTkbXzMX2UrRmohfiOenPefb5j7MNMec= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR1001MB1355.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(366004)(6486002)(5660300002)(16576012)(31686004)(66476007)(66556008)(54906003)(66946007)(2906002)(52116002)(4326008)(186003)(83380400001)(316002)(8936002)(38350700002)(38100700002)(31696002)(86362001)(36756003)(508600001)(8976002)(44832011)(26005)(6916009)(8676002)(2616005)(956004)(32563001)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?Windows-1252?Q?hceLG9cUWFh2apWBKD9v3iRBjPZnOqghZqzTq4py/7TgWq6d2nPNAkqB?= =?Windows-1252?Q?GsQakLv92JPeLo0zSvZbf/q9BgX/eigAWoQL+znhk3umOGMlV8oPCTGZ?= =?Windows-1252?Q?o/xZQySqQtYIIPKCcOQnjCDbGBxfyls1dTjl+BM+fXaIp4P1TtFG+aUw?= =?Windows-1252?Q?k9kR2KL9XhdTdVQpLHFHYKQbCBmtwHpUIDLdBz2lEinFFQVPNxo9SPtv?= =?Windows-1252?Q?xTMlDtP5Gt2DsEodXXGOh6OrlCbf1Fyb9AmZZJwLHF4O1jcwkZVS2g7L?= =?Windows-1252?Q?FpZxAVIeqduqlVZk5/R7TlyUSdM4V6HrYzNZllawPThsxr0/EDL9Jr93?= =?Windows-1252?Q?Oy5SE+LTjWVFKDf7i95XXxXxiC3wBIve/LI/aKbBdPdSAsYj0nvJY0q2?= =?Windows-1252?Q?9rYsD0/u2c8vX+dCTcmJx1BvuTqNKFXgVXCPY/e19LKpeEAnm3GoryE4?= =?Windows-1252?Q?Fuod8lq0l5zUC4DH3e8PbdcXDzGhQtNwS2Ycy3D0poiwO9WoKWwcItAq?= =?Windows-1252?Q?lmsiT0T4CCHnxMJ7h97yXUxqRgGTFTBzxCanrl1Oxjs1DJfMTYZkMumz?= =?Windows-1252?Q?W1bAvsYP1k0meh33M05LAAXZNs7jFgTvBjldf5AXN70E5PQLhgxwxNnf?= =?Windows-1252?Q?puBzTwbU2yerfTJ79f0yPabfSNGy9LrSwDUdq7o25Qgn4H92IuAo29Yp?= =?Windows-1252?Q?ui81XhbdKluv56Oxa/sHyUWJsA5SUez0juWK5sbycJtgMA/wulo7HhZT?= =?Windows-1252?Q?QusMI0gnghS7ZDvBbnvHyo0/+frvcmppLjKxieD9E8/ySlNdsXyowMgy?= =?Windows-1252?Q?+cwjCjkk2XGD7Vnk4XlTv0SVaUZmf/I1aLH3vFZBSjBf2YMDEnolLq8X?= =?Windows-1252?Q?+WVBRbYT8OxQJ7OBBsJyqFFlOmZ5v4rs+vfpKZ01m4v1wtuqr8VL7wVv?= =?Windows-1252?Q?WsuFnPfNPLjrpP3XHvsRjuq+LdT0kDqZiOJ9SoNmJzDwPfmNXyzok94a?= =?Windows-1252?Q?mI640rt+IIE2BwnRLayvyNGpTeROt0mJdiPTfdFZHkozZXYfdiEQ4a8M?= =?Windows-1252?Q?uWoYzo2FX04/m1rva1v5rg7An7jib1S8EfqSC2xLh10vbbEwUYSTlq7L?= =?Windows-1252?Q?Ux6B2P/8QXzgfQL4ggb3g256zF2oeEDFVcmLYlMjARCEHpk7QorluS2r?= =?Windows-1252?Q?QW5eZ2KY2eV1M44fJnYUu582QLwQcXDZHFS4gN7AN/I0TNG3Kj2DWK9Q?= =?Windows-1252?Q?aZ0+6NAqbPrkWNuxe357BgJrmhvhCDfBqaFqcAACACFZ9eBANDZlS2FP?= =?Windows-1252?Q?Ofji70H3MORah3Kjir62QaQWst3j7Mla+b/V1R2dBfyhyF5yZeToVZoh?= =?Windows-1252?Q?+cqi3/ADUjChxtqfYYJrRsK3xkfazx7KoTpYTBC79Dieg2OfOib5FgBb?= =?Windows-1252?Q?A/jzphRJFtUTubBZUAWuydYIcaTYBvEmUc/luSjaMtq8MrfAMTk9SLrL?= =?Windows-1252?Q?LRgWY/TzdHaHC1ENQvAwn2la8YuG62xAYUiNqQ8nfZzB18c1qqNKXdDG?= =?Windows-1252?Q?aODadOcmPsvXgOV5?= X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: 52659d3d-34ab-4dd8-fe68-08d9952edd6e X-MS-Exchange-CrossTenant-AuthSource: HE1PR1001MB1355.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2021 07:37:56.7398 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Rasmus.Villemoes@prevas.dk X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR1001MB1004 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.103.2 at phobos.denx.de X-Virus-Status: Clean Hi I'm having trouble getting serial download to work on an imx8mp evk. I'm building on top of v2021.10. The SPL + U-Boot proper that I build work fine when I write them to an SD card and boot from that, also boot from eMMC with the same binaries works fine. I can also succesfully get the SPL to load and run via USB, and I can _partially_ load the u-boot.itb; in the sense that I can see that bl31.bin runs: I get the lines NOTICE: BL31: v2.4(release):lf-5.10.52-2.1.0-rc1-39-gbb4957067 NOTICE: BL31: Built : 04:45:39, Sep 8 2021 on the serial console (same as when happens when booting via sd or emmc), but then the board just hangs. Now, extracting the u-boot.itb from the imx-boot-imx8mpevk-sd.bin-flash_evk file I found inside LF_v5.10.52-2.1.0_images_IMX8MPEVK.zip, I can actually get _that_ u-boot.itb to run on top of the SPL that I built, so I think my SPL is alright (after all, it does manages to hand control over to BL31). That u-boot.itb is U-Boot 2021.04-lf_v2021.04+g1c0116f3da Vanilla v2021.04 shows the same symptoms of being unable to boot via serial download. So I did a bisect between v2021.04 and 1c0116f3da. That bisect lands at commit 3a053a1bd6bc03eaffe82648a318b065d70d1bd0 (refs/bisect/boots) Author: Ye Li Date: Tue Apr 21 20:14:29 2020 -0700 MLK-23574-39 imx8mp_evk: Update iMX8MP EVK board codes so I suppose _something_ in that commit fixed it, but unfortunately board/freescale/imx8mp_evk/imx8mp_evk.c | 332 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- board/freescale/imx8mp_evk/spl.c | 79 ++++++++++++------------- configs/imx8mp_evk_defconfig | 66 +++++++++++++++++++-- include/configs/imx8mp_evk.h | 156 ++++++++++++++++++++++++++++++++++++++++++------- 4 files changed, 561 insertions(+), 72 deletions(-) means I have no idea what part of it is missing in mainline, or if there are more bits and pieces scattered around that are prerequisites for getting it to work. But it's really odd, because once the entire image has been downloaded, the components of the FIT have been loaded to the proper addresses and control handed over to BL31, I don't see how U-Boot proper (the very same binary that's used when booting from sd or emmc) can fail, and U-Boot shouldn't really need to know or care about where it was loaded from. Rasmus