summaryrefslogtreecommitdiff
path: root/meta-lenovo/meta-hr630
AgeCommit message (Collapse)AuthorFilesLines
2021-10-22meta-lenovo: remove unusable hr630 and hr855xg2 machinesPatrick Williams18-279/+0
This machine is unbuildable and has not been updated in the requisite 2 months per https://lore.kernel.org/openbmc/YRUW7cazmCjW8VpP@heinlein/, so it is being deleted. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I280dea863b89a22c9ca96f888c0a2b0d209e2093
2021-09-16bitbake: Use IPK packaging for rootfs assemblyAndrew Jeffery1-1/+1
bitbake offers a choice of DEB, RPM or IPK packaging. To a degree the choice is functionally arbitrary for image generation but control over the package format becomes important if we want to: 1. Include runtime package management functionality in the firmware image 2. Mess about with the packages on the build system With respect to 1 the IPK format and opkg (an ipk package manager) are designed for embedded systems[1] - by contrast to RPMs have heavier dependencies and a greater impact on the size and complexity of the firmware image. Regarding 2, the embedded nature and the need for opkg to work without much fuss leads to a lower configuration barrier by comparison to RPMs. With ipk it becomes possible to reuse the packages built during image preparation for core analysis without needing to generate an SDK: ``` $ export LD_LIBRARY_PATH=./tmp/work/x86_64-linux/opkg-native/*/recipe-sysroot-native/usr/lib $ MY_DEBUG_ROOT=tmp/rootfs-debug $ ./tmp/sysroots-components/x86_64/opkg-native/usr/bin/opkg \ -f ./tmp/work/p10bmc-openbmc-linux-gnueabi/obmc-phosphor-image/*/opkg.conf \ -o $MY_DEBUG_ROOT \ update $ fakeroot ./tmp/sysroots-components/x86_64/opkg-native/usr/bin/opkg \ -f ./tmp/work/p10bmc-openbmc-linux-gnueabi/obmc-phosphor-image/1.0-r0/opkg.conf \ -o $MY_DEBUG_ROOT \ install dbus-sensors dbus-sensors-dbg $ gdb-multiarch (gdb) set solib-absolute-prefix .../tmp/rootfs-debug (gdb) add-auto-load-safe-path .../tmp/rootfs-debug (gdb) file tmp/rootfs-debug/usr/bin/nvmesensor (gdb) core-file obmcdump_17_9597/core.nvmesensor.0.aae91b519d0e4e0e8bbe746e3f6cd25f.2779.9594000000 Core was generated by `/usr/bin/nvmesensor'. Program terminated with signal SIGABRT, Aborted. pthread_kill.c:45 45 pthread_kill.c: No such file or directory. (gdb) bt pthread_kill.c:45 ../sysdeps/posix/raise.c:26 /home/andrew/src/openbmc/openbmc/build/p10bmc/tmp/rootfs-debug/usr/lib/libstdc++.so.6 /home/andrew/src/openbmc/openbmc/build/p10bmc/tmp/rootfs-debug/usr/lib/libstdc++.so.6 /home/andrew/src/openbmc/openbmc/build/p10bmc/tmp/rootfs-debug/usr/lib/libstdc++.so.6 /home/andrew/src/openbmc/openbmc/build/p10bmc/tmp/rootfs-debug/usr/lib/libstdc++.so.6 "xyz.openbmc_project.NVMeSensor", this=0x488f04) at /usr/include/sdbusplus/bus.hpp:234 ../../../../../../workspace/sources/dbus-sensors/src/NVMeSensorMain.cpp:159 (gdb) ``` This approach documented in the Poky Reference Manual: https://www.yoctoproject.org/docs/1.0/poky-ref-manual/poky-ref-manual.html#platdev-gdb-remotedebug-launch-gdb-inferiorbins Switch all machines to IPK to align the debugging experience with upstream's documentation and to facilitate efficient use of packaged software at runtime. [1] https://openwrt.org/docs/guide-user/additional-software/opkg Change-Id: I8ef526add2d7a6790de1b3eb3fb85cd39b864f23 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2021-09-02meta-phosphor: change systemd.bbclass to match upstream override syntaxPatrick Williams1-1/+1
Upstream bbclasses changed to typically use the `:${PN}` override syntax, including the SYSTEMD_ variables. Change our systemd.bbclass to do the same for consistency and perform a tree-wide variable replacement. Spot checked by building bletchley and witherspoon and checking some of the SYSTEMD_LINK directives on installed packages under qemu. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I20a9dd809bff8af8759488734f80486c7228c6eb
2021-08-24treewide: remove gategarth from layer-supportPatrick Williams1-1/+1
We've typically kept these LAYERSERIES_COMPAT to 2 releases: the current and the upcoming. Remove 'gatesgarth' is it is now 2 releases back. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I5e812a94fed1738898af75c0fdee81996a5bbf20
2021-06-07treewide: Remove obsolete image-mklibs classWilliam A. Kennington III1-1/+1
This is apparently not actually working anymore and is removed in the next poky update. Change-Id: Ia1c6a258d124a4a30a14fc42e8e0bba95e64faeb Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-18meta-lenovo: hr630: Remove autotools specific configWilliam A. Kennington III1-4/+2
We want to use packageconfig options instead of build system specific ones. Change-Id: I04f76ce0967033ab5fb1133068782f99475a1890 Signed-off-by: William A. Kennington III <wak@google.com>
2021-04-22build phosphor-hwmon with mesonMatt Spinler1-1/+1
The repository supports it, so switch it over in bitbake. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I8d96c79b395ee2614ddd869091569f245426c5c7
2021-04-06hardknott: yocto releaseAndrew Geissler1-1/+1
Latest upstream yocto has moved on to the 3.3 hardknott release Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ieae36798d66d21c2c642931f06407d3bb2acf163
2021-03-22openbmc: add meta-security layerAnton D. Kachalov1-0/+2
This layer provides libseccomp. Signed-off-by: Anton D. Kachalov <gmouse@google.com> Change-Id: I84513d56f2ed75fab49043196b98ef8b858e394f
2021-02-23lenovo: modify distro includesPatrick Williams1-1/+1
Each machine in meta-lenovo has its own distro conf file. These files are currently including a base inc file from meta-phosphor, but the preferred pattern elsewhere is to include the openbmc-phosphor distro. Since the lenovo machines are really just openbmc-phosphor with some minor changes to the distro name, redirect to that full distro for future compatiblity. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I29ffa425ba3ff432f077e832295993006a06b162
2020-12-03meta-lenovo: update Yocto compat for gatesgarthPatrick Williams1-1/+1
The next release of Yocto is soon and most of the upstream layers have switched support strings for it. Support layer compat for gatesgarth (current) and dunfell (previous). (From meta-lenovo rev: 7cb057d597100ce7f6483f487a3b6c4ebe10b30f) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iecf217b8ab2ba47e8f741f8792e6b32fdfa7332d Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2019-07-14meta-lenovo: obmc-libobmc-intf: Add hr630 gpio definitionsLisa Liu2-0/+29
Add gpio definitions for the hr630 machine. Tested: Built hr630 machine and checked that the file /etc/default/obmc/gpio/gpio_defs.json was correct for hr630 machine. (From meta-lenovo rev: 4c930790c1d1bca841bf091dad0b6da694eedd7d) Signed-off-by: Lisa Liu <liuyj19@lenovo.com> Change-Id: Iae56787f9440c9a7247d4f6de5364613d30350d6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-06-10meta-lenovo: hr630: Add sensor configsLisa Liu5-0/+92
temperature sensors inlet and outlet of tmp75, adc voltage sensors and fan-tach sensors. Tested: Build it in hr630 image, load on hr630 platform, make sure it could show these sensors correctly with command: ipmitool sdr list. (From meta-lenovo rev: 8cd1949d5b4c66682baf951bb8c060320032ad0b) Signed-off-by: Lisa Liu <liuyj19@lenovo.com> Change-Id: Idfd89ea40642130daddbb9e8c0384004c076638a Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-06-10meta-lenovo: hr630: Initial led yaml file equipped with hr630 platformLisa Liu2-0/+35
Add heartbeat and fault led in yaml file. (From meta-lenovo rev: 8a7b9b0a15f36b6ecbd47442b7095f9d43639e79) Signed-off-by: Lisa Liu <liuyj19@lenovo.com> Change-Id: I87418b92d988ba92dd4a4a33e1484d2e42fceca9 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-06-10meta-lenovo: hr630: add kernel configurationsLisa Liu2-0/+21
Add kernel configurations. Tested: Build Lenovo hr630 image and load on the target hardware, ensure that BMC boots to console. (From meta-lenovo rev: 5c27e5f9f7504fc9b9c9567f2ff0ca6d3a9e7eed) Signed-off-by: Lisa Liu <liuyj19@lenovo.com> Change-Id: I32d845b4990d7769e3ddc1b57301c778cfb265f6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-06-10meta-lenovo: network: Disable link-local IP address auto configurationLisa Liu1-0/+6
Add --disable-link-local-autoconfiguration flag for auto-configure. Tested: Check IP address in debug console by ifconfig to see real IP address. (From meta-lenovo rev: f6ec76794761cf29d70c56788570400b7c16fcee) Signed-off-by: Lisa Liu <liuyj19@lenovo.com> Change-Id: I05a10baa1071cd6d93e0a2bcf317c95187bf7539 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-06-10meta-lenovo: hr630: Add hr630 platformLisa Liu6-0/+96
hr630 is a Lenovo platform. Add machine to repo. kernel device tree of Lenovo is being reviewed, so aspeed-bmc-lenovo-hr630.dts has not been merged yet. (From meta-lenovo rev: 460c31a424e0ee831933f61ecb55f60a0c9ba38f) Signed-off-by: Lisa Liu <liuyj19@lenovo.com> Change-Id: I1577775ea92fd8dbc9ab5b3f2b045ef04e524dc6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>