美文网首页
zynq运行操作系统之u-boot编译

zynq运行操作系统之u-boot编译

作者: 鹏宝阿加西 | 来源:发表于2018-12-07 13:06 被阅读0次

1、下载u-boot源码

git clone git://github.com/Xilinx/u-boot-xlnx.git
git checkout -b xilinx-v2014.4

2、设置环境变量 ARCH和CROSS_COMPILE

export ARCH=arm
export CROSS_COMPILE=arm-xilinx-linux-gnueabi-

3、配置U_boot编译设置

make zynq_mitx_defconfig
或者使用
make menuconfig手动配置

4、编译

make

5、将u-boot文件改名为u-boot.elf


然后在SDK中打开Xilinx Tools->Create Boot Image,按顺序添加如下三个文件。
  1. FSBL.elf
    
  2. xxx.bit
    
  3. u-boot.elf
    

然后点击Create Image,生产BOOT.bin。
参考:
uboot
https://blog.csdn.net/ryuuei_1984/article/details/52329142
device-tree
https://blog.csdn.net/ryuuei_1984/article/details/52367444
如果需要显示输出到屏幕上,需要在设备树中修改,以及在内核中勾选.

  •       `bootargs = "console=ttyPS0,115200 console=tty0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait devtmpfs.mount=0";`
    

相关文章

网友评论

      本文标题:zynq运行操作系统之u-boot编译

      本文链接:https://www.haomeiwen.com/subject/wakthqtx.html