MYD-Y7Z010/007S Board Linux Development Manual
MYIR Electronics Limited
|
4
/
14
$ tar jxvf u-boot-xlnx.tar.bz2
$ cd u-boot-xlnx
Compile the source code:
$ make ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi- distclean
$ make ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi-\
zynq_myd_config
$ make ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi-
After compiling, it
will generate “u-boot” ELF files in the current directory.It is crucial to rename this
file to “u-boot.elf” when using this image to make “boot.bin”.
3.2 Compile Linux kernel
Enter
the “Kernel” director, and tar the kernel source code:
$ cd <WORKDIR>/Kernel
$ tar xvjf linux-xlnx.tar.bz2
$ cd linux-xlnx
Compile the source code:
$ make ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi- distclean
$ make ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi- \
zynq_myd_defconfig
$ make ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi- uImage
$ make ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi- dtbs
After compiling, it w
ill generate the “uImage” in the “arch/arm/boot” directory and the
“zynq_myd.dtb” file in the “arch/arm/boot/dts/” directory.
3.3 Create Root Filesystem
Create rootfs using buildroot in here. Enter the file system directory, extract buildroot source:
$ cd <WORKDIR>/Filesystem
$ tar jxvf buildroot-2015.02.tar.bz2
$ cd buildroot-2015.02
Rename the zynq_myd_config to .config:
$ cp zynq_myd_config .config
Configure:
$ make menuconfig
Set the path of Toolchain:
Toolchain --- >