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 41C5FC433FE for ; Mon, 13 Dec 2021 21:55:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B373F82C6D; Mon, 13 Dec 2021 22:55:50 +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="UcIe1NIq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 461C882A59; Mon, 13 Dec 2021 22:55:49 +0100 (CET) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (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 D4E2682C6D for ; Mon, 13 Dec 2021 22:55:44 +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-x536.google.com with SMTP id o20so57139483eds.10 for ; Mon, 13 Dec 2021 13:55:44 -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=H+A9eYjiA7RxIphFJalTrgLDObF8c8uqTdYpPxjhvCs=; b=UcIe1NIqY/HWgGMbQPTFbA+G6KdApihKLncUJqSksTWvYLOMULN9Ye4NwEmY9Fg+fD ebHpMOlDT+7PDt7VnOJ5tw/C+y6bjNxmz9dqMxgHuqohyznh0cxzB6NyWWe58tEL1AA8 U47lWGDpwfmHcaJSA+uzwiuhMcKTRZI/0TpGUHmgGPvpU77HAU1BUuNAMdQVSjCj3QfB BF512WUuhf71vVLIPWopdhlpVWVoMA2Aw7XPnHt64aMn2SNjK3TbAEo3eovMxIaSRJ0n 6zI8Oo5cAIpyYKEiGbTl7zBWouyRPDuF7rqzf5GTvnMHXiwtORjQAQxVd2Pl2HqnNXNZ Egjw== 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=H+A9eYjiA7RxIphFJalTrgLDObF8c8uqTdYpPxjhvCs=; b=XBPuJAgFFPvg9eIBA2MsVkZsgBK4LtdvGpIAcUtgqfuoAyvjFTwH6n41fp84gavAoN j95z5dkUBOp8hZ/4mxyHByhsImvQCu7IUBCkjh5RWyhjHAZqyzkrTdJWm682+1qADGrv WNXSvSCaGyzVDCfjuOMPlYSdDIn6bxFN0ysCUvNmyIszdqqlFYwiPls/Kz7dlG0lh8AC ZTKHto9vix8WLYa4rb3u/Di7wuEteyeW20zTxq+PR9kZSRGkaDQTlrIvLP3E0d52v0J7 cdsTkTvc2ZwBOqFO0vdq9Ej9Vc0BlguNSK7fy1wyHwxSquQIU2QsY+R0E0ojJOaTGgos keQw== X-Gm-Message-State: AOAM53396roxVTMjcHfsgMRkV0Y6IvipyHp/LPDNaUZbeTTbcUywT1+C 24I3N1uT/Eff/Zn3Ig1c4F4= X-Google-Smtp-Source: ABdhPJxvHHASovghF1NGGFTDpij8mAMaXYiMQ84PefQsIPWSqaSTNOE3UtGkLc0w594b1SrkvhPAIw== X-Received: by 2002:a05:6402:d05:: with SMTP id eb5mr1987984edb.345.1639432544252; Mon, 13 Dec 2021 13:55:44 -0800 (PST) Received: from [192.168.0.74] ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id qa31sm6061295ejc.33.2021.12.13.13.55.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Dec 2021 13:55:43 -0800 (PST) Message-ID: <5398a862-27c5-e158-503a-8ba4fa95be23@gmail.com> Date: Tue, 14 Dec 2021 00:55:34 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH 0/4] rockchip: Improve support for Bob chromebook and add support for Kevin Content-Language: en-US To: Peter Robinson , Simon Glass 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 08/12/2021 12:31, Peter Robinson wrote: > I thought there was a different process for the chtomebooks than the > usual rockchip route. Do the rockchip chomebooks support writing to a > space in SPI and chainloading like some of the other arm chtomebooks > did (I think tegra/samsung but my memory fades there)? I think it > would be useful to document the rockchip chromebook options somewhere > so that people that are interested in using the U-Boot option have > some resources, we've had a few queries over the time around that. What I usually do is exactly that, chainloading from an SPI region called RW_LEGACY. This is the predecessor of the 'altfw' feature mentioned in doc/chromium/overview.rst, there's a link there that leads to some information about this as well. In short it goes like this: - Build U-Boot with CONFIG_OF_EMBED=y (or do some objcopy/elfedit magic to merge dtb into u-boot ELF) - cbfstool "u-boot.cbfs" create -s "$((2 * 1024 * 1024))" -m arm64 - cbfstool "u-boot.cbfs" add-payload -f "u-boot" -n payload -c lzma - dd if="u-boot.cbfs" of="u-boot.cbfs.rom" bs=2M seek=3 count=1 - sudo flashrom -p linux_mtd --fmap -i RW_LEGACY -w "u-boot.cbfs.rom" - Reboot and press CTRL+L on Chrome OS developer mode screen There's also the doc/chromium/chainload.rst process which packs U-Boot as if it's the Chrome OS kernel on a disk. I couldn't manage to boot U-Boot that way, but I somewhat automated that process with binman. I think I can automate the RW_LEGACY image as well but haven't tried it. I could document what I know as is, but wanted to do it after I get those files automated during upstream build, as things should be quite simple after that.