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 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 3BFA5C4332F for ; Mon, 14 Nov 2022 09:06:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8714082A3C; Mon, 14 Nov 2022 10:06:38 +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="Yjbac4TM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 44C1782A39; Mon, 14 Nov 2022 10:06:36 +0100 (CET) Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) (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 9B05082A4D for ; Mon, 14 Nov 2022 10:06:31 +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=jh80.chung@gmail.com Received: by mail-pg1-x52c.google.com with SMTP id s196so9725521pgs.3 for ; Mon, 14 Nov 2022 01:06:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LKDCqTLoE+t7rqFxvv9tiMtLfLkobmnGbRbnGrCm5nI=; b=Yjbac4TMjoOEYluQnsx36vdM5pYcuZpJBXXshaO4UxTT3wDgaK/ere/dEUUHabhUI6 roTjsZ/B6AA9fznsTtteyBPtLBVzhUsWQ1kxBFNDEwAaPs0sLL6Q0eqD6YSkyo8DuN32 ZBm6zLZGoP5H8VG0R+eiEJgHeEWWANP8p2jWjzfeYO7ZcxFu9G2jNcb/4rAdUoTjLXdR g3nrt9lR/FB6nX3wBrI2mx9PyyTz0y1kR5acbTloXQ7iFBSxbX1Es4kYZ+IlRhLBmBUW /iEJff5M50SC43X+E4GiXTunuyHsg6jLdjgXdB3+b03MQsCSsnmupHcDswCHYil1YtXc wNMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LKDCqTLoE+t7rqFxvv9tiMtLfLkobmnGbRbnGrCm5nI=; b=SaJvR96yZJB11CP1AFlGuGt25vpYil9mveInFDhNzp2dl96iSUwZYRse/0JuujPD// MxAWp0/aKWlbrCQzK5gomtKnBTxj1G5TwTGXfLkydnBX4v0rGRhOxW1B4Q4bCak1SJ7s ab/J6raz1yMNQrP6LqqmkHDd/qreLhezBf9Dsj8gMK2py3f8mTITVgK4FJ9sPMvpgB6l c/Rb9GckwarHf+i/pVMeipCoVlaZ9+rN0onD8cXBxvRdAZ5XpTurRvpMYxUrxEoZH/cS 1bPIayOWY9WdgLY+710rxusyFCu3Rz0Ww4B53CdD8a9epoSL+hc8OObNIKv0aHUUuAC3 dJeA== X-Gm-Message-State: ANoB5pnd+RSR11Te6cFsZoU6gLJqu3QFqcydK15W03ZWoW7++W1qcOhh gJnY6tV2Vvnj5ecJYkCIvXA= X-Google-Smtp-Source: AA0mqf6y2q4thrEG9SIUeJU43bBJ1802HthM9/ZQb6guK08xEA3P1Wvi+m+Fi/qBci9Szu0ZbRXtLA== X-Received: by 2002:a63:4d61:0:b0:44b:412c:1a3c with SMTP id n33-20020a634d61000000b0044b412c1a3cmr10861482pgl.417.1668416789805; Mon, 14 Nov 2022 01:06:29 -0800 (PST) Received: from [192.168.0.19] ([183.99.112.216]) by smtp.gmail.com with ESMTPSA id u127-20020a627985000000b00572275e68f8sm1649772pfc.166.2022.11.14.01.06.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Nov 2022 01:06:29 -0800 (PST) Message-ID: <904e82ea-fff0-30d4-9e7a-8bf1b116a37e@gmail.com> Date: Mon, 14 Nov 2022 18:06:26 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Changing eMMC boot partition size Content-Language: en-US To: Tom Rini , Philip Oberfichtner Cc: u-boot@lists.denx.de, Peng Fan , Jaehoon Chung References: <20221108183025.GU6335@bill-the-cat> From: Jaehoon Chung In-Reply-To: <20221108183025.GU6335@bill-the-cat> 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.6 at phobos.denx.de X-Virus-Status: Clean Hi, On 11/9/22 03:30, Tom Rini wrote: > On Tue, Nov 08, 2022 at 06:34:18PM +0100, Philip Oberfichtner wrote: >> Hi everybody, >> >> I have a question regarding changing the eMMC boot partition size. >> According the the JEDEC eMMC spec it is read-only (BOOT_SIZE_MULT >> register). >> >> But we still have mmc_boot_partition_size_change() in >> drivers/mmc/mmc_boot.c. It contains the comment >> >> /* Only use this command for raw EMMC moviNAND. Enter backdoor mode */ >> >> What is moviNAND? My research pointed me to Samsung products only. So >> is changing the boot partition size vendor specific or can it be used >> more generally? >> >> To be specific, I use the Kioxia THGBMJG6C1LBAB7 eMMC chip. > > Yes, moviNAND was some Samsung technology that may or may not still be > used on some platforms. And yes, some eMMC parts do allow for boot > partitions to be resized but such information is often under NDA, so > contacting the hardware vendor or looking for eMMC chip documentation > may be helpful here. Thanks for replying this. As like Tom's comment, eMMC that is manufactured from Samsung was called MoviNand. It's used with Reserved Command for manufacturer. So If you want to change your eMMC's boot partition size, you need to check Kioxiz documentation. Best Regards, Jaehoon Chung >