想玩玩zynq,但是發現需要linux方面的知識配合會更加合適,因為zynq有arm的硬核,有的時候可能會需要用上linux

正好買了朱有鵬視頻,就拿來學習一下

看了看學習的進程大概是這樣的 + 安裝編譯工具,編譯uboot + 分析uboot源碼和makefile

安裝交叉編譯工具鏈

本人使用的開發部是s5pv210,需要安裝的交叉編譯工具鏈是arm-2019q3

遵循默認規則,將工具鏈解壓安裝到了/usr/local/arm

添加到了PATH中

# ARM Cross Complier PATH
export PATH=/usr/local/arm/arm-2009q3/bin:$PATH

測試工具鏈是否正常

greedyhao@greedyhao-PC:~$ arm-none-linux-gnueabi-gcc --version
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
編譯uboot

畢竟是有課程學習,有提供做好的uboot源碼,可以體驗一下編譯的感覺,氪金了還真是不一樣

首先是先找到需要編譯的bsp,QT4.8版本,並解壓出來

配置

greedyhao@greedyhao-PC:.../qt_x210v3s_160307/uboot$ make x210_sd_config
Configuring for x210_sd board...如果出現了上面的信息就說明配置成功

檢查Makefile中的編譯鏈位置是否正確

CROSS_COMPILE = /usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-

查看編譯結果

greedyhao@greedyhao-PC:.../qt_x210v3s_160307/uboot$ du u-boot*
936 u-boot
384 u-boot.bin
1780 u-boot.dis
184 u-boot.map
1156 u-boot.srec

個人博客

公眾號:greedyhao

推薦閱讀:

相關文章