OH-v3.2release版本上适配,系统部件按照最新的《OpenHarmony设备兼容性规范3.2自检表_小型系统》中“小型系统最小系统
(不支持ArkTS应用+无屏)”必选部件适配后,启动报错,怀疑是否是必选部件中依赖了bundle_framework_lite包管理组件(非必选部件)导致。这个问题要怎么定位和解决?下面附上启动报错的相关信息和系统配置的json文件内容

启动信息如下:

[RCS]: /etc/init.d/S01mdev
[RCS]: /etc/init.d/S82ohos
[  207.083736] [pid=1][Init][ERROR][init_utils.c:477]Read dir :/vendor/etc/param failed.2
Set log level : 3 
Default log level: 3 
03-03 07:06:08.627 1 1 E 02C01/Init: [init_common_cmds.c:319]Failed to change owner for /dev/i2c-7, err 2.
03-03 07:06:08.627 1 1 E 02C01/Init: [init_common_cmds.c:319]Failed to change owner for /dev/uartdev-0, err 2.
03-03 07:06:08.627 1 1 E 02C01/Init: [init_common_cmds.c:319]Failed to change owner for /dev/uartdev-1, err 2.
03-03 07:06:08.627 1 1 E 02C01/Init: [init_common_cmds.c:319]Failed to change owner for /dev/uartdev-2, err 2.
03-03 07:06:08.627 1 1 E 02C01/Init: [init_common_cmds.c:319]Failed to change owner for /dev/uartdev-3, err 2.
03-03 07:06:08.627 1 1 E 02C01/Init: [init_common_cmds.c:319]Failed to change owner for /dev/spidev0.0, err 2.
03-03 07:06:08.627 1 1 E 02C01/Init: [init_common_cmds.c:319]Failed to change owner for /dev/spidev1.0, err 2.
03-03 07:06:08.627 1 1 E 02C01/Init: [init_common_cmds.c:319]Failed to change owner for /dev/spidev2.0, err 2.
03-03 07:06:08.628 1 1 E 02C01/Init: [init_common_cmds.c:319]Failed to change owner for /dev/spidev2.1, err 2.
/ # 03-03 07:06:19.113 1503 1503 I 00000/(null): Init pms service success
03-03 07:06:19.113 1503 1503 I 00000/(null): [DMSLITE][Init:83][dms service start success]

03-03 07:06:19.113 1503 1503 I 00000/PowerMgr: [power_manage_service.c] Init# Succeed to init power manager service
03-03 07:06:19.113 1503 1503 E 00000/PowerMgr: [running_lock_handler.c] OpenLockFile# Failed to open /proc/power/power_lock, err: No such file or directory
03-03 07:06:19.113 1503 1503 E 00000/PowerMgr: [running_lock_hub.c] RunningLockHubInit# Failed to init runninglock ops
03-03 07:06:19.113 1503 1503 E 00000/PowerMgr: [suspend_controller.c] SuspendControllerInit# Failed to init running lock hub
03-03 07:06:19.113 1503 1503 I 00000/PowerMgr: [power_manage_feature.c] Init# Succeed to register power manage feature
03-03 07:06:19.401 1504 1504 I 01800/Samgr: Bootstrap core services(count:1).
03-03 07:06:19.401 1504 1504 I 01800/Samgr: Init service:appspawn
03-03 07:06:27.130 1506 1506 I 01800/Samgr: Initialize Client Registry!
[  207.083780] [pid=1][PARAM][ERROR][param_dac.c:181]Read dir :/vendor/etc/param failed.2
03-03 07:06:27.150 1506 1506 I 01800/Samgr: Init service appspawn <time: 8750ms> success!
03-03 07:06:27.159 1507 1507 E 01518/IPCRPC: ipc send request failed res = -32.
03-03 07:06:27.160 1506 1506 I 01800/Samgr: Initialized all core system services!
03-03 07:06:27.180 1506 1506 I 01800/Samgr: Goto next boot step return code:-9
03-03 07:06:27.209 1507 1507 E 01518/IPCRPC: ipc send request failed res = -32.
03-03 07:06:27.259 1507 1507 E 01518/IPCRPC: ipc send request failed res = -32.
03-03 07:06:27.309 1507 1507 E 01518/IPCRPC: ipc send request failed res = -32.
03-03 07:06:27.359 1507 1507 E 01518/IPCRPC: ipc send request failed res = -32.
03-03 07:06:27.900 1507 1507 E 01518/IPCRPC: ipc send request failed res = -32.
03-03 07:06:27.921 1503 1503 I 00000/(null): Init pms inner feature success
03-03 07:06:27.921 1503 1503 I 00000/(null): Init pms lite feature success
03-03 07:06:27.921 1503 1503 I 00000/(null): Init pms lite inner feature success
03-03 07:06:27.921 1503 1503 I 00000/(null): Init ipcAuth feature success
03-03 07:06:27.921 1503 1503 D 01100/bundlems: BundleMS start success
03-03 07:06:27.922 1503 1503 D 01100/bundlems: BundleMS inner feature start success
03-03 07:06:27.922 1503 1503 D 01100/bundlems: BundleMS feature start success
03-03 07:06:27.938 1503 1503 I 01300/abilityms: AbilityManagerService::Init(47): ams starts successfully
03-03 07:06:27.938 1503 1503 I 01300/abilityms: AbilityInnerFeature::Init(60): ams inner feature init success
03-03 07:06:27.938 1503 1503 I 01300/abilityms: AbilityMgrFeature::Init(76): ams feature init success
03-03 07:06:27.938 1503 1503 I 01800/Samgr: Bootstrap core services(count:8).
03-03 07:06:27.938 1503 1503 I 01800/Samgr: Init service:permissionms
03-03 07:06:27.938 1503 1503 I 01800/Samgr: Init service:dtbschedsrv
03-03 07:06:27.938 1503 1503 I 01800/Samgr: Init service:powermgr
03-03 07:06:27.938 1503 1503 I 01800/Samgr: Init service:battery_device
03-03 07:06:27.938 1503 1503 I 01800/Samgr: Init service:battery_service
03-03 07:06:27.938 1503 1503 I 01800/Samgr: Init service:samgr
03-03 07:06:27.938 1503 1503 I 01800/Samgr: Init service:bundlems
03-03 07:06:27.943 1514 1514 D 01100/bundlems: BundleMS feature initialized, result is 1
03-03 07:06:27.943 1514 1514 I 01800/Samgr: Init service bundlems <time: 22ms> success!
03-03 07:06:27.943 1514 1514 I 01100/bundlems: create BundleInstaller instance!
03-03 07:06:27.943 1511 1511 I 00000/PowerMgr: [power_manage_feature.c] OnPowerManageFeatureInitialize# Init power manage feature done
03-03 07:06:27.943 1511 1511 I 01800/Samgr: Init service powermgr <time: 8830ms> success!
03-03 07:06:27.943 1514 1514 I 01518/IPCRPC: Internal ipc request called
03-03 07:06:27.943 1514 1514 D 01800/Samgr: Cannot Find Feature<bundle_daemon, (null)> id<-1, -1> ret:-11
03-03 07:06:27.943 1512 1512 I 01800/Samgr: Init service battery_device <time: 8830ms> success!
03-03 07:06:27.944 1512 1512 D 00000/PowerMgr: [power_mgr_timer_util.c] PowerMgrCreateTimer# Succeed to create timer, id: 0x55a5ab78
03-03 07:06:27.944 1512 1512 I 01800/Samgr: Init service battery_service <time: 8831ms> success!
03-03 07:06:27.950 1515 1515 I 01800/Samgr: Init service abilityms <time: 12ms> success!
03-03 07:06:27.950 1515 1515 I 01800/Samgr: Initialized all core system services!
03-03 07:06:27.950 1515 1515 I 01800/Samgr: Goto next boot step return code:-9
03-03 07:06:27.960 1516 1516 I 01518/IPCRPC: ipc skeleton wait for proxy init
03-03 07:06:27.960 1516 1516 E 01518/IPCRPC: invalid callback id.
03-03 07:06:27.960 1516 1516 E 01518/IPCRPC: first add death callback for handle = 1.
03-03 07:06:27.960 1516 1516 I 01800/Samgr: Register Endpoint<1504, 1, 0>
03-03 07:06:27.970 1507 1507 E 01518/IPCRPC: invalid callback id.
03-03 07:06:27.992 1517 1517 I 01518/IPCRPC: Internal ipc request called
03-03 07:06:27.992 1517 1517 D 01800/Samgr: Register Feature<battery_service, battery_feature> pid<1503>, id<0, 6> ret:0
03-03 07:06:27.992 1517 1517 D 01800/Samgr: RegisterRemoteFeatures<battery_service, battery_feature> ret:0
03-03 07:06:27.992 1517 1517 I 01518/IPCRPC: Internal ipc request called
03-03 07:06:27.992 1517 1517 D 01800/Samgr: Register Feature<abilityms, AmsInnerFeature> pid<1503>, id<0, 7> ret:0
03-03 07:06:27.992 1517 1517 D 01800/Samgr: RegisterRemoteFeatures<abilityms, AmsInnerFeature> ret:0
03-03 07:06:27.992 1517 1517 I 01518/IPCRPC: Internal ipc request called
03-03 07:06:27.992 1517 1517 D 01800/Samgr: Register Feature<abilityms, AmsFeature> pid<1503>, id<0, 8> ret:0
03-03 07:06:27.992 1517 1517 D 01800/Samgr: RegisterRemoteFeatures<abilityms, AmsFeature> ret:0
03-03 07:06:27.992 1517 1517 I 01800/Samgr: Register endpoint<ipc client> and iunknown finished! remain<1> iunknown!
03-03 07:06:28.143 1514 1514 I 01518/IPCRPC: Internal ipc request called
03-03 07:06:28.144 1517 1517 D 01800/Samgr: Register Feature<appspawn, (null)> pid<1504>, id<1, 0> ret:0
03-03 07:06:28.144 1507 1507 D 01800/Samgr: RegisterRemoteFeatures<appspawn, (null)> ret:0
03-03 07:06:28.144 1507 1507 I 01800/Samgr: Register endpoint<ipc client> and iunknown finished! remain<0> iunknown!
03-03 07:06:28.144 1514 1514 D 01800/Samgr: Cannot Find Feature<bundle_daemon, (null)> id<-1, -1> ret:-11
03-03 07:06:28.344 1514 1514 I 01518/IPCRPC: Internal ipc request called
03-03 07:06:28.350 1514 1514 D 01800/Samgr: Cannot Find Feature<bundle_daemon, (null)> id<-1, -1> ret:-11
03-03 07:06:28.580 1514 1514 I 01518/IPCRPC: Internal ipc request called
03-03 07:06:28.590 1514 1514 D 01800/Samgr: Cannot Find Feature<bundle_daemon, (null)> id<-1, -1> ret:-11
03-03 07:06:28.800 1514 1514 I 01518/IPCRPC: Internal ipc request called
03-03 07:06:28.810 1514 1514 D 01800/Samgr: Cannot Find Feature<bundle_daemon, (null)> id<-1, -1> ret:-11
03-03 07:06:29.020 1514 1514 I 01518/IPCRPC: Internal ipc request called
03-03 07:06:29.030 1514 1514 D 01800/Samgr: Cannot Find Feature<bundle_daemon, (null)> id<-1, -1> ret:-11
03-03 07:06:29.240 1514 1514 I 01518/IPCRPC: Internal ipc request called

//vendor/config.json内容如下

{

    "product_name": "NLS-FM600",

    "version": "3.0",

    "type": "small",

    "ohos_version": "OpenHarmony 3.2",

    "device_company": "newland_aidc",

    "board": "FM600",

    "kernel_type": "linux",

    "kernel_version": "5.10",

    "kernel_is_prebuilt": true,

    "target_cpu": "mipsel",

    "support_jsapi": false,

    "subsystems": [

      {

        "subsystem": "startup",

        "components": [

          { "component": "bootstrap_lite", "features":[] },

          { "component": "init_lite", "features":["enable_ohos_startup_init_feature_begetctl_liteos=true"] },

          { "component": "syspara_lite", "features":[] },

          { "component": "appspawn_lite", "features":[] }

        ]

      },

      {

        "subsystem": "systemabilitymgr",

        "components": [

          { "component": "samgr_lite", "features":[] },

          { "component": "safwk_lite", "features":[] }

        ]

      },      

      {

        "subsystem": "hiviewdfx",

        "components": [

          { "component": "hilog_featured_lite", "features":[] }

        ]

      },

      {

        "subsystem": "ability",

        "components": [

          { "component": "dmsfwk_lite", "features":[] }

        ]

      },

      {

        "subsystem": "security",

        "components": [

          { "component": "permission_lite", "features":[] },

          { "component": "device_auth", "features":[] },

          { "component": "huks", "features":

            [

              "huks_config_file = \"hks_config_small.h\""

            ]

          }

        ]

      },

      {

        "subsystem": "communication",

        "components": [

          { "component": "dsoftbus", "features":[] },

          { "component": "ipc", "features":[] }

        ]

      },

      {

        "subsystem": "updater",

        "components": [

          { "component": "sys_installer_lite", "features":[]  }

        ]

      },

      {

        "subsystem": "xts",

        "components": [

          { "component": "xts_acts", "features":[] },

          { "component": "xts_tools", "features":[] },

          { "component": "developer_test", "features":[] },

          { "component": "device_attest_lite", "features":[] }

        ]

      }

    ],

    "third_party_dir": "//third_party",

    "product_adapter_dir": "//vendor/newland_aidc/NLS-FM600/hals"

  }

 

init.cfg 的部分内容

{
    "name" : "init",
    "cmds" : [
         "start shell",
         "start apphilogcat",
         "start foundation",
         "start appspawn"
   ]
}, {

 

 

Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐