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 F38C3C433EF for ; Sat, 1 Jan 2022 23:12:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4F1D1811B2; Sun, 2 Jan 2022 00:12:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="HAar6nJS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BB46280335; Sun, 2 Jan 2022 00:12:36 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (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 6C518811B2 for ; Sun, 2 Jan 2022 00:12:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B05C560AE5; Sat, 1 Jan 2022 23:12:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D65A6C36AEA; Sat, 1 Jan 2022 23:12:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1641078751; bh=Q25Wcel5jFfw0P2hlP2RkEDhYYerxejykgRVWQDSpOU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HAar6nJSkSxYder3moqaE9gRKweKd2P3o0WMX2yVMg5dmwRvYfqPkiuUKu78x3aD+ kKja9e0rgqFYxghknZscBRv9EJ8pPAavP2b6UYkOpU/Im0MWIrqHWoBgMfRE9ZRfaG 89kfgK/KSXcBt/BqXgPDodzWT2xGxzWffIRE/9/WACHeh1hIMBrccFT2EWv2e1hnpM z1Hfcbgg74bLV8MXRjvtAjnOlYGGHoJHdnoAI9oOWBL69LZ1CcgkVllpuiJqRddZfc RYC/gloFErrOyrdNm0tcaE9Pd38je6io940QR/M1y+RG1ufGSYCBZyrHS8/VRl2u7i bJD5GPtSRGRAQ== Received: by pali.im (Postfix) id BF94D881; Sun, 2 Jan 2022 00:12:27 +0100 (CET) Date: Sun, 2 Jan 2022 00:12:27 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Tony Dinh Cc: Marek =?utf-8?B?QmVow7pu?= , U-Boot Mailing List , Stefan Roese , Tom Rini Subject: Re: kwboot: Marvell Dove UART booting Message-ID: <20220101231227.ugl7cjrdjen2m6pj@pali> References: <20220101215321.ryncu7girojzoeya@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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 On Saturday 01 January 2022 14:54:34 Tony Dinh wrote: > Hi Pali, > > On Sat, Jan 1, 2022 at 1:53 PM Pali Rohár wrote: > > > > On Sunday 26 December 2021 13:41:03 Tony Dinh wrote: > > > Follow up on the UART booting session before. > > > > > > Thanks for the advice about the Reset Strapping documentation. I've > > > extracted the attachment 88AP510_Reset_Strapping.xls from the HW Spec > > > for Dove at: > > > https://www.kernel.org/doc/html/latest/arm/marvell.html > > > > > > Listed below are the Boot Modes that are relevant to this subject > > > (there are other Boot Modes for SATA, NAND but we are not interested > > > in those): > > > > > > 0x00 Direct boot from SPI > > > 0x01 Boot from SPI with 3 address cycles > > > 0x02 Boot from SPI with 4 address cycles > > > 0x0E Boot from UART0 using Xmodem > > > 0x0F Boot from UART1 using Xmodem > > > 0x10 Open BootROM debug prompt on UART0 > > > 0x11 Open BootROM debug prompt on UART1 > > > > > > So it does look like the jumper on this HP T5335z is actually to put > > > the box into BootROM debug mode using 0x10. And from there, we can use > > > 0x0E to put the BootROM into UART0 booting mode. > > > > > > Oddly, I've also tried booting from SPI while at the BootROM debug > > > prompt, but have not been successful with either 0x00, 0x01, or 0x02. > > > I was hoping that it would make testing easier if I could run "Boot > > > from SPI" to boot into Linux without having to remove the jumper. > > > > And which hex mode is activated when jumper is not set to that Debug > > prompt UART mode? You should be able to check current mode by reading > > 0xD00D0214 address which should contain latched sample at reset value. > > E.g. in U-Boot by 'md 0xD00D0214 1' command. > > Without the jumper inserted, it was set to 0x00. > > HP>> md 0xD00D0214 1 > d00d0214: 00000000 .... Sample at reset register should not be zero. So it is located at different address. You could try to look into the functional specification... Maybe internal registers are at space 0xf1000000? Then register is 0xf10d0214