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 56A62C6FD19 for ; Thu, 16 Mar 2023 16:48:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 194FA85E4A; Thu, 16 Mar 2023 17:48:18 +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="LfMbYwPQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B833285ED8; Thu, 16 Mar 2023 17:48:14 +0100 (CET) Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 46AA185E3F for ; Thu, 16 Mar 2023 17:48:09 +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=jbx6244@gmail.com Received: by mail-wm1-x336.google.com with SMTP id r19-20020a05600c459300b003eb3e2a5e7bso1621675wmo.0 for ; Thu, 16 Mar 2023 09:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678985288; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=8++8jhG1XaVp2wqrMNaU3DttpTgxQvkJUVrcDwCkaK0=; b=LfMbYwPQrLcvMbIxcH6edp8vwoJoyJkoXF+tJDcDUEf+1Qwxsf/cyBK2kN9hK66J7O CJFQ/EYy98DL4dn0S/gzJc5cRJ7BHxrf2mcLs1yeJfLCMJ07bQT6IVLw4+l8Sfuko5Yi omCeupTR21ajl9SDqmW3hY1epD6IZdyMsWbeIu4p/JT00DB2Aj7D++otxen1rpT43NgL HXhxXwieCdwdOMhSxg9QIrEdf50avBBQcTs1c+RbXbbzhNchNq3FJQTLc3vOdtsq0Bfj 2GPT5DTtvlfBkFpWSwhV2M/kXNlYMYmciwKw+GpOhqvHWzhMxwM2GjHDljYP8DvbDr0Y 581Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678985288; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8++8jhG1XaVp2wqrMNaU3DttpTgxQvkJUVrcDwCkaK0=; b=uwDh4A4jhYDdhUwEuEBMYTQtBzaQ0u70E8toHtpK8PzIDlfWsscIZTYpWYx6Cw8mZS Ed+1lGMpwtrlA/55UmIrK9k17thVSUWSFJ6xsnx8vozb7SeJz+W+emlv58uC4LRHMXr/ oqpbIv3Sbfs0c7v+cQRunRf6YJUHJxhtOEjovNzIy63KjZqv5JjjLPgtRL/arejiAI35 6OOhy/Wc269HirgO/OJHNDd9XUV50A+l10kNupXG8epZnS9HxoLTB8dJQFrGnaEkQrCQ URBeIBylTKrZ5r9ETqcwHIRRdoLfK1xMe09895gT1zbnbRruSFX8bPAUQStjeOzla8Dc BBtw== X-Gm-Message-State: AO0yUKUxxz4ViVAXi8YMPr68pc1SuLTZfqu26GHhGF2MrPb8ENuL9MUq BbLYdRCopSRM6K7xZfjjpEk= X-Google-Smtp-Source: AK7set+uzF+pTbah9C6Eizfc6QqrV7+J7bUcz0Ef95fzyZjNp/5Xm8HakGOVMhK4dGg6bxGpwnZ+wg== X-Received: by 2002:a05:600c:198e:b0:3ea:4af0:3475 with SMTP id t14-20020a05600c198e00b003ea4af03475mr22739091wmq.1.1678985288696; Thu, 16 Mar 2023 09:48:08 -0700 (PDT) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id i26-20020a1c541a000000b003ed246f76a2sm5762703wmb.1.2023.03.16.09.48.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Mar 2023 09:48:08 -0700 (PDT) Message-ID: Date: Thu, 16 Mar 2023 17:48:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 From: Johan Jonker Subject: [PATCH v1 5/6] rockchip: configs: mk808: change CONFIG_TPL_TEXT_BASE To: kever.yang@rock-chips.com Cc: sjg@chromium.org, philipp.tomsich@vrull.eu, u-boot@lists.denx.de References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Currently the Rockchip rk3066a u-boot-tpl.bin file needs to add the characters "RK30", while the other SoCs replace the first 4 bytes. Bring this in line with the rest by lowering CONFIG_TPL_TEXT_BASE and update rockchip.rst instructions. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- configs/mk808_defconfig | 2 +- doc/board/rockchip/rockchip.rst | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/configs/mk808_defconfig b/configs/mk808_defconfig index c080706d..548df9c5 100644 --- a/configs/mk808_defconfig +++ b/configs/mk808_defconfig @@ -18,7 +18,7 @@ CONFIG_SPL_TEXT_BASE=0x60000000 CONFIG_DM_RESET=y CONFIG_ROCKCHIP_RK3066=y # CONFIG_ROCKCHIP_STIMER is not set -CONFIG_TPL_TEXT_BASE=0x10080C04 +CONFIG_TPL_TEXT_BASE=0x10080C00 CONFIG_TPL_STACK=0x1008FFFF CONFIG_TARGET_MK808=y CONFIG_SPL_STACK_R_ADDR=0x70000000 diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst index b5563b8f..7d903946 100644 --- a/doc/board/rockchip/rockchip.rst +++ b/doc/board/rockchip/rockchip.rst @@ -380,9 +380,8 @@ Program with commands in a bash script ./flash.sh: #!/bin/sh - printf "RK30" > tplspl.bin - dd if=u-boot-tpl.bin >> tplspl.bin - truncate -s %2048 tplspl.bin + printf "RK30" | dd conv=notrunc bs=4 count=1 of=u-boot-tpl.bin + truncate -s %2048 u-boot-tpl.bin truncate -s %2048 u-boot-spl.bin ../tools/boot_merger --verbose config-flash.ini ../tools/upgrade_tool ul ./RK30xxLoader_uboot.bin @@ -406,7 +405,7 @@ config-flash.ini: NUM=2 LOADER1=FlashData LOADER2=FlashBoot - FlashData=tplspl.bin + FlashData=u-boot-tpl.bin FlashBoot=u-boot-spl.bin [OUTPUT] PATH=RK30xxLoader_uboot.bin -- 2.20.1