[PATCH]: Add raspberrypi as OpenBMC platform

Yi Li adamliyi at msn.com
Tue Jul 19 20:37:42 AEST 2016


Hi,

I created an initial patch to Add raspberrypi as OpenBMC platform for review.
I can build obmc images, but I don't have a raspberrypi HW to boot and test.
So this patch does not include the full meta-raspberrypi layer.
There is a README included for testing.

Please have a look and if this patch can be tested on HW I will submit a formal patch.

Thanks,
-Yi

Signed-off-by: Yi Li <adamliyi at msn.com>

diff --git a/README_raspberrypi_obmc.txt b/README_raspberrypi_obmc.txt
new file mode 100644
index 0000000..45b0cbc
--- /dev/null
+++ b/README_raspberrypi_obmc.txt
@@ -0,0 +1,16 @@
+1. Under openbmc directory, checkout meta-raspberrrypi layer:
+# git://git.yoctoproject.org/meta-raspberrypi
+
+2. Apply meta-raspberrypi_obmc.patch
+# cd meta-raspberrypi/conf
+# patch < meta-raspberrypi_obmc.patch
+
+3. Build obmc:
+# rm -fr build/conf
+# export TEMPLATECONF=meta-raspberrypi/conf
+#  . oe-init-build-env
+# bitbake obmc-phosphor-image
+
+4. Remaining issues:
+a. No raspberrypi HW, so image not tested
+b. u-boot-fw-utils build failed. Removed the package. 
diff --git a/conf/bblayers.conf.sample b/conf/bblayers.conf.sample
new file mode 100644
index 0000000..f3c8f37
--- /dev/null
+++ b/conf/bblayers.conf.sample
@@ -0,0 +1,18 @@
+# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
+# changes incompatibly
+LCONF_VERSION = "6"
+
+BBPATH = "${TOPDIR}"
+BBFILES ?= ""
+
+BBLAYERS ?= " \
+  ##OEROOT##/meta \
+  ##OEROOT##/meta-yocto \
+  ##OEROOT##/meta-phosphor \
+  ##OEROOT##/meta-raspberrypi \
+  "
+BBLAYERS_NON_REMOVABLE ?= " \
+  ##OEROOT##/meta \
+  ##OEROOT##/meta-yocto \
+  ##OEROOT##/meta-raspberrypi \
+  "
diff --git a/conf/conf-notes.txt b/conf/conf-notes.txt
new file mode 100644
index 0000000..9b3c01a
--- /dev/null
+++ b/conf/conf-notes.txt
@@ -0,0 +1,2 @@
+Common targets are:
+     obmc-phosphor-image
diff --git a/conf/local.conf.sample b/conf/local.conf.sample
new file mode 100644
index 0000000..8c767ab
--- /dev/null
+++ b/conf/local.conf.sample
@@ -0,0 +1,27 @@
+MACHINE ??= "raspberrypi"
+DISTRO ?= "openbmc-phosphor"
+PACKAGE_CLASSES ?= "package_rpm"
+SANITY_TESTED_DISTROS_append ?= " *"
+EXTRA_IMAGE_FEATURES = "debug-tweaks"
+USER_CLASSES ?= "buildstats image-mklibs image-prelink"
+PATCHRESOLVE = "noop"
+BB_DISKMON_DIRS = "\
+    STOPTASKS,${TMPDIR},1G,100K \
+    STOPTASKS,${DL_DIR},1G,100K \
+    STOPTASKS,${SSTATE_DIR},1G,100K \
+    STOPTASKS,/tmp,100M,100K \
+    ABORT,${TMPDIR},100M,1K \
+    ABORT,${DL_DIR},100M,1K \
+    ABORT,${SSTATE_DIR},100M,1K \
+    ABORT,/tmp,10M,1K"
+CONF_VERSION = "1"
+INHERIT += "extrausers"
+EXTRA_USERS_PARAMS = " \
+  usermod -p '\$1\$UGMqyqdG\$FZiylVFmRRfl9Z0Ue8G7e/' root; \
+  "
+PREFERRED_PROVIDER_u-boot ?= "u-boot-rpi_git"
+UBOOT_SUFFIX_raspberrypi = "img"
+OBMC_IMAGE_EXTRA_INSTALL_remove_raspberrypi = "u-boot-fw-utils"
+
+require conf/machine/include/obmc-bsp-common.inc
+require conf/machine/include/sample.inc


More information about the openbmc mailing list