History log of /openbmc/openbmc-tools/ipkdbg/ (Results 1 – 3 of 3)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
636a6d4214-Mar-2024 Jian Zhang <zhangjian.3032@bytedance.com>

ipkdbg: Add zstd support

The ipk using zstd to archive, add zstd support.

Since v0.5.0[0], the opkg support zstd.

[0]: https://git.yoctoproject.org/opkg/commit/?id=5dead41
~ git tag --contains=5de

ipkdbg: Add zstd support

The ipk using zstd to archive, add zstd support.

Since v0.5.0[0], the opkg support zstd.

[0]: https://git.yoctoproject.org/opkg/commit/?id=5dead41
~ git tag --contains=5dead41
```
v0.5.0
v0.6.0
v0.6.1
v0.6.2
v0.6.3
```

Change-Id: I92f19b703bb5e19bfb501b30ee4f2867f0fe781e
Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com>

show more ...

e310dd9107-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

treewide: lint and format

Run all the latest linters and formatters from openbmc-build-scripts.
These were all robotically generated except for fixes due to
markdownlint warnings.

Signed-off-by: Pa

treewide: lint and format

Run all the latest linters and formatters from openbmc-build-scripts.
These were all robotically generated except for fixes due to
markdownlint warnings.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If16d2fd802a2d452234d8b56b41e79d030138a6b

show more ...


/openbmc/openbmc-tools/.linter-ignore
/openbmc/openbmc-tools/.shellcheck-ignore
/openbmc/openbmc-tools/README.md
/openbmc/openbmc-tools/altitude/altitude
/openbmc/openbmc-tools/autojson/autojson.py
/openbmc/openbmc-tools/bbdbg/bbdbg
/openbmc/openbmc-tools/bi2cp/README.md
/openbmc/openbmc-tools/bi2cp/bi2cp
/openbmc/openbmc-tools/dbus-pcap/README.md
/openbmc/openbmc-tools/dbus-pcap/dbus-pcap
/openbmc/openbmc-tools/dbus-top/README.md
/openbmc/openbmc-tools/dbus-vis/README.md
/openbmc/openbmc-tools/dbus-vis/linecount.py
/openbmc/openbmc-tools/dbus-vis/package.json
/openbmc/openbmc-tools/dbusView/dbusView.py
/openbmc/openbmc-tools/ddconvnotrunc/ddconvnotrunc
/openbmc/openbmc-tools/expectedJsonChecker/README.md
/openbmc/openbmc-tools/format-yaml/format-yaml.py
README.md
build-opkg
/openbmc/openbmc-tools/netboot/README.md
/openbmc/openbmc-tools/netboot/netboot
/openbmc/openbmc-tools/openbmc-autobump/openbmc-autobump.py
/openbmc/openbmc-tools/openbmctool/README.md
/openbmc/openbmc-tools/overlay/overlay
/openbmc/openbmc-tools/prepare-emmc-qemu/prepare-emmc-qemu
/openbmc/openbmc-tools/pretty-journal/pretty-journal.py
/openbmc/openbmc-tools/reboot-ping-pong/rpp
/openbmc/openbmc-tools/rootfs_size/rootfs_size.py
/openbmc/openbmc-tools/sensor_yaml_config/README.md
/openbmc/openbmc-tools/sensor_yaml_config/sensor_map.yaml
/openbmc/openbmc-tools/sensor_yaml_config/sensor_yaml_config.py
/openbmc/openbmc-tools/tof-voters/README.md
/openbmc/openbmc-tools/tof-voters/libvoters/entry_point.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/analyze-commits.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/analyze-reviews.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/dump-gerrit.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/report.py
/openbmc/openbmc-tools/tof-voters/libvoters/time.py
/openbmc/openbmc-tools/tracing/README.md
/openbmc/openbmc-tools/tracing/trace
/openbmc/openbmc-tools/witherspoon-debug/README.md
/openbmc/openbmc-tools/witherspoon-debug/debug
c7a446e220-Jul-2022 Andrew Jeffery <andrew@aj.id.au>

tools: ipkdbg: Generate gdb environments from opkg package archives

ipkdbg serves interactive debugging and coredump analysis of split-debug
binaries by exploiting bitbake's runtime package manageme

tools: ipkdbg: Generate gdb environments from opkg package archives

ipkdbg serves interactive debugging and coredump analysis of split-debug
binaries by exploiting bitbake's runtime package management support
outside the context of the BMC.

To enable ipkdbg in your environment you will need to be familiar with
bitbake's support of [package feeds][package-feeds].

[package-feeds]: https://docs.yoctoproject.org/dev-manual/common-tasks.html?highlight=package+feed#using-runtime-package-management

ipkdbg MUST have access to an appopriate opkg.conf that identifies the
location of the ipk package archive from which the binary under
inspection was installed. ipkdbg supports fetching opkg.conf from a
well-known, remote location if required.

ipkdbg MUST have access to a gdb binary that supports multi-arch for
cross-architecture debugging.

It is RECOMMENDED that ipkdbg also has access to the opkg database used
for populating the rootfs of the BMC firmware image. This is used for
reverse-mapping of absolute binary paths to the package that installed
the binary. With this capability, it is no-longer necessary to list the
set of packages to include in the debug rootfs on the ipkdbg
command-line when processing a core dump, they are automatically
discovered through extracting the path of the failed binary from the
core file.

To make bitbake retain the opkg database for a given build, set
[`INC_IPK_IMAGE_GEN = "1"`][incremental-builds] in your bitbake
configuration, and capture
`./tmp/work/*/obmc-phosphor-image/1.0-r0/temp/saved` as a build artefact
using the following incantation:

$ tar -cJf opkg-database.tar.xz \
-C ./tmp/work/*/obmc-phosphor-image/1.0-r0/temp/saved/target/ \
info lists status

[incremental-builds]: https://git.openembedded.org/openembedded-core/commit/?id=adf587e55c0f9bc74f0bef415273c937401baebb

Finally, opkg binaries are not provided directly due to licensing and
distribution concerns. The binaries should be built and copied into a
bin/ directory alongside `ipkdbg.in` using the
${arch}/${release_id}/${release_version_id}/opkg scheme outlined in the
code:

```
ipkdbg_opkg_path() {
...
local arch=$(uname -m)
local release_id=$(. /etc/os-release; echo $ID)
local release_version_id=$(. /etc/os-release; echo $VERSION_ID)
local p=${root}/bin/${arch}/${release_id}/${release_version_id}/opkg
...
```

Once placed in bin/ the Makefile handles stripping and archiving them
for packaging into the final `ipkdbg` script.

A helper script for building opkg, `build-opkg`, is provided in place of
the binaries themselves.

Help output:

$ ./ipkdbg -h
NAME
ipkdbg - debug OpenBMC applications from an (internally) released firmware

SYNOPSIS
ipkdbg [-q] RELEASE FILE CORE [PACKAGE...]

DESCRIPTION
RELEASE is the firmware release whose packages to install
FILE is the absolute path to the binary of interest in the target environment
CORE is an optional core file generated by FILE. Pass '-' for no core file
PACKAGES will be used to populate a temporary rootfs for debugging FILE

OPTIONS
-h
Print this help.

-q
Quit gdb once done. Intended for use in a scripting environment in combination
with a core file, as the backtrace will be printed as an implicit first command.

ENVIRONMENT
There are several important environment variables controlling the behaviour of
the script:

IPKDBG_OPKG_CACHE
A package cache directory for opkg. Defaults to empty, disabling the cache.

IPKDBG_CONF_HOST
Hostname for access to opkg.conf over the web interface

Defaults to 'host.local'

IPKDBG_CONF_MNT
Mount-point for access to opkg.conf

Defaults to 'mountpoint'

IPKDBG_CONF_LOC
Geo-location for access to opkg.conf

Defaults to 'themoon'

IPKDBG_CONF_ROOT
Path to the directory containing build artifacts, for access to opkg.conf

Defaults to 'path'

IPKDBG_CONF_USER
Username for access to opkg.conf over the web interface

Defaults to $USER (andrew)

IPKDBG_GDB
The gdb(1) binary to invoke. Automatically detected if unset.

IPKDBG_WGET_OPTS
User options to pass to wget(1) when fetching opkg.conf. Defaults to
'--quiet'

IPKDBG_ZSTD
The zstd(1) binary to extract the compressed core dump. Automatically
detected if unset.

EXAMPLE
ipkdbg 1020.2206.20220208a \
/usr/bin/nvmesensor - \
dbus-sensors dbus-sensors-dbg

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ib5a7619d0c657754bc0fa2e04cd97e64e4b6da47

show more ...


/openbmc/openbmc-tools/LICENSE
/openbmc/openbmc-tools/OWNERS
/openbmc/openbmc-tools/README.md
/openbmc/openbmc-tools/adcapp/LICENSE
/openbmc/openbmc-tools/adcapp/Makefile.am
/openbmc/openbmc-tools/adcapp/README
/openbmc/openbmc-tools/adcapp/configure.ac
/openbmc/openbmc-tools/adcapp/src/EINTR_wrappers.c
/openbmc/openbmc-tools/adcapp/src/EINTR_wrappers.h
/openbmc/openbmc-tools/adcapp/src/Makefile.am
/openbmc/openbmc-tools/adcapp/src/adc.h
/openbmc/openbmc-tools/adcapp/src/adcapp.c
/openbmc/openbmc-tools/adcapp/src/adcifc.c
/openbmc/openbmc-tools/adcapp/src/adcifc.h
/openbmc/openbmc-tools/altitude/altitude
/openbmc/openbmc-tools/autojson/autojson.py
/openbmc/openbmc-tools/bbdbg/bbdbg
/openbmc/openbmc-tools/bi2cp/README.md
/openbmc/openbmc-tools/bi2cp/bi2cp
/openbmc/openbmc-tools/bi2cp/requirements.txt
/openbmc/openbmc-tools/cla-signers/README.md
/openbmc/openbmc-tools/cla-signers/update-cla.sh
/openbmc/openbmc-tools/dbus-pcap/README.md
/openbmc/openbmc-tools/dbus-pcap/dbus-pcap
/openbmc/openbmc-tools/dbus-pcap/requirements.txt
/openbmc/openbmc-tools/dbus-top/.clang-format
/openbmc/openbmc-tools/dbus-top/.gitignore
/openbmc/openbmc-tools/dbus-top/analyzer.cpp
/openbmc/openbmc-tools/dbus-top/analyzer.hpp
/openbmc/openbmc-tools/dbus-top/bargraph.hpp
/openbmc/openbmc-tools/dbus-top/dbus_capture.cpp
/openbmc/openbmc-tools/dbus-top/dbus_capture.hpp
/openbmc/openbmc-tools/dbus-top/dbus_top_recipe.bb
/openbmc/openbmc-tools/dbus-top/histogram.hpp
/openbmc/openbmc-tools/dbus-top/main.cpp
/openbmc/openbmc-tools/dbus-top/main.hpp
/openbmc/openbmc-tools/dbus-top/menu.cpp
/openbmc/openbmc-tools/dbus-top/menu.hpp
/openbmc/openbmc-tools/dbus-top/meson.build
/openbmc/openbmc-tools/dbus-top/rect.hpp
/openbmc/openbmc-tools/dbus-top/sensorhelper.cpp
/openbmc/openbmc-tools/dbus-top/sensorhelper.hpp
/openbmc/openbmc-tools/dbus-top/subprojects/fmt.wrap
/openbmc/openbmc-tools/dbus-top/subprojects/sdbusplus.wrap
/openbmc/openbmc-tools/dbus-top/views.cpp
/openbmc/openbmc-tools/dbus-top/views.hpp
/openbmc/openbmc-tools/dbus-top/xmlparse.cpp
/openbmc/openbmc-tools/dbus-top/xmlparse.hpp
/openbmc/openbmc-tools/dbus-vis/.clang-format
/openbmc/openbmc-tools/dbus-vis/.gitignore
/openbmc/openbmc-tools/dbus-vis/README.md
/openbmc/openbmc-tools/dbus-vis/boost_handler_timeline_vis.js
/openbmc/openbmc-tools/dbus-vis/dbus_pcap_loader.js
/openbmc/openbmc-tools/dbus-vis/dbus_timeline_vis.js
/openbmc/openbmc-tools/dbus-vis/dbus_vis.css
/openbmc/openbmc-tools/dbus-vis/index.html
/openbmc/openbmc-tools/dbus-vis/info_panel.js
/openbmc/openbmc-tools/dbus-vis/initialization.js
/openbmc/openbmc-tools/dbus-vis/ipmi_capture.js
/openbmc/openbmc-tools/dbus-vis/ipmi_parse.js
/openbmc/openbmc-tools/dbus-vis/ipmi_timeline_vis.js
/openbmc/openbmc-tools/dbus-vis/linecount.py
/openbmc/openbmc-tools/dbus-vis/main.js
/openbmc/openbmc-tools/dbus-vis/package.json
/openbmc/openbmc-tools/dbus-vis/renderer.js
/openbmc/openbmc-tools/dbus-vis/scrnshot.png
/openbmc/openbmc-tools/dbus-vis/timeline_view.js
/openbmc/openbmc-tools/dbusView/dbusView.py
/openbmc/openbmc-tools/dbus_sensor_tester/dbus_sensor_tester.bb
/openbmc/openbmc-tools/dbus_sensor_tester/main.cpp
/openbmc/openbmc-tools/dbus_sensor_tester/meson.build
/openbmc/openbmc-tools/dbus_sensor_tester/subprojects/boost.wrap
/openbmc/openbmc-tools/dbus_sensor_tester/subprojects/cli11.wrap
/openbmc/openbmc-tools/dbus_sensor_tester/subprojects/sdbusplus.wrap
/openbmc/openbmc-tools/ddconvnotrunc/ddconvnotrunc
/openbmc/openbmc-tools/expectedJsonChecker/LICENSE
/openbmc/openbmc-tools/expectedJsonChecker/README.md
/openbmc/openbmc-tools/expectedJsonChecker/expectedJsonChecker.py
/openbmc/openbmc-tools/format-yaml/LICENSE
/openbmc/openbmc-tools/format-yaml/format-yaml.py
Makefile
README.md
build-opkg
ipkdbg.in
/openbmc/openbmc-tools/maintainers/README.md
/openbmc/openbmc-tools/maintainers/obmc-gerrit
/openbmc/openbmc-tools/maintainers/obmc/__init__.py
/openbmc/openbmc-tools/maintainers/obmc/maintainers.py
/openbmc/openbmc-tools/maintainers/obmc/reviewlist.py
/openbmc/openbmc-tools/maintainers/requirements.txt
/openbmc/openbmc-tools/maintainers/setup.py
/openbmc/openbmc-tools/maintainers/split_maintainers.py
/openbmc/openbmc-tools/netboot/README.md
/openbmc/openbmc-tools/netboot/netboot
/openbmc/openbmc-tools/openbmc-autobump/openbmc-autobump.py
/openbmc/openbmc-tools/openbmc-events/LICENSE
/openbmc/openbmc-tools/openbmc-events/README.md
/openbmc/openbmc-tools/openbmc-events/openbmc-events
/openbmc/openbmc-tools/openbmc-events/openbmc-sensors
/openbmc/openbmc-tools/openbmc-events/openbmc-sfw
/openbmc/openbmc-tools/openbmctool/README.md
/openbmc/openbmc-tools/openbmctool/build-scripts/Makefile
/openbmc/openbmc-tools/openbmctool/build-scripts/control
/openbmc/openbmc-tools/openbmctool/build-scripts/openbmctool-rhel7.spec
/openbmc/openbmc-tools/openbmctool/build-scripts/openbmctool-rhel8.spec
/openbmc/openbmc-tools/openbmctool/openbmctool.py
/openbmc/openbmc-tools/openbmctool/policyTable.json
/openbmc/openbmc-tools/overlay/overlay
/openbmc/openbmc-tools/pldm/pdrdump.sh
/openbmc/openbmc-tools/prepare-emmc-qemu/prepare-emmc-qemu
/openbmc/openbmc-tools/pretty-journal/pretty-journal.py
/openbmc/openbmc-tools/pwmtachtool/LICENSE
/openbmc/openbmc-tools/pwmtachtool/Makefile.am
/openbmc/openbmc-tools/pwmtachtool/README
/openbmc/openbmc-tools/pwmtachtool/configure.ac
/openbmc/openbmc-tools/pwmtachtool/src/EINTR_wrappers.c
/openbmc/openbmc-tools/pwmtachtool/src/EINTR_wrappers.h
/openbmc/openbmc-tools/pwmtachtool/src/Makefile.am
/openbmc/openbmc-tools/pwmtachtool/src/libpwmtach.h
/openbmc/openbmc-tools/pwmtachtool/src/pwmtach.c
/openbmc/openbmc-tools/pwmtachtool/src/pwmtach_ioctl.h
/openbmc/openbmc-tools/pwmtachtool/src/pwmtachtool.c
/openbmc/openbmc-tools/reboot-ping-pong/requirements.txt
/openbmc/openbmc-tools/reboot-ping-pong/rpp
/openbmc/openbmc-tools/reboot/petitboot.exp
/openbmc/openbmc-tools/reboot/reboot.sh
/openbmc/openbmc-tools/rootfs_size/results.txt
/openbmc/openbmc-tools/rootfs_size/rootfs_size.py
/openbmc/openbmc-tools/sensor_yaml_config/LICENSE
/openbmc/openbmc-tools/sensor_yaml_config/README.md
/openbmc/openbmc-tools/sensor_yaml_config/sensor_map.yaml
/openbmc/openbmc-tools/sensor_yaml_config/sensor_yaml_config.py
/openbmc/openbmc-tools/tof-voters/.gitignore
/openbmc/openbmc-tools/tof-voters/README.md
/openbmc/openbmc-tools/tof-voters/libvoters/__init__.py
/openbmc/openbmc-tools/tof-voters/libvoters/acceptable.py
/openbmc/openbmc-tools/tof-voters/libvoters/entry_point.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/__init__.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/analyze-commits.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/analyze-reviews.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/dump-gerrit.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/report.py
/openbmc/openbmc-tools/tof-voters/libvoters/time.py
/openbmc/openbmc-tools/tof-voters/voters
/openbmc/openbmc-tools/tracing/README.md
/openbmc/openbmc-tools/tracing/trace
/openbmc/openbmc-tools/upload_and_update/LICENSE
/openbmc/openbmc-tools/upload_and_update/README.md
/openbmc/openbmc-tools/upload_and_update/upload_and_update.py
/openbmc/openbmc-tools/witherspoon-debug/README.md
/openbmc/openbmc-tools/witherspoon-debug/debug
/openbmc/openbmc-tools/witherspoon-debug/libncurses.so.5.9
/openbmc/openbmc-tools/witherspoon-debug/libncursesw.so.5.9