导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    env.cfg partitions=${partitions} 这个变量在哪儿赋值

    V Series
    2
    3
    1420
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • S
      super0759 LV 5 最后由 编辑

      setargs_nand=setenv bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} ubi.mtd=${mtd_name} root=${nand_root} rootfstype=${rootfstype} rootwait init=${init} rdinit=${rdinit} partitions=${partitions} cma=${cma} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} selinux=${selinux} specialstr=${specialstr} coherent_pool=${coherent_pool} ion_carveout_list=${reserve_list}

      ${partitions} 这个是 在哪儿 别替换的 ,源是在哪儿 ,如何被替换 。

      J 1 条回复 最后回复 回复 引用 分享 0
      • J
        Jingyan LV 5 @super0759 最后由 编辑

        @super0759 运行时生成的吧,看下uboot代码里有没有相关的代码

        1 条回复 最后回复 回复 引用 分享 0
        • S
          super0759 LV 5 最后由 编辑

          谢谢 ,我遇到一个问题, 问了创龙的人他们说是打包的时候生成的
          uboot 打印
          => print
          aw-ubi-spinand.ubootblks=24
          boot_fastboot=fastboot
          boot_normal=sunxi_flash read 44800000 ${boot_partition};bootm 44800000
          boot_partition=boot
          boot_recovery=sunxi_flash read 44800000 extend;bootm 44800000
          bootcmd=run setargs_nand_ubi boot_normal
          bootdelay=1
          bootreason=button
          coherent_pool=32K
          console=ttyS0,115200
          earlyprintk=sunxi-uart,0x02500000
          fastboot_key_value_max=0x8
          fastboot_key_value_min=0x2
          fdtcontroladdr=41eaee70
          filesize=10000
          force_normal_boot=1
          init=/init
          initcall_debug=0
          loglevel=8
          mmc_root=/dev/mmcblk0p4
          mtd_name=sys
          mtdids=nand0=nand
          mtdparts=mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
          nand_root=/dev/ubiblock0_4
          nor_root=/dev/mtdblock3
          partition=nand0,0
          partitions=mbr@ubi0_0:boot-res@ubi0_1:env@ubi0_2:boot@ubi0_3:rootfs@ubi0_4:UDISK@ubi0_5:
          rdinit=/rdinit
          recovery_key_value_max=0x13
          recovery_key_value_min=0x10
          root_partition=rootfs
          rootfstype=squashfs
          rotpk_status=0
          setargs_mmc=setenv bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root} rootwait init=${init} partitions=${partitions} cma=${cma} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} selinux=${selinux} specialstr=${specialstr} coherent_pool=${coherent_pool} ion_carveout_list=${reserve_list}
          setargs_nand=setenv bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} ubi.mtd=${mtd_name} root=${nand_root} rootfstype=${rootfstype} rootwait init=${init} rdinit=${rdinit} partitions=${partitions} cma=${cma} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} selinux=${selinux} specialstr=${specialstr} coherent_pool=${coherent_pool} ion_carveout_list=${reserve_list}
          setargs_nand_ubi=setenv bootargs ubi.mtd=${mtd_name} ubi.block=0,${root_partition} earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
          setargs_nor=setenv bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nor_root} rootwait init=${init} rdinit=${rdinit} partitions=${partitions} cma=${cma} coherent_pool=${coherent_pool} ion_carveout_list=${reserve_list}
          ubi_attach_mtdnum=3
          verify=N

          Environment size: 2581/131068 bytes
          =>

          1 条回复 最后回复 回复 引用 分享 0
          • 1 / 1
          • First post
            Last post

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

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