zynq运行操作系统之linux kernel编译

1、下载linux kernel源码

git clone https://github.com/analogdevicesinc/linux.git
cd analogdevicesinc
git checkout 2014_R2
暂且切换到分支2014_R2,其内核中的驱动可以和现有设备树对上。对于较新的内核源码,编译后在板子上没跑起来,水平不够,暂时先不研究了。

2、设置环境变量 ARCH和CROSS_COMPILE

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

3、配置kernel编译设置

make ARCH=arm zynq_xcomm_adv7511_defconfig
或者使用
make menuconfig手动配置

4、编译

make -j8 ARCH=arm uImage LOADADDR=0x8000

kernel

然后拷贝出arch/arm/boot/uImage 到SD卡即可

Linux with HDMI video output on the ZED, ZC702 and ZC706 boards
https://wiki.analog.com/resources/tools-software/linux-drivers/platforms/zynq
ADV7511 HDMI transmitter Linux Driver
https://wiki.analog.com/resources/tools-software/linux-drivers/drm/adv7511
Building the Zynq Linux kernel and devicetrees from source
https://wiki.analog.com/resources/eval/user-guides/ad-fmcomms2-ebz/software/linux/zynq_2015r2#build_the_devicetree_fcmomms2345
axiiic
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841974/Linux+I2C+Driver

你可能感兴趣的:(zynq运行操作系统之linux kernel编译)