Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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
|
|
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
|
|
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>
|
|
We want to use packageconfig options instead of build system specific
ones.
Change-Id: Ie9b0b274c6ea137e44edaf02ea3d4f2109d727fb
Signed-off-by: William A. Kennington III <wak@google.com>
|
|
Latest upstream yocto has moved on to the 3.3 hardknott release
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Ieae36798d66d21c2c642931f06407d3bb2acf163
|
|
This layer provides libseccomp.
Signed-off-by: Anton D. Kachalov <gmouse@google.com>
Change-Id: I84513d56f2ed75fab49043196b98ef8b858e394f
|
|
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
|
|
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>
|
|
Support for the Scale property on the sensor Value interface was dropped
in the phosphor-hwmon commit ecac0ae208cfc437 ("Fixes for when sensor value
is a double").
(From meta-lenovo rev: 95fc122925c1370e9fe5bb7785ef76ea727d8d12)
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Change-Id: I874cbaf58382eb4d71c863959037a3dbca6955a9
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
Dbus sensor interface 'xyz.openbmc_project.Sensor.Value' migrated
from int to double. Therefore all old 'int64_t' types in
"*-ipmi-sensor*.yaml" files for this interface should be changed to
'double'.
(From meta-lenovo rev: 5151dc21b034d829cfd310c778bdb03b1ce3c9e2)
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Change-Id: I3cf17b60c0faf77639f50ce8f26f5004c2ccc25b
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
Update the configuration options to leverage the now available
PACKAGECONFIG options.
(From meta-lenovo rev: 32472874c254fd791fe5da9e0c41a82d2a4d45b9)
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I1e0cd65502e530994d02dc486041d0d47c79ef6c
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Use the IPMI_FLASH_BMC_ADDRESS mapped address variable to configure the
mapped_address configuration option.
(From meta-lenovo rev: 011afb2278f83d4038d42eb4ff0ec10ef8a02932)
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: If614065d3022b1868c93a62fd975322f4db68237
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Add --disable-link-local-autoconfiguration flag for auto-configure.
Tested:
Check IP addresses can be displayed using ifconfig.
(From meta-lenovo rev: 67ce09bec382bfb805b811075cf2156facfd6ba0)
Signed-off-by: Derek Lin <dlin23@lenovo.com>
Change-Id: I2ec22e12db6f9d54acf668e5a0e4a445e15f1012
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Add kernel configurations.
Tested:
Build Lenovo hr855xg2 image and load on the target hardware,
make sure BMC could boot to console.
(From meta-lenovo rev: 0af73ed9f290ac032f1f45f276fa529bd421ebe7)
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: I3a84172d9512dce9a766dc4f755e834962c4f7bb
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
temperature sensors ambient and outlet of tmp75, adc voltage sensors
and fan-tach sensors.
Tested: Build it in hr855xg2 image, load on hr855xg2 platform,
ensure it could show these sensors correctly with command:
ipmitool sdr list.
(From meta-lenovo rev: 3293e0f1dc327000f173ec59beaea5d5fe266d0a)
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: Iee53d6dcf05e534f6507775c02b2d631da06d93a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Add GPIO definitions for the hr855xg2 machine.
Tested: Built hr855xg2 machine and checked that the file
/etc/default/obmc/gpio/gpio_defs.json was correct
for hr855xg2 machine.
(From meta-lenovo rev: a325e2489b6c482c48deb822b063c15231af2b93)
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: I2192a5ec39ced50a46a2e62eb3f15ddd445c4f4b
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Move led yaml file to configuration folder and define YAML_PATH
to led parse tool.
(From meta-lenovo rev: 7fc1adfc0b64fbd6ef390a55f2ad648dd4693db0)
Signed-off-by: Andrew Peng <pengms1@lenovo.com>
Change-Id: Id1cafab42e33f99457288ff200992da2465f61c4
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
1. Add some autoconfigure parameters for phosphor-ipmi-flash.
2. Add some sensor and FRU definitions for ipmi.
3. Add IPMI device id configuration.
Tested:
This has been tested on hr855xg2 machine via ipmitool from host.
(From meta-lenovo rev: 1d57596f3206006189166000e8bfd351b3935aca)
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: Ib387c38ba70df53b6320138993912eb900069bc1
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Move YAML file of ipmi fru, sensors and led to configuration folder
to create simpler scheme for hr855xg2 platform, for all the IPMI
virtuals and PREFERRED_PROVIDERS in meta-phosphor are in the
process of being deprecated.
(From meta-lenovo rev: 6f4d757420bf82b9a7805a7c318e356d13f6bf6d)
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: Ic203c00bbd47b5a058995dc8328749909d72b41e
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
hr855xgw is a lenovo platform. Add machine to repo.
(From meta-lenovo rev: 57f917c8d869833d8d3a4fd6a914bc795cf6b843)
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: I2f20578eee3849ac49988e0cbc69f21f0676e22f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|