Firefly开源社区

12
发表新贴
打印 上一主题 下一主题

[Linux] AIO-3568J 编译鸿蒙固件出错

143

积分

0

威望

0

贡献

技术小白

积分
143

AIO-3568J 编译鸿蒙固件出错

发表于 2022-8-30 09:22:08      浏览:7655 | 回复:15        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 官方提供的固件
  • 固件文件名称: AIO-3568J鸿蒙固件出错
  • 固件下载地址: 百度
  • Log日志: build.zip
问题描述及复现步骤:
按照https://wiki.t-firefly.com/zh_CN ... al_openharmony.html  官网上给的编译步骤,编译出错


附件为编译的日志结果

[OHOS ERROR] make[1]: *** [vmlinux] Error 137
[OHOS ERROR] arch/arm64/Makefile:206: recipe for target 'rk3568-firefly-aioj.img' failed
[OHOS ERROR] make: *** [rk3568-firefly-aioj.img] Error 2
[OHOS INFO] ---------------------------------------------
[OHOS INFO] ccache summary:
[OHOS INFO] cache hit (direct)  : 0
[OHOS INFO] cache hit (preprocessed)  : 0
[OHOS INFO] cache miss  : 1390
[OHOS INFO] hit rate:  0.00%
[OHOS INFO] mis rate: 100.00%
[OHOS INFO] ---------------------------------------------
[OHOS INFO] c targets overlap rate statistics
[OHOS INFO] subsystem               files NO.        percentage        builds NO.        percentage        overlap rate
[OHOS INFO] aafwk                         19        1.2%              19        1.2%        1.00
[OHOS INFO] ace                          181        11.2%             181        11.2%        1.00
[OHOS INFO] arkXtest                       1        0.1%               1        0.1%        1.00
[OHOS INFO] barrierfree                    2        0.1%               2        0.1%        1.00
[OHOS INFO] compileruntime                20        1.2%              20        1.2%        1.00
[OHOS INFO] developtools                   4        0.2%               4        0.2%        1.00
[OHOS INFO] graphic                        1        0.1%               1        0.1%        1.00
[OHOS INFO] hdf                          111        6.9%             111        6.9%        1.00
[OHOS INFO] hiviewdfx                      2        0.1%               2        0.1%        1.00
[OHOS INFO] miscservices                   2        0.1%               2        0.1%        1.00
[OHOS INFO] resourceschedule               2        0.1%               2        0.1%        1.00
[OHOS INFO] security                       9        0.6%               9        0.6%        1.00
[OHOS INFO] startup                       30        1.9%              30        1.9%        1.00
[OHOS INFO] test                           1        0.1%               1        0.1%        1.00
[OHOS INFO] third_party                  203        12.6%             203        12.6%        1.00
[OHOS INFO] updater                       20        1.2%              20        1.2%        1.00
[OHOS INFO] window                         1        0.1%               1        0.1%        1.00
[OHOS INFO]
[OHOS INFO] c overall build overlap rate: 1.00
[OHOS INFO]
[OHOS INFO]
[OHOS ERROR] Please check build log in /home/openharmony/out/rk3568/build.log
=====build  error=====
root@c0c9e97358fd:/home/openharmony#



build.zip

192.36 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

696

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
696
发表于 2022-8-30 09:58:50        只看该作者  沙发
./sdk_init.sh -p有没有运行呀,看你这个很可能是没有打补丁
回复

使用道具 举报

143

积分

0

威望

0

贡献

技术小白

积分
143
发表于 2022-8-30 10:01:39        只看该作者  板凳
Firefly_Javier 发表于 2022-8-30 09:58
./sdk_init.sh -p有没有运行呀,看你这个很可能是没有打补丁

我记得是完整一步一步来的,我再试试,如还有问题再请教,多谢啦
回复

使用道具 举报

143

积分

0

威望

0

贡献

技术小白

积分
143
发表于 2022-8-30 14:13:40        只看该作者  地板
本帖最后由 majestli 于 2022-8-30 14:15 编辑

我先直接下的编译好的鸿蒙固件,(  https://pan.baidu.com/s/1lRS7MtWPype74KM0WBKMCw?pwd=1234 )烧录进去,启动不了,启动报错的地方如下:
能否帮忙看下这个问题,多谢


[   49.410145] rockchip-cpuinfo cpuinfo: failed to get id cell: -517
[   49.726174] usb 6-1: USB disconnect, device number 28
[   49.733998] [I/USB_PNP_NOTIFY] UsbPnpNotifyCallback: action=0x2
[   49.734182] [I/USB_PNP_NOTIFY] UsbPnpNotifyReportThread: UsbPnpNotifyReportThread start!
[   49.734270] [I/USB_PNP_NOTIFY] UsbPnpNotifyHdfSendEvent:387 report one device information, 4 usbDevAddr=18446743532306972672, devNum=28, busNum=6, infoTable=1-0x5e3-0x620!
[   49.902997] audit: type=1400 audit(1501923652.466:3026): avc:  denied  { sendto } for  pid=580 comm="render_service" path="/dev/unix/socket/hilogInput" scontext=u:r:render_service:s0 tcontext=u:r:init:s0 tclass=unix_dgram_socket permissive=1
[   49.961451] audit: type=1400 audit(1501923652.523:3027): avc:  denied  { read } for  pid=291 comm="event_runner#1" name="bundle_usage" dev="mmcblk0p7" ino=130575 scontext=u:r:init:s0 tcontext=u:object_r:data_system_ce:s0 tclass=dir permissive=1
[   49.961534] audit: type=1400 audit(1501923652.523:3028): avc:  denied  { open } for  pid=291 comm="event_runner#1" path="/data/system_ce/bundle_usage" dev="mmcblk0p7" ino=130575 scontext=u:r:init:s0 tcontext=u:object_r:data_system_ce:s0 tclass=dir permissive=1
[   50.022831] PM: suspend entry (deep)
[   50.033366] Filesystems sync: 0.010 seconds
[   50.035464] audit: type=1400 audit(1501923652.596:3029): avc:  denied  { write } for  pid=223 comm="ueventd" name="/" dev="tmpfs" ino=1 scontext=u:r:ueventd:s0 tcontext=u:object_r:dev_file:s0 tclass=dir permissive=1
[   50.035499] audit: type=1400 audit(1501923652.596:3030): avc:  denied  { add_name } for  pid=223 comm="ueventd" name="vcs63" scontext=u:r:ueventd:s0 tcontext=u:object_r:dev_file:s0 tclass=dir permissive=1
[   50.035520] audit: type=1400 audit(1501923652.596:3031): avc:  denied  { create } for  pid=223 comm="ueventd" name="vcs63" scontext=u:r:ueventd:s0 tcontext=u:object_r:dev_file:s0 tclass=chr_file permissive=1
[   50.035988] audit: type=1400 audit(1501923652.596:3032): avc:  denied  { setattr } for  pid=223 comm="ueventd" name="vcs63" dev="tmpfs" ino=435 scontext=u:r:ueventd:s0 tcontext=u:object_r:dev_file:s0 tclass=chr_file permissive=1
[   50.037918] audit: type=1400 audit(1501923652.600:3033): avc:  denied  { getattr } for  pid=223 comm="ueventd" path="/dev/vcs63" dev="tmpfs" ino=435 scontext=u:r:ueventd:s0 tcontext=u:object_r:dev_file:s0 tclass=chr_file permissive=1
[   50.037952] audit: type=1400 audit(1501923652.600:3034): avc:  denied  { read } for  pid=223 comm="ueventd" name="etc" dev="mmcblk0p5" ino=18 scontext=u:r:ueventd:s0 tcontext=u:object_r:etc_file:s0 tclass=lnk_file permissive=1
[   50.037975] audit: type=1400 audit(1501923652.600:3035): avc:  denied  { search } for  pid=223 comm="ueventd" name="system" dev="mmcblk0p5" ino=26 scontext=u:r:ueventd:s0 tcontext=u:object_r:system_file:s0 tclass=dir permissive=1
[   50.040002] [dhd] dhd_pm_callback: action=3, suspend=1, suspend_mode=0
[   50.041284] [I/devmgr_service] DevmgrServicePowerStateChange:suspend state 3
[   50.041356] [I/sample_driver_test] HdfSampleSuspend:called
[   50.041389] [I/pm_driver_test] HdfPmTestSuspend called
[   50.041603] Freezing user space processes ... (elapsed 0.006 seconds) done.
[   50.048079] OOM killer disabled.
[   50.048098] Freezing remaining freezable tasks ... (elapsed 0.134 seconds) done.
[   50.182705] printk: Suspending console(s) (use no_console_suspend to debug)
abcdeghijsramwfi
回复

使用道具 举报

696

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
696
发表于 2022-8-30 14:18:20        只看该作者  5#
majestli 发表于 2022-8-30 14:13
我先直接下的编译好的鸿蒙固件,(  https://pan.baidu.com/s/1lRS7MtWPype74KM0WBKMCw?pwd=1234 )烧录进 ...

手动修复方法,可以挂载system.img,然后搜索power_mode_config.xml,按照如下链接进行修改:
https://gitlab.com/firefly-linux ... b1bc4f289d5254d4fcc
回复

使用道具 举报

143

积分

0

威望

0

贡献

技术小白

积分
143
发表于 2022-9-4 09:55:04        只看该作者  6#
本帖最后由 majestli 于 2022-9-4 09:58 编辑
Firefly_Javier 发表于 2022-8-30 09:58
./sdk_init.sh -p有没有运行呀,看你这个很可能是没有打补丁

我确认是一步一步按这个步骤来的,但是还是报错,能否帮忙看下呢,感谢

[OHOS ERROR] [24671/26207] CXX obj/foundation/ace/ace_engine/adapter/ohos/entrance/ace_ohos_standard_entrance/ace_container.o
[OHOS ERROR] FAILED: obj/foundation/ace/ace_engine/adapter/ohos/entrance/ace_ohos_standard_entrance/ace_container.o
[OHOS ERROR] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -MMD -MF obj/foundation/ace/ace_engine/adapter/ohos/entrance/ace_ohos_standard_entrance/ace_container.o.d -DOHOS_PLATFORM -DOHOS_STANDARD_SYSTEM -DWEB_SUPPORTED -DGPU_DISABLED -DFORM_SUPPORTED -DXCOMPONENT_SUPPORTED

build.zip

438.32 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

696

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
696
发表于 2022-9-5 09:06:18        只看该作者  7#
majestli 发表于 2022-9-4 09:55
我确认是一步一步按这个步骤来的,但是还是报错,能否帮忙看下呢,感谢

[OHOS ERROR] [24671/26207] C ...

这样子,你可以直接拉取OpenHarmony官方SDK进行编译,如果官方的也编译有问题,那很可能是你环境的问题
回复

使用道具 举报

143

积分

0

威望

0

贡献

技术小白

积分
143
发表于 2022-9-5 21:29:45        只看该作者  8#
Firefly_Javier 发表于 2022-9-5 09:06
这样子,你可以直接拉取OpenHarmony官方SDK进行编译,如果官方的也编译有问题,那很可能是你环境的问题

官网的SDK编译也是这么编译么呢,我现在是按firefly个给出的那个wiki来编译的
回复

使用道具 举报

696

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
696
发表于 2022-9-6 09:05:37        只看该作者  9#
majestli 发表于 2022-9-5 21:29
官网的SDK编译也是这么编译么呢,我现在是按firefly个给出的那个wiki来编译的

https://gitee.com/openharmony/de ... rk3568/README_zh.md
回复

使用道具 举报

143

积分

0

威望

0

贡献

技术小白

积分
143
发表于 2022-9-7 17:43:11        只看该作者  10#
Firefly_Javier 发表于 2022-8-30 14:18
手动修复方法,可以挂载system.img,然后搜索power_mode_config.xml,按照如下链接进行修改:
https://g ...

大神,这个BUG,您那边能帮忙修改好一个嘛,我这把弄出来的还是有的问题,感谢啦,现在短时间编译不出来,就像用现成的固件,直接烧到AIO-RK3568J这个板子里面顶一下了
回复

使用道具 举报

返回列表
12
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表