You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用BeagleBone Black+Bonscript时出现“Kernel does not include CapeMgr module”错误求助

Fixing "Kernel does not include CapeMgr module" Error on BeagleBone Black with Bonscript

Hey there, let’s work through this frustrating error you’re hitting when using Bonscript with your BeagleBone Black. I’ve run into this exact issue a handful of times, so here’s a step-by-step breakdown of what to check and how to fix it:

1. Verify if the CapeMgr Module is Loaded or Even Exists

First, let’s confirm whether the bone_capemgr module is present on your system:

  • Run this command to check if it’s already loaded:
    lsmod | grep bone_capemgr
    
    If you get no output, the module isn’t loaded.
  • Try loading it manually with:
    sudo modprobe bone_capemgr
    
    If you get an error like modprobe: FATAL: Module bone_capemgr not found in directory /lib/modules/$(uname -r), that confirms your kernel was compiled without this module.

2. Check Your Kernel Configuration

Many newer BeagleBone Black kernels (especially post-Debian 10) disable bone_capemgr by default in favor of newer Device Tree Overlay tools—but Bonscript often relies on the old CapeMgr system. Here’s how to check:

  • View your current kernel config with:
    zcat /proc/config.gz | grep CONFIG_BONE_CAPEMGR
    
    If the output shows # CONFIG_BONE_CAPEMGR is not set, the module was excluded from the kernel build.

If You Compiled Your Own Kernel:

  • Re-run your kernel configuration tool (like menuconfig or nconfig), navigate to Device Drivers > Staging drivers > Support for the BeagleBone Black Capes, and set CONFIG_BONE_CAPEMGR to m (module) or y (built-in).
  • Recompile your kernel and modules, then install them on your BBB.

If You’re Using an Official Image:

  • Consider switching to an older official image (like Debian 9 Stretch) that still includes bone_capemgr by default. These images are widely tested with tools like Bonscript.
  • Alternatively, edit your /boot/uEnv.txt file to enable CapeMgr at boot. Add or uncomment this line (depending on your kernel version):
    capemgr.enabled=1
    
    Save the file, reboot, and try loading the module again.

3. Check Bonscript Compatibility

Make sure your Bonscript version is compatible with your BBB’s kernel:

  • Older versions of Bonscript hardcode paths to /sys/devices/platform/bone_capemgr—if this directory doesn’t exist (because CapeMgr is missing), it’ll throw the error you’re seeing.
  • If possible, update Bonscript to the latest version (if it’s been updated to support newer Device Tree methods) or roll back to a version that explicitly supports CapeMgr.

Quick Troubleshooting Note

Always back up your important data before modifying kernel settings or switching images—kernel changes can sometimes lead to boot issues if done incorrectly.

内容的提问来源于stack exchange,提问作者user3400975

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 08:51:33