OpenHarmony开发者论坛

标题: OpenHarmony-v4.0-Beta1 移植出现问题 [打印本页]

作者: xuxiyang    时间: 2023-11-8 10:30
标题: OpenHarmony-v4.0-Beta1 移植出现问题
[md]设备启动到init进程出现如下错误,请指导下
[    7.959156] devtmpfs: mounted
[    7.962206] Freeing unused kernel memory: 448K
[    7.982372] Run /sbin/init as init process
[    7.986480]   with arguments:
[    7.989452]     /sbin/init
[    7.992162]   with environment:
[    7.995314]     HOME=/
[    7.997678]     TERM=linux
[    8.000388]     board_id=0,boot_reason=0x0,
[    8.004582]     ax_boot_delay=10
[    8.007925] Run /etc/init as init process
[    8.011943]   with arguments:
[    8.014925]     /etc/init
[    8.017551]   with environment:
[    8.020696]     HOME=/
[    8.023078]     TERM=linux
[    8.025790]     board_id=0,boot_reason=0x0,
[    8.029980]     ax_boot_delay=10
[    8.034310] Starting init: /etc/init exists but couldn't execute it (error -13)
[    8.041637] Run /bin/init as init process
[    8.045662]   with arguments:
[    8.048634]     /bin/init
[    8.051259]   with environment:
[    8.054417]     HOME=/
[    8.056781]     TERM=linux
[    8.059491]     board_id=0,boot_reason=0x0,
[    8.063688]     ax_boot_delay=10
[    8.081403] random: init: uninitialized urandom read (8 bytes read)
[    8.087811] random: init: uninitialized urandom read (8 bytes read)
[    8.094220] random: init: uninitialized urandom read (8 bytes read)
Can't connect to hilog server. Errno: [    8.117236] [pid=1][Init][INFO][init.c:230]Start init first stage.
2
Can't connect to hilog server. Errno: 2
Can't connect to hil[    8.117392] [pid=1][Init][INFO][init_mount.c:40]Cannot load fstab from command line, try read from fstab.required
og server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
Can't connect to hilog server. Errno: 2
[    8.124049] [pid=1][Init][ERROR][init_mount.c:43]Failed get fstab.required
[    8.232378] [pid=1][Init][INFO][init.c:209]Start init second stage.
[    8.239324] [pid=1][Init][ERROR][switch_root.c:156]Failed to get new root " /usr " stat
[    8.251340] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 17 0
[    8.259550] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 15 1
[    8.266296] [pid=1][Init][INFO][init.c:90]Init fd holder socket done
[    8.272958] [pid=1][BEGET][INFO][fstab.c:503]fstab not found from cmdline, try to get it from file
[    8.279382] [pid=1][BEGET][ERROR][fstab.c:311]Failed get hardware from cmdline
[    8.288373] [pid=1][BEGET][ERROR][reboot_misc.c:77]Failed to get misc path
[    8.295618] [pid=1][Init][INFO][init_group_manager.c:201]boot start device.boot.group
[    8.303495] [pid=1][Init][INFO][init.c:310]Executing hook [0:0] cost [964]us, return 0.
[    8.311359] [pid=1][Init][INFO][init.c:310]Executing hook [0:0] cost [6]us, return 0.
[    8.319461] [pid=1][Init][INFO][init.c:310]Executing hook [0:0] cost [62]us, return 0.
[    8.327333] [pid=1][Init][INFO][init.c:310]Executing hook [0:0] cost [7]us, return 0.
[    8.335276] [pid=1][PLUGIN][INFO][selinux_static.c:23]Install selinuxadp.
[    8.344833] [pid=1][PLUGIN][INFO][selinux_adp.c:142]Selinux adapter plug-in init now ...
[    8.351684] [pid=1][Init][INFO][init.c:310]Executing hook [0:0] cost [16404]us, return 0.
[    8.359900] [pid=1][PARAM][INFO][param_service.c:374]InitParamService pipe: /dev/unix/socket/paramservice.
[    8.368165] [pid=1][PARAM][INFO][param_base.c:204]CloseParamWorkSpace 1
[    8.377894] [pid=1][PARAM][ERROR][param_base.c:462]Invalid workSpace for musl.log.enable
[    8.384533] [pid=1][PARAM][ERROR][param_base.c:482]Forbid to read parameter musl.log.enable
[    8.392648] [pid=1][PARAM][ERROR][param_base.c:731]Forbid to access parameter musl.log.enable
[    8.401020] [pid=1][PARAM][ERROR][param_base.c:801]Invalid handle
[    8.409577] [pid=1][PARAM][ERROR][param_base.c:462]Invalid workSpace for musl.ld.debug.dlclose
[    8.415691] [pid=1][PARAM][ERROR][param_base.c:482]Forbid to read parameter musl.ld.debug.dlclose
[    8.424328] [pid=1][PARAM][ERROR][param_base.c:731]Forbid to access parameter musl.ld.debug.dlclose
[    8.433225] [pid=1][PARAM][ERROR][param_base.c:801]Invalid handle
[    8.442295] [pid=1][PARAM][ERROR][param_base.c:462]Invalid workSpace for debug.hitrace.tags.enableflags
[    8.448407] [pid=1][PARAM][ERROR][param_base.c:482]Forbid to read parameter debug.hitrace.tags.enableflags
[    8.457827] [pid=1][PARAM][ERROR][param_base.c:731]Forbid to access parameter debug.hitrace.tags.enableflags
[    8.467507] [pid=1][PARAM][ERROR][param_base.c:801]Invalid handle
[    8.477948] [pid=1][PARAM][ERROR][param_base.c:462]Invalid workSpace for debug.hitrace.tags.enableflags
[    8.484079] [pid=1][PARAM][ERROR][param_base.c:482]Forbid to read parameter debug.hitrace.tags.enableflags
[    8.493520] [pid=1][PARAM][ERROR][param_base.c:731]Forbid to access parameter debug.hitrace.tags.enableflags
[    8.503202] [pid=1][PARAM][ERROR][param_base.c:801]Invalid handle
[    8.513063] [pid=1][PARAM][ERROR][param_base.c:462]Invalid workSpace for debug.hitrace.tags.enableflags
[    8.519174] [pid=1][PARAM][ERROR][param_base.c:482]Forbid to read parameter debug.hitrace.tags.enableflags
[    8.528595] [pid=1][PARAM][ERROR][param_base.c:731]Forbid to access parameter debug.hitrace.tags.enableflags
[    8.538276] [pid=1][PARAM][ERROR][param_base.c:801]Invalid handle
[    8.549347] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:default_param:s0 index 1 spaceSize: 30720 onlyRead false
[    8.555538] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace param_sec_dac index 0 spaceSize: 10240 onlyRead false
[    8.574543] [pid=1][PARAM][WARNING][param_dac.c:250]Invalid user for 'uhdf_driver' gid 3066 uid -1
[    8.585390] [pid=1][PARAM][WARNING][param_dac.c:250]Invalid user for 'appspawn' gid 6005 uid -1
[    8.595601] [pid=1][Init][INFO][init_group_manager.c:68]Parse group config /system/etc/device.boot.group.cfg
[    8.604716] [pid=1][Init][INFO][init.c:407]boot init finish.
[    8.614626] [pid=1][PLUGIN][INFO][selinux_adp.c:45]LoadSelinuxPolicy
[    8.620350] [pid=1][SELINUX][WARNING] No cil file found, load default policy
[    8.634551] [pid=1][SELINUX][ERROR] Security getenforce failed
[    8.640416] [pid=1][PLUGIN][ERROR][selinux_adp.c:48]main, load_policy failed.
[    8.642261] [pid=1][PARAM][ERROR][param_server.c:251]Failed to open file '/sys_prod/etc/param/ohos.para.size' error:2
[    8.650024] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:servicectrl_param:s0 index 2 spaceSize: 1024 onlyRead false
[    8.660880] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:servicectrl_param:s0
[    8.672928] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:servicectrl_reboot_param:s0 index 3 spaceSize: 1024 onlyRead false
[    8.682759] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:servicectrl_reboot_param:s0
[    8.695412] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:ohos_boot_param:s0 index 4 spaceSize: 4096 onlyRead false
[    8.705840] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:ohos_boot_param:s0
[    8.717708] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:bootevent_param:s0 index 5 spaceSize: 4096 onlyRead false
[    8.727352] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:bootevent_param:s0
[    8.739224] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:servicectrl_reboot_param:s0 index 3 spaceSize: 1024 onlyRead false
[    8.748837] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:servicectrl_reboot_param:s0
[    8.761486] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:devinfo_public_param:s0 index 7 spaceSize: 30720 onlyRead false
[    8.771934] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:devinfo_public_param:s0
[    8.784326] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:devinfo_public_param:s0 index 7 spaceSize: 30720 onlyRead false
[    8.794397] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:devinfo_public_param:s0
[    8.806791] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:devinfo_public_param:s0 index 7 spaceSize: 30720 onlyRead false
[    8.816857] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:devinfo_public_param:s0
[    8.829246] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:startup_init_param:s0 index 10 spaceSize: 40960 onlyRead false
[    8.839351] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:startup_init_param:s0
[    8.851653] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:startup_init_param:s0 index 10 spaceSize: 40960 onlyRead false
[    8.861544] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:startup_init_param:s0
[    8.873848] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:startup_init_param:s0 index 10 spaceSize: 40960 onlyRead false
[    8.883738] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:startup_init_param:s0
[    8.896041] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:startup_appspawn_param:s0 index 13 spaceSize: 1024 onlyRead false
[    8.905964] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:startup_appspawn_param:s0
[    8.918528] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:startup_uevent_param:s0 index 14 spaceSize: 1024 onlyRead false
[    8.928799] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:startup_uevent_param:s0
[    8.941191] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:devinfo_private_param:s0 index 15 spaceSize: 1024 onlyRead false
[    8.951285] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:devinfo_private_param:s0
[    8.963761] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:devinfo_private_param:s0 index 15 spaceSize: 1024 onlyRead false
[    8.973911] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:devinfo_private_param:s0
[    8.986390] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:startup_appspawn_param:s0 index 13 spaceSize: 1024 onlyRead false
[    8.996541] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:startup_appspawn_param:s0
[    9.009110] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:sys_param:s0 index 18 spaceSize: 4096 onlyRead false
[    9.019363] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:sys_param:s0
[    9.030794] [pid=1][PARAM][INFO][param_base.c:293]AddWorkSpace u:object_r:sys_usb_param:s0 index 19 spaceSize: 1024 onlyRead false
[    9.039914] [pid=1][PARAM][ERROR][param_selinux.c:128]Failed to setfilecon u:object_r:sys_usb_param:s0


[/md]
作者: xuxiyang    时间: 2023-11-9 11:06
[md]或者有启动的文档也行要详细些

[/md]
作者: 论坛小助手    时间: 2023-11-10 09:45
[md]您的问题已经反馈给相应板块的负责人,稍后给会给您回复~

[/md]
作者: 论坛小助手    时间: 2023-11-14 09:21
非启动恢复子系统问题,在进入init之前已经出问题了,cmdline信息获取不到,请查看是不是挂载的有问题
作者: xuxiyang    时间: 2023-11-14 14:31
回复 论坛小助手: 我除了system 其他分区都没有做,我原来认为只要有system 就可以了,请问我启动时有哪些分区是必须的,有什么文档供我参考吗
作者: s_hao    时间: 2023-12-4 15:42
[md]![]()

![202312047033593.png](https://forums-obs.openharmony.c ... louuwxzezwxrtp6.png "202312047033593.png")

详情链接如下:[https://gitee.com/openharmony/do ... -boot-deviceboot.md](https://gitee.com/openharmony/do ... -boot-deviceboot.md)
[/md]




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5