uboot bringup

        最近在工作中碰到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.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章