Navigation

    全志在线开发者论坛

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

    无法从 emmc启动

    H/F/TV Series
    h616 emmc
    4
    14
    4919
    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.
    • M
      MacLodge LV 3 last edited by

      各位大佬好,我自己基于香橙派Zero2 做了一个板子,加了板载 emmc ,现在sd卡启动很正常,emmc也能识别到,正常挂载读写都没问题;进入 uboot,mmc命令也能查看到emmc的信息
      6ea9e36b-7227-4332-9196-2edf25015871-image.png
      但是把sd卡系统复制到emmc上后,无法从emmc启动,报错信息如下
      4b22e8c7-e138-416c-81f5-409846024a0e-image.png

      有大佬知道接下来该怎么排查吗?
      谢谢~

      DAIZEBIN 1 Reply Last reply Reply Quote Share 0
      • DAIZEBIN
        DAIZEBIN LV 7 @MacLodge last edited by

        @maclodge
        你提到的“sd卡系统复制到emmc上“”是? 感觉emmc上面的固件不完整或者有错误?

        M 2 Replies Last reply Reply Quote Share 0
        • M
          MacLodge LV 3 @DAIZEBIN last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote Share 0
          • M
            MacLodge LV 3 @DAIZEBIN last edited by

            @daizebin
            就是把emmc分区,和tf卡一样,然后用dd命令把uboot、kernel烧写进去,

            tf卡烧写:
            sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdd bs=8K seek=1
            emmc烧写:
            sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/mmcblk2 bs=8K seek=1

            文件都是一样的,但是tf卡能启动,emmc就不行。
            现在不知道是什么情况了,是不是有什么偏移地址的不同??

            S 1 Reply Last reply Reply Quote Share 0
            • S
              sputnik LV 3 @MacLodge last edited by

              @maclodge 试试把驱动电流改小点试试!
              board/sunxi/board.c里面emmc初始化的时候sunxi_gpio_set_drv(pin, 3);改成1或者2试试

              M 1 Reply Last reply Reply Quote Share 1
              • M
                MacLodge LV 3 @sputnik last edited by

                @sputnik

                没有用,我打开了debug模式,开机卡在common/spl/spl_fit.c里面的 spl_simple_fit_read 函数里。读取失败

                65c5d899-bab1-48d9-b88d-ee6bd7f44404-image.png

                S 1 Reply Last reply Reply Quote Share 0
                • S
                  sputnik LV 3 @MacLodge last edited by

                  @maclodge 确认你设置成1没用吗?

                  M 1 Reply Last reply Reply Quote Share 0
                  • M
                    MacLodge LV 3 @sputnik last edited by

                    @sputnik

                    是的,1、2、3我都试过了,都不行

                    Y S 2 Replies Last reply Reply Quote Share 0
                    • Y
                      YiXinTai LV 5 @MacLodge last edited by

                      @maclodge nand-sata-install 用这个脚本

                      1 Reply Last reply Reply Quote Share 0
                      • S
                        sputnik LV 3 @MacLodge last edited by

                        @maclodge 全志的驱动问题 目前唯一办法是降低emmc时钟。我当年折腾了好久 只有降低时钟是个办法
                        https://github.com/apritzel/u-boot/issues/7

                        M 1 Reply Last reply Reply Quote Share 0
                        • M
                          MacLodge LV 3 @sputnik last edited by

                          @sputnik 谢谢,已经可以了

                          S 1 Reply Last reply Reply Quote Share 0
                          • Deleted by  M MacLodge 
                          • Restored by  q1215200171 q1215200171 
                          • S
                            sputnik LV 3 @MacLodge last edited by

                            @maclodge 怎么解决的?降低时钟?

                            M 2 Replies Last reply Reply Quote Share 0
                            • M
                              MacLodge LV 3 @sputnik last edited by

                              @sputnik 是的,就是按照你说的那个改的

                              1 Reply Last reply Reply Quote Share 0
                              • M
                                MacLodge LV 3 @sputnik last edited by

                                @sputnik 再问一个问题,大佬有试过ums驱动吗?
                                在uboot里面把emmc模拟成u盘设备,然后windows可以识别到,就可以像树莓派那样用balenaEtcher之类的工具直接烧录镜像。

                                1 Reply Last reply Reply Quote Share 0
                                • 1 / 1
                                • First post
                                  Last post

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

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