From: Georges Savoundararadj Date: Mon, 4 Jul 2016 12:44:50 -0700 Subject: [Buildroot] [PATCH 1/1] create-boot-sd.sh: fix script for sfdisk (>=2.26) In-Reply-To: <20160704090448.20f94608@free-electrons.com> References: <20160704002229.9354-1-savoundg@gmail.com> <20160704090448.20f94608@free-electrons.com> Message-ID: <8fd7392c-375c-db64-8124-04c75d0160a3@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Thomas, On 07/04/2016 12:04 AM, Thomas Petazzoni wrote: > Hello Georges, > > On Sun, 3 Jul 2016 17:22:29 -0700, Georges Savoundararadj wrote: >> "Since version 2.26, sfdisk [...] no longer provides any functionality >> for CHS (Cylinder-Head-Sector) addressing." [1] >> >> The unit used in this script is the cylinder which is not supported in >> the latest versions of sfdisk. However, it supports the deprecated option >> "--unit S" that allows to keep the retro-compatibility with the older >> versions of sfdisk if we use the sector unit. >> >> This commit converts the offset and size from the cylinder unit (8 bytes) >> to the sector unit (512 bytes). >> >> [1] man page of sfdisk 2.28 >> >> Signed-off-by: Georges Savoundararadj >> Signed-off-by: Stanislas Bach > Thanks for this patch. May I ask on which platform you are still using > create-boot-sd.sh ? Indeed, we are trying to move away from this sort > of script and use genimage instead. > > As far as I can see, only the imx28evk and imx6sabre support in > Buildroot still have a reference to this script. Are you using of those > two platforms? If that's the case, then we would very much prefer a > solution where the platform is migrated to use genimage. I am using this script for the imx6sololiteevk (freescale_imx6sololiteevk_defconfig) platform which does not refer to this script. Actually, imx28evk is referring to ./board/freescale/imx28evk/create-boot-sd.sh whereas imx6sabre is referring to ./board/freescale/create-boot-sd.sh which has a different partition layout. Thanks, Georges > Thanks, > > Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: