Unknown package 'kmod-bonding'. Collected errors: * pkg_hash_fetch_best_installation_candidate: Packages for kmod-bonding found, but incompatible with the architectures configured * opkg_install_cmd: Cannot install package kmod-bonding.
时间: 2024-04-13 15:28:26 浏览: 309
很抱歉,看起来在您的OpenWrt设备上找不到与您的架构兼容的kmod-bonding软件包。这可能是因为该软件包没有针对您的设备架构进行编译或者您的软件包列表没有正确更新。
您可以尝试以下步骤来解决此问题:
1. 确保您的OpenWrt设备已连接到互联网,并且网络连接正常。
2. 运行以下命令更新软件包列表:
```
opkg update
```
这将获取最新的软件包信息。
3. 再次尝试安装kmod-bonding模块:
```
opkg install kmod-bonding
```
如果仍然无法安装,请确保您的设备架构与软件包列表中提供的软件包兼容。您可以尝试在OpenWrt论坛或邮件列表上寻求帮助,以获取与您的设备架构兼容的bonding模块的其他来源或解决方案。
如果问题仍然存在,请提供您的设备型号和架构信息,以便我们进一步帮助您找到适用于您的kmod-bonding模块。
相关问题
解读下列编译报错:[OHOS INFO] ERROR at //build/templates/cxx/cxx.gni:242:7: Script returned non-zero exit code. [OHOS INFO] exec_script(external_deps_script, arguments) [OHOS INFO] ^---------- [OHOS INFO] Current dir: /home/huangjianli/kh3.2/out/khdvk_rk3568_a/ [OHOS INFO] Command: /usr/bin/env /home/huangjianli/kh3.2/build/templates/common/external_deps_handler.py --external-deps eventhandler:libeventhandler ces_standard:cesfwk_innerkits hiviewdfx_hilog_native:libhilog --parts-src-flag-file build_configs/parts_src_flag.json --external-deps-temp-file gen/kaihong/communication/kh_iotsdk/src/bonding/kh_iotsdk__bondingtest_external_deps_temp.json --sdk-base-dir ../../sdk/ohos-arm --sdk-dir-name sdk/ohos-arm --current-toolchain //build/toolchain/ohos:ohos_clang_arm --innerkits-adapter-info-file ../../build/ohos/inner_kits_adapter.json [OHOS INFO] Returned 1 and printed out: [OHOS INFO] [OHOS INFO] file '../../sdk/ohos-arm/ces_standard/sdk_info.json' doesn't exist. [OHOS INFO] [OHOS INFO] stderr: [OHOS INFO] [OHOS INFO] Traceback (most recent call last): [OHOS INFO] File "/home/huangjianli/kh3.2/build/templates/common/external_deps_handler.py", line 248, in <module> [OHOS INFO] sys.exit(main()) [OHOS INFO] File "/home/huangjianli/kh3.2/build/templates/common/external_deps_handler.py", line 214, in main [OHOS INFO] sdk_module_info, adapted_ok = _get_external_module_from_sdk( [OHOS INFO] File "/home/huangjianli/kh3.2/build/templates/common/external_deps_handler.py", line 73, in _get_external_module_from_sdk [OHOS INFO] raise Exception("part '{}' doesn't exist in sdk modules.".format( [OHOS INFO] Exception: part 'ces_standard' doesn't exist in sdk modules. [OHOS INFO] [OHOS INFO] See //kaihong/communication/kh_iotsdk/src/bonding/BUILD.gn:16:1: whence it was called. [OHOS INFO] ohos_executable("bondingtest") { [OHOS INFO] ^------------------------------- [OHOS INFO] See //kaihong/communication/kh_iotsdk/BUILD.gn:123:7: which caused the file to be included. [OHOS INFO] "//kaihong/communication/kh_iotsdk/src/bonding:bondingtest", [OHOS INFO] ^----------------------------------------------------------
这段编译报错是在进行华为开发者系统(OHOS)的编译过程中出现的。报错信息显示在编译 //kaihong/communication/kh_iotsdk/src/bonding/BUILD.gn 文件时,执行了 external_deps_handler.py 脚本,其中 ces_standard 部分没有在 OHOS 的 SDK 模块中找到,导致脚本执行失败。建议检查相关的 SDK 模块是否正确安装,或者在对应的 BUILD.gn 文件中修改依赖关系。
//枚举已绑定设备 void peer_moudle_enumerate_bonded_devices(void) { pm_peer_id_t peer_id; uint32_t peers_to_copy; peer_bonded_info_t *p_latest_bonded_info = &m_peer_module_mgr.latest_bonded_info; p_latest_bonded_info->peer_id = PM_PEER_ID_INVALID; peers_to_copy = pm_peer_count(); PEER_MODULE_PRINT("Bonds: %d\r\n", peers_to_copy); peer_id = pm_next_peer_id_get(PM_PEER_ID_INVALID); while ((peer_id != PM_PEER_ID_INVALID) && (peers_to_copy--)) { if(NRF_SUCCESS == pm_peer_data_bonding_load(peer_id, &p_latest_bonded_info->peer_data)) { p_latest_bonded_info->peer_id = peer_id; PEER_MODULE_PRINT("MAC(%d):%02X-%02X-%02X-%02X-%02X-%02X\r\n", peer_id, p_latest_bonded_info->peer_data.peer_ble_id.id_addr_info.addr[0], //little endian p_latest_bonded_info->peer_data.peer_ble_id.id_addr_info.addr[1], p_latest_bonded_info->peer_data.peer_ble_id.id_addr_info.addr[2], p_latest_bonded_info->peer_data.peer_ble_id.id_addr_info.addr[3], p_latest_bonded_info->peer_data.peer_ble_id.id_addr_info.addr[4], p_latest_bonded_info->peer_data.peer_ble_id.id_addr_info.addr[5]); } peer_id = pm_next_peer_id_get(peer_id); } }
这段代码是用于枚举已绑定设备的函数,它会遍历所有已绑定的设备并输出它们的 MAC 地址。具体来说,它首先获取最近绑定设备的信息,然后使用 pm_peer_count() 函数获取已绑定设备的数量。接着,使用 pm_next_peer_id_get() 函数获取下一个已绑定设备的 ID,并且一直循环直到遍历完所有已绑定设备。在循环中,它会使用 pm_peer_data_bonding_load() 函数加载设备的绑定数据,如果成功加载,则输出设备的 MAC 地址。
阅读全文
相关推荐

