Part Number:LINUXSDK-OMAPL138
Tool/software: Linux
I'm using OMAPL138 LCDK (TMDSLCDK138), PROCESSOR-SDK-LINUX-OMAPL138 04_01_00_06.
I have jffs2 image wrote to NAND using below commands (and rebuilt kernel mentioned in topic https://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/640940)
host:------------------------------------------------------------------------------------------------------------------------ $ tar -xf arago-base-tisdk-image-omapl138-lcdk.tar.xz -C rootfs $ mkfs.jffs2 -r rootfs -e 128 -n -p -o arago-base-tisdk-image-omapl138-lcdk-rootfs.jffs2 target:---------------------------------------------------------------------------------------------------------------------- $ cat /proc/mtd dev: size erasesize name mtd0: 00020000 00020000 "u-boot_env" mtd1: 00080000 00020000 "u-boot" mtd2: 00500000 00020000 "kernel" mtd3: 1fa60000 00020000 "rootfs" $ flash_erase /dev/mtd3 0 0 Erasing 128 Kibyte @ 1f9c0000 -- 99 % complete flash_erase: Skipping bad block at 1f9e0000 flash_erase: Skipping bad block at 1fa00000 flash_erase: Skipping bad block at 1fa20000 flash_erase: Skipping bad block at 1fa40000 Erasing 128 Kibyte @ 1fa40000 -- 100 % complete $ nandwrite -p /dev/mtd3 /boot/arago-base-tisdk-image-omapl138-lcdk-rootfs.jffs2 Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x20000 ... Writing data to block 784 at offset 0x6200000 $ mount -t jffs2 /dev/mtdblock3 /mnt/nandrootfs jffs2: notice: (610) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. $ ls -l /mnt/nandrootfs/ drwxr-xr-x 2 1000 1000 0 Sep 26 2017 bin drwxr-xr-x 2 1000 1000 0 Sep 26 2017 boot drwxr-xr-x 2 1000 1000 0 Sep 26 2017 dev drwxr-xr-x 33 1000 1000 0 Sep 26 2017 etc drwxr-xr-x 3 1000 1000 0 Sep 26 2017 home lrwxrwxrwx 1 1000 1000 20 Sep 26 2017 init -> /lib/systemd/systemd drwxr-xr-x 8 1000 1000 0 Sep 26 2017 lib drwxr-xr-x 2 1000 1000 0 Sep 26 2017 media drwxr-xr-x 3 1000 1000 0 Sep 26 2017 mnt drwxr-xr-x 3 1000 1000 0 Sep 26 2017 opt drwxr-xr-x 2 1000 1000 0 Sep 26 2017 proc drwxr-xr-x 2 1000 1000 0 Sep 26 2017 run drwxr-xr-x 2 1000 1000 0 Sep 26 2017 sbin drwxr-xr-x 3 1000 1000 0 Sep 26 2017 srv drwxr-xr-x 2 1000 1000 0 Sep 26 2017 sys drwxrwxr-x 2 1000 1000 0 Sep 26 2017 tmp drwxr-xr-x 11 1000 1000 0 Sep 26 2017 usr drwxr-xr-x 8 1000 1000 0 Sep 26 2017 var
First boot is always successfully. During next boots multiple error messages occurs. Example:
jffs2: mtd->read(0x7bc bytes from 0x6211044) returned ECC error jffs2: mtd->read(0x4ac bytes from 0x6205354) returned ECC error jffs2: mtd->read(0x534 bytes from 0x62052cc) returned ECC error jffs2: mtd->read(0x408 bytes from 0x62023f8) returned ECC error jffs2: mtd->read(0x74c bytes from 0x62020b4) returned ECC error jffs2: mtd->read(0x44 bytes from 0x62052cc) returned ECC error
My kernel config: (Please visit the site to view this file)
My boot log: (Please visit the site to view this file)
How to fix it?