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=-23.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,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 829A0C12002 for ; Mon, 19 Jul 2021 05:38:20 +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 D534E61026 for ; Mon, 19 Jul 2021 05:38:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D534E61026 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.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 F33B28296F; Mon, 19 Jul 2021 07:38:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.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=ti.com header.i=@ti.com header.b="E2G3YR3P"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A1786829F8; Mon, 19 Jul 2021 07:38:16 +0200 (CEST) Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9EF2C82956 for ; Mon, 19 Jul 2021 07:38:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=lokeshvutla@ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 16J5cBL6110242; Mon, 19 Jul 2021 00:38:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1626673091; bh=34cYEDJNoiRm8cbuAG6D4BCw4F23qI+KEudQpAtN3VI=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=E2G3YR3PJD+RDOnlYpSKRJdmgEoFvOdpQxNGYIiBlStYdmGqjAjVL50vPqkjfym/i 0W3MYNLlsfCMspWRXZ0Xr5BFCbAhmstRmkvI87OmAuEUFKZXfMs5CFFHE3A94QHuh/ rfEj6KjAwU8ZHHAe9Qnxx/IXwNr4mnnm2FqghHtc= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 16J5cBeC130324 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 19 Jul 2021 00:38:11 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 19 Jul 2021 00:38:10 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Mon, 19 Jul 2021 00:38:10 -0500 Received: from [10.24.69.20] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 16J5c8p7084738; Mon, 19 Jul 2021 00:38:09 -0500 Subject: Re: [PATCH] Nokia RX-51: Update documentation about flashing To: =?UTF-8?Q?Pali_Roh=c3=a1r?= CC: Ivaylo Dimitrov , Merlijn Wajer , , References: <20210618132928.32230-1-pali@kernel.org> From: Lokesh Vutla Message-ID: Date: Mon, 19 Jul 2021 11:08:08 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210618132928.32230-1-pali@kernel.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 Hi, On 18/06/21 6:59 pm, Pali Rohár wrote: > This change contains update for doc/README.nokia_rx51 documentation file > with information how to load U-Boot image to device RAM without need to > flash it and also how to flash it into OneNAND via 0xFFFF flasher. > > Signed-off-by: Pali Rohár Can you please convert this file to rST ? Thanks and regards, Lokesh > --- > doc/README.nokia_rx51 | 45 +++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 45 insertions(+) > > diff --git a/doc/README.nokia_rx51 b/doc/README.nokia_rx51 > index 1be077514f03..e739b02088ea 100644 > --- a/doc/README.nokia_rx51 > +++ b/doc/README.nokia_rx51 > @@ -22,6 +22,51 @@ following repository: > > https://github.com/pali/u-boot-maemo > > +To generate combined.bin image from u-boot.bin and kernel.bin (either uImage > +or zImage) use: > + > + sh u-boot-gen-combined u-boot.bin kernel.bin combined.bin > + > +Original Maemo Fremantle PR1.3 zImage kernel binary is available at: > + > + http://repository.maemo.org/pool/maemo5.0/free/k/kernel/kernel_2.6.28-20103103+0m5_armel.deb > + > +To unpack it (from DEB/AR, TAR and FIASCO) call commands: > + > + ar x kernel_2.6.28-20103103+0m5_armel.deb data.tar.gz > + tar -O -xf data.tar.gz ./boot/zImage-2.6.28-20103103+0m5.fiasco > kernel_2.6.28-20103103+0m5.fiasco > + 0xFFFF -M kernel_2.6.28-20103103+0m5.fiasco -u > + > +Flashed image must start with 2 kB "NOLO!img" header which contains size of > +the image. Header consist of bytes "NOLO!img\x02\x00\x00\x00\x00\x00\x00\x00" > +followed by 4 byte little endian size of the image and rest of the 2 kB header > +are just zero bytes. > + > +Nokia proprietary flasher and also open source 0xFFFF flasher automatically > +prepend required "NOLO!img" header and both applications expect that image > +does not contain "NOLO!img" header. Adding "NOLO!img" header is required > +only in case using "nandwrite" tool for flashing. > + > +Open source 0xFFFF flasher is available in following repository: > + > + https://github.com/pali/0xFFFF > + > +It is possible to load u-boot.bin via USB to N900 RAM and boot it without > +need to flashing it. Via 0xFFFF running at host PC it is done: > + > + 0xFFFF -m u-boot.bin -l -b > + > +0xFFFF support also flashing kernel image either via USB or directly on > +N900 device. Flashing u-boot/kernel/combined image is done as: > + > + 0xFFFF -m combined.bin -f > + > +Via 0xFFFF is possible to generate also standard flashable image in Nokia > +FIASCO format which contains metadata information like device identification > +(RX-51) and version string (v2021.04): > + > + 0xFFFF -m RX-51:v2021.04:kernel:u-boot.bin -g u-boot.fiasco > + > There is support for hardware watchdog. Hardware watchdog is started by > NOLO so u-boot must kick watchdog to prevent reboot device (but not very > often, max every 2 seconds). There is also support for framebuffer display >