Hi,
I have the following issue when flashing the bootloader from MFGtools using kobs-ng command in the ucl2.xml
UTP: received command '$ kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 $FILE'
UTP: executing "kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 $FILE"
MTD CONFIG:
chip_0_device_path = "/dev/mtd0"
chip_1_device_path = "(null)"
search_exponent = 2
data_setup_time = 80
data_hold_time = 60
address_setup_time = 25
data_sample_time = 6
row_address_size = 3
column_address_size = 2
read_command_code1 = 0
read_command_code2 = 48
boot_stream_major_version = 1
boot_stream_minor_version = 0
boot_stream_sub_version = 0
ncb_version = 3
boot_stream_1_address = 0
boot_stream_2_address = 0
-- We add the 1k-padding to the uboot.
.tmp_kobs_ng: verifying using key '00000000000000000000000000000000'
.tmp_kobs_ng: is a valid bootstream for key '00000000000000000000000000000000'
mtd: Linux 4.8
mtd: use new bch layout raw[ 7.001806] ------------[ cut here ]------------
[ 7.008002] Kernel BUG at c057cdfc [verbose debug info unavailable]
[ 7.014290] Internal error: Oops - BUG: 0 [#1] SMP ARM
[ 7.019447] Modules linked in:
[ 7.022551] CPU: 0 PID: 116 Comm: kobs-ng Not tainted 4.8.0 #18
[ 7.028484] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[ 7.034682] task: c3e24800 task.stack: c3e54000
[ 7.039244] PC is at nand_fill_oob+0x44/0xac
[ 7.043542] LR is at mtd_ooblayout_free+0x5c/0x74
[ 7.048268] pc : [<c057cdfc>] lr : [<c055f88c>] psr: a0000013
[ 7.048268] sp : c3e55ca0 ip : c3e55bf0 fp : c3e55cc4
[ 7.059765] r10: c3e8c000 r9 : 00000100 r8 : 00000000
[ 7.065009] r7 : 00000000 r6 : c3e55dc8 r5 : de42e0b8 r4 : 00000010
[ 7.071556] r3 : c3e55c50 r2 : c3e55c50 r1 : 00000001 r0 : ffffffde
[ 7.078104] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 7.085256] Control: 10c5387d Table: 83e8806a DAC: 00000051
[ 7.091019] Process kobs-ng (pid: 116, stack limit = 0xc3e54210)
[ 7.097043] Stack: (0xc3e55ca0 to 0xc3e56000)
[ 7.101430] 5ca0: 00000000 c3e55cb0 de42e0b8 00000800 00000800 00000000 c3e55d34 c3e55cc8
[ 7.109631] 5cc0: c057d19c c057cdc4 c3e55cec c3e55cd8 c0964e78 c0173f98 de42e0b8 de42e710
[ 7.117832] 5ce0: c3e55d34 0000003f 00000000 00000000 00000000 00000010 00000010 c3e8c000
[ 7.126035] 5d00: 00000100 00000000 60000013 c3e55dc8 de42e0b8 00080000 00000000 00000800
[ 7.134237] 5d20: 00000000 00000000 c3e55d5c c3e55d38 c057d6a8 c057ce70 c3e55dc8 c3e55d48
[ 7.142439] 5d40: 00000000 00000000 00080800 00000000 c3e55d84 c3e55d60 c0562670 c057d614
[ 7.150640] 5d60: c3e55dc8 00000800 c0562604 00000051 c3cf8800 bee83ac8 c3e55da4 c3e55d88
[ 7.158843] 5d80: c055ec9c c0562610 c3e55dc8 bee83ac8 00000800 00b06110 c3e55edc c3e55da8
[ 7.167044] 5da0: c0564b8c c055ec64 c3e55dc8 00000002 c0f229e8 00000000 c3e55e4c c3e55dc8
[ 7.175245] 5dc0: c016f49c c016e4e8 00000001 00000800 00000000 00000000 00000000 00000000
[ 7.183446] 5de0: c3e8c000 00000010 00080000 00000000 00000800 00000000 00000000 00000000
[ 7.191648] 5e00: 00b05910 00000000 00b06110 00000000 00000001 00080000 c3e54000 00000000
[ 7.199851] 5e20: c3e55e54 c3e55e30 c016ec14 c016e4e8 c096101c c3e24800 00000001 c173d414
[ 7.208054] 5e40: c3e24800 c3e54000 c3e55e74 c3e55e58 c016ed78 c016ebb4 c0f35cc4 60000013
[ 7.216255] 5e60: c0f35cc8 c173d414 c3e55e84 c3e55e78 c016ee44 c016ec48 c3e55edc c3e55e88
[ 7.224457] 5e80: c096101c c016ee3c 00000001 00000000 c056554c c3e55ea0 c0962da4 c014e30c
[ 7.232659] 5ea0: 00000001 c3e55ea0 c3e55edc c0f35cc4 00000000 c0f35cc4 c3e2ba00 c0304d18
[ 7.240861] 5ec0: bee83ac8 00000007 c3e54000 00000000 c3e55efc c3e55ee0 c056555c c0564130
[ 7.249062] 5ee0: bee83ac8 de7f7ba8 c3e2ba00 c02319c4 c3e55f7c c3e55f00 c0230fc0 c0565530
[ 7.257264] 5f00: de4333c8 c022d69c 00000002 de5e22f8 ffffff9c c3dc1000 00000000 00000000
[ 7.265465] 5f20: c3e54000 0000002a de4333c0 de5e22f8 00000002 de4333c8 c3e54000 00000000
[ 7.273667] 5f40: c3e55f7c c3e55f50 c021e030 c02610a0 00000000 c3e2ba00 00000007 c3e2ba00
[ 7.281869] 5f60: c0304d18 bee83ac8 c3e54000 00000000 c3e55fa4 c3e55f80 c02319c4 c0230f30
[ 7.290074] 5f80: 00b04838 00000000 00000001 00000036 c0107fc4 c3e54000 00000000 c3e55fa8
[ 7.298275] 5fa0: c0107e20 c0231994 00b04838 00000000 00000007 c0304d18 bee83ac8 00000000
[ 7.306477] 5fc0: 00b04838 00000000 00000001 00000036 00b05910 00000800 00000800 00b04838
[ 7.314678] 5fe0: 0003f064 bee83a9c 0001470c b6efbb9c 20000010 00000007 00000000 00000000
[ 7.322868] Backtrace:
[ 7.325372] [<c057cdb8>] (nand_fill_oob) from [<c057d19c>] (nand_do_write_ops+0x338/0x41c)
[ 7.333650] r7:00000000 r6:00000800 r5:00000800 r4:de42e0b8
[ 7.339429] [<c057ce64>] (nand_do_write_ops) from [<c057d6a8>] (nand_write_oob+0xa0/0xc0)
[ 7.347620] r10:00000000 r9:00000000 r8:00000800 r7:00000000 r6:00080000 r5:de42e0b8
[ 7.355575] r4:c3e55dc8
[ 7.358161] [<c057d608>] (nand_write_oob) from [<c0562670>] (part_write_oob+0x6c/0x7c)
[ 7.366090] r7:00000000 r6:00080800 r5:00000000 r4:00000000
[ 7.371865] [<c0562604>] (part_write_oob) from [<c055ec9c>] (mtd_write_oob+0x44/0x5c)
[ 7.379708] r7:bee83ac8 r6:c3cf8800 r5:00000051 r4:c0562604
[ 7.385488] [<c055ec58>] (mtd_write_oob) from [<c0564b8c>] (mtdchar_ioctl+0xa68/0x1400)
[ 7.393504] r4:00b06110
[ 7.396089] [<c0564124>] (mtdchar_ioctl) from [<c056555c>] (mtdchar_unlocked_ioctl+0x38/0x50)
[ 7.404626] r10:00000000 r9:c3e54000 r8:00000007 r7:bee83ac8 r6:c0304d18 r5:c3e2ba00
[ 7.412580] r4:c0f35cc4
[ 7.415164] [<c0565524>] (mtdchar_unlocked_ioctl) from [<c0230fc0>] (do_vfs_ioctl+0x9c/0xa64)
[ 7.423703] r7:c02319c4 r6:c3e2ba00 r5:de7f7ba8 r4:bee83ac8
[ 7.429475] [<c0230f24>] (do_vfs_ioctl) from [<c02319c4>] (SyS_ioctl+0x3c/0x64)
[ 7.436797] r10:00000000 r9:c3e54000 r8:bee83ac8 r7:c0304d18 r6:c3e2ba00 r5:00000007
[ 7.444753] r4:c3e2ba00
[ 7.447338] [<c0231988>] (SyS_ioctl) from [<c0107e20>] (ret_fast_syscall+0x0/0x1c)
[ 7.454921] r9:c3e54000 r8:c0107fc4 r7:00000036 r6:00000001 r5:00000000 r4:00b04838
[ 7.462799] Code: 0a00000c 3a000002 e3530002 0a000000 (e7f001f2)
[ 7.468920] ---[ end trace c042c468f31cf097 ]---
access mode
mtd: opening: "/dev/mtd0"
Cannot open BCH geometry node: "/sys/kernel/debug/gpmi-nand/bch_geometry"
NFC geometry :
ECC Strength : 8
Page Size in Bytes : 2112
Metadata size : 10
ECC Chunk Size in byte : 512
ECC Chunk count : 4
Block Mark Byte Offset : 1999
Block Mark Bit Offset : 0
====================================================
mtd: opened '/dev/mtd0' - '(null)'
mtd: max_boot_stream_size_in_bytes = 4718592
mtd: boot_stream_size_in_bytes = 541500
mtd: boot_stream_size_in_pages = 265
mtd: #1 0x00100000 - 0x00580000 (0x0018433c)
mtd: #2 0x00580000 - 0x00a00000 (0x0060433c)
FCB
m_u32Checksum = 0x00000000
m_u32FingerPrint = 0x20424346
m_u32Version = 0x01000000
m_NANDTiming.m_u8DataSetup = 80
m_NANDTiming.m_u8DataHold = 60
m_NANDTiming.m_u8AddressSetup = 25
m_NANDTiming.m_u8DSAMPLE_TIME = 6
m_u32PageDataSize = 2048
m_u32TotalPageSize = 2112
m_u32SectorsPerBlock = 64
m_u32NumberOfNANDs = 0
m_u32TotalInternalDie = 0
m_u32CellType = 0
m_u32EccBlockNEccType = 4
m_u32EccBlock0Size = 512
m_u32EccBlockNSize = 512
m_u32EccBlock0EccType = 4
m_u32MetadataBytes = 10
m_u32NumEccBlocksPerPage = 3
m_u32EccBlockNEccLevelSDK = 0
m_u32EccBlock0SizeSDK = 0
m_u32EccBlockNSizeSDK = 0
m_u32EccBlock0EccLevelSDK = 0
m_u32NumEccBlocksPerPageSDK = 0
m_u32MetadataBytesSDK = 0
m_u32EraseThreshold = 0
m_u32Firmware1_startingPage = 512
m_u32Firmware2_startingPage = 2816
m_u32PagesInFirmware1 = 265
m_u32PagesInFirmware2 = 265
m_u32DBBTSearchAreaStartAddress = 256
m_u32BadBlockMarkerByte = 1999
m_u32BadBlockMarkerStartBit = 0
m_u32BBMarkerPhysicalOffset = 2048
m_u32BCHType = 0
m_NANDTMTiming.m_u32TMTiming2_ReadLatency = 0
m_NANDTMTiming.m_u32TMTiming2_PreambleDelay = 0
m_NANDTMTiming.m_u32TMTiming2_CEDelay = 0
m_NANDTMTiming.m_u32TMTiming2_PostambleDelay = 0
m_NANDTMTiming.m_u32TMTiming2_CmdAddPause = 0
m_NANDTMTiming.m_u32TMTiming2_DataPause = 0
m_NANDTMTiming.m_u32TMSpeed = 0
m_NANDTMTiming.m_u32TMTiming1_BusyTimeout = 0
m_u32DISBBM = 0
m_u32BBMarkerPhysicalOffsetInSpareData = 0
m_u32OnfiSyncEnable = 0
m_NANDONFITiming.m_u32ONFISpeed = 0
m_NANDONFITiming.m_u32ONFITiming_ReadLatency = 0
m_NANDONFITiming.m_u32ONFITiming_CEDelay = 0
m_NANDONFITiming.m_u32ONFITiming_PreambleDelay = 0
m_NANDONFITiming.m_u32ONFITiming_PostambleDelay = 0
m_NANDONFITiming.m_u32ONFITiming_CmdAddPause = 0
m_NANDONFITiming.m_u32ONFITiming_DataPause = 0
m_NANDONFITiming.m_u32ONFITiming_BusyTimeout = 0
m_u32DISBBSearch = 0
m_u32RandomizerEnable = 0
m_u32ReadRetryEnable = 0
m_u32ReadRetrySeqLength = 0
DBBT
m_u32Checksum = 0x00000000
m_u32FingerPrint = 0x54424244
m_u32Version = 0x01000000
m_u32DBBTNumOfPages = 0
Firmware: image #0 @ 0x100000 size 0x84800 - available 0x480000
Firmware: image #1 @ 0x580000 size 0x84800 - available 0x480000
-------------- Start to write the [ FCB ] -----
mtd: erasing @0:0x0-0x20000
mtd: Writing FCB0 [ @0:0x0 ] (840) *
mtd: erasing @0:0x20000-0x40000
mtd: Writing FCB1 [ @0:0x20000 ] (840) *
mtd: erasing @0:0x40000-0x60000
mtd: Writing FCB2 [ @0:0x40000 ] (840) *
mtd: erasing @0:0x60000-0x80000
mtd: Writing FCB3 [ @0:0x60000 ] (840) *
mtd_commit_bcb(FCB): status 0
-------------- Start to write the [ DBBT ] -----
mtd: erasing @0:0x80000-0xa0000
mtd: Writing DBBT0 [ @0:0x80000 ] (800) *
Does anybody has any idea what could be the issue?
Thanks,
Mihaita
Hi,
Does anybody experienced this or has any suggestion about the possible cause of this issue?
Any help is greatly appreciated.
Thanks,
Mihaita
Hi Mihaita,
You can try to refer to the following thread, it may do help for you.
kobs-ng / imx-kobs for IMX6UL
Have a great day,
Rita
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Which board and which version BSP are you using?
Hi,
Phytec imx6ul evk board and the Phytec BSP for it.
Here you are using the third company board and BSP, you need to contact them for related version mfgtool.