导航

    全志在线开发者论坛

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

    uboot无法进入命令模式,如何修改bootdelay?

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

      硬件mq-pro, 软件是官方tina-linux
      https://mangopi.org/_media/undefined/tina-d1h-mq-pro-overlay-hdmi-wifi.zip

      uboot起来后直接就引导系统,似乎bootdelay设为0了

      Warning: eth0 (eth0) using random MAC address - fe:91:c9:dd:14:f7
      Hit any key to stop autoboot:  0
      dsp0:gpio init config fail
      dsp0:sharespace config fai
      

      进入系统后

      root@TinaLinux:/# fw_printenv
      Warning: Bad CRC, using default environment
      Error: Please reboot, uboot will fix the environment
      

      无法读取uboot环境变量,

      直接dump /dev/by-name/env

      root@TinaLinux:/# cat /dev/by-name/env
      h9癳arlyprintk=sunxi-uart,0x02500000initcall_debug=0console=ttyS0,115200nand_root=/dev/ubiblock0_5mmc_root=/dev/mmcblk0p5init=/pseudo_initmtd_name=sysrootfstype=squashfsroot_partition=rootfsboot_partition=bootloglevel=8cma=8Mmac=wifi_mac=bt_mac=specialstr=keybox_list=widevine,ec_key,ec_cert1,ec_cert2,ec_cert3,rsa_key,rsa_cert1,rsa_cert2,rsa_cert3dsp0_partition=dsp0setargs_nand=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=1setargs_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=1setargs_mmc=setenv  bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root}  init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1boot_dsp0=sunxi_flash read 45000000 ${dsp0_partition};bootr 45000000 0 0boot_normal=sunxi_flash read 45000000 ${boot_partition};bootm 45000000boot_recovery=sunxi_flash read 45000000 recovery;bootm 45000000boot_fastboot=fastbootbootdelay=0bootcmd=run setargs_nand boot_dsp0 boot_normal
      

      中间含有字符串bootdelay=0, 如果不重新编译uboot
      如何调整bootdelay,使得能够进入uboot界面,哪位大侠能指点一下?谢谢了

      WhycanService 1 条回复 最后回复 回复 引用 分享 0
      • WhycanService
        WhycanService LV 8 @zhongtao1701 最后由 WhycanService 编辑

        @zhongtao1701 hex编辑器直接编辑固件就行

        zhongtao1701 1 条回复 最后回复 回复 引用 分享 0
        • zhongtao1701
          钟工 LV 7 @WhycanService 最后由 编辑

          @whycanservice 谢谢答复,我试一下

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

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

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