Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    哪吒开发板D1,适配鸿蒙系统init的进程无法启动

    MR Series
    2
    8
    2563
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xyc_image LV 4 last edited by

      基于代码仓sunxi-d1.xml,适配鸿蒙系统,编译出tina_d1-nezha_uart0.img,使用SD卡启动,错误log如下
      Run /init as init process
      Kernel panic - not syncing: Requested init /init failed (error -2

      1 Reply Last reply Reply Quote Share 0
      • M
        memory LV 7 last edited by

        /init 执行失败,可能依赖的 libc.so.* 文件版本不对,

        解决方案: 用编译rootfs的gcc编译其他app。

        X 2 Replies Last reply Reply Quote Share 0
        • X
          xyc_image LV 4 @memory last edited by

          @memory 会不会和编译的rootfs有关,发现rootfs中etc;bin;init目录为空。执行init进程时因为目录为空,导致启动失败
          648b61a5-14b9-4a7b-b67d-71826935145e-image.png

          M 1 Reply Last reply Reply Quote Share 0
          • X
            xyc_image LV 4 @memory last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote Share 0
            • M
              memory LV 7 @xyc_image last edited by

              @xyc_image

              显示红色,应该是软链接挂了

              试一试:

              ls /system/bin/init -l

              X 1 Reply Last reply Reply Quote Share 0
              • X
                xyc_image LV 4 @memory last edited by

                @memory 操作按照https://gitee.com/openharmony-sig/riscv/blob/master/docs/openharmony_for_riscv/README.md中哪吒构建流程做的,但是编译出来该目录是空的,如下:
                cary@ubuntu:~/code/d1/out/d1-nezha/rootfs$ ls
                bin config data dev etc init proc sys system updater vendor
                cary@ubuntu:~/code/d1/out/d1-nezha/rootfs$ ls /system/bin/init -l
                ls: cannot access '/system/bin/init': No such file or directory

                M 1 Reply Last reply Reply Quote Share 0
                • M
                  memory LV 7 @xyc_image last edited by

                  @xyc_image

                  ls: cannot access '/system/bin/init': No such file or directory

                  文件不存在,检查一下文件系统的问题。

                  X 1 Reply Last reply Reply Quote Share 0
                  • X
                    xyc_image LV 4 @memory last edited by

                    @memory 文件系统编译没有问题,是不是最后打包命令出错了。从log看是没有出错信息的。代码仓sunxi-d1.xml打包方式和全志D1 SDK v1.0打包方式是一样的。打包命令./device/sunxi/build/pack -e。请问有基于Risc-v适配鸿蒙系统关于rootfs的配置吗?

                    1 Reply Last reply Reply Quote Share 0
                    • Referenced by  S sanliangzhan 
                    • 1 / 1
                    • First post
                      Last post

                    Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                    行为准则 | 用户协议 | 隐私权政策