All of lore.kernel.org
 help / color / mirror / Atom feed
From: Priya N S <priya.ns@mistralsolutions.com>
To: meta-arago@arago-project.org
Cc: M V Pratap Reddy <pratap@ti.com>, Sekhar Nori <nsekhar@ti.com>
Subject: [master PATCH 0/3] create-sdcard: Fix rootfs tarball search and selection
Date: Mon,  7 Jun 2021 16:05:36 +0530	[thread overview]
Message-ID: <20210607103539.72720-1-priya.ns@mistralsolutions.com> (raw)

From: Priya N S <priya.ns@ti.com>

Hi All,
Below are the patches to fix the issues observed in the create-sdcard
script.

Issue:
1. The create-sdcard script uses 'rootfs' as a regex keyword to find
and list the filesystem tarballs which are available in the SDK
package. As in the current SDK packages, the tarball names are in the
following format,
tisdk-<IMAGE_TYPE>-image-<MACHINE>.tar.xz
Which doesn't have the rootfs keyword. This fails to list the tarballs
available in the package and crashes the script execution.
2. The create-sdcard script detects a partitioned SD card as not
partitioned because of the failure of the size check condition in the
script.

Fix:
1. The 'image' is used as the regex keyword to match the tarball names
in the SDK packages.
2. The usage of the cylinder size unit for partitioning the SD card is
removed since the cylinder size is SD card manufacturer dependent.
The parted command is replaced with fdisk since fdisk is an available
installed utility.

Priya N S (3):
  create-sdcard.sh: fix regex used for rootfs tarball
  create-sdcard: Fix wrong rootfs tarball selection
  create-sdcard.sh: Stop using cylinder as unit for partition size

 create-sdcard.sh | 75 +++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 58 insertions(+), 17 deletions(-)

-- 
2.19.1.windows.1



             reply	other threads:[~2021-06-07 10:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-07 10:35 Priya N S [this message]
2021-06-07 10:35 ` [master PATCH 1/3] create-sdcard.sh: fix regex used for rootfs tarball Priya N S
2021-06-07 10:35 ` [master PATCH 2/3] create-sdcard: Fix wrong rootfs tarball selection Priya N S
2021-06-07 10:35 ` [master PATCH 3/3] create-sdcard.sh: Stop using cylinder as unit for partition size Priya N S
2021-06-07 21:22 ` [master PATCH 0/3] create-sdcard: Fix rootfs tarball search and selection Nishanth Menon
2021-06-22 13:44   ` Vigna Raja Priya N S

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210607103539.72720-1-priya.ns@mistralsolutions.com \
    --to=priya.ns@mistralsolutions.com \
    --cc=meta-arago@arago-project.org \
    --cc=nsekhar@ti.com \
    --cc=pratap@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.