OpenHarmony v4.0 RPI 4B Board - SAMGR/Foundation Service Failure and bm Command Not Working

Hello Team,

I am working on Banana pi OpenHarmony v4.0 distro. The distro has been successfully able to boot. However, while running XTS tests, we are encountering issues with the bm command. The detailed observations and troubleshooting steps are provided below.

bm command execution result:
error: failed to execute your command
Screenshot from 2026-05-20 15-17-43

Issue Summary:
During boot, SAMGR starts, but several foundation services fail to register/start correctly. As a result:

Observed logs:

C01800/SAMGR: [SA Scheduler][SA: 5100] not in SA profiles
C01800/SAMGR: NOT found service : 5100
C01800/SAMGR: [SA Scheduler][SA: 5100] handle load event by check start
C01800/SAMGR: [SA Scheduler][SA: 5100] not in SA profiles
C01510/BinderInvoker: 124: SendRequest: handle=0 result = 3
C01800/SA_CLIENT: GetSystemAbilityWrapper:sa 5100 is not exist
C01800/SAMGR: [SA Scheduler][SA: 10] not in SA profiles
C01800/SAMGR: NOT found service : 10
C01800/SAMGR: [SA Scheduler][SA: 10] handle load event by check start
C01800/SAMGR: [SA Scheduler][SA: 10] not in SA profiles
C01510/BinderInvoker: 124: SendRequest: handle=0 result = 3
C01800/SA_CLIENT: GetSystemAbilityWrapper:sa 10 is not exist

Current Observations
We confirmed the following:

  • samgr process is running
  • foundation directories are present in source tree
  • bundlemanager sources are available
  • bundle-related shared libraries are present in /system/lib64
  • however, required System Abilities are not registered

Source Tree Status
Available:
foundation/systemabilitymgr
foundation/bundlemanager

Some framework directories are not present:
foundation/appexecfwk
foundation/aafwk
base/global/systemabilitymgr

Suspected Root Cause
Currently it appears that:

  • SA profiles are not being loaded/generated properly
  • foundation services are failing during startup
  • BundleMgrService registration is missing
  • product configuration may be incomplete for Standard System services

Questions

  1. Where are SA profiles generated and loaded from in OHOS 4.0?
  2. What are the mandatory services/configurations required for:
  • BundleMgrService
  • bm command
  • foundation service startup
  • Is additional Standard System configuration required?

Are there any reference product configs for enabling:

  • Bundle Manager
  • Ability framework
  • AppSpawn
  • SA registration

Any guidance regarding SA profile loading, foundation service startup, and Bundle Manager initialization would be very helpful.

Thanks.