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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 05052C433F5 for ; Fri, 3 Dec 2021 10:28:55 +0000 (UTC) Received: from localhost ([::1]:60074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mt5oD-0007Me-Px for qemu-devel@archiver.kernel.org; Fri, 03 Dec 2021 05:28:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt5n4-0006Re-1m for qemu-devel@nongnu.org; Fri, 03 Dec 2021 05:27:42 -0500 Received: from 5.mo548.mail-out.ovh.net ([188.165.49.213]:47847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt5n1-0004D1-DZ for qemu-devel@nongnu.org; Fri, 03 Dec 2021 05:27:41 -0500 Received: from mxplan5.mail.ovh.net (unknown [10.109.156.219]) by mo548.mail-out.ovh.net (Postfix) with ESMTPS id 1E15520FB5; Fri, 3 Dec 2021 10:27:35 +0000 (UTC) Received: from kaod.org (37.59.142.106) by DAG4EX1.mxp5.local (172.16.2.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 3 Dec 2021 11:27:34 +0100 Authentication-Results: garm.ovh; auth=pass (GARM-106R006f889e4a7-a6fe-4646-bbbb-c890dc6888df, 530A9595C01F0F4EFEED26D362E2F82770F5CBE3) smtp.auth=clg@kaod.org X-OVh-ClientIp: 82.64.250.170 Message-ID: <599e5aa0-d7a9-b89c-2da9-5e7c909a6064@kaod.org> Date: Fri, 3 Dec 2021 11:27:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH] hw/ppc/ppc405_boards: Change kernel load address Content-Language: en-US To: LEROY Christophe , Thomas Huth , "qemu-ppc@nongnu.org" , "qemu-devel@nongnu.org" References: <20211202191446.1292125-1-clg@kaod.org> <8d21273b-0b81-5041-cfc4-704307aa37cc@kaod.org> <32012645-274e-9ee9-2d8a-a3d87c4a6bf5@csgroup.eu> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= In-Reply-To: <32012645-274e-9ee9-2d8a-a3d87c4a6bf5@csgroup.eu> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [37.59.142.106] X-ClientProxiedBy: DAG5EX2.mxp5.local (172.16.2.42) To DAG4EX1.mxp5.local (172.16.2.31) X-Ovh-Tracer-GUID: 6a908c97-4401-4327-ac82-810f7a3ab6fe X-Ovh-Tracer-Id: 17372072615515818857 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvuddrieejgddujecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgihesthekredttdefjeenucfhrhhomhepveorughrihgtpgfnvggpifhorghtvghruceotghlgheskhgrohgurdhorhhgqeenucggtffrrghtthgvrhhnpeeigedvffekgeeftedutddttdevudeihfegudffkeeitdekkeetkefhffelveelleenucfkpheptddrtddrtddrtddpfeejrdehledrudegvddruddtieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepmhigphhlrghnhedrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpegtlhhgsehkrghougdrohhrghdprhgtphhtthhopehgrhhouhhgsehkrghougdrohhrgh Received-SPF: pass client-ip=188.165.49.213; envelope-from=clg@kaod.org; helo=5.mo548.mail-out.ovh.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.938, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Henrique Barboza , Greg Kurz , David Gibson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 12/2/21 20:32, LEROY Christophe wrote: > > > Le 02/12/2021 à 20:19, Cédric Le Goater a écrit : >> On 12/2/21 20:17, Thomas Huth wrote: >>> On 02/12/2021 20.14, Cédric Le Goater wrote: >>>> The default addresses to load the kernel, fdt, initrd of AMCC boards >>>> in U-Boot v2015.10 are : >>>> >>>>     "kernel_addr_r=1000000\0" >>>>     "fdt_addr_r=1800000\0" >>>>     "ramdisk_addr_r=1900000\0" >>>> >>>> The taihu is one of these boards, the ref405ep is not but we don't >>>> have much information on it and both boards have a very similar >>>> address space layout. Change the kernel load address to match U-Boot >>>> expectations and fix loading. >>> >>> You could additionally mention that U-Boot corrupts the kernel if it >>> gets loaded to address 0. >> >> True. The first word is overwritten with zeros. I looked for it >> in the code but could not find the reason. >> > > Isn't it because U-boot unzips the kernel at address 0 ? Address 0 is trashed before U-boot loads the kernel. C.