Navigation

    全志在线开发者论坛

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

    Flash初始化过程

    编译和烧写问题专区
    2
    6
    2142
    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.
    • DAIZEBIN
      DAIZEBIN LV 7 last edited by

      用在D1的SKD2.0平台上编译出来的系统,在启动log中,uboot阶段会出现“init flash”,如下:

      U-Boot 2018.07 (Sep 03 2022 - 16:33:10 +0800) Allwinner Technology
      
      [00.273]DRAM:  1 GiB
      [00.275]Relocation Offset is: 3deea000
      [00.280]secure enable bit: 0
      can't support chip type 20480
      [00.285]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      sunxi flash map init
      SPI ALL:   ready
      [00.295]flash init start
      [00.298]workmode = 0,storage type = 0
      [00.305]sunxi-spinand-phy: spinand sample_mode:2 sample_delay:3
      

      flash不是应该在boot0阶段就已经被初始化了吗?

      YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
      • YuzukiTsuru
        柚木 鉉 LV 9 @DAIZEBIN last edited by YuzukiTsuru

        @daizebin boot0初始化的flash地址是在sram里。不会传入uboot,uboot载入内存后需要重新在内存初始化

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

          @yuzukitsuru 也就是说在boot0阶段,虽然也是存在flash的初始化的,但是地址在此时还是处于sram的,后面的uboot因为运行在dram中,所以后续还需要进一步把这个地址传入dram中,再一次对flash进行初始化?

          YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
          • YuzukiTsuru
            柚木 鉉 LV 9 @DAIZEBIN last edited by

            @daizebin 是的,包括kernel,也是进入kernel重新初始化

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

              @yuzukitsuru 好的,那如果是这么理解的话,boot0阶段的Flash初始化还有何作用吗?感觉作用和uboot阶段的重复了

              YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
              • YuzukiTsuru
                柚木 鉉 LV 9 @DAIZEBIN last edited by

                @daizebin 启动uboot后就释放资源了

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

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

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