| /openbmc/u-boot/include/ | 
| H A D | post.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 65 #define POST_POWERON		0x01	/* test runs on power-on booting */ 66 #define POST_NORMAL		0x02	/* test runs on normal booting */ 68 #define POST_POWERTEST		0x08	/* test runs after watchdog reset */ 70 #define POST_COLDBOOT		0x80	/* first boot after power-on */ 72 #define POST_ROM		0x0100	/* test runs in ROM */ 73 #define POST_RAM		0x0200	/* test runs in RAM */ 74 #define POST_MANUAL		0x0400	/* test runs on diag command */ 76 #define POST_PREREL		0x1000  /* test runs before relocation */ 79 #define POST_STOP		0x4000	/* Interrupt POST sequence on fail */ [all …] 
 | 
| /openbmc/openbmc/poky/documentation/test-manual/ | 
| H A D | ptest.rst | 1 .. SPDX-License-Identifier: CC-BY-SA-2.0-UK 7 A Package Test (ptest) runs tests against packages built by the 8 OpenEmbedded build system on the target machine. A ptest contains at 9 least two items: the actual test, and a shell script (``run-ptest``) 11 contain the actual test --- the script only starts the test. On the other 12 hand, the test can be anything from a simple shell script that runs a 28    A recipe is "ptest-enabled" if it inherits the :ref:`ref-classes-ptest` 39    EXTRA_IMAGE_FEATURES += "ptest-pkgs" 48 The ``ptest-runner`` package installs a shell script that loops through 49 all installed ptest test suites and runs them in sequence. Consequently, [all …] 
 | 
| /openbmc/qemu/scripts/simplebench/ | 
| H A D | simplebench.py | 33     """Benchmark one test-case 35     test_func   -- benchmarking function with prototype 37                    arguments and on success returns dict with 'seconds' or 41                    info. On failure test_func should return {'error': str}. 43     test_env    -- test environment - opaque first argument for test_func 44     test_case   -- test case - opaque second argument for test_func 45     count       -- how many times to call test_func, to calculate average 46     initial_run -- do initial run of test_func, which don't get into result 47     slow_limit  -- stop at slow run (that exceedes the slow_limit by seconds). 49     drop_caches -- drop caches before each run [all …] 
 | 
| /openbmc/qemu/include/system/ | 
| H A D | block-backend-common.h | 4  * Copyright (C) 2014-2016 Red Hat, Inc. 10  * or later.  See the COPYING.LIB file in the top-level directory. 17 #include "block/throttle-groups.h" 34      * See include/block/block-global-state.h for more information about 39      * Runs when virtual media changed (monitor commands eject, change) 40      * Argument load is true on load and false on eject. 47      * Runs when an eject request is issued from the monitor, the tray 63      * Runs when the backend receives a drain request. 67      * Runs when the backend's last drain request ends. 76      * I/O API functions. These functions are thread-safe. [all …] 
 | 
| /openbmc/openbmc/meta-raspberrypi/.github/workflows/ | 
| H A D | compliance.yml | 1 # SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com> 3 # SPDX-License-Identifier: MIT 7 on: 13     runs-on: ubuntu-latest 15       - name: Checkout the code 18           fetch-depth: 0 19       - name: Build a temporary DCO image 20         uses: ./.github/actions/docker-build 22           docker_image: dco-check 24       - name: Do DCO check [all …] 
 | 
| H A D | cancel-redundant-workflows.yml | 1 # SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com> 3 # SPDX-License-Identifier: MIT 7 on: 10       - "Builds" 11       - "Compliance" 12       - "Yocto Compatible" 14       - requested 17   cancel-redundant-workflows: 18     runs-on: ubuntu-latest 20     - uses: styfle/cancel-workflow-action@0.10.0
  | 
| H A D | mirror.yml | 1 # SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com> 3 # SPDX-License-Identifier: MIT 7 on: [ push, delete, create ] 10   group: git-mirror-me 13   yocto-mirror: 15     runs-on: ubuntu-latest 17       - uses: agherzan/git-mirror-me-action@11f54c7186724daafbe5303b5075954f1a19a63e 21           GMM_DST_REPO: "ssh://git@push.yoctoproject.org/meta-raspberrypi"
  | 
| /openbmc/phosphor-fan-presence/control/json/actions/ | 
| H A D | get_managed_objects.hpp | 8  *     http://www.apache.org/licenses/LICENSE-2.0 11  * distributed under the License is distributed on an "AS IS" BASIS, 34  * D-Bus method to find and add the results.  When that is done, 35  * it then runs any actions listed in the JSON. 82      * @param[in] jsonObj - JSON configuration of this action 83      * @param[in] groups - Groups of dbus objects the action uses 90      * @param[in] zone - Zone to run the action on 95      * @brief Set the zones on the action and the embedded actions 97      * @param[in] zones - Zones for the action and timer's actions 99      * Sets the zones on this action and the timer's actions to run against [all …] 
 | 
| /openbmc/phosphor-power/phosphor-regulators/docs/ | 
| H A D | monitoring.md | 5 The `phosphor-regulators` application supports two types of regulator 8 - [Sensor monitoring](sensor_monitoring.md) 9   - Reading sensor values such as voltage output and temperature 10 - [Phase fault monitoring](phase_fault_monitoring.md) 11   - Checking if a redundant regulator phase has failed 19 enabled (turned on). 22 [phosphor-regulators-monitor-enable.service](../../services/phosphor-regulators-monitor-enable.serv… 23 is started. This runs the `regsctl` utility. This utility invokes the D-Bus 24 `monitor` method on the `phosphor-regulators` application. The parameter value 27 `phosphor-regulators` will start performing the monitoring defined in the JSON [all …] 
 | 
| /openbmc/u-boot/test/dm/ | 
| H A D | test-main.c | 1 // SPDX-License-Identifier: GPL-2.0+ 15 #include <dm/uclass-internal.h> 26 	struct dm_test_state *dms = uts->priv;  in dm_test_init() 29 	gd->dm_root = NULL;  in dm_test_init() 35 	gd->of_root = of_live ? uts->of_root : NULL;  in dm_test_init() 38 	dms->root = dm_root();  in dm_test_init() 82 	const char *fname = strrchr(test->file, '/') + 1;  in dm_do_test() 84 	printf("Test: %s: %s%s\n", test->name, fname,  in dm_do_test() 88 	uts->start = mallinfo();  in dm_do_test() 89 	if (test->flags & DM_TESTF_SCAN_PDATA)  in dm_do_test() [all …] 
 | 
| /openbmc/witherspoon-pfault-analysis/ | 
| H A D | device_monitor.hpp | 4 #include <phosphor-logging/log.hpp> 22  * on an interval.  Do the monitoring by calling run(). 38      * @param[in] d - device to monitor 39      * @param[in] e - event object 40      * @param[in] i - polling interval in ms 49      * Starts the timer to monitor the device on an interval. 60      * Runs in the timer callback 66         device->analyze();  in analyze() 70      * The device to run the analysis on 75      * The timer that runs fault check polls.
  | 
| /openbmc/phosphor-power/ | 
| H A D | device_monitor.hpp | 19  * on an interval.  Do the monitoring by calling run(). 35      * @param[in] d - device to monitor 36      * @param[in] e - event object 37      * @param[in] i - polling interval in ms 46      * Starts the timer to monitor the device on an interval. 57      * Runs in the timer callback 63         device->analyze();  in analyze() 67      * The device to run the analysis on 72      * The timer that runs fault check polls.
  | 
| /openbmc/openbmc/poky/documentation/sdk-manual/ | 
| H A D | appendix-customizing-standard.rst | 1 .. SPDX-License-Identifier: CC-BY-SA-2.0-UK 12 When you build a standard SDK using the ``bitbake -c populate_sdk``, a 19 If you want to add individual packages to the toolchain that runs on the 22 of the toolchain that runs on the target, add the packages to the 29 provided by recipes with the standard SDK by adding "api-documentation" 32 variable: DISTRO_FEATURES:append = " api-documentation" Setting this
  | 
| /openbmc/phosphor-objmgr/fail-monitor/ | 
| H A D | monitor.hpp | 28      * The valid actions - either starting or stopping a unit 46      * @param[in] sourceUnit - the source unit 47      * @param[in] targetUnit - the target unit 48      * @param[in] targetAction - the action to run on the target 58      * If it is, then it runs the action on the target unit. 72      * @param[in] path - the unit object path to check 74      * @return - true if this unit is in the failed state 79      * Runs the action on the target unit. 99      * The action to run on the target if the source
  | 
| /openbmc/u-boot/doc/ | 
| H A D | README.iscsi | 1 # iSCSI booting with U-Boot and iPXE 5 U-Boot has only a reduced set of supported network protocols. The focus for 6 network booting has been on UDP based protocols. A TCP stack and HTTP support 27 provides mutual authentication using the CHAP protocol. It typically runs on 34 An alternative to implementing these protocols in U-Boot is to use an existing 35 software that can run on top of U-Boot. iPXE[1] is the "swiss army knife" of 40 run by U-Boot. 44 U-Boot loads the EFI application iPXE snp.efi using the bootefi command. This 46 U-Boot. 56 uses the ConnectController boot service of U-Boot to request U-Boot to connect a [all …] 
 | 
| /openbmc/qemu/tests/qtest/ | 
| H A D | npcm7xx_rng-test.c | 21 #include "libqtest-single.h" 77     while (retries-- > 0) {  in rng_wait_ready() 87  * Perform a frequency (monobit) test, as defined by NIST SP 800-22, on the 88  * sequence in buf and return the P-value. This represents the probability of a 104          * Each 1 counts as 1, each 0 counts as -1.  in calc_monobit_p() 105          * s = cp - (8 - cp) = 2 * cp - 8  in calc_monobit_p() 107         sn += 2 * ctpop8(buf[i]) - 8;  in calc_monobit_p() 116  * Perform a runs test, as defined by NIST SP 800-22, and return the P-value. 118  * number of runs (i.e. uninterrupted sequences of identical bits) as the 136     for (k = 0; k < nr_bits - 1; k++) {  in calc_runs_p() [all …] 
 | 
| /openbmc/openbmc/meta-raspberrypi/.github/actions/docker-build/ | 
| H A D | action.yml | 1 # SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com> 3 # SPDX-License-Identifier: MIT 15 runs: 18     - name: Build the ${{ inputs.docker_image }} docker image 27         cd .github/workflows/docker-images/ 29         # handle multiple runners on the same host using the same docker 33         until [ "$n" -gt "$tries" ]; do 34           echo "Building the docker image ${{ inputs.docker_image }}-${{ inputs.id }}... try $n..." 35 …if docker build . -f "${{ inputs.docker_image }}/Dockerfile" -t "${{ inputs.docker_image }}-${{ in… 36             # This can fail if a dangling images cleaning job runs in [all …] 
 | 
| /openbmc/qemu/.github/workflows/ | 
| H A D | lockdown.yml | 1 # Configuration for Repo Lockdown - https://github.com/dessant/repo-lockdown 5 on: 10   pull-requests: write 14     runs-on: ubuntu-latest 16       - uses: dessant/repo-lockdown@v2 18           pr-comment: | 21             This repository is a read-only mirror of the project's repostories hosted 22             on https://gitlab.com/qemu-project/qemu.git. 23             The project does not process merge requests filed on GitHub. 27             guidelines about contributing on the project website: [all …] 
 | 
| /openbmc/phosphor-power/phosphor-regulators/test/ | 
| H A D | test_utils.cpp | 1 // This .cpp file was added as a workaround for clang-tidy limitations. 2 // Meson runs clang-tidy directly on headers (.hpp), but the tool relies on
  | 
| /openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/openthread/ | 
| H A D | ot-daemon_git.bb | 1 # SPDX-FileCopyrightText: Huawei Inc. 3 # SPDX-License-Identifier: Apache-2.0 4 SUMMARY = "OpenThread Daemon is an OpenThread POSIX build mode that runs OpenThread as a service." 6 LICENSE = "BSD-3-Clause & Apache-2.0" 21 EXTRA_OECMAKE = "-DOT_DAEMON=ON \ 22                  -DOT_SPINEL_RESET_CONNECTION=ON \ 23                  -DOT_THREAD_VERSION=1.2 \ 24                  -DOT_COVERAGE=OFF \ 25                  -DOT_PLATFORM=posix \ 26                  -DCMAKE_BUILD_TYPE=Release \ [all …] 
 | 
| /openbmc/qemu/docs/system/arm/ | 
| H A D | fby35.rst | 4 Facebook has a series of multi-node compute server designs named 6 …semite v3 <https://www.opencompute.org/documents/ocp-yosemite-v3-platform-design-specification-1v1… 8 Yosemite v3.5 is an iteration on this design, and is very similar: there's a 15 …o a chassis. See `here <https://www.opencompute.org/products-chiplets/237/wiwynn-yosemite-v3-serve… 19 runs `OpenBMC <https://github.com/facebook/openbmc>`__, and the BIC runs 23 source code, see the README's for instructions on that. This image uses the 24 "fby35" machine recipe from OpenBMC, and the "yv35-cl" target from OpenBIC. 27 .. code-block:: bash 29     $ wget https://github.com/facebook/openbmc/releases/download/openbmc-e2294ff5d31d/fby35.mtd 30 … $ wget https://github.com/peterdelevoryas/OpenBIC/releases/download/oby35-cl-2022.13.01/Y35BCL.elf [all …] 
 | 
| /openbmc/u-boot/test/py/ | 
| H A D | README.md | 1 # U-Boot pytest suite 5 This tool aims to test U-Boot by executing U-Boot shell commands using the 6 console interface. A single top-level script exists to execute or attach to the 7 U-Boot console, run the entire script of tests against it, and summarize the 10 - Testing is performed in the same way a user or script would interact with 11   U-Boot; there can be no disconnect. 12 - There is no need to write or embed test-related code into U-Boot itself. 13   It is asserted that writing test-related code in Python is simpler and more 15 - It is reasonably simple to interact with U-Boot in this way. 19 The test suite is implemented using pytest. Interaction with the U-Boot console [all …] 
 | 
| /openbmc/openbmc/poky/meta/lib/oeqa/core/target/ | 
| H A D | serial.py | 2 # SPDX-License-Identifier: MIT 21             fileHandler = logging.FileHandler(filePath, 'w', 'utf-8') 75             Runs command on target over the provided serial connection. 77             calls will re-use the same connection to send new commands. 79             command:    Command to run on target. 82                         0:          No timeout, runs until return. 109             the ASCII text to the target, and decoding it in place on the 112             On a 115k baud serial connection, this method transfers at 118         b32 = base64.b32encode(data).decode('utf-8') 131             conn.run_command(f'echo -n "" > {TEMP}') [all …] 
 | 
| /openbmc/google-misc/subprojects/ncsid/src/ | 
| H A D | ncsi_state_machine.h | 8  *      http://www.apache.org/licenses/LICENSE-2.0 11  * distributed under the License is distributed on an "AS IS" BASIS, 35 //  * L2 -- performs basic NC-SI setup, reads NIC MAC addr 36 //  * L3/4 -- once network is configured on the interface, 37 //      sets up NC-SI filter in the NIC. 38 //  * Test -- runs several basic NC-SI link tests, like 40 //      Also, reads hostless/host-based flag from the NIC, see 52     // NC-SI State Machine's main function. 56     // How often Test FSM re-runs, in seconds. 68     // depending on the function passed in as an argument. [all …] 
 | 
| /openbmc/docs/ | 
| H A D | openbmc-conversion.md | 10 2. [Build](cheatsheet.md#building-for-palmetto) and flash the `image-bmc` output 12 3. Replace existing flash chip on the motherboard (cradle closest to the 15    is wired for a DB-9-style pin-out. 17    pins 2-3. 18 6. Boot OpenBMC on your Palmetto. The console runs at 115200baud.
  |