基于am335x uboot2016.05移植之dts异常出现NO matching DT out of these options

问题描述:uboot2016.05中移植过程中出现:
U-Boot SPL 2016.05 (Mar 11 2017 - 15:38:23)
Trying to boot from MMC1
reading args
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
reading u-boot.img
reading u-boot.img
No matching DT out of these options:
   am335x-evm
   am335x-bone
   am335x-boneblack
   am335x-evmsk
   am335x-bonegreen
   am335x-icev2
Failed to mount ext2 filesystem...
spl_load_image_ext_os: ext4fs mount err - 0
Failed to mount ext2 filesystem...
spl_load_image_ext: ext4fs mount err - 0
 
解决思路:
  根据“No matching DT out of these options”,在源码common\spl\spl_fit.c的dts的选择函数
  spl_fit_select_fdt中,进一步分析出现该问题的原因为无法匹配到合适的文件dts.需要根据情况自适应修改,调整dts后,重新编译,同时打开调试模式,
若发现uboot卡到:
Jumping to U-Boot
loaded - jumping to U-Boot..image entry point:0x80800000
则出现该问题原因可能存在以下两个方面:
1)dts 配置不对
2)U-Boot size太小,修改CONFIG_SYS_MONITOR_LEN进行调整修改

posted on 2017-03-13 09:53  ICON-缄默  阅读(1704)  评论(0)    收藏  举报

导航