青春无悔
分类: 嵌入式
2014-11-10 16:39:45
Once you've download the source code for the , you can unpack the source archive by doing (replace u-boot-2013.07-2013R1.tar.bz2 with whatever filename you downloaded if it is not the same):
$ tar jxf u-boot-2013.07-2013R1.tar.bz2
Now simply change directory to the U-Boot directory that was just created (replace u-boot-2013.07-2013R1 as applicable):
$ cd u-boot-2013.07-2013R1
Then run the following commands:
交叉工具下载:
$ tar jxf blackfin-toolchain-2013R1-RC1.i386.tar.bz2
$ tar jxf blackfin-toolchain-2013R1-RC1.src.tar.bz2
$ tar jxf blackfin-toolchain-elf-gcc-4.3-2013R1-RC1.i386.tar.bz2
$ tar jxf blackfin-toolchain-uclibc-full-2013R1-RC1.i386.tar.bz2
$ tar jxf blackfin-toolchain-uclibc-full-2013R1-RC1.src.tar.bz2
添加到环境变量
$ export PATH=$PATH:/home/ubuntu/Evan/003.ADSP/U-boot/adi-u-boot/toolchain/opt/uClinux/bfin-uclinux/bin:/home/ubuntu/Evan/003.ADSP/U-boot/adi-u-boot/toolchain/opt/uClinux/bfin-linux-uclibc/bin
Alternately, to have PATH set automatically edit the file ~/.bashrc to include the following lines:
export PATH=$PATH:/home/ubuntu/Evan/003.ADSP/U-boot/adi-u-boot/toolchain/opt/uClinux/bfin-uclinux/bin:/home/ubuntu/Evan/003.ADSP/U-boot/adi-u-boot/toolchain/opt/uClinux/bfin-linux-uclibc/bin When your system is localized, you may or may not prefer to have all build output in native english or your localized language, where english supports forum information exchange. Setting english (whether in all shells or a single one, see above):
$ export LANG=C
$ make
Replace
$ make bf518f-ezbrd_config
Every board port has its own board config file, and largely all customizable settings live there. You can usually find it at include/configs/
Compiler related settings are placed in the board-specific config.mk which can usually be found at board/
If you make changes to these files, you should probably run make clean to make sure all changes take effect.