So I got the device to boot from SD card, and uuu created the NAND file system with U-Boot.
As long as I just read from the NAND, I am OK. I can then write, and things are still OK (using the cp command and copying from the SD card to the NAND). But if I try to read back data I have written, I get errors:
[ 848.721208] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 82 bytes from PEB 316:220808, read only 82 bytes, retry
[ 848.734112] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 82 bytes from PEB 316:220808, read only 82 bytes, retry
[ 848.752438] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 82 bytes from PEB 316:220808, read only 82 bytes, retry
[ 848.766859] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 82 bytes from PEB 316:220808, read 82 bytes
[ 848.779137] CPU: 0 PID: 352 Comm: find Not tainted 5.4.24-2.1.0+gbabac008e5cf #1
[ 848.786560] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[ 848.792790] [<80111854>] (unwind_backtrace) from [<8010c3e8>] (show_stack+0x10/0x14)
[ 848.800563] [<8010c3e8>] (show_stack) from [<80c3418c>] (dump_stack+0x90/0xa4)
[ 848.807819] [<80c3418c>] (dump_stack) from [<806fdc2c>] (ubi_io_read+0x164/0x3c4)
[ 848.815334] [<806fdc2c>] (ubi_io_read) from [<806fb44c>] (ubi_eba_read_leb+0xd4/0x4fc)
[ 848.823280] [<806fb44c>] (ubi_eba_read_leb) from [<806f9ac8>] (ubi_leb_read+0x94/0x10c)
[ 848.831315] [<806f9ac8>] (ubi_leb_read) from [<803a444c>] (ubifs_leb_read+0x2c/0x78)
[ 848.839089] [<803a444c>] (ubifs_leb_read) from [<803a603c>] (ubifs_read_node+0xac/0x2a8)
[ 848.847210] [<803a603c>] (ubifs_read_node) from [<803c5c74>] (ubifs_tnc_read_node+0x5c/0x214)
[ 848.855760] [<803c5c74>] (ubifs_tnc_read_node) from [<803a7bc0>] (tnc_read_hashed_node+0x98/0x1b8)
[ 848.864743] [<803a7bc0>] (tnc_read_hashed_node) from [<803ab9a8>] (ubifs_tnc_next_ent+0x1b0/0x27c)
[ 848.873725] [<803ab9a8>] (ubifs_tnc_next_ent) from [<8039c028>] (ubifs_readdir+0x178/0x518)
[ 848.882105] [<8039c028>] (ubifs_readdir) from [<80257d24>] (iterate_dir+0x74/0x15c)
[ 848.889791] [<80257d24>] (iterate_dir) from [<80258500>] (ksys_getdents64+0x8c/0x160)
[ 848.897646] [<80258500>] (ksys_getdents64) from [<80101000>] (ret_fast_syscall+0x0/0x54)
[ 848.905748] Exception stack(0x937a7fa8 to 0x937a7ff0)
[ 848.910822] 7fa0: 00000020 024725e0 00000007 02472600 00008000 00000000
[ 848.919020] 7fc0: 00000020 024725e0 024725e4 000000d9 00000000 02472600 00000000 00454601
[ 848.927210] 7fe0: 000000d9 7edff74c 76e9d62b 76e451d6
[ 848.954326] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 67 bytes from PEB 316:237328, read only 67 bytes, retry
[ 848.972781] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 67 bytes from PEB 316:237328, read only 67 bytes, retry
[ 848.988355] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 67 bytes from PEB 316:237328, read only 67 bytes, retry
[ 849.002934] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 67 bytes from PEB 316:237328, read 67 bytes
[ 849.015340] CPU: 0 PID: 352 Comm: find Not tainted 5.4.24-2.1.0+gbabac008e5cf #1
[ 849.022761] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[ 849.028993] [<80111854>] (unwind_backtrace) from [<8010c3e8>] (show_stack+0x10/0x14)
[ 849.036769] [<8010c3e8>] (show_stack) from [<80c3418c>] (dump_stack+0x90/0xa4)
[ 849.044024] [<80c3418c>] (dump_stack) from [<806fdc2c>] (ubi_io_read+0x164/0x3c4)
[ 849.051537] [<806fdc2c>] (ubi_io_read) from [<806fb44c>] (ubi_eba_read_leb+0xd4/0x4fc)
[ 849.059482] [<806fb44c>] (ubi_eba_read_leb) from [<806f9ac8>] (ubi_leb_read+0x94/0x10c)
[ 849.067518] [<806f9ac8>] (ubi_leb_read) from [<803a444c>] (ubifs_leb_read+0x2c/0x78)
[ 849.075294] [<803a444c>] (ubifs_leb_read) from [<803a603c>] (ubifs_read_node+0xac/0x2a8)
[ 849.083413] [<803a603c>] (ubifs_read_node) from [<803c5c74>] (ubifs_tnc_read_node+0x5c/0x214)
[ 849.091967] [<803c5c74>] (ubifs_tnc_read_node) from [<803a7bc0>] (tnc_read_hashed_node+0x98/0x1b8)
[ 849.100950] [<803a7bc0>] (tnc_read_hashed_node) from [<803ab9a8>] (ubifs_tnc_next_ent+0x1b0/0x27c)
[ 849.109933] [<803ab9a8>] (ubifs_tnc_next_ent) from [<8039c028>] (ubifs_readdir+0x178/0x518)
[ 849.118311] [<8039c028>] (ubifs_readdir) from [<80257d24>] (iterate_dir+0x74/0x15c)
[ 849.125994] [<80257d24>] (iterate_dir) from [<80258500>] (ksys_getdents64+0x8c/0x160)
[ 849.133850] [<80258500>] (ksys_getdents64) from [<80101000>] (ret_fast_syscall+0x0/0x54)
[ 849.141953] Exception stack(0x937a7fa8 to 0x937a7ff0)
[ 849.147027] 7fa0: 00000020 024725e0 00000007 02472600 00008000 00000000
[ 849.155225] 7fc0: 00000020 024725e0 024725e4 000000d9 00000000 02472600 00000000 00454601
[ 849.163415] 7fe0: 000000d9 7edff74c 76e9d62b 76e451d6
[ 849.177321] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 67 bytes from PEB 316:233144, read only 67 bytes, retry
[ 849.203861] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 67 bytes from PEB 316:233144, read only 67 bytes, retry
[ 849.218943] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 67 bytes from PEB 316:233144, read only 67 bytes, retry
[ 849.233214] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 67 bytes from PEB 316:233144, read 67 bytes
...