All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/8] board/raspberrypi: post-image customisations.
@ 2019-01-29 13:23 Robert J. Heywood
  2019-01-29 13:23 ` [Buildroot] [PATCH 1/8] board/raspberrypi: Unify the genimage config files Robert J. Heywood
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Robert J. Heywood @ 2019-01-29 13:23 UTC (permalink / raw)
  To: buildroot

Hi all.

I wanted to do use u-boot and mainline kernel sources with my raspies
but in trying to do so, found that doing it required a lot of changes
to the genimage cfg files.
All the files were basically the same, and I found that they, and the
post-image script define constants which are no longer correct if the
corresponding options are changed in buildroot.
(eg. BR2_LINUX_KERNEL_INTREE_DTS_NAME)

I've improved the situation by first removing the replication in the
cfg files (consolidating them into a single generic file). And then
parsing the .config file for the board specific pieces; like the
device tree files, and the kernel target (zimage vs image).

Then I added some new options;
- Adding files to the boot partition,
  Allowing me to include uboot.bin.
- Changing the kernel in the config.txt file,
  Allowing me to boot uboot.bin.
- Specifying a different rootfs file,
  Since i would like to use btrfs instead of ext4.
- An option to skip creating the full sdimg.
  As I'm using btrfs, in some cases I only need the vfat boot blob
  from genimage.


There are a couple of aspects you might find questionable that I would
welcome comments on;

The script now modifies the generic genimage.cfg file and creates a
temporary cfg file to be used with genimage. I've chosen to place
the file at; ${BUILD_DIR}/genimage.cfg
This might not be the best choice.

I'm using a conbination of grep and eval to pull specific values out
of the .config file and get them into the script. That might not be
best practice.
Maybe theres a cleaner way of accessing those variables?

Kind regards,
~rob.

Robert J. Heywood (8):
  board/raspberrypi: Unify the genimage config files
  board/raspberrypi: post-image --overlays option.
  board/raspberrypi: post-image, include .config dfs files.
  board/raspberrypi: post-image, include .config kernel target.
  board/raspberrypi: post-image --file option
  board/raspberrypi: post-image --rootfs option
  board/raspberrypi: post-image --skip-sdimg option
  board/raspberrypi: post-image --kernel option

 DEVELOPERS                                         |  3 ++
 ...rrypi2.cfg => genimage-raspberrypi-generic.cfg} |  7 +--
 board/raspberrypi/genimage-raspberrypi.cfg         | 32 ------------
 board/raspberrypi/genimage-raspberrypi0.cfg        | 30 ------------
 board/raspberrypi/genimage-raspberrypi0w.cfg       | 31 ------------
 board/raspberrypi/genimage-raspberrypi3-64.cfg     | 32 ------------
 board/raspberrypi/genimage-raspberrypi3.cfg        | 33 -------------
 board/raspberrypi/post-image.sh                    | 57 +++++++++++++++++++++-
 8 files changed, 62 insertions(+), 163 deletions(-)
 rename board/raspberrypi/{genimage-raspberrypi2.cfg => genimage-raspberrypi-generic.cfg} (85%)
 delete mode 100644 board/raspberrypi/genimage-raspberrypi.cfg
 delete mode 100644 board/raspberrypi/genimage-raspberrypi0.cfg
 delete mode 100644 board/raspberrypi/genimage-raspberrypi0w.cfg
 delete mode 100644 board/raspberrypi/genimage-raspberrypi3-64.cfg
 delete mode 100644 board/raspberrypi/genimage-raspberrypi3.cfg

-- 
2.11.0

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

end of thread, other threads:[~2019-02-11 18:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-29 13:23 [Buildroot] [PATCH 0/8] board/raspberrypi: post-image customisations Robert J. Heywood
2019-01-29 13:23 ` [Buildroot] [PATCH 1/8] board/raspberrypi: Unify the genimage config files Robert J. Heywood
2019-01-29 13:23 ` [Buildroot] [PATCH 2/8] board/raspberrypi: post-image --overlays option Robert J. Heywood
2019-01-29 13:23 ` [Buildroot] [PATCH 3/8] board/raspberrypi: post-image, include .config dfs files Robert J. Heywood
2019-01-29 13:23 ` [Buildroot] [PATCH 4/8] board/raspberrypi: post-image, include .config kernel target Robert J. Heywood
2019-01-29 13:23 ` [Buildroot] [PATCH 5/8] board/raspberrypi: post-image --file option Robert J. Heywood
2019-01-29 13:23 ` [Buildroot] [PATCH 6/8] board/raspberrypi: post-image --rootfs option Robert J. Heywood
2019-01-29 13:23 ` [Buildroot] [PATCH 7/8] board/raspberrypi: post-image --skip-sdimg option Robert J. Heywood
2019-01-29 13:23 ` [Buildroot] [PATCH 8/8] board/raspberrypi: post-image --kernel option Robert J. Heywood
2019-02-06 12:36 ` [Buildroot] [PATCH 0/8] board/raspberrypi: post-image customisations Arnout Vandecappelle
2019-02-08 11:41   ` Robert Heywood
2019-02-08 21:15     ` Arnout Vandecappelle
2019-02-11 11:17       ` Robert Heywood
2019-02-11 18:21         ` Yann E. MORIN

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.