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 headerfixes the problem.

#define CONFIG_SYS_NAND_SELF_INIT 1

The above macro should be added in the <plnxproject>/subsystems/linux/configs/u-boot/petalinux-user-config.h.templatefile.

AR# 60241
Date 11/13/2017
Status Active
Type General Article
Devices
Tools
Boards & Kits
People Also Viewed