From cb608a9d8c1b96eed87d8f52a459773cb8405525 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 16 Jun 2017 08:57:23 +0200 Subject: platform-v7a: Gute Fee: add board support Re-add support for Gute Fee, with the configs+rules for image creation and bootspec entries. Signed-off-by: Sascha Hauer [improve commit description] Signed-off-by: Robert Schwebel --- configs/platform-v7a/config/images/gf.config | 29 +++++++++++++++++++ configs/platform-v7a/platforms/image-gf.in | 13 +++++++++ .../projectroot/loader/entries/gf.conf | 3 +- configs/platform-v7a/rules/image-gf.make | 33 ++++++++++++++++++++++ 4 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 configs/platform-v7a/config/images/gf.config create mode 100644 configs/platform-v7a/platforms/image-gf.in create mode 100644 configs/platform-v7a/rules/image-gf.make (limited to 'configs') diff --git a/configs/platform-v7a/config/images/gf.config b/configs/platform-v7a/config/images/gf.config new file mode 100644 index 0000000..0b78226 --- /dev/null +++ b/configs/platform-v7a/config/images/gf.config @@ -0,0 +1,29 @@ +image gf-boot.vfat { + vfat { + file MLO { image = "barebox-am33xx-afi-gf-mlo.img"} + file barebox.bin { image = "barebox-am33xx-afi-gf.img" } + } + size = 32M +} + +image @IMAGE@ { + hdimage { + align = 1M + disk-signature = 0x74823abf + } + partition boot { + image = gf-boot.vfat + size = 32M + partition-type = 0xc + bootable = true + } + partition root-A { + image = root.ext2 + partition-type = 0x83 + size = 512M + } + partition data { + partition-type = 0x83 + size = 512M + } +} diff --git a/configs/platform-v7a/platforms/image-gf.in b/configs/platform-v7a/platforms/image-gf.in new file mode 100644 index 0000000..37095be --- /dev/null +++ b/configs/platform-v7a/platforms/image-gf.in @@ -0,0 +1,13 @@ +## SECTION=image + +config IMAGE_GF + tristate + select HOST_GENIMAGE + select HOST_DOSFSTOOLS + select HOST_MTOOLS + select IMAGE_ROOT_EXT + select BAREBOX_AM335X + select BAREBOX_AM335X_MLO + prompt "Generate images/gf.hdimg" + help + FIXME diff --git a/configs/platform-v7a/projectroot/loader/entries/gf.conf b/configs/platform-v7a/projectroot/loader/entries/gf.conf index 620835b..7c5fbb2 100644 --- a/configs/platform-v7a/projectroot/loader/entries/gf.conf +++ b/configs/platform-v7a/projectroot/loader/entries/gf.conf @@ -1,5 +1,6 @@ title Gute Fee - Pengutronix-DistroKit version 4.6 -options loglevel=5 systemd.log_level=warning systemd.show_status=auto root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw +options loglevel=5 systemd.log_level=warning systemd.show_status=auto rootwait rw linux /boot/zImage devicetree /boot/am335x-afi-gf.dtb +linux-appendroot true diff --git a/configs/platform-v7a/rules/image-gf.make b/configs/platform-v7a/rules/image-gf.make new file mode 100644 index 0000000..d918ae7 --- /dev/null +++ b/configs/platform-v7a/rules/image-gf.make @@ -0,0 +1,33 @@ +# -*-makefile-*- +# +# Copyright (C) 2017 by Sascha Hauer +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +IMAGE_PACKAGES-$(PTXCONF_IMAGE_GF) += image-gf + +# +# Paths and names +# +IMAGE_GF := image-gf +IMAGE_GF_DIR := $(BUILDDIR)/$(IMAGE_GF) +IMAGE_GF_IMAGE := $(IMAGEDIR)/gf.hdimg +IMAGE_GF_CONFIG := gf.config + +# ---------------------------------------------------------------------------- +# Image +# ---------------------------------------------------------------------------- + +$(IMAGE_GF_IMAGE): + @$(call targetinfo) + @$(call image/genimage, IMAGE_GF) + @$(call finish) + +# vim: syntax=make -- cgit v1.2.3