On 08:44-20210707, Priya N S wrote: > From: Priya N S <[email protected]> > > * Cylinder size of sdcard is manufacturer dependent. To standardize > sdcard partitioning remove the use of cylinder (cyl) unit. > * While at it shift to using fdisk for the partitioning the sdcard. > fdisk is already used in the script and this reduces the dependencies > of this script on available installed applications. > * This fixes cases where already partitioned cards were being detected > as not partitioned because of size check elsewhere in the script > failing. > > Signed-off-by: Priya N S <[email protected]> > Signed-off-by: Sekhar Nori <[email protected]> > --- > create-sdcard.sh | 50 +++++++++++++++++++++++++++++++++++++++--------- > 1 file changed, 41 insertions(+), 9 deletions(-) > > diff --git a/create-sdcard.sh b/create-sdcard.sh > index d052312..546588b 100644 > --- a/create-sdcard.sh > +++ b/create-sdcard.sh > @@ -501,11 +501,29 @@ SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'` > > echo DISK SIZE - $SIZE bytes > > -parted -s $DRIVE mklabel msdos > -parted -s $DRIVE unit cyl mkpart primary fat32 -- 0 9 > -parted -s $DRIVE set 1 boot on > -parted -s $DRIVE unit cyl mkpart primary ext2 -- 9 310 > -parted -s $DRIVE unit cyl mkpart primary ext2 -- 310 -2 > +cat << END | fdisk $DRIVE > +n > +p > +1 > + > ++75M
https://lists.yoctoproject.org/g/meta-ti/topic/83851299#13855 Should we make boot partition 128MB as default to make sure it is in sync with wic image sizes? > +n > +p > +2 > + > ++2.4G > +n > +p > +3 > + > + > +t > +1 > +c > +a > +1 > +w > +END > > > cat << EOM > @@ -559,10 +577,24 @@ SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'` > > echo DISK SIZE - $SIZE bytes > > -parted -s $DRIVE mklabel msdos > -parted -s $DRIVE unit cyl mkpart primary fat32 -- 0 9 > -parted -s $DRIVE set 1 boot on > -parted -s $DRIVE unit cyl mkpart primary ext2 -- 9 -2 > +cat << END | fdisk $DRIVE > +n > +p > +1 > + > ++75M same ^^ ? > +n > +p > +2 > + > + > +t > +1 > +c > +a > +1 > +w > +END > > cat << EOM > > -- > 2.19.1.windows.1 > > _______________________________________________ > meta-arago mailing list > [email protected] > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago -- Regards, Nishanth Menon Key (0xDDB5849D1736249D)/Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
