Navigation

    全志在线开发者论坛

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

    请教下T113的Uboot是如何把fdt地址传给内核的?

    其它全志芯片讨论区
    2
    3
    280
    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.
    • E
      efancier LV 5 last edited by YuzukiTsuru

      T113使用的是buildroot, uboot 环境变量如下,看到启动命令是
      bootm 45000000,环境变量里面 fdtcontroladdr=44884e70,uboot启动时执行了
      [00.687]change working_fdt 0x44884e70 to 0x44864e70
      那么Linux的设备树地址 0x44864e70 是用什么方式传过去的?

      boot_check=sunxi_card0_probe;mmcinfo;mmc part
      boot_mmc=fatload mmc ${mmc_dev}:${mmc_boot_part} 45000000 ${kernel}; bootm 45000000
      boot_partition=boot
      bootargs=earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p5  init=/sbin/init partitions=ext4 cma=8M  gpt=1
      bootcmd=run boot_check boot_mmc
      bootdelay=2
      console=ttyS0,115200
      fdtcontroladdr=44884e70
      force_normal_boot=1
      kernel=boot.img
      keybox_list=widevine,ec_key,ec_cert1,ec_cert2,ec_cert3,rsa_key,rsa_cert1,rsa_cert2,rsa_cert3
      mmc_boot_part=4
      mmc_dev=0
      mmc_root=/dev/mmcblk0p5
      partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5
      root_partition=rootfs
      
      1 Reply Last reply Reply Quote Share 0
      • Moved from D1系列-RISC-V by  YuzukiTsuru YuzukiTsuru 
      • YuzukiTsuru
        柚木 鉉 LV 9 last edited by

        请参阅:

        tina-d1-h/lichee/brandy-2.0/u-boot-2018/board/sunxi/sunxi_replace_fdt.c
        
        E 1 Reply Last reply Reply Quote Share 1
        • E
          efancier LV 5 @YuzukiTsuru last edited by

          @yuzukitsuru 谢谢!

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

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

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