0

I've 2 identical embedded Linux boards with:

  • AM3354 SoC.
  • MT29F2G08ABAEA (256MB) NAND flash
  • IS43TR16640A (128MB) RAM
  • SD card interface
  • UART interface

One of the boards failed to boot so I've tried to use NAND content of the working board to re-flash the broken board following these steps from u-boot shell:

  • On the working board I've copied nand to mmc:
NAND read: device 0 offset 0x0, size 0x4000000
 67108864 bytes read: OK
OK335X# mmc write 80200000 0 20000

MMC write: dev # 0, block # 0, count 131072 ... 131072 blocks write: OK
OK335X# nand read 80200000 4000000 4000000

NAND read: device 0 offset 0x4000000, size 0x4000000
 67108864 bytes read: OK
OK335X# mmc write 80200000 20000 20000

MMC write: dev # 0, block # 131072, count 131072 ... 131072 blocks write: OK
OK335X# nand read 80200000 8000000 4000000

NAND read: device 0 offset 0x8000000, size 0x4000000
 67108864 bytes read: OK
OK335X# mmc write 80200000 40000 20000

MMC write: dev # 0, block # 262144, count 131072 ... 131072 blocks write: OK
OK335X# nand read 80200000 c000000 4000000

NAND read: device 0 offset 0xc000000, size 0x4000000
 67108864 bytes read: OK
OK335X# mmc write 80200000 60000 20000

MMC write: dev # 0, block # 393216, count 131072 ... 131072 blocks write: OK
  • On the broken board I've erased nand then copied mmc to nand:
OK335X# nand erase.chip

NAND erase.chip: device 0 whole chip
OK
OK335X# mmc read 80200000 0 20000

MMC read: dev # 0, block # 0, count 131072 ... 131072 blocks read: OK
OK335X# nand write 80200000 0 4000000

NAND write: device 0 offset 0x0, size 0x4000000
 67108864 bytes written: OK
OK335X# mmc read 80200000 20000 20000

MMC read: dev # 0, block # 131072, count 131072 ... 131072 blocks read: OK
OK335X# nand write 80200000 4000000 4000000

NAND write: device 0 offset 0x4000000, size 0x4000000
 67108864 bytes written: OK
OK335X# mmc read 80200000 40000 20000

MMC read: dev # 0, block # 262144, count 131072 ... 131072 blocks read: OK
OK335X# nand write 80200000 8000000 4000000

NAND write: device 0 offset 0x8000000, size 0x4000000
 67108864 bytes written: OK
OK335X# mmc read 80200000 60000 20000

MMC read: dev # 0, block # 393216, count 131072 ... 131072 blocks read: OK
OK335X# nand write 80200000 c000000 4000000

NAND write: device 0 offset 0xc000000, size 0x4000000
 67108864 bytes written: OK

I've verified the copy operation be erasing the SD card, copying nand to mmc and comparing it with the working image. After resetting the board, I've noticed a ubi_io_read error which led to a ubifs mounting failure (ubi1_0).

My question is, why I'm getting this error? If this is caused by some bad blocks in the working flash, can I mark them as bad blocks in the other flash (from u-boot) to overcome any ubifs failed recovery attempts? Also, since the board can boot from MMC, is there away to recover "rootfs" and "user file" and make the board run from MMC? Unfortunately, board vendor is out of business.

  • Boot log of working board (some lines were removed to comply with message size rule):
Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 3.2.0 (zll@zll) (gcc version 4.8.3 (Buildroot 2014.11-rc1-00011-g4900b2c) ) #10 Thu Apr 27 16:18:03 CST 2017
...
[    1.061444] Creating 9 MTD partitions on "omap2-nand.0":
[    1.067086] 0x000000000000-0x000000200000 : "SPL"
[    1.074236] 0x000000200000-0x000000400000 : "SPL.backup1"
[    1.081861] 0x000000400000-0x000000600000 : "SPL.backup2"
[    1.089522] 0x000000600000-0x000000800000 : "SPL.backup3"
[    1.097101] 0x000000800000-0x000000a00000 : "U-Boot"
[    1.104246] 0x000000a00000-0x000000c00000 : "U-Boot Env"
[    1.111730] 0x000000c00000-0x000001400000 : "Kernel"
[    1.119977] 0x000001400000-0x000007800000 : "File System"
[    1.145154] 0x000007800000-0x000010000000 : "User File"
[    1.176722] OneNAND driver initializing
[    1.181674] UBI: attaching mtd7 to ubi0
[    1.185772] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    1.192387] UBI: logical eraseblock size:    126976 bytes
[    1.198068] UBI: smallest flash I/O unit:    2048
[    1.203028] UBI: sub-page size:              512
[    1.207888] UBI: VID header offset:          2048 (aligned 2048)
[    1.214219] UBI: data offset:                4096
[    1.853059] elm_decode_bch_error 116
[    1.856942] reg_val 101
[    1.859513] elm_decode_bch_error 148
[    1.863293] ECC bad bit_pos 3 byte_pos 8 count 1
[    2.068409] elm_decode_bch_error 116
[    2.072280] reg_val 101
[    2.074856] elm_decode_bch_error 148
[    2.078617] ECC bad bit_pos 7 byte_pos 452 count 1
[    2.370163] UBI: max. sequence number:       273
[    2.393383] UBI: attached mtd7 to ubi0
[    2.397338] UBI: MTD device name:            "File System"
[    2.403154] UBI: MTD device size:            100 MiB
[    2.408383] UBI: number of good PEBs:        800
[    2.413251] UBI: number of bad PEBs:         0
[    2.417926] UBI: number of corrupted PEBs:   0
[    2.422615] UBI: max. allowed volumes:       128
[    2.427472] UBI: wear-leveling threshold:    4096
[    2.432432] UBI: number of internal volumes: 1
[    2.437109] UBI: number of user volumes:     1
[    2.441782] UBI: available PEBs:             0
[    2.446469] UBI: total number of reserved PEBs: 800
[    2.451604] UBI: number of PEBs reserved for bad PEB handling: 8
[    2.457937] UBI: max/mean erase counter: 2/0
[    2.462441] UBI: image sequence number:  273256185
[    2.467570] UBI: background thread "ubi_bgt0d" started, PID 647
[    2.475272] CAN device driver interface
[    2.479312] CAN bus driver for Bosch D_CAN controller 1.0
[    2.486021] d_can d_can.0: device registered (irq=52, irq_obj=53)
[    2.493214] d_can d_can.1: device registered (irq=55, irq_obj=56)
[    2.542054] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[    2.548569] davinci_mdio davinci_mdio.0: detected phy mask fffffffd
[    2.555914] davinci_mdio.0: probed
[    2.559503] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver SMSC LAN8710/LAN8720
[    2.568330] PPP generic driver version 2.4.2
[    2.573366] PPP BSD Compression module registered
[    2.578321] PPP Deflate Compression module registered
[    2.583924] usbcore: registered new interface driver rtl8192cu
[    2.590258] usbcore: registered new interface driver zd1201
[    2.596408] usbcore: registered new interface driver cdc_ether
[    2.602761] usbcore: registered new interface driver cdc_eem
[    2.608894] usbcore: registered new interface driver dm9601
[    2.614836] cdc_ncm: 04-Aug-2011
[    2.618419] usbcore: registered new interface driver cdc_ncm
[    2.624402] Initializing USB Mass Storage driver...
[    2.629797] usbcore: registered new interface driver usb-storage
[    2.636150] USB Mass Storage support registered.
[    2.641440] usbcore: registered new interface driver usbserial
[    2.647773] USB Serial support registered for generic
[    2.653295] usbcore: registered new interface driver usbserial_generic
[    2.660174] usbserial: USB Serial Driver core
[    2.664930] USB Serial support registered for GSM modem (1-port)
[    2.671549] usbcore: registered new interface driver option
[    2.677442] option: v0.7.2:USB Driver for GSM modems
[    2.682909]  gadget: Mass Storage Function, version: 2009/09/11
[    2.689150]  gadget: Number of LUNs=1
[    2.693027]  lun0: LUN: removable file: (no medium)
[    2.698201]  gadget: Mass Storage Gadget, version: 2009/09/11
[    2.704273]  gadget: userspace failed to provide iSerialNumber
[    2.710424]  gadget: g_mass_storage ready
[    2.714676] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[    2.720329] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
[    2.728278] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    2.735455] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.743079] usb usb2: Product: MUSB HDRC host driver
[    2.748305] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
[    2.753906] usb usb2: SerialNumber: musb-hdrc.0
[    2.759717] hub 2-0:1.0: USB hub found
[    2.763729] hub 2-0:1.0: 1 port detected
[    2.769287] mousedev: PS/2 mouse device common for all mice
[    2.775959] [wds tsc probe]x.min=140,x.max=3946,y.min=319,y.max=3865,x.inverted=0,y.inverted=1
[    2.785544] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input0
[    2.796871] rtc-ds1307 2-0068: rtc core: registered ds1307 as rtc0
[    2.803450] rtc-ds1307 2-0068: 56 bytes nvram
[    2.808223] i2c /dev entries driver
[    2.812736] Linux video capture interface: v2.00
[    2.818006] usbcore: registered new interface driver uvcvideo
[    2.824088] USB Video Class driver (1.1.1)
[    2.829376] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    2.835950] Bluetooth: Broadcom Blutonium firmware driver ver 1.2
[    2.842628] usbcore: registered new interface driver bcm203x
[    2.848597] Bluetooth: Generic Bluetooth USB driver ver 0.6
[    2.854689] usbcore: registered new interface driver btusb
[    2.860571] _regulator_get: deviceless supply vdd_mpu not found, using dummy regulator
[    2.869503] cpuidle: using governor ladder
[    2.874431] cpuidle: using governor menu
[    2.886089] usbcore: registered new interface driver usbhid
[    2.891976] usbhid: USB HID core driver
[    2.896902] tiadc tiadc: attached adc driver
[    2.904213] ALSA device list:
[    2.907341]   No soundcards found.
[    2.910919] oprofile: hardware counters not available
[    2.916286] oprofile: using timer interrupt.
[    2.920810] nf_conntrack version 0.5.0 (1909 buckets, 7636 max)
[    2.927603] ip_tables: (C) 2000-2006 Netfilter Core Team
[    2.933382] TCP cubic registered
[    2.936787] NET: Registered protocol family 17
[    2.941476] can: controller area network core (rev 20090105 abi 8)
[    2.948104] NET: Registered protocol family 29
[    2.952853] can: raw protocol (rev 20090105)
[    2.957348] can: broadcast manager protocol (rev 20090105 t)
[    2.963517] Bluetooth: RFCOMM TTY layer initialized
[    2.968714] Bluetooth: RFCOMM socket layer initialized
[    2.974148] Bluetooth: RFCOMM ver 1.11
[    2.978098] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.983701] Bluetooth: BNEP filters: protocol multicast
[    2.989204] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.995982] Registering the dns_resolver key type
[    3.001026] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    3.009142] ThumbEE CPU extension supported.
[    3.013721] mux: Failed to setup hwmod io irq -22
[    3.019430] Power Management for AM33XX family
[    3.024379] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[    3.031102] Copied the M3 firmware to UMEM
[    3.035532] Cortex M3 Firmware Version = 0x181
[    3.049425] clock: disabling unused clocks to save power
[    3.057617] Detected MACID=7c:38:66:59:91:a9
[    3.063485] cpsw: Detected MACID = 7c:38:66:59:91:ab
[    3.071809] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[    3.080766] rtc-ds1307 2-0068: setting system clock to 2000-01-09 07:29:28 UTC (947402968)
[    3.225877] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    3.232267] UBIFS: file system size:   98660352 bytes (96348 KiB, 94 MiB, 777 LEBs)
[    3.240339] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[    3.248050] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    3.254205] UBIFS: default compressor: lzo
[    3.258515] UBIFS: reserved for root:  0 bytes (0 KiB)
[    3.268272] VFS: Mounted root (ubifs filesystem) on device 0:14.
[    3.277506] devtmpfs: mounted
[    3.281050] Freeing init memory: 232K
[    3.399488] elm_decode_bch_error 116
[    3.403407] reg_val 101
[    3.405982] elm_decode_bch_error 148
[    3.409744] ECC bad bit_pos 5 byte_pos 289 count 1
[    3.416190] elm_decode_bch_error 116
[    3.420048] reg_val 101
[    3.422636] elm_decode_bch_error 148
[    3.426400] ECC bad bit_pos 5 byte_pos 289 count 1
[    3.432835] elm_decode_bch_error 116
[    3.436691] reg_val 101
[    3.439262] elm_decode_bch_error 148
[    3.443041] ECC bad bit_pos 5 byte_pos 289 count 1
[    3.449462] elm_decode_bch_error 116
[    3.453330] reg_val 101
[    3.455905] elm_decode_bch_error 148
[    3.459664] ECC bad bit_pos 5 byte_pos 289 count 1
[    3.464728] UBI error: ubi_io_read: error 1 while reading 2309 bytes from PEB 18:78552, read 2309 bytes
[    3.474641] UBIFS error (pid 1): ubifs_leb_read: reading 2309 bytes from LEB 16:74456 failed, error 1
[    3.484369] UBIFS error (pid 1): try_read_node: cannot read node type 1 from LEB 16:74456, error 1
[    3.906457] UBI: attaching mtd8 to ubi1
[    3.910518] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    3.917150] UBI: logical eraseblock size:    126976 bytes
[    3.922867] UBI: smallest flash I/O unit:    2048
[    3.927817] UBI: sub-page size:              512
[    3.932692] UBI: VID header offset:          2048 (aligned 2048)
[    3.939014] UBI: data offset:                4096
[    5.041226] elm_decode_bch_error 116
[    5.045178] reg_val 101
[    5.047753] elm_decode_bch_error 148
[    5.051516] ECC bad bit_pos 2 byte_pos 70 count 1
[    5.482816] UBI: max. sequence number:       486
[    5.507933] UBI: attached mtd8 to ubi1
[    5.511891] UBI: MTD device name:            "User File"
[    5.517541] UBI: MTD device size:            136 MiB
[    5.522795] UBI: number of good PEBs:        1088
[    5.527746] UBI: number of bad PEBs:         0
[    5.532433] UBI: number of corrupted PEBs:   0
[    5.537111] UBI: max. allowed volumes:       128
[    5.541969] UBI: wear-leveling threshold:    4096
[    5.546928] UBI: number of internal volumes: 1
[    5.551606] UBI: number of user volumes:     1
[    5.556292] UBI: available PEBs:             248
[    5.561150] UBI: total number of reserved PEBs: 840
[    5.566297] UBI: number of PEBs reserved for bad PEB handling: 10
[    5.572723] UBI: max/mean erase counter: 2/1
[    5.577219] UBI: image sequence number:  662399382
[    5.582302] UBI: background thread "ubi_bgt1d" started, PID 778
UBI device number 1, total 1088 LEBs (138149888 bytes, 131.8 MiB), available 248 LEBs (31490048 bytes, 30.0 MiB), LEB size 126976 bytes (124.0 KiB)
[    5.708660] UBIFS: recovery needed
[    5.994532] UBIFS: recovery completed
[    5.998419] UBIFS: mounted UBI device 1, volume 0, name "ubifs"
[    6.004673] UBIFS: file system size:   103612416 bytes (101184 KiB, 98 MiB, 816 LEBs)
[    6.012939] UBIFS: journal size:       5206016 bytes (5084 KiB, 4 MiB, 41 LEBs)
[    6.020635] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    6.026785] UBIFS: default compressor: lzo
[    6.031099] UBIFS: reserved for root:  4893869 bytes (4779 KiB)
Starting logging: OK
Starting mdev...
Initializing random number generator... read-only file system detected...done
Starting system message bus: done
Starting network...
Starting dropbear sshd: OK
Starting lighttpd: OK
Starting vsftpd: OK
ti-gfx: starting pvr driver
[    7.527958] Disabling lock debugging due to kernel taint
[    7.838100] elm_decode_bch_error 116
[    7.842000] reg_val 101
[    7.844622] elm_decode_bch_error 148
[    7.848396] ECC bad bit_pos 7 byte_pos 514 count 1
[    7.855439] elm_decode_bch_error 116
[    7.859419] reg_val 101
[    7.861997] elm_decode_bch_error 148
[    7.865803] ECC bad bit_pos 7 byte_pos 514 count 1
[    7.879608] elm_decode_bch_error 116
[    7.883738] reg_val 101
[    7.886318] elm_decode_bch_error 148
[    7.890085] ECC bad bit_pos 7 byte_pos 514 count 1
[    7.944069] elm_decode_bch_error 116
[    7.947966] reg_val 101
[    7.950539] elm_decode_bch_error 148
[    7.954340] ECC bad bit_pos 7 byte_pos 514 count 1
[    7.967594] elm_decode_bch_error 116
[    7.971989] reg_val 101
[    7.974619] elm_decode_bch_error 148
[    7.978389] ECC bad bit_pos 7 byte_pos 514 count 1
Start app...

Welcome to 335x
335x login: 
  • Boot log of recovered board (some lines were removed to comply with message size rule):
Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 3.2.0 (zll@zll) (gcc version 4.8.3 (Buildroot 2014.11-rc1-00011-g4900b2c) ) #10 Thu Apr 27 16:18:03 CST 2017
...
[    1.061723] Creating 9 MTD partitions on "omap2-nand.0":
[    1.067367] 0x000000000000-0x000000200000 : "SPL"
[    1.074510] 0x000000200000-0x000000400000 : "SPL.backup1"
[    1.082190] 0x000000400000-0x000000600000 : "SPL.backup2"
[    1.089836] 0x000000600000-0x000000800000 : "SPL.backup3"
[    1.097398] 0x000000800000-0x000000a00000 : "U-Boot"
[    1.104529] 0x000000a00000-0x000000c00000 : "U-Boot Env"
[    1.112033] 0x000000c00000-0x000001400000 : "Kernel"
[    1.120235] 0x000001400000-0x000007800000 : "File System"
[    1.145375] 0x000007800000-0x000010000000 : "User File"
[    1.176951] OneNAND driver initializing
[    1.181903] UBI: attaching mtd7 to ubi0
[    1.186003] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    1.192620] UBI: logical eraseblock size:    126976 bytes
[    1.198302] UBI: smallest flash I/O unit:    2048
[    1.203264] UBI: sub-page size:              512
[    1.208122] UBI: VID header offset:          2048 (aligned 2048)
[    1.214454] UBI: data offset:                4096
[    2.339191] UBI: max. sequence number:       275
[    2.362426] UBI: attached mtd7 to ubi0
[    2.366394] UBI: MTD device name:            "File System"
[    2.372194] UBI: MTD device size:            100 MiB
[    2.377419] UBI: number of good PEBs:        800
[    2.382294] UBI: number of bad PEBs:         0
[    2.386969] UBI: number of corrupted PEBs:   0
[    2.391643] UBI: max. allowed volumes:       128
[    2.396515] UBI: wear-leveling threshold:    4096
[    2.401464] UBI: number of internal volumes: 1
[    2.406151] UBI: number of user volumes:     1
[    2.410829] UBI: available PEBs:             0
[    2.415514] UBI: total number of reserved PEBs: 800
[    2.420646] UBI: number of PEBs reserved for bad PEB handling: 8
[    2.426982] UBI: max/mean erase counter: 2/0
[    2.431473] UBI: image sequence number:  273256185
[    2.436614] UBI: background thread "ubi_bgt0d" started, PID 647
[    2.444286] CAN device driver interface
[    2.448326] CAN bus driver for Bosch D_CAN controller 1.0
[    2.455031] d_can d_can.0: device registered (irq=52, irq_obj=53)
[    2.462233] d_can d_can.1: device registered (irq=55, irq_obj=56)
[    2.512010] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[    2.518525] davinci_mdio davinci_mdio.0: detected phy mask fffffffd
[    2.525870] davinci_mdio.0: probed
[    2.529460] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver SMSC LAN8710/LAN8720
[    2.538292] PPP generic driver version 2.4.2
[    2.543327] PPP BSD Compression module registered
[    2.548284] PPP Deflate Compression module registered
[    2.553888] usbcore: registered new interface driver rtl8192cu
[    2.560220] usbcore: registered new interface driver zd1201
[    2.566360] usbcore: registered new interface driver cdc_ether
[    2.572722] usbcore: registered new interface driver cdc_eem
[    2.578855] usbcore: registered new interface driver dm9601
[    2.584797] cdc_ncm: 04-Aug-2011
[    2.588377] usbcore: registered new interface driver cdc_ncm
[    2.594362] Initializing USB Mass Storage driver...
[    2.599765] usbcore: registered new interface driver usb-storage
[    2.606116] USB Mass Storage support registered.
[    2.611403] usbcore: registered new interface driver usbserial
[    2.617735] USB Serial support registered for generic
[    2.623255] usbcore: registered new interface driver usbserial_generic
[    2.630134] usbserial: USB Serial Driver core
[    2.634891] USB Serial support registered for GSM modem (1-port)
[    2.641510] usbcore: registered new interface driver option
[    2.647403] option: v0.7.2:USB Driver for GSM modems
[    2.652864]  gadget: Mass Storage Function, version: 2009/09/11
[    2.659107]  gadget: Number of LUNs=1
[    2.662985]  lun0: LUN: removable file: (no medium)
[    2.668158]  gadget: Mass Storage Gadget, version: 2009/09/11
[    2.674234]  gadget: userspace failed to provide iSerialNumber
[    2.680385]  gadget: g_mass_storage ready
[    2.684641] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[    2.690293] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
[    2.698237] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    2.705412] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.713035] usb usb2: Product: MUSB HDRC host driver
[    2.718262] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
[    2.723878] usb usb2: SerialNumber: musb-hdrc.0
[    2.729670] hub 2-0:1.0: USB hub found
[    2.733684] hub 2-0:1.0: 1 port detected
[    2.739247] mousedev: PS/2 mouse device common for all mice
[    2.745914] [wds tsc probe]x.min=140,x.max=3946,y.min=319,y.max=3865,x.inverted=0,y.inverted=1
[    2.755493] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input0
[    2.766840] rtc-ds1307 2-0068: rtc core: registered ds1307 as rtc0
[    2.773414] rtc-ds1307 2-0068: 56 bytes nvram
[    2.778181] i2c /dev entries driver
[    2.782691] Linux video capture interface: v2.00
[    2.787956] usbcore: registered new interface driver uvcvideo
[    2.794040] USB Video Class driver (1.1.1)
[    2.799334] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    2.805918] Bluetooth: Broadcom Blutonium firmware driver ver 1.2
[    2.812599] usbcore: registered new interface driver bcm203x
[    2.818568] Bluetooth: Generic Bluetooth USB driver ver 0.6
[    2.824669] usbcore: registered new interface driver btusb
[    2.830551] _regulator_get: deviceless supply vdd_mpu not found, using dummy regulator
[    2.839492] cpuidle: using governor ladder
[    2.844425] cpuidle: using governor menu
[    2.856074] usbcore: registered new interface driver usbhid
[    2.861961] usbhid: USB HID core driver
[    2.866884] tiadc tiadc: attached adc driver
[    2.874190] ALSA device list:
[    2.877321]   No soundcards found.
[    2.880899] oprofile: hardware counters not available
[    2.886260] oprofile: using timer interrupt.
[    2.890790] nf_conntrack version 0.5.0 (1909 buckets, 7636 max)
[    2.897573] ip_tables: (C) 2000-2006 Netfilter Core Team
[    2.903354] TCP cubic registered
[    2.906759] NET: Registered protocol family 17
[    2.911448] can: controller area network core (rev 20090105 abi 8)
[    2.918076] NET: Registered protocol family 29
[    2.922834] can: raw protocol (rev 20090105)
[    2.927330] can: broadcast manager protocol (rev 20090105 t)
[    2.933499] Bluetooth: RFCOMM TTY layer initialized
[    2.938694] Bluetooth: RFCOMM socket layer initialized
[    2.944132] Bluetooth: RFCOMM ver 1.11
[    2.948085] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.953691] Bluetooth: BNEP filters: protocol multicast
[    2.959194] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.965918] Registering the dns_resolver key type
[    2.970977] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    2.979101] ThumbEE CPU extension supported.
[    2.983678] mux: Failed to setup hwmod io irq -22
[    2.989395] Power Management for AM33XX family
[    2.994343] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[    3.001066] Copied the M3 firmware to UMEM
[    3.005503] Cortex M3 Firmware Version = 0x181
[    3.019171] clock: disabling unused clocks to save power
[    3.027346] Detected MACID=84:eb:18:ae:e6:aa
[    3.033216] cpsw: Detected MACID = 84:eb:18:ae:e6:ac
[    3.041654] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[    3.050820] rtc-ds1307 2-0068: setting system clock to 2000-01-01 00:15:22 UTC (946685722)
[    3.195842] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    3.202227] UBIFS: file system size:   98660352 bytes (96348 KiB, 94 MiB, 777 LEBs)
[    3.210299] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[    3.218011] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    3.224165] UBIFS: default compressor: lzo
[    3.228476] UBIFS: reserved for root:  0 bytes (0 KiB)
[    3.238230] VFS: Mounted root (ubifs filesystem) on device 0:14.
[    3.247455] devtmpfs: mounted
[    3.250999] Freeing init memory: 232K
[    3.781657] UBI: attaching mtd8 to ubi1
[    3.785781] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    3.792398] UBI: logical eraseblock size:    126976 bytes
[    3.798079] UBI: smallest flash I/O unit:    2048
[    3.803045] UBI: sub-page size:              512
[    3.807905] UBI: VID header offset:          2048 (aligned 2048)
[    3.814238] UBI: data offset:                4096
[    5.341683] UBI: max. sequence number:       493
[    5.366820] UBI: attached mtd8 to ubi1
[    5.370774] UBI: MTD device name:            "User File"
[    5.376440] UBI: MTD device size:            136 MiB
[    5.381664] UBI: number of good PEBs:        1088
[    5.386626] UBI: number of bad PEBs:         0
[    5.391304] UBI: number of corrupted PEBs:   0
[    5.395992] UBI: max. allowed volumes:       128
[    5.400849] UBI: wear-leveling threshold:    4096
[    5.405813] UBI: number of internal volumes: 1
[    5.410490] UBI: number of user volumes:     1
[    5.415175] UBI: available PEBs:             248
[    5.420037] UBI: total number of reserved PEBs: 840
[    5.425182] UBI: number of PEBs reserved for bad PEB handling: 10
[    5.431599] UBI: max/mean erase counter: 2/1
[    5.436102] UBI: image sequence number:  662399382
[    5.441166] UBI: background thread "ubi_bgt1d" started, PID 778
UBI device number 1, total 1088 LEBs (138149888 bytes, 131.8 MiB), available 248 LEBs (31490048 bytes, 30.0 MiB), LEB size 126976 bytes (124.0 KiB)
[    5.567398] UBIFS: recovery needed
[    5.773428] elm_decode_bch_error 116
[    5.777321] reg_val 1
[    5.779711] elm_decode_bch_error 152
[    5.783498] count < 0
[    5.785889] uncorrect page 116878 step 4
[    5.790013] 0 aa 10 b6 10 
[    5.792891] 20 1 39 48 6 
[    5.795666] 0 1b 4a 0 
[    5.798860] elm_decode_bch_error 116
[    5.802737] reg_val 1
[    5.805126] elm_decode_bch_error 152
[    5.808884] count < 0
[    5.811274] uncorrect page 116878 step 4
[    5.815412] 0 aa 10 b6 10 
[    5.818275] 20 1 39 48 6 
[    5.821045] 0 1b 4a 0 
[    5.824249] elm_decode_bch_error 116
[    5.828109] reg_val 1
[    5.830497] elm_decode_bch_error 152
[    5.834269] count < 0
[    5.836658] uncorrect page 116878 step 4
[    5.840786] 0 aa 10 b6 10 
[    5.843662] 20 1 39 48 6 
[    5.846433] 0 1b 4a 0 
[    5.849619] elm_decode_bch_error 116
[    5.853495] reg_val 1
[    5.855884] elm_decode_bch_error 152
[    5.859642] count < 0
[    5.862043] uncorrect page 116878 step 4
[    5.866168] 0 aa 10 b6 10 
[    5.869033] 20 1 39 48 6 
[    5.871805] 0 1b 4a 0 
[    5.874322] UBI error: ubi_io_read: error -74 (ECC error) while reading 74 bytes from PEB 866:28672, read 74 bytes
[    5.885243] UBIFS error (pid 779): ubifs_leb_read: reading 74 bytes from LEB 148:24576 failed, error -74
[    5.895243] UBIFS error (pid 779): try_read_node: cannot read node type 2 from LEB 148:24576, error -74
mount: mounting ubi1_0 on /opt/ failed: Bad message
Starting logging: OK
Starting mdev...
Initializing random number generator... read-only file system detected...done
Starting system message bus: done
Starting network...
Starting dropbear sshd: OK
Starting lighttpd: OK
Starting vsftpd: OK
ti-gfx: starting pvr driver
[    7.393846] Disabling lock debugging due to kernel taint
Start app...
cp: can't stat '/opt/pointercal': No such file or directory
xres = 800, yres = 600
Wali
  • 1
  • 2
  • An MTD partition that has UBI volume is not like an ordinary filesystem in a partition that can be copied/moved to another partition or device. The raw image retains specific information (e.g. erase counters, bad & spare blocks) about the NAND device that makes it non-portable to another partition or chip. You would be better off performing a file-level copy. – sawdust Oct 26 '22 at 02:03

0 Answers0