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 53AEFC64ED6 for ; Fri, 24 Feb 2023 00:47:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8DCFB858FB; Fri, 24 Feb 2023 01:47:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=timesys.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=timesys-com.20210112.gappssmtp.com header.i=@timesys-com.20210112.gappssmtp.com header.b="fXBj1S7V"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4D816857FB; Fri, 24 Feb 2023 01:47:14 +0100 (CET) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (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 31A81809A5 for ; Fri, 24 Feb 2023 01:47:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=timesys.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=angelo.dureghello@timesys.com Received: by mail-ed1-x52d.google.com with SMTP id i34so23557230eda.7 for ; Thu, 23 Feb 2023 16:47:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timesys-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qo+0quGNSwBRETVmxTJG9esSdbhr0lNTMY95cJmu1dc=; b=fXBj1S7VfoHWBJB3LV/7pJWEFDspU1bGu9symQbJhGrANanVzKQn80VvbTZm6sbrTU C5XURqcYQ3jXxFKyGN/ANAEKKKedX11EWlM256x0g58cyzLgyMoSY9K/x5wL8EbkrKgC xAQJGp1AKFxYuHKtNHTgU5aj3kLbLk8X5osq8u3GLniXOP6PHOrzPM012qLb9SBAP7nX cl1iaw9N32129W5WTWbGB0TU/neQELtSXkuzGsHwZouhZVhxnMUYRzCtnY/sVSIkGjSO F+RoNs35ClQmJg7XIJUQj5TOKBWQbn8yhf2g/Un/VFLXuHM6BlKwymQRZu1dnkf0DD80 1imw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qo+0quGNSwBRETVmxTJG9esSdbhr0lNTMY95cJmu1dc=; b=13+ElpI2M7G5H0KqTBgM/Ab4kXSY4IwiGGwhZpAfKBOGaGpN70Dli1gH6Wr4fHDaNU n7fNiuR9M8UqoAOfnQAQNhyNnhabiv9/8CeY7jrAfALMxkoAFgdjyrn19TEqRhbGuQxb p1uoS3DT96XTuYcGvkfC30FAZWUlipkiclF27DT0fy7UbAwTQbpQdTD5Vy1XxEvVZ8is 7Hvh3wu5qMAhbXudyXZSHk5pPD3ixFumK3+JyJjYISSQUmKbIofpby2VB0OiEjlicW+t tYXzb+qkWNHIVPBrRzLhzdTR5eSIg39KyfTRG9jCIKShockzr5QXxLeR27UpPNFytldt KcPQ== X-Gm-Message-State: AO0yUKXe1aCuk7goGu3IBAWTuP1ns+coijcCaNtK/tsQzf0BfNe4bXIv H1lo1+xOgob8mfT7FrHpJ9EDfX6hamrcddBT X-Google-Smtp-Source: AK7set9XuRQ1ZwZSdcpvvZzkSP+jRZ9eaOwmyXp57qx+E5DmIQyWYVJrU3qv92rnQOaQTfbUwfPgdA== X-Received: by 2002:a17:907:7288:b0:8bc:9bce:7eb6 with SMTP id dt8-20020a170907728800b008bc9bce7eb6mr25044839ejc.7.1677199630498; Thu, 23 Feb 2023 16:47:10 -0800 (PST) Received: from localhost.localdomain (host-95-248-219-54.retail.telecomitalia.it. [95.248.219.54]) by smtp.gmail.com with ESMTPSA id g3-20020a170906538300b008ee5356801dsm1222995ejo.187.2023.02.23.16.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 16:47:09 -0800 (PST) From: Angelo Dureghello To: trini@konsulko.com Cc: u-boot@lists.denx.de, Angelo Durgehello Subject: [PATCH] board: amcore: fix u-boot mtd partition Date: Fri, 24 Feb 2023 01:47:09 +0100 Message-Id: <20230224004709.661788-1-angelo.dureghello@timesys.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean From: Angelo Durgehello Signed-off-by: Angelo Dureghello --- include/configs/amcore.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/include/configs/amcore.h b/include/configs/amcore.h index 648d30a5b2..37c45e7172 100644 --- a/include/configs/amcore.h +++ b/include/configs/amcore.h @@ -10,14 +10,20 @@ #define CFG_SYS_UART_PORT 0 -#define CFG_EXTRA_ENV_SETTINGS \ +#define CONFIG_MCFTMR +#define CONFIG_MCFUART +#define CONFIG_SYS_UART_PORT 0 +#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } + +#define CONFIG_BOOTCOMMAND "bootm ffc30000" +#define CONFIG_EXTRA_ENV_SETTINGS \ "upgrade_uboot=loady; " \ - "protect off 0xffc00000 0xffc1ffff; " \ - "erase 0xffc00000 0xffc1ffff; " \ + "protect off 0xffc00000 0xffc2ffff; " \ + "erase 0xffc00000 0xffc2ffff; " \ "cp.b 0x20000 0xffc00000 ${filesize}\0" \ "upgrade_kernel=loady; " \ - "erase 0xffc20000 0xffefffff; " \ - "cp.b 0x20000 0xffc20000 ${filesize}\0" \ + "erase 0xffc30000 0xffefffff; " \ + "cp.b 0x20000 0xffc30000 ${filesize}\0" \ "upgrade_jffs2=loady; " \ "erase 0xfff00000 0xffffffff; " \ "cp.b 0x20000 0xfff00000 ${filesize}\0" @@ -38,6 +44,10 @@ /* amcore design has flash data bytes wired swapped */ #define CFG_SYS_WRITE_SWAPPED_DATA /* reserve 128-4KB */ +#define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE + 0x400) +#define CONFIG_SYS_MONITOR_LEN ((192 - 4) * 1024) +#define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024) +#define CONFIG_SYS_BOOTPARAMS_LEN (64 * 1024) #define LDS_BOARD_TEXT \ . = DEFINED(env_offset) ? env_offset : .; \ -- 2.39.1