From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Fri, 27 Mar 2015 16:01:19 +0100 Subject: [U-Boot] U-boot and UBI problem with vexpress board. In-Reply-To: References: Message-ID: <551570BF.3010604@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marcin, On 27.03.2015 13:59, Marcin Krzemi?ski wrote: > I want to test some UBI fs behavior in U-Boot using qemu and vexpress_ca9x4 > board ( U-Boot 2015.1) > To tst UBI I added lines to vexpress_ca9x4.h: > > #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ > #define CONFIG_MTD_PARTITIONS /* needed for UBI */ > #define CONFIG_FLASH_CFI_MTD > #define MTDIDS_DEFAULT "nor0=flash0-0" > #define MTDPARTS_DEFAULT "mtdparts=flash0-0:1m(empty),10m(ubi),-(rest)" > #define CONFIG_LZO /* needed for UBI */ > #define CONFIG_RBTREE /* needed for UBI */ > #define CONFIG_CMD_MTDPARTS > #define CONFIG_CMD_UBI > #define CONFIG_CMD_UBIFS > #define CONFIG_FIT > > also I've changed malloc pool size to 512kB in vexpress_common.h: > #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 512 * 1024) Without looking deeper into your mail, I would recommend to increase the malloc size to at least 2MiB and test again. Thanks, Stefan