移植的过程中启动报错如下:
报错1、hilog fd failed No such device or address
报错原因是hilog驱动没有正确加载。在加载hilog中确认设备号是否与系统内其他设备号冲突,如果冲突就会装载不成功。
echo "ohos_service_start"
mknod /dev/hilog c 242 1
chmod 666 /dev/hilog
mknod /dev/hwlog_exception c 241 1
chmod 666 /dev/hwlog_exception
报错2、[ueventd.c:378]Failed get default_boot_device value from cmdline
在设备树中添加
default_boot_device=a003e00.virtio_mmio 含义和作用未知
启动服务"start foundation",系统会重启
系统启动之后一直不停刷屏打印,以下信息。
报错信息如下:missionRecord is null
01-01 00:00:07.242 541 131 I 01100/bundle_deamon: BundleDaemon::Invoke(103): bundle_daemon invoke start 1
01-01 00:00:07.242 183 130 E 01300/abilityms: AbilityMissionStack::RemoveMissionRecord(76): missionRecord is null
01-01 00:00:07.242 183 130 E 01300/abilityms: AbilityStackManager::GetTopPageAbility(80): topMissionStack is nullptr
原因是luancher.hap装载报错,然后系统就一直在重新装载,重新报错,反复就形成一直打印的现象。
将launcher.hap注释系统此时不会再循环打印。
UItask报错:E 00000/(null): Should SetUIContent before slice active
在启动的过程中Create UITaskPost thread过程中报错,报错信息如下:
01-01 00:05:24.501 165 165 I 00000/(null): Create UITaskPost thread
01-01 00:05:24.501 165 165 I 00000/(null): Ability Init
01-01 00:05:24.501 168 165 I 00000/(null): start UITaskPost loop
01-01 00:05:24.501 165 165 I 00000/(null): Ability OnStart
01-01 00:05:24.501 165 165 I 00000/(null): AbilitySlice Init
01-01 00:05:24.534 165 165 I 00000/(null): AbilitySlice OnStart
01-01 00:05:24.534 165 165 E 00000/(null): Should SetUIContent before slice active
不清楚是不是和display相关,暂时未解决。