UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 60241

PetaLinux u-boot build error for NAND Flash

Description

The following problem was encountered using PetaLinux 2013.10.
 
After switching to NAND Flash as the boot selection device for a Zynq 7000-based board that has Micron NAND flash, the below compile-time error is received during u-boot build.
 
[ERROR] make[3]: *** [/home/lfs-tadd/pp_g4580/amp/build/linux/u-boot/u-boot-plnx/drivers/mtd/nand/zynq_nand.o] Error 1
[ERROR] make[2]: *** [/home/lfs-tadd/pp_g4580/amp/build/linux/u-boot/u-boot-plnx/drivers/mtd/nand/libnand.o] Error 2
[ERROR] make[1]: *** [/home/lfs-tadd/pp_g4580/amp/build/linux/u-boot/u-boot-plnx/u-boot] Error 2
ERROR: Failed to build linux

Solution

This is a known issue.

Setting the following in the UBOOT configuration header fixes the problem.

#define CONFIG_SYS_NAND_SELF_INIT 1

The above macro should be added in the <plnx project>/subsystems/linux/configs/u-boot/petalinux-user-config.h.template file.

AR# 60241
Date Created 04/10/2014
Last Updated 08/07/2014
Status Active
Type General Article
Devices
  • Zynq-7000
Tools
  • PetaLinux - 2013.10
Boards & Kits
  • Zynq-7000 All Programmable SoC ZC702 Evaluation Kit