Wind River Support Network

HomeDefectsLIN8-6335
Fixed

LIN8-6335 : nandsim device failed to do ubifs format

Created: Apr 6, 2017    Updated: Dec 9, 2019
Resolved Date: May 11, 2017
Found In Version: 8.0.0.11
Fix Version: 8.0.0.18
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: BSP

Description

on socfpga board, failed to use nandsim device, it will show:
/*****************************************************************/
root@cyclone V:/dev/shm> ubiformat /dev/mtd12 -y
ubiformat: mtd12 (nand), size 67108864 bytes (64.0 MiB), 4096 eraseblocks of 16384 bytes (16.0 KiB), min. I/O size 512 bytes
libscan: scan[nandsim] error: write_byte: unknown command 0x23
libscan: scanning eraseblock 4080 -[nandsim] error: write_byte: address (0x0) isn't expected, expected state is STATE_READY, switch to STATE_READY
libs[nandsim] error: write_byte: unknown command 0x24
libscan: scanning eraseblo[nandsim] error: write_byte: unknown command 0x23
libscan: scanning eraseblock 4087 -- 99 % comple[nandsim] error: write_byte: address (0x20) isn't expected, expected state is STATE_READY, switch to STATE_READY
libscan: scanning[nandsim] error: write_byte: unknown command 0x24
libscan: scanning eraseblock 4092 -- 99[nandsim] error: write_byte: unknown command 0x23
libscan:[nandsim] error: write_byte: address (0x40) isn't expected, expected state is STATE_READY, switch to STATE_READY
scanning eraseblock 4095 -- 100 % complete
ubiformat: 4096 eraseblocks are supposedly empty

ubiformat: formatting eraseblo[nandsim] error: write_byte: unknown command 0x24
ubiformat: formatting eraseblock 2 -- 0 % complet[nandsim] error: write_byte: unknown command 0x23
ubiformat: formatting eraseblock 3 -- 0 % complete [nandsim] error: write_byte: address (0x60) isn't expected, expected state is STATE_READY, switch to STATE_READY

/*****************************************************************/

Steps to Reproduce

I verified with VLM board, it can be seen on our side:
1, config project with:
configure --enable-board=altera-socfpga --enable-build=production --enable-rm-oldimgs=yes --enable-kernel=standard+altera-socfpga-pcie.scc --enable-rootfs=glibc_core --with-template=feature/analysis,feature/gdb --enable-jobs=4 --enable-parallel-pkgbuilds=4 --with-rcpl-version=0011

2, enable nandsim and add ubiformat tool
make -C build mtd-utils-ubifs.addpkg

3, create image and update to vlm board(Barcode:20382)

4, "cat /proc/mtd" will show the device name of nandsim, then run:
# ubiformat /dev/mtd0 -y

Other Downloads


Live chat
Online