On 2013-10-25 00:01, matti kaasinen wrote:
Hi!
Do anyone happen to know how u-boot should be set to access Linux created
ubifs partition correctly? I'm working on beaglebone variant board with
nand flash addition. Linux side (3.8.13) seems working fine provided that I
don't mount it in u-boot side. However, if i do, it gets corrupted. For
instance, if I attach Linux created ubifs partition (ubi part <partition>),
i will get tons of "ECC: uncorrectable" errors. After re-boot also Linux
side will get these errors.
I'm using Angstrom distribution with following details.
BB_VERSION = "1.17.0"
TARGET_ARCH = "arm"
TARGET_OS = "linux-gnueabi"
MACHINE = "beaglebone"
DISTRO = "angstrom"
DISTRO_VERSION = "v2012.12"
TUNE_FEATURES = "armv7a vfp neon cortexa8"
TARGET_FPU = "vfp-neon"
Any hints warmly appreciated.
Details about your NAND device will probably be necessary as well as the
actual errors and operations you tried.
I suspect that the problem may have to do with NAND sub-page writes. I've
experienced this on other platforms and was able to work around it by not
letting UBI use them. For example on my 2K Micron NAND device, I use this
command to attach:
# ubiattach /dev/ubi_ctrl -m 3 -O 2048
The -O option forces the UBI system to only use 2048 byte writes, as opposed
to the 512 byte sub-pages that it would like to use.
If you want to boot with this as your file system, use these kernel command
line options:
root=ubi0:root ubi.mtd=3,2048 rootfstype=ubifs
See if this helps. If not, send as many details as you can.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel