Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/5] freescale: Factorize SD card generation scripts
@ 2016-07-09  6:39 Georges Savoundararadj
  2016-07-09  6:40 ` [Buildroot] [PATCH 1/5] freescale: genimage: Factorize scripts Georges Savoundararadj
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Georges Savoundararadj @ 2016-07-09  6:39 UTC (permalink / raw)
  To: buildroot

Hello,

At the beginning, I wanted to use the script board/freescale/create-boot-sd.sh
to create an SD card for the imx6sololitevk board. I noticed that script was
not working with sfdisk (>=2.26). I sent a patch to fix it but Thomas Petazzoni
suggested me to use genimage.

I noticed the boards imx6ulevk, imx6sabresd, mx25pdk, mx51evk, mx53loco were
using the same genimage.cfg except for the name of the .dtb blobs.  Therefore,
I created a common genimage template configuration genimage.cfg.template that
is used to create "on-the-fly" a genimage.cfg with the right .dtb file names.
Indeed, I added a common post-image.sh script that is able to guess from
${BR_CONFIG} what files should be copied.

Then, I noticed the boards imx6dlsabreauto, imx6dlsabresd, imx6qsabreauto,
imx6qsabresd, imx6sxsabresd were all using the script
board/freescale/create-boot-sd.sh which does not work with sfdisk (>=2.26). I
removed this script and changed the configuration of these boards in order to
make use of the common genimage template. The layout is actually slightly
different: in the script the offset of the first partition (boot) was +1MB and
is +8MB in the template. I do not think the offset of the first partition  has
an impact on the freescale boards.

I changed the configuration of the imx6sololiteevk in order to use the common
genimage template. That was the reason of these patches.

Also, I tested this serie of patches with the imx6dlsabresd and the
imx6sololiteevk and I saw that U-Boot, in its default environment, was looking
for a zImage. As the zImage is the default kernel image format, I fixed the
configurations in order to eventually get a fully bootable SD card.

These patches may require some tests as I have tested them only for two boards.

Regards,

Georges

Georges Savoundararadj (5):
  freescale: genimage: Factorize scripts
  freescale: genimage: Use the common genimage template
  imx6sololiteevk: use the common genimage template
  imx6sololiteevk: use zImage
  imx6dlsabresd: use zImage

 .../genimage.cfg => common/genimage.cfg.template}  | 13 ++-
 board/freescale/common/post-image.sh               | 71 +++++++++++++++++
 board/freescale/create-boot-sd.sh                  | 93 ----------------------
 board/freescale/imx25pdk/post-image.sh             | 16 ----
 board/freescale/imx25pdk/readme.txt                |  2 +-
 board/freescale/imx51evk/genimage.cfg              | 41 ----------
 board/freescale/imx51evk/post-image.sh             | 16 ----
 board/freescale/imx51evk/readme.txt                |  2 +-
 board/freescale/imx53loco/genimage.cfg             | 42 ----------
 board/freescale/imx53loco/post-image.sh            | 16 ----
 board/freescale/imx6sabre/readme.txt               | 10 ++-
 board/freescale/imx6ulevk/genimage.cfg             | 41 ----------
 board/freescale/imx6ulevk/post-image.sh            | 16 ----
 board/freescale/imx6ulevk/readme.txt               |  2 +-
 board/freescale/imx7dsdb/genimage.cfg              | 41 ----------
 board/freescale/imx7dsdb/post-image.sh             | 16 ----
 board/freescale/imx7dsdb/readme.txt                |  2 +-
 configs/freescale_imx6dlsabreauto_defconfig        |  6 ++
 configs/freescale_imx6dlsabresd_defconfig          |  8 +-
 configs/freescale_imx6qsabreauto_defconfig         |  6 ++
 configs/freescale_imx6qsabresd_defconfig           |  6 ++
 configs/freescale_imx6sololiteevk_defconfig        |  8 +-
 configs/freescale_imx6sxsabresd_defconfig          |  6 ++
 configs/freescale_imx6ulevk_defconfig              |  2 +-
 configs/freescale_imx7dsabresd_defconfig           |  2 +-
 configs/mx25pdk_defconfig                          |  2 +-
 configs/mx51evk_defconfig                          |  2 +-
 configs/mx53loco_defconfig                         |  2 +-
 28 files changed, 129 insertions(+), 361 deletions(-)
 rename board/freescale/{imx25pdk/genimage.cfg => common/genimage.cfg.template} (58%)
 create mode 100755 board/freescale/common/post-image.sh
 delete mode 100755 board/freescale/create-boot-sd.sh
 delete mode 100755 board/freescale/imx25pdk/post-image.sh
 delete mode 100644 board/freescale/imx51evk/genimage.cfg
 delete mode 100755 board/freescale/imx51evk/post-image.sh
 delete mode 100644 board/freescale/imx53loco/genimage.cfg
 delete mode 100755 board/freescale/imx53loco/post-image.sh
 delete mode 100644 board/freescale/imx6ulevk/genimage.cfg
 delete mode 100755 board/freescale/imx6ulevk/post-image.sh
 delete mode 100644 board/freescale/imx7dsdb/genimage.cfg
 delete mode 100755 board/freescale/imx7dsdb/post-image.sh

-- 
2.9.0

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-09-11 21:28 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-09  6:39 [Buildroot] [PATCH 0/5] freescale: Factorize SD card generation scripts Georges Savoundararadj
2016-07-09  6:40 ` [Buildroot] [PATCH 1/5] freescale: genimage: Factorize scripts Georges Savoundararadj
2016-07-16 10:41   ` Thomas Petazzoni
2016-07-16 20:36     ` Fabio Estevam
2016-07-20 23:55       ` Fabio Estevam
2016-07-09  6:40 ` [Buildroot] [PATCH 2/5] freescale: genimage: Use the common genimage template Georges Savoundararadj
2016-07-09  6:40 ` [Buildroot] [PATCH 3/5] imx6sololiteevk: use " Georges Savoundararadj
2016-07-09  6:40 ` [Buildroot] [PATCH 4/5] imx6sololiteevk: use zImage Georges Savoundararadj
2016-07-09  6:40 ` [Buildroot] [PATCH 5/5] imx6dlsabresd: " Georges Savoundararadj
2016-09-07 22:29 ` [Buildroot] [PATCH v2 1/5] freescale: genimage: Factorize scripts Georges Savoundararadj
2016-09-07 22:29   ` [Buildroot] [PATCH v2 2/5] freescale: genimage: Use the common genimage template Georges Savoundararadj
2016-09-11 21:28     ` Thomas Petazzoni
2016-09-07 22:29   ` [Buildroot] [PATCH v2 3/5] imx6sololiteevk: use " Georges Savoundararadj
2016-09-11 21:28     ` Thomas Petazzoni
2016-09-07 22:29   ` [Buildroot] [PATCH v2 4/5] imx6sololiteevk: use zImage Georges Savoundararadj
2016-09-11 21:28     ` Thomas Petazzoni
2016-09-07 22:29   ` [Buildroot] [PATCH v2 5/5] imx6dlsabresd: " Georges Savoundararadj
2016-09-11 21:28     ` Thomas Petazzoni
2016-09-11 21:27   ` [Buildroot] [PATCH v2 1/5] freescale: genimage: Factorize scripts Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox