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 X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3AA4C12002 for ; Wed, 14 Jul 2021 20:56:26 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 314AE613D1 for ; Wed, 14 Jul 2021 20:56:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 314AE613D1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 61FF4831F4; Wed, 14 Jul 2021 22:54:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="eKbDy5IH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A487382BBC; Wed, 14 Jul 2021 22:53:24 +0200 (CEST) Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) (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 D1AAD82A13 for ; Wed, 14 Jul 2021 22:53:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x830.google.com with SMTP id w26so2875601qto.9 for ; Wed, 14 Jul 2021 13:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=C2OG+VU1ytICs9xpEkFvdyin3w6bZCMzbQeyVc/nZpI=; b=eKbDy5IHy9eDS8sbiF2U2E/sCM8uFoolHBS6koBU4JmtS78ZmKOTSLHmUEoPDipVai Bxl0w4fk3WiuwjZdZKlZeTnrkb6zSzwYfn/k1bQlVqpEemyKlFAxu9ZvkSHaVwLZMwFU GohAzvtzLCK7TswleX6CWVbdl/HdRARtZqKek= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=C2OG+VU1ytICs9xpEkFvdyin3w6bZCMzbQeyVc/nZpI=; b=NMEMYrBGnGKIniOe09Ksv4eft2MMrtNjOU7A9SXAI98ya1vG9yvqpNANp1Cb2O8fb4 TBiuKeC7aeNIBoBuvxq381Ok/7Ns+AFFKX50gZIC0DQ6asTLMx+1sM5aVDLf3bfYIyO5 zsUqA1BPC5OuSGQW08UwH2Hg8T7sYWQ01Lo7KyU3rsePnIfmGYln5zli+IgZ2N8MFZVN woxNPqXW9vPz3PH3eEHVtPuPrx3Q9OuyJAUziDqXAAEfM0+cts1J1sXA8ja/ft6VTPax ajl9w9MCW0yroGjw9rrDGgJHPwjU3P0mIzo+svP8rLkLKT2RuEUE9NlUpBsCrmK5/NK1 j5iQ== X-Gm-Message-State: AOAM532pMigZepGqpARRO5lkZNIhxs/LTeVwvhN946JGbpiPvrZF5+fL Wf+Ck/1nbV+SPuakvA6Z341nCA== X-Google-Smtp-Source: ABdhPJyUdtyhPWByvZdEya4Yei748UFeiHaNq88VLbqg7N+beocALdVvYJ/clOKCoEX3u0v5feTA4A== X-Received: by 2002:ac8:ece:: with SMTP id w14mr11080954qti.5.1626295997702; Wed, 14 Jul 2021 13:53:17 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-715c-901d-db03-e6e4.res6.spectrum.com. [2603:6081:7b01:cbda:715c:901d:db03:e6e4]) by smtp.gmail.com with ESMTPSA id o186sm1614000qke.44.2021.07.14.13.53.16 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Jul 2021 13:53:17 -0700 (PDT) Date: Wed, 14 Jul 2021 16:53:15 -0400 From: Tom Rini To: Stephan Gerhold Cc: u-boot@lists.denx.de, Linus Walleij Subject: Re: [PATCH 2/2] board: stemmy: Copy atags for booting downstream/vendor kernel Message-ID: <20210714205315.GF9516@bill-the-cat> References: <20210707105855.89260-1-stephan@gerhold.net> <20210707105855.89260-2-stephan@gerhold.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tb/nCPFTPngyuGxd" Content-Disposition: inline In-Reply-To: <20210707105855.89260-2-stephan@gerhold.net> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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 --tb/nCPFTPngyuGxd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 07, 2021 at 12:58:55PM +0200, Stephan Gerhold wrote: > The U-Boot "stemmy" board is mainly intended to simplify booting > mainline Linux on various smartphones from Samsung based on ST-Ericsson > Ux500. While the mainline kernel is working great, there are still some > features missing there. In particular, it is currently not possible to > charge the battery when using the mainline kernel. >=20 > This means that it is still necessary to boot the downstream/vendor > kernel from Samsung sometimes to charge the device. That kernel is > ancient, still uses board files + ATAGS instead of device trees and > relies on a strange very long kernel command line hardcoded in the > Samsung bootloader. >=20 > Actually, since mainline is booted with device trees there is a very > simple way to make the old downstream kernel work as well: We can > simply take most of the ATAGS passed to U-Boot from the Samsung > bootloader and copy them as-is when booting a kernel without device > tree. That way the long command line and other needed ATAGS are copied > as-is without having to bother with them. >=20 > The only exception is the ATAG_INITRD - since the initrd is loaded > by U-Boot, the atag for that should be generated in U-Boot so it points > to the correct address. All other ATAGS are copied as-is and not > generated in U-Boot. >=20 > Also use the chance and provide a serial# for U-Boot by parsing the > ATAG_SERIAL that is also passed by the Samsung bootloader. >=20 > Signed-off-by: Stephan Gerhold > Reviewed-by: Linus Walleij Applied to u-boot/master, thanks! --=20 Tom --tb/nCPFTPngyuGxd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmDvTrsACgkQFHw5/5Y0 tyx3lgv+L8S0l2PXqQPR7E5Fp3KXmWEVu+DINvi/Nm/5RBNjlcG9iKlHfnsntWuG uacfCSwzkwf6udscrpJSjCVm4jo1dd+gW5+qmkYf6sCFKXkYtMecxU+Kl+YpT3CX uH6DZDvxDxt4iZtLcQ3Q5QGk+eKs+6P3xqGbCfon1zJB37u4d6gKvRYWjcGtTqMb EEZ9B+AqkedRoB1aiIDw3Yp25LVqa3sFwYGK7VxodGavA8i7wYMPMU1ylhBWFXEn 9+9cqyzqnC+2fOfsfm2bq8A0jI0F2JpB3EQmXF/zTOhTzcK3dw9unk9ZCBv/8DgG Dpm5ts3qm+slY57Z4MEBKBjqzoaLQSo15PM4kNPEQYm7wHAvFu41LmvKgafoPv5L BVm6enAtCJUYGbZNlUCiExTYpHyIingDAOpc6Cm+DFbEm21SXerMo2iJe1tZb8UW rUa5V1zBHGxF2FwM17+2+EaeaF5Z0fkMZitHt7hVagQ2BtMbWqUFaY1MTRFqv2AY 3wpunkRr =tZiI -----END PGP SIGNATURE----- --tb/nCPFTPngyuGxd--