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 14512C433F5 for ; Tue, 7 Dec 2021 22:22:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1B45B82A59; Tue, 7 Dec 2021 23:22:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="DLu5RoEB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 271D18291E; Tue, 7 Dec 2021 23:22:10 +0100 (CET) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1F7AB82849 for ; Tue, 7 Dec 2021 23:22:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ed1-x52a.google.com with SMTP id l25so1539243eda.11 for ; Tue, 07 Dec 2021 14:22:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=J9Ezet7/DRSD5RjbGWAmLmLZYDUQdrkJBFrFWlbOofQ=; b=DLu5RoEBsaj8y2RHtndzsOdwhldIL9yBOnEZ/Z19R3RzLmTDurmiQvwSLfPBN9TYZW uSDojhQ53FrmvsDy/5+jgxtvkXUh6MjPfMl1RfZJoeCZ5ucvYfS5juP0a5Y8Ek8tPHdW xRfEOlRwg9o34rbkP7zuvEdI473dg71nO/LKAEPvRb4BdD2QItHGvV4W5mzpKNV76OTJ pYVSkXv7+swjoHAN8RUrt7CfSz8iLxJ2p3JTbLcGMsXt8lkUPOv2NLTmRlP+1uF9NtfW 2E2uhSIaPhB5LVW8AEWnjhl+XSYNvfqz8ku/I7eD5e+H9omY1zK0WTdM9aPNoIpx2Tbq PsiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=J9Ezet7/DRSD5RjbGWAmLmLZYDUQdrkJBFrFWlbOofQ=; b=UIRV8PUpz7H5UK4q+0HHuXCyh7UkfIwAaG14Ry1L/VHjiBuj+IhFBWiwD+EcLDMhY5 PlPChxkPvhol5JYc+DXblOCZ49nm1IQ7ysmKhfJAO91EfJe1W3S+FVpM0Jxb/iRJ7fko nwYrEwn94d7be8f8jvg3MZrAUx+FQuj7eAWcWeHFpcnTEoRI82gI8rEl5ZVhiI0P3sbS F5SxBLwXZdwfOsY1USU8iy2Y2B6SgyWRPLsKtvphCxoatV6zUUDKeew4Q8vDa7JaBlld m3Ctp9e6qLs6NUVfgRaLVHxNzxB/X24xh6qPDR32yQzUsINbQBYvn1szXClQ4W8RSi10 6kBw== X-Gm-Message-State: AOAM533ll5aoAq6ZLgUyTW3lGOH6GnBV85Y90WAmuHKKlMJCBfLjePVv O4KgwIKtpaQD5rmn4zOArW68GxsEze2sXA== X-Google-Smtp-Source: ABdhPJwt53X0l7GPAZC07AodokoAzZdPhSHm6kSqknNfdYH4ns5qdymse6WVmmBYozbOvlKrgxDa3Q== X-Received: by 2002:a05:6402:1d48:: with SMTP id dz8mr13338846edb.100.1638915725761; Tue, 07 Dec 2021 14:22:05 -0800 (PST) Received: from [192.168.0.74] ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id e15sm648243edq.46.2021.12.07.14.22.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Dec 2021 14:22:05 -0800 (PST) Message-ID: <13c778d9-04ad-c5d4-c534-408e176c9a89@gmail.com> Date: Wed, 8 Dec 2021 01:21:59 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: [PATCH 0/4] rockchip: Improve support for Bob chromebook and add support for Kevin Content-Language: en-US To: Simon Glass , Peter Robinson Cc: u-boot@lists.denx.de, Tim Harvey , Jagan Teki , "Marty E . Plummer" , Heiko Schocher , Alexandre Vicenzi , Artem Lapkin , Christian Hewitt , Fabio Estevam , Philipp Tomsich , Andre Przywara , Neil Armstrong , Johan Jonker , Kever Yang , Priyanka Jain References: <20211125173941.3038-1-alpernebiyasak@gmail.com> From: Alper Nebi Yasak In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 03/12/2021 23:13, Simon Glass wrote: > On Fri, 3 Dec 2021 at 05:20, Peter Robinson wrote: >> On Fri, Dec 3, 2021 at 3:32 AM Simon Glass wrote: >>> On Wed, 1 Dec 2021 at 07:23, Peter Robinson wrote: >>>> On Thu, Nov 25, 2021 at 5:39 PM Alper Nebi Yasak >>>> wrote: >>>>> >>>>> I have recently started testing booting U-Boot from SPI on my gru-kevin >>>>> (as opposed to chainloading it from vendor coreboot + depthcharge) and >>>>> [...] >>>> >>>> Is there docs updates to be done in doc/chromium/ for this so people >>>> know how to use it ? I tried to document how I'm using this at my GitHub wiki [1]. I want to eventually rework that for U-Boot docs, but I feel I need to explore chromium things a bit more, and want to solve the major problems with these boards before doing that exploration. [1] https://github.com/alpernebbi/u-boot/wiki >>> This is for bare-metal use though, so it isn't anything to do with >>> Chromium at present. >> >> So are there docs for how do this? I didn't manage to find any, >> although the docs I find can be a little over the place in U-Boot so >> they may be there and I missed them, so either way docs would be fab. > > There are SPI instructions at doc/board/rockchip but they are pretty > 'one way'. So you would need a way to get your old SPI-flash contents > back when it doesn't work, because I don't think these platforms > support SD boot. I use a 'servo' board and a Dediprog em100 SPI > emulator. I know that kevin does not support CCD (Close-Case > Debugging) so you cannot program the SPI flash that way... The doc/board/rockchip instructions are slightly outdated in that they don't mention u-boot.rom, it's enough just to flash that whichever way possible. There's also the additional prerequisite of disabling write-protection, which I tried to explain a bit in that wiki as well. I can usually flash things from U-Boot/Linux, but when I flash a bad build I do have to use my CH341A + 1.8V adapter to recover from it. I don't know if booting from an SD card is outright impossible on these boards, but current config doesn't even have the devices enabled in SPL, and I couldn't get it to work with my naive blind attempts.