socfpga-3.12 编译方法

来源:互联网 发布:长颈鹿美语待遇 知乎 编辑:程序博客网 时间:2024/06/15 22:28

https://wenku.baidu.com/view/e282bed333687e21ae45a964.html

http://www.whhexin.com/article/4381.html

http://blog.csdn.net/tiancai13579/article/details/51056914

1、下载内核源代码,解压:https://github.com/altera-opensource/linux-socfpga/tree/socfpga-3.12

2、配置顶部的makefile  
ARCH        = arm
CROSS_COMPILE    = arm-Linux-gnueabihf-   (arm-gcc 目录)
# Architecture as present in compile.h
UTS_MACHINE     := $(ARCH)
SRCARCH     := $(ARCH)
2、配置Gcc:export CROSS_COMPILE= arm-linux-gnueabihf-
            make ARCH=arm socfpga_defconfig
            make ARCH=arm zImage LOADADDR=0x8000

原创粉丝点击