uboot bringup

来源:互联网 发布:肯德基业绩下滑数据 编辑:程序博客网 时间:2024/06/06 10:43
        最近在工作中碰到Uboot加载之后无反应的问题, 需要判断是硬件问题还是软件问题。硬件需要检查clock, 电压, boot的硬件配置(上下拉电阻), 以及PCB的质量,软件需要检查的就是DDR参数是否配置正确.
        一般正常的bringup步骤如下:
        1. 首先板子上电, 按住reset按钮, 连上超级终端, 配置好波特率115200, 在超级终端上选择发送文本文件到板子, 附件就是需要发送的文件. 在点发送确定的同时,松开reset按键. 正常的情况会出现”$$$$$$$$$$$$$”或者是”######”. 如果没有出现反复多试几次.
        2. 如果能够出现”$$$$$$$$$$$$”或者”#######”, 说明内置来ARM里面的bootrom能启动, 这个时候能排除硬件问题. 如果一直不出现”$$$$$$$”, 那需要硬件排查, 包括PCB质量问题.
        3. 当出现”$$$$$$$$”,之后, 在超级终端里面通过xmodem协议加载支持UART启动的uboot文件, 即后缀名为” _uart.bin”的uboot文件.
        4. 如果uboot能正常启动, 这个时候uboot是在DDR里面运行, 就能够配置TFTP, 然后从TFTP下载支持Flash启动的uboot文件, 后缀名为” _spi.bin”的Uboot文件. 加载完成之后, 保存. Reset板子
        5. 板子重新启动之后, 就是从flash中引导uboot了. Uboot阶段的bringup就完成.

        我工作中用的是marvell方案,通过这种uart方式(加载支持UART启动的uboot文件)将美满(迈威科技集团有限公司现更名美满)的UBoot bringup 之后通过以下几个步骤可将支持SPI启动的uboot利用TFTP工具上传然后烧写到flash即完整整个系统的uboot bringup工作。

        1. Start a tftp server on the host PC, whose directory is set to point to the directory contaning the new U-Boot bin image.
        2. Connect an Ethernet cable to the RJ-45 connector of the board.
        3. Configure the U-Boot environment parameters using the following commands:
            > setenv serverip xx.xx.xx.xx   (xx.xx.xx.xx should be the IP address of the PC runing the tftp server)
            > setenv ipaddr yy.yy.yy.yy     (yy.yy.yy.yy should be some IP address with the same subnet as the server)
        4. run the bubt command to load and burn the U-Boot image:
            > bubt u-boot-<board name>_<SDRAM clock frequency>_<boot device>.bin
        5. Once the image is loaded the user is asked whether the environment parameters should be overwritten or not,and answering y or n to thios question will start the burn process.
        6. Once the burn is complete the board can be restarted, and the new U-Boot image will be run.
0 0
原创粉丝点击