[U-Boot] U-boot and UBI problem with vexpress board.
Heiko Schocher
hs at denx.de
Mon Mar 30 07:40:41 CEST 2015
Hello Marcin,
Am 27.03.2015 16:53, schrieb mar.krzeminski:
> Hi Stefan,
>
> I've changed malloc pool size to 2MiB and nothing changed.
> I've also disabled UBIFS support and that does not make any changes.
> Still after qemu restart u-boot can not attach to ubi device.
Hmm.. hard to say, can you enable debug (not only in UBI) and
maybe try current mainline U-Boot?
The line "UBI error: vtbl_check: bad CRC at record 0: 0x88cdfb6, not 0xffffffff"
... it seems, you have some problems reading your flash ... can
you try a to write into your flash, reread the content and
compare it?
Thanks!
bye,
Heiko
>
> Regards,
> Marcin
>
> W dniu 27.03.2015 o 16:01, Stefan Roese pisze:
>> 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
>>
>>
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
More information about the U-Boot
mailing list