[meta-xilinx] ZynqMP ZCU102 booting Linux from jffs2

Adam Oleksy adam.oleksy at gmail.com
Fri Jul 22 10:05:43 PDT 2016


Hi,
I work with ZynqMP ZCU102 evaluation board. I use U-Boot from tag
xilinx-v2016.1. Currently, linux image lies on the QSPI flash as a raw
file. uboot load this image using sf read command and boot it up.
I would like to use jffs2 (ubifs has some problems with flashes on
qspi in dual) to store linux image, but I encountered some problems.
First of all I've added following defines to
include/configs/xilinx_zynqmp.h:
#define CONFIG_MTD_PARTITIONS
#define CONFIG_CMD_MTDPARTS
#define CONFIG_MTD_DEVICE
#define CONFIG_CMD_JFFS2
and removed
#define CONFIG_CMD_FS_GENERIC
I've also enabled
CONFIG_MTD
CONFIG_SPI_FLASH_MTD
But I've end up with following linking error:
u-boot-xlnx/fs/jffs2/jffs2_1pass.c:373: undefined reference to `flash_info'
I understand that driver which I use, does not declare such structure.
The question is:
How to enable jffs2 commands (like fsload), and allow using them with
SPI flashes? Maybe I forgot about something.
If there is no support for such configuration, what do you think about
adding it to uboot? Do you think it is easy (unfortunately I'm not
familiar with u-boot code). If yes, then I would add it by myself.

-- 
Pozdrawiam,
Adam Oleksy



More information about the meta-xilinx mailing list