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 52086C433F5 for ; Thu, 25 Nov 2021 14:57:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8F71C83448; Thu, 25 Nov 2021 15:57:16 +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="bKhHmDrC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 42E3B83448; Thu, 25 Nov 2021 15:57:14 +0100 (CET) Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) (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 EEF3180303 for ; Thu, 25 Nov 2021 15:57:10 +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-x231.google.com with SMTP id be32so13002813oib.11 for ; Thu, 25 Nov 2021 06:57:10 -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=96CB3Vy0/Yb600rUCLnteLsDDzwOy2K6chXKYD19qkk=; b=bKhHmDrCjuG5veCxEo3B6iTXJNYPugbuhZk42VlZYbX11/gsOz9+sx5caNmXossH8R j2wwWGuvnsbEcwess0rRME/2hks25k2AVS+WUFjlzgph9vkZu5zPNYbz9D9Pq1bsshsk eUMcSXdpB8JJ88sNLZz/GyyhZNpSOJfy4T1gHJe7w2vVqzcrBXxOknX7x2lR6CLjS3b5 vCSCwM0ddB+IpOojXeCg5xlWKxVgSlIRcnticElIQ8F9a2O3MiBqgX9LOXYrN0EqeAz0 kcFYFDEmquK5bndxXdsENbyIMioTUWCOdAOwY9F+Fz031jVyfEbUvSRbdEckwmO1mle0 KBsQ== 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=96CB3Vy0/Yb600rUCLnteLsDDzwOy2K6chXKYD19qkk=; b=JvEN0hCMAFotzCpQ+pnkaduWRHvfp/fIcqnewTZ9CLNV1w9QiOSjIGw4YsQKLTKyH5 P7Q0F4iqCyJvzli8/mX0dFPvp/kfeRItyXdkFnNhCXWTVPwqmQpzW8eE0HfrIToIyREn pdAnB9ZbMiCYzEQIWcighi6IUb/f41gAzNn+fb03gkOI4lG5GcQGbWnvEUH5OBi2mR0w HJEIe4AkyWWV07t2hcF0vZ1LiEHcTfmrwGEjF5UCQPd5PV96H1TQH9n00R6f+LDFBePV FKe852wXdWXyViHkqFgYa7Re7HKazSX6jVX3lXoboClJcBJkg/ePxGaw6it3L6UXhl2P SQxA== X-Gm-Message-State: AOAM530uPqpyItj8eNbXPB4EFYGn4InPM36Pc/9pfF3HT6CA2hlvB2Wa KWVHUsT/jwb8xtVBdSLF1LLekQauAkQ= X-Google-Smtp-Source: ABdhPJzwKpnpWLEFCoeaJWf1U/92pT5L4utuw4FZhHvsQVx/H5vo/PlFtjpu1SJgMGyhjNh7ycFWeQ== X-Received: by 2002:a05:6808:1396:: with SMTP id c22mr16583009oiw.59.1637852228964; Thu, 25 Nov 2021 06:57:08 -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 m23sm551663otj.39.2021.11.25.06.57.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Nov 2021 06:57:08 -0800 (PST) Subject: Re: a question about falcon mode To: Chan Kim , U-Boot Mailing List References: <027001d7e1cb$14bc3b90$3e34b2b0$@etri.re.kr> From: "Alex G." Message-ID: <27ce6d77-2a3e-a9e2-cce2-00f76d7af57e@gmail.com> Date: Thu, 25 Nov 2021 08:57:07 -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: <027001d7e1cb$14bc3b90$3e34b2b0$@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/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