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 E54B9C433F5 for ; Fri, 26 Nov 2021 14:19:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D537F82054; Fri, 26 Nov 2021 15:19:05 +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="c7zzGczR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D8E3182849; Fri, 26 Nov 2021 15:19:03 +0100 (CET) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (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 7520980EFB for ; Fri, 26 Nov 2021 15:19:00 +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=mr.nuke.me@gmail.com Received: by mail-oi1-x22c.google.com with SMTP id t23so19128145oiw.3 for ; Fri, 26 Nov 2021 06:19:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=rzijoziRmqZKZcsFv4RJmWTyyxrVlkh3sXfHtEmQA4M=; b=c7zzGczRuWuzbamY2D6NjdA+KfFpLJDoGPT2FPP7TIt19zPlEIbq3P6BRrIdsPNRJI DtwwJpeopCgKXL9udhrsI7rxKicvK+K1ifcNnNf9I4pXBmmssRtev/2IGD5i63JPkY7s w/BNK32PKyXdC/9EmROhpNS74j87VGs6/LLA9IgvHKkfSXN8pf1/OuRJT8mZJZx5r2T6 V0dh/1qAEr/SHXiuAtbFl/ABu5OV4eDUjb+rxcYdXzUiGF5ai0jLQ/EBP/RGfSyRBACt 1vhb1K/Xc6Yv6mRtUAoLbsFbjZiQej9Us4fvPp1YcJsD2VWcce1CZfPKoo2KQu/YaHCP /Vyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rzijoziRmqZKZcsFv4RJmWTyyxrVlkh3sXfHtEmQA4M=; b=iSFV2+EQB88t6f+IOVoOQXr2DKVKQkxAnFN31OzdO6pDlGRjRTTmwOQajmXc/fguk3 UnIlSd+sQi5qoBNg6itR+pdH6DLLXtuhyQyUB/fyTK32WxSjSqISm9yHTe7EduCiTHMt j0ligRIR2bH8fdUNaSz5JixFMPaGLSBro6VBJGRoLcVu1pHvjsmWLnskGcQA9y8H7OKU N7aHRkAjHmxugQrpJOgDrqoZSAWA15mqD30bPeYj1Zrjw4P2E3BOF69zOL0BCCgheMgK Mk4jJnX5J7BlmBosQEgEvHpYthlOQ9aESstYGiZ6Q3HIug5PPIavtjWGnC7mxDx2owO9 F2rw== X-Gm-Message-State: AOAM531/oDOcXNAtGZBOusdT9uSpeyY4spungsNyD9+Ru+qwfDrz4KUZ XvuEigqIWxiumqC2k94DGSqL/zC2Apo= X-Google-Smtp-Source: ABdhPJzU2VdFMUTF0/BFNLD6cJawSaqvlFvqsc0R2zPsmOGkP1GG5Vcey19Bfc3sUubA/0nfMn0fGw== X-Received: by 2002:a54:4d89:: with SMTP id y9mr23034516oix.127.1637936338477; Fri, 26 Nov 2021 06:18:58 -0800 (PST) Received: from nuclearis3.gtech (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id w29sm1063838ooe.25.2021.11.26.06.18.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Nov 2021 06:18:57 -0800 (PST) Subject: Re: a question about falcon mode To: Chan Kim , 'U-Boot Mailing List' References: <027001d7e1cb$14bc3b90$3e34b2b0$@etri.re.kr> <27ce6d77-2a3e-a9e2-cce2-00f76d7af57e@gmail.com> <02c901d7e29a$b8e89450$2ab9bcf0$@etri.re.kr> From: "Alex G." Message-ID: <64c2371c-983f-374f-ed53-4a1dacb192d3@gmail.com> Date: Fri, 26 Nov 2021 08:18:56 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <02c901d7e29a$b8e89450$2ab9bcf0$@etri.re.kr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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 11/26/21 1:53 AM, Chan Kim wrote: > Hi Alex, > Thanks for the reply. > So I gather that to be able to use 'spl export fdt' to store the 'snapshot' to the storage I should make the spl program runnable at least to that stage. (being able to load kernel image, dtb, initrd and give the spl export command to capture it to storage like SD card). > What I'm thinking of is to let another processor(cortext-M7 based scp, system control processor) load the u-boot-spl.bin into on-chip RAM and kernel(including initramfs)and dtb into SDRAM all from SD card (RAW mode, no file system) and let the AP(application processor) start from u-boot-spl.bin. In this scheme u-boot-spl doesn't need to load anything and DRAM is already initialized and it just needs to run from kernel image after very minimal setup (passing kernel arguments). Do you think this is possible or an absurd idea? > Any comment will be a big help for me. I'm not sure if that mode is currently supported. You could try using CONFIG_SPL_RAM_SUPPORT=y, and one of two things: a) Package your kernel and DTB in a FIT. b) Extend common/spl/spl_ram.c to support the 'snapshot' dtb Alex > Thanks! > Chan > >> -----Original Message----- >> From: Alex G. >> Sent: Thursday, November 25, 2021 11:57 PM >> To: Chan Kim ; U-Boot Mailing List >> Subject: Re: a question about falcon mode >> >> On 11/25/21 1:07 AM, Chan Kim wrote: >>> Hello all, >>> >>> I'm trying to implement falcon mode for our board. Then should I first >>> implement the normal mode(spl + proper)? >>> >>> It looks like so while I'm reading doc/README.falcon. (It says, after >>> loading kernel, DT etc. I should give 'spl export' command). >>> >> >> Falcon mode is a bit board dependent. There are a couple of ways you >> could go about this. >> >> The first is to have an "fdtargs" partition. This is where "spl export" >> comes in. Once you run "spl export", it will give a modified dtb at >> "$fdtargsaddr". It's that DTB that you need to write to your ftdargs >> partition. For example: >> >> > spl export fdt $loadaddr - $fdt_addr_r >> > mmc write $fdtargsaddr 0x9800 0x8000 >> >> In this example the ftdargs partition starts at sector 0x9800, and is >> 0x800 sectors long. >> >> >> The second option is to forget about "spl export" and "fdtargs", and >> package your kernel, devicetree, and overlays in a FIT container. You'd >> make sure to enable SPL_LOAD_FIT_APPLY_OVERLAY. There isn't much more to >> this other than the usual gotcha's with FIT and overlays. >> >> Alex >> >> > > > >