<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Re: kobs-ng / imx-kobs for IMX6UL</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788597#M122213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mahi"&gt;mahi&lt;/A&gt;‌ &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/andrewparlane"&gt;andrewparlane&lt;/A&gt;&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/andrewparlane2"&gt;andrewparlane2&lt;/A&gt;&amp;nbsp;Thanks for your response. The main problem here is, am using mainline Linux Kernel 4.19.58 for my custom board. I have debugfs mounted, but I don't have the fsl patches for gpmi-nand, which exports the fields needed by kobs-ng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I also see patches in imx-kobs which handles when there is no gpmi-nand (i.e kernel without fsl patch) here:&amp;nbsp;&lt;A class="link-titled" href="https://patchwork.openembedded.org/patch/127501/" title="https://patchwork.openembedded.org/patch/127501/"&gt;imx-kobs: Allow kobs-ng to flash the SPL on the 4.x kernel - Patchwork&lt;/A&gt;&amp;nbsp; This patch is already merged into kobs-ng tool, so I am not sure whether this is really problem or restriction to use fsl kernel alone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add, I am currently re-working on u-boot patch for a new command 'nandbcb' which handles to write the FCB and DBBT along with Firmware itself :&amp;nbsp;&lt;A class="link-titled" href="https://patchwork.ozlabs.org/patch/1115791/#2196351" title="https://patchwork.ozlabs.org/patch/1115791/#2196351"&gt;[U-Boot,v6,1/3] i.MX6: nand: add nandbcb command for imx - Patchwork&lt;/A&gt;&amp;nbsp;I see this patch supports imx6q, but not imx6ul still. Only difference between q and ul from TRM 8.5.2.2 is BCH/ECC is 40 bits for UL if I am not wrong. Adding to that, barebox already supports this feature of writing to NAND using&amp;nbsp;&lt;A class="link-titled" href="https://git.pengutronix.de/cgit/barebox/tree/common/imx-bbu-nand-fcb.c" title="https://git.pengutronix.de/cgit/barebox/tree/common/imx-bbu-nand-fcb.c"&gt;imx-bbu-nand-fcb.c\common - barebox - barebox master repository&lt;/A&gt;&amp;nbsp;&amp;nbsp;handler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jul 2019 09:46:35 GMT</pubDate>
    <dc:creator>parthitce</dc:creator>
    <dc:date>2019-07-12T09:46:35Z</dc:date>
    <item>
      <title>kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788588#M122204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a custom board with an IMX6UL on it. It's set up to boot from NAND flash, specifically:&amp;nbsp;MT29F1G08ABAEAWP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently NAND is empty, and I'm booting using the serial download protocol over UART. Note this board doesn't have USB, so the IMX6 manufacturing tool which I believe also has support for writing the bootloader into NAND won't work for me, as that only support the serial download protocol over USB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I boot my custom u-boot, built with:&lt;/P&gt;&lt;P&gt;IMAGE_VERSION 2&lt;/P&gt;&lt;P&gt;BOOT_OFFSET&amp;nbsp; &amp;nbsp; &amp;nbsp;FLASH_OFFSET_STANDARD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and from there I network boot linux (v4.14 mainline).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm not really sure what's going on with the kobs-ng tool. I've tried a few different versions of it:&lt;/P&gt;&lt;P&gt;1) It's included in buildroot as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMX_KOBS_VERSION = b402243a04e5a6760a860445e5ff6a931d86f794&lt;BR /&gt;IMX_KOBS_SITE = $(call github,NXPmicro,imx-kobs,$(IMX_KOBS_VERSION))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what's going on there, because NXPmicro's github page states there are no public repositories. However it does download, build and run with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;kobs-ng version : [ 1.3 ] git hash (d9473bdcea05d046330c045ca3c32715883b61e5)&lt;BR /&gt;ROM Version 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;2)&amp;nbsp;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freescale.com%2Flgfiles%2FNMG%2FMAD%2FYOCTO%2F" rel="nofollow" target="_blank"&gt;http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;imx-kobs-&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #032f62;"&gt;5.5&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;.tar.gz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;which I can build and run, and gives me:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;kobs-ng version : [ 1.3 ] git hash (32f144e46f48bcc237f9c686daa3e5a8b2a3d7b1)&lt;BR /&gt;ROM Version 5&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;3) Finally I found it&amp;nbsp;&lt;A class="link-titled" href="https://github.com/codeauroraforum/imx-kobs.git" title="https://github.com/codeauroraforum/imx-kobs.git"&gt;GitHub - codeauroraforum/imx-kobs: Tool to create and write Freescale/NXP I.MX NAND boot related boot data structure to …&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;kobs-ng version : [ 1.3 ] git hash (c70685de47cfb67c5e16e1631b7033023ca3e97c)&lt;BR /&gt;ROM Version 5&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;So that's three different locations to get the same version (1.3) but with different git hashes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Then when I try and use it (any version) I get:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Cannot open BCH geometry node: "/sys/kernel/debug/gpmi-nand/bch_geometry"&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However with -v I get:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTD CONFIG:&lt;BR /&gt; chip_0_device_path = "/dev/mtd0"&lt;BR /&gt; chip_1_device_path = "(null)"&lt;BR /&gt; search_exponent = 2&lt;BR /&gt; data_setup_time = 80&lt;BR /&gt; data_hold_time = 60&lt;BR /&gt; address_setup_time = 25&lt;BR /&gt; data_sample_time = 6&lt;BR /&gt; row_address_size = 3&lt;BR /&gt; column_address_size = 2&lt;BR /&gt; read_command_code1 = 0&lt;BR /&gt; read_command_code2 = 48&lt;BR /&gt; boot_stream_major_version = 1&lt;BR /&gt; boot_stream_minor_version = 0&lt;BR /&gt; boot_stream_sub_version = 0&lt;BR /&gt; ncb_version = 3&lt;BR /&gt; boot_stream_1_address = 0&lt;BR /&gt; boot_stream_2_address = 0&lt;BR /&gt;/usr/uboot.imx: verifying using key '00000000000000000000000000000000'&lt;BR /&gt;/usr/uboot.imx: is a valid bootstream for key '00000000000000000000000000000000'&lt;BR /&gt;mtd: Linux 4.14&lt;BR /&gt;mtd: use new bch layout raw access mode&lt;BR /&gt;mtd: opening: "/dev/mtd0"&lt;BR /&gt;mtd: '/dev/mtd0' bad block @ 0x7f80000 (MTD)&lt;BR /&gt;mtd: '/dev/mtd0' bad block @ 0x7fa0000 (MTD)&lt;BR /&gt;mtd: '/dev/mtd0' bad block @ 0x7fc0000 (MTD)&lt;BR /&gt;mtd: '/dev/mtd0' bad block @ 0x7fe0000 (MTD)&lt;BR /&gt;Cannot open BCH geometry node: "/sys/kernel/debug/gpmi-nand/bch_geometry"&lt;BR /&gt;NFC geometry :&lt;BR /&gt; ECC Strength : 8&lt;BR /&gt; Page Size in Bytes : 2112&lt;BR /&gt; Metadata size : 10&lt;BR /&gt; ECC Chunk Size in byte : 512&lt;BR /&gt; ECC Chunk count : 4&lt;BR /&gt; Block Mark Byte Offset : 1999&lt;BR /&gt; Block Mark Bit Offset : 0&lt;BR /&gt;====================================================&lt;BR /&gt;mtd: opened '/dev/mtd0' - '(null)'&lt;BR /&gt;mtd: max_boot_stream_size_in_bytes = 66584576&lt;BR /&gt;mtd: boot_stream_size_in_bytes = 309016&lt;BR /&gt;mtd: boot_stream_size_in_pages = 151&lt;BR /&gt;mtd: #1 0x00100000 - 0x04080000 (0x0014b718)&lt;BR /&gt;mtd: #2 0x04080000 - 0x08000000 (0x040cb718)&lt;BR /&gt;FCB&lt;BR /&gt; m_u32Checksum = 0x00000000&lt;BR /&gt; m_u32FingerPrint = 0x20424346&lt;BR /&gt; m_u32Version = 0x01000000&lt;BR /&gt; m_NANDTiming.m_u8DataSetup = 80&lt;BR /&gt; m_NANDTiming.m_u8DataHold = 60&lt;BR /&gt; m_NANDTiming.m_u8AddressSetup = 25&lt;BR /&gt; m_NANDTiming.m_u8DSAMPLE_TIME = 6&lt;BR /&gt; m_u32PageDataSize = 2048&lt;BR /&gt; m_u32TotalPageSize = 2112&lt;BR /&gt; m_u32SectorsPerBlock = 64&lt;BR /&gt; m_u32NumberOfNANDs = 0&lt;BR /&gt; m_u32TotalInternalDie = 0&lt;BR /&gt; m_u32CellType = 0&lt;BR /&gt; m_u32EccBlockNEccType = 4&lt;BR /&gt; m_u32EccBlock0Size = 512&lt;BR /&gt; m_u32EccBlockNSize = 512&lt;BR /&gt; m_u32EccBlock0EccType = 4&lt;BR /&gt; m_u32MetadataBytes = 10&lt;BR /&gt; m_u32NumEccBlocksPerPage = 3&lt;BR /&gt; m_u32EccBlockNEccLevelSDK = 0&lt;BR /&gt; m_u32EccBlock0SizeSDK = 0&lt;BR /&gt; m_u32EccBlockNSizeSDK = 0&lt;BR /&gt; m_u32EccBlock0EccLevelSDK = 0&lt;BR /&gt; m_u32NumEccBlocksPerPageSDK = 0&lt;BR /&gt; m_u32MetadataBytesSDK = 0&lt;BR /&gt; m_u32EraseThreshold = 0&lt;BR /&gt; m_u32Firmware1_startingPage = 512&lt;BR /&gt; m_u32Firmware2_startingPage = 33024&lt;BR /&gt; m_u32PagesInFirmware1 = 151&lt;BR /&gt; m_u32PagesInFirmware2 = 151&lt;BR /&gt; m_u32DBBTSearchAreaStartAddress = 256&lt;BR /&gt; m_u32BadBlockMarkerByte = 1999&lt;BR /&gt; m_u32BadBlockMarkerStartBit = 0&lt;BR /&gt; m_u32BBMarkerPhysicalOffset = 2048&lt;BR /&gt; m_u32BCHType = 0&lt;BR /&gt; m_NANDTMTiming.m_u32TMTiming2_ReadLatency = 0&lt;BR /&gt; m_NANDTMTiming.m_u32TMTiming2_PreambleDelay = 0&lt;BR /&gt; m_NANDTMTiming.m_u32TMTiming2_CEDelay = 0&lt;BR /&gt; m_NANDTMTiming.m_u32TMTiming2_PostambleDelay = 0&lt;BR /&gt; m_NANDTMTiming.m_u32TMTiming2_CmdAddPause = 0&lt;BR /&gt; m_NANDTMTiming.m_u32TMTiming2_DataPause = 0&lt;BR /&gt; m_NANDTMTiming.m_u32TMSpeed = 0&lt;BR /&gt; m_NANDTMTiming.m_u32TMTiming1_BusyTimeout = 0&lt;BR /&gt; m_u32DISBBM = 0&lt;BR /&gt; m_u32BBMarkerPhysicalOffsetInSpareData = 0&lt;BR /&gt; m_u32OnfiSyncEnable = 0&lt;BR /&gt; m_NANDONFITiming.m_u32ONFISpeed = 0&lt;BR /&gt; m_NANDONFITiming.m_u32ONFITiming_ReadLatency = 0&lt;BR /&gt; m_NANDONFITiming.m_u32ONFITiming_CEDelay = 0&lt;BR /&gt; m_NANDONFITiming.m_u32ONFITiming_PreambleDelay = 0&lt;BR /&gt; m_NANDONFITiming.m_u32ONFITiming_PostambleDelay = 0&lt;BR /&gt; m_NANDONFITiming.m_u32ONFITiming_CmdAddPause = 0&lt;BR /&gt; m_NANDONFITiming.m_u32ONFITiming_DataPause = 0&lt;BR /&gt; m_NANDONFITiming.m_u32ONFITiming_BusyTimeout = 0&lt;BR /&gt; m_u32DISBBSearch = 0&lt;BR /&gt; m_u32RandomizerEnable = 0&lt;BR /&gt; m_u32ReadRetryEnable = 0&lt;BR /&gt; m_u32ReadRetrySeqLength = 0&lt;BR /&gt;DBBT&lt;BR /&gt; m_u32Checksum = 0x00000000&lt;BR /&gt; m_u32FingerPrint = 0x54424244&lt;BR /&gt; m_u32Version = 0x01000000&lt;BR /&gt; m_u32DBBTNumOfPages = 1&lt;BR /&gt;BBTN#0&lt;BR /&gt; uNAND = 0&lt;BR /&gt; uNumberBB = 4&lt;BR /&gt; BADBLOCKS:&lt;BR /&gt; 0x3fc 0x3fd 0x3fe 0x3ff&lt;BR /&gt;Firmware: image #0 @ 0x100000 size 0x4b800 - available 0x3f80000&lt;BR /&gt;Firmware: image #1 @ 0x4080000 size 0x4b800 - available 0x3f80000&lt;BR /&gt;-------------- Start to write the [ FCB ] -----&lt;BR /&gt;mtd: erasing @0:0x0-0x20000&lt;BR /&gt;mtd: Writing FCB0 [ @0:0x0 ] (840) *&lt;BR /&gt;mtd: erasing @0:0x20000-0x40000&lt;BR /&gt;mtd: Writing FCB1 [ @0:0x20000 ] (840) *&lt;BR /&gt;mtd: erasing @0:0x40000-0x60000&lt;BR /&gt;mtd: Writing FCB2 [ @0:0x40000 ] (840) *&lt;BR /&gt;mtd: erasing @0:0x60000-0x80000&lt;BR /&gt;mtd: Writing FCB3 [ @0:0x60000 ] (840) *&lt;BR /&gt;mtd_commit_bcb(FCB): status 0&lt;/P&gt;&lt;P&gt;-------------- Start to write the [ DBBT ] -----&lt;BR /&gt;mtd: erasing @0:0x80000-0xa0000&lt;BR /&gt;mtd: Writing DBBT0 [ @0:0x80000 ] (800) *&lt;BR /&gt;mtd: erasing @0:0xa0000-0xc0000&lt;BR /&gt;mtd: Writing DBBT1 [ @0:0xa0000 ] (800) *&lt;BR /&gt;mtd: erasing @0:0xc0000-0xe0000&lt;BR /&gt;mtd: Writing DBBT2 [ @0:0xc0000 ] (800) *&lt;BR /&gt;mtd: erasing @0:0xe0000-0x100000&lt;BR /&gt;mtd: Writing DBBT3 [ @0:0xe0000 ] (800) *&lt;BR /&gt;mtd_commit_bcb(DBBT): status 0&lt;/P&gt;&lt;P&gt;mtd: PUTTING down DBBT0 BBTN0 @0x82000 (0x800)&lt;BR /&gt;mtd: PUTTING down DBBT1 BBTN0 @0xa2000 (0x800)&lt;BR /&gt;mtd: PUTTING down DBBT2 BBTN0 @0xc2000 (0x800)&lt;BR /&gt;mtd: PUTTING down DBBT3 BBTN0 @0xe2000 (0x800)&lt;BR /&gt;---------- Start to write the [ /usr/uboot.imx ]----&lt;BR /&gt;mtd: Writting /usr/uboot.imx: #0 @0: 0x00100000 - 0x0014b800&lt;BR /&gt;mtd: erasing @0:0x100000-0x120000&lt;BR /&gt;mtd: erasing @0:0x120000-0x140000&lt;BR /&gt;mtd: erasing @0:0x140000-0x160000&lt;BR /&gt;mtd: The last page is not full : 1816&lt;BR /&gt;mtd: We write one page for save guard. *&lt;BR /&gt;mtd: Writting /usr/uboot.imx: #1 @0: 0x04080000 - 0x040cb800&lt;BR /&gt;mtd: erasing @0:0x4080000-0x40a0000&lt;BR /&gt;mtd: erasing @0:0x40a0000-0x40c0000&lt;BR /&gt;mtd: erasing @0:0x40c0000-0x40e0000&lt;BR /&gt;mtd: The last page is not full : 1816&lt;BR /&gt;mtd: We write one page for save guard. *&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which looks like it's actually working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to dump the flash:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;# nanddump /dev/mtd0 -c -l 1 -o&lt;/P&gt;&lt;P&gt;ECC failed: 0&lt;BR /&gt;ECC corrected: 24&lt;BR /&gt;Number of bad blocks: 0&lt;BR /&gt;Number of bbt blocks: 0&lt;BR /&gt;Block size 131072, page size 2048, OOB size 64&lt;BR /&gt;Dumping data starting at 0x00000000 and ending at 0x00000001...&lt;BR /&gt;ECC: 8 corrected bitflip(s) at offset 0x00000000&lt;BR /&gt;0x00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|&lt;BR /&gt;0x00000010: 00 00 00 00 00 00 2f fb ff ff 46 43 42 20 00 00 |....../...FCB ..|&lt;BR /&gt;0x00000020: 00 01 50 3c 19 06 00 00 00 00 00 08 00 00 40 08 |..P&amp;lt;..........@.|&lt;BR /&gt;0x00000030: 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 |..@.............|&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the bit about 8 corrected bitflips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I use kobs-ng to dump the data&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;# kobs-ng dump&lt;BR /&gt;Cannot open BCH geometry node: "/sys/kernel/debug/gpmi-nand/bch_geometry"&lt;BR /&gt;mtd: fingerprints mismatch @0:0x0&lt;BR /&gt;mtd: fingerprints mismatch @0:0x20000&lt;BR /&gt;mtd: fingerprints mismatch @0:0x40000&lt;BR /&gt;mtd: fingerprints mismatch @0:0x60000&lt;BR /&gt;mtd: NCB0 not found&lt;BR /&gt;mtd: fingerprints mismatch @0:0x80000&lt;BR /&gt;mtd: fingerprints mismatch @0:0xa0000&lt;BR /&gt;mtd: fingerprints mismatch @0:0xc0000&lt;BR /&gt;mtd: fingerprints mismatch @0:0xe0000&lt;BR /&gt;mtd: NCB1 not found&lt;BR /&gt;mtd: neither NCB1 or NCB2 found ERROR&lt;BR /&gt;Unable to load boot structures&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it's not happy, and predictably if I reboot it doesn't actually boot (Although I haven't set up the boot&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the IMX6UL TRM section 8.5.2.3 Firmware Configuration Block, in table 8-11, it says finger print should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;32 bit word with a value of 0x4E434220, in ascii&lt;BR /&gt;"FCB"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas in the output from kobs-ng init -v I have:&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;m_u32FingerPrint = 0x20424346&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is close, but there is 0x46 vs 0x4E, + the endieness. This is also shown in the nanddump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Where should I be getting kobs-ng / imx-kobs from? Is there source available directly from NXP?&lt;/P&gt;&lt;P&gt;2) Do I need to do anything special to write the correct data to NAND for an IMX6UL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 17:29:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788588#M122204</guid>
      <dc:creator>andrewparlane2</dc:creator>
      <dc:date>2018-06-15T17:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788589#M122205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can to try with nxp bsp releases on &lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.1.15_2.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.1.15_2.0.0_ga"&gt;linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or with demo images from&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW" title="https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW"&gt;i.MX Software|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kobs-ng sources&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/cafatgithub/imx-kobs/" title="https://source.codeaurora.org/external/imx/cafatgithub/imx-kobs/"&gt;cafatgithub/imx-kobs - i.MX tool for flashing NAND boot to nand flash&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2018 22:51:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788589#M122205</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-06-17T22:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788590#M122206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor, thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source you linked to is the same as is github at the link I posted. So it's good to know I've got the latest. Unfortunately it being the same means it won't fix my issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't test the demo images, since I'm using a custom board, so an image for the imx6ul-evk won't boot for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could try building and booting an NXP kernel, but we're pretty keen to stick with the mainline kernel for compatibility with other projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess at this point, I'm more interested in the finger print mismatch. Copied from my first post:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;In the IMX6UL TRM section 8.5.2.3 Firmware Configuration Block, in table 8-11, it says finger print should be&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="color: #51626f; border-width: 0px 0px 0px 2px; border-style: initial initial initial solid; border-color: initial initial initial #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;32 bit word with a value of 0x4E434220, in ascii&lt;BR /&gt;"FCB"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Whereas in the output from kobs-ng init -v I have:&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6; border: 0px; font-weight: inherit;"&gt;m_u32FingerPrint = 0x20424346&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is the TRM wrong or the imx-kobs tool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also The value from the TRM is: 0x4E434220 which is actually Ascii "NCB ", but as you can see the comment says it is "FCB". The imx-kobs uses "FCB ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can't be attributed to the kernel being mainline 4.14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 15:39:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788590#M122206</guid>
      <dc:creator>andrewparlane2</dc:creator>
      <dc:date>2018-06-19T15:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788591#M122207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Updates - the plot thickens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The TRM states that the FCB starts at offset zero. It claims the second word "fingerprint2" is "FCB ", but gives hex values for "NCB ". The latest imx-kobs tool writes "FCB ", but to offset 0x16 = 22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Figure 8-5 in the TRM is the FCB search flow state machine. Note that the final state is "NCB found". There are no other references to NCB in the entire TRM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) The imx-kobs tool tries to read the BCH geometry from /sys/kernel/debug/gpmi.nand/bch_geometry, which was introduced in this patche:&amp;nbsp;&lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/drivers/mtd/nand/gpmi-nand/gpmi-lib.c?h=imx_4.1.15_1.0.0_ga&amp;amp;id=46892357d5de471345e359bba0d2b7e4c31c67c4" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/drivers/mtd/nand/gpmi-nand/gpmi-lib.c?h=imx_4.1.15_1.0.0_ga&amp;amp;id=46892357d5de471345e359bba0d2b7e4c31c67c4"&gt;linux-2.6-imx.git - Freescale i.MX Linux Tree&lt;/A&gt;&amp;nbsp;However The data written to debugfs is the bch_geometry structure defined here:&amp;nbsp;&lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/mtd/nand/gpmi-nand/gpmi-nand.h?h=imx_4.1.15_1.0.0_ga&amp;amp;id=46892357d5de471345e359bba0d2b7e4c31c67c4#n55" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/mtd/nand/gpmi-nand/gpmi-nand.h?h=imx_4.1.15_1.0.0_ga&amp;amp;id=46892357d5de471345e359bba0d2b7e4c31c67c4#n55"&gt;linux-2.6-imx.git - Freescale i.MX Linux Tree&lt;/A&gt;&amp;nbsp; (note: this is at the time of the above patch). This data gets read by the imx-kobs tool intol it's nfc_geometry struct. However the nfc_geometry struct found here:&amp;nbsp;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/cafatgithub/imx-kobs/tree/src/mtd.h?h=github.com/master#n142" title="https://source.codeaurora.org/external/imx/cafatgithub/imx-kobs/tree/src/mtd.h?h=github.com/master#n142"&gt;mtd.h\src - cafatgithub/imx-kobs - i.MX tool for flashing NAND boot to nand flash&lt;/A&gt;&amp;nbsp;&amp;nbsp;does not match the bch_geometry struct used in linux. The bch_geometry struct has not changed between this version at the time of the above linux patch, and my current 4.14 kernel. So I'm not sure how the imx-kobs tool is meant to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) When I cherry-picked the debugfs patch to my kernel, and fixed the imx-kobs tool to properly read that data, I find that the NFC geometry that was read vs that which was calculated differ. Specifically:&lt;/P&gt;&lt;P&gt;calculated:&amp;nbsp;Page Size in Bytes : 2112&lt;/P&gt;&lt;P&gt;read:&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Page Size in Bytes : 2110&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) The imx-kobs dump command looks for a NCB.&amp;nbsp;mtd_load_all_boot_structures() calls&amp;nbsp;mtd_load_boot_structure() with:&amp;nbsp;magic1 504D5453, magic2 2042434E, magic3 4E494252, magic_offset 12, offs 0. This reads the first page and casts that read data to be a&amp;nbsp;NCB_BootBlockStruct_t. It checks if fingerprint1 == magic1, and fingerprint2 == magic2 and fingerprint3 == magic3&lt;SPAN&gt;. If they aren't, it tries again at magic_offset (12 bytes). Remember the TRM makes precisely 1 reference to a NCB, and that looks like a typo. Additionally the imx-kobs tool doesn't seem to write a NCB for the imx6ul. So maybe the imx-kobs tool doesn't support the dump command for imx6ul?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;6) In the imx-kobs tool, ncb.c&amp;nbsp;fcb_encrypt() takes a parameter "version". The comment defines it as:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;* version: The version number of the NCB.&lt;/BLOCKQUOTE&gt;&lt;P&gt;At the end of that function there's a switch(version). In the default case there is:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;fprintf(stderr, "FCB version == %d? Something is wrong!\n", version);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So which is it? The NCB or the FCB version? I'm assuming NCB, since for the IMX6UL the FCB version should be 1 (from the TRM), and in the imx6ul case this version is set to be 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7) This blog:&amp;nbsp;&lt;A class="link-titled" href="https://wiki.dave.eu/index.php/Booting_from_NAND_flash_on_i.MX6-based_platforms" title="https://wiki.dave.eu/index.php/Booting_from_NAND_flash_on_i.MX6-based_platforms"&gt;Booting from NAND flash on i.MX6-based platforms - DAVE Developer's Wiki&lt;/A&gt;&amp;nbsp;&amp;nbsp;states that the NCB is block that is inside the FCB. However none of the members of the FCB in either the TRM or the code is related to NCB. The only time the code uses the NCB fingerprint "NCB" is in&amp;nbsp;v0_rom_mtd_init() which is only called for IMX23 devices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8) In the imx-kobs tool, bch.c&amp;nbsp;encode_bch_ecc() m is set to 32. This seems to be the metadata size, and causes the FCB data to be offset 32 bytes in the NAND block. However the linux GPMI driver sets metadata_size to 10 (mainline 4.14 and the NXP version with the debugfs patch). So this difference is 12 bytes explains why the FCB data turns up at an offset of 12 when I call nanddump. I'm not really sure what this metadata is, or how it's used. However having hardcoded values that differ between kobs and linux sounds like a bad idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what's going on here? I can't see how the latest imx-kobs tool has ever worked with the IMX6UL no matter which kernel version.&lt;/P&gt;&lt;P&gt;Has anyone had any experience with this?&lt;/P&gt;&lt;P&gt;Can I get in touch with an engineer who worked on this tool?&lt;/P&gt;&lt;P&gt;Is there any additional documentation about what structures are expected to be in NAND and where so that the IMX6UL boot ROM will detect and boot an image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm confident I can "fix" the imx-kobs tool to correctly detect and dump my boot structures, however without knowing for sure what structures are expected where, I can't expect my fixes to actually let me boot a board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Added 6), 7) and 8)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 22:13:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788591#M122207</guid>
      <dc:creator>andrewparlane2</dc:creator>
      <dc:date>2018-06-19T22:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788592#M122208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I have also a kobs-ng tool related issue on a imx6ul from Phytec: whenever I try to flash the barebox.bin bootloader using kobs-ng from inside MFG xml commands I get the following crash:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;UTP: received command '$ kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 $FILE'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UTP: executing "kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 $FILE"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MTD CONFIG:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; chip_0_device_path = "/dev/mtd0"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; chip_1_device_path = "(null)"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; search_exponent = 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; data_setup_time = 80&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; data_hold_time = 60&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; address_setup_time = 25&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; data_sample_time = 6&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; row_address_size = 3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; column_address_size = 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; read_command_code1 = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; read_command_code2 = 48&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; boot_stream_major_version = 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; boot_stream_minor_version = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; boot_stream_sub_version = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; ncb_version = 3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; boot_stream_1_address = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; boot_stream_2_address = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; -- We add the 1k-padding to the uboot.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;.tmp_kobs_ng: verifying using key '00000000000000000000000000000000'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;.tmp_kobs_ng: is a valid bootstream for key '00000000000000000000000000000000'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: Linux 4.8&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: use new bch layout raw access mode&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: opening: "/dev/mtd0"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Cannot open BCH geometry node: "/sys/kernel/debug/gpmi-nand/bch_geometry"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NFC geometr[ 6.260720] ------------[ cut here ]------------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.266720] Kernel BUG at c057cdfc [verbose debug info unavailable]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.273007] Internal error: Oops - BUG: 0 [#1] SMP ARM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.278162] Modules linked in:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.281264] CPU: 0 PID: 111 Comm: kobs-ng Not tainted 4.8.0 #18&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.287200] Hardware name: Freescale i.MX6 Ultralite (Device Tree)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.293399] task: c3e23c00 task.stack: c3e54000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.297963] PC is at nand_fill_oob+0x44/0xac&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.302258] LR is at mtd_ooblayout_free+0x5c/0x74&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.306988] pc : [&amp;lt;c057cdfc&amp;gt;] lr : [&amp;lt;c055f88c&amp;gt;] psr: a0000013&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.306988] sp : c3e55ca0 ip : c3e55bf0 fp : c3e55cc4&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.318488] r10: c3e84000 r9 : 00000100 r8 : 00000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.323732] r7 : 00000000 r6 : c3e55dc8 r5 : de42e0b8 r4 : 00000010&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.330278] r3 : c3e55c50 r2 : c3e55c50 r1 : 00000001 r0 : ffffffde&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.336826] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.343978] Control: 10c5387d Table: 83e7c06a DAC: 00000051&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.349741] Process kobs-ng (pid: 111, stack limit = 0xc3e54210)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.355765] Stack: (0xc3e55ca0 to 0xc3e56000)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.360151] 5ca0: 00000000 c3e55cb0 de42e0b8 00000800 00000800 00000000 c3e55d34 c3e55cc8&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.368354] 5cc0: c057d19c c057cdc4 c3e55cec c3e55cd8 c0964e78 c0173f98 de42e0b8 de42e710&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.376554] 5ce0: c3e55d34 0000003f 00000000 00000000 00000000 00000010 00000010 c3e84000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.384757] 5d00: 00000100 00000000 60000013 c3e55dc8 de42e0b8 00080000 00000000 00000800&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.392958] 5d20: 00000000 00000000 c3e55d5c c3e55d38 c057d6a8 c057ce70 c3e55dc8 c3e55d48&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.401160] 5d40: 00000000 00000000 00080800 00000000 c3e55d84 c3e55d60 c0562670 c057d614&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.409361] 5d60: c3e55dc8 00000800 c0562604 00000051 c3cf8800 be92cac8 c3e55da4 c3e55d88&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.417564] 5d80: c055ec9c c0562610 c3e55dc8 be92cac8 00000800 0144a110 c3e55edc c3e55da8&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.425764] 5da0: c0564b8c c055ec64 c3e55dc8 00000002 c0f229e8 00000000 c3e55e4c c3e55dc8&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.433966] 5dc0: c016f49c c016e4e8 00000001 00000800 00000000 00000000 00000000 00000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.442168] 5de0: c3e84000 00000010 00080000 00000000 00000800 00000000 00000000 00000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.450371] 5e00: 01449910 00000000 0144a110 00000000 00000001 00080000 c3e54000 00000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.458574] 5e20: c3e55e54 c3e55e30 c016ec14 c016e4e8 c096101c c3e23c00 00000001 c173d414&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.466776] 5e40: c3e23c00 c3e54000 c3e55e74 c3e55e58 c016ed78 c016ebb4 c0f35cc4 60000013&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.474977] 5e60: c0f35cc8 c173d414 c3e55e84 c3e55e78 c016ee44 c016ec48 c3e55edc c3e55e88&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.483180] 5e80: c096101c c016ee3c 00000001 00000000 c056554c c3e55ea0 c0962da4 c014e30c&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.491381] 5ea0: 00000001 c3e55ea0 c3e55edc c0f35cc4 00000000 c0f35cc4 c3e40780 c0304d18&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.499583] 5ec0: be92cac8 00000007 c3e54000 00000000 c3e55efc c3e55ee0 c056555c c0564130&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.507785] 5ee0: be92cac8 de7f7ba8 c3e40780 c02319c4 c3e55f7c c3e55f00 c0230fc0 c0565530&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.515987] 5f00: de645648 c022d69c 00000002 de5e22f8 ffffff9c c3dc0000 00000000 00000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.524188] 5f20: c3e54000 0000002a de645640 de5e22f8 00000002 de645648 c3e54000 00000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.532390] 5f40: c3e55f7c c3e55f50 c021e030 c02610a0 00000000 c3e40780 00000007 c3e40780&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.540592] 5f60: c0304d18 be92cac8 c3e54000 00000000 c3e55fa4 c3e55f80 c02319c4 c0230f30&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.548794] 5f80: 01448838 00000000 00000001 00000036 c0107fc4 c3e54000 00000000 c3e55fa8&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.556994] 5fa0: c0107e20 c0231994 01448838 00000000 00000007 c0304d18 be92cac8 00000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.565197] 5fc0: 01448838 00000000 00000001 00000036 01449910 00000800 00000800 01448838&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.573398] 5fe0: 0003f064 be92ca9c 0001470c b6f03b9c 20000010 00000007 e7fddef0 e7fddef0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.581588] Backtrace:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.584094] [&amp;lt;c057cdb8&amp;gt;] (nand_fill_oob) from [&amp;lt;c057d19c&amp;gt;] (nand_do_write_ops+0x338/0x41c)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.592375] r7:00000000 r6:00000800 r5:00000800 r4:de42e0b8&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.598153] [&amp;lt;c057ce64&amp;gt;] (nand_do_write_ops) from [&amp;lt;c057d6a8&amp;gt;] (nand_write_oob+0xa0/0xc0)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.606343] r10:00000000 r9:00000000 r8:00000800 r7:00000000 r6:00080000 r5:de42e0b8&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.614296] r4:c3e55dc8&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.616881] [&amp;lt;c057d608&amp;gt;] (nand_write_oob) from [&amp;lt;c0562670&amp;gt;] (part_write_oob+0x6c/0x7c)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.624810] r7:00000000 r6:00080800 r5:00000000 r4:00000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.630584] [&amp;lt;c0562604&amp;gt;] (part_write_oob) from [&amp;lt;c055ec9c&amp;gt;] (mtd_write_oob+0x44/0x5c)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.638426] r7:be92cac8 r6:c3cf8800 r5:00000051 r4:c0562604&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.644206] [&amp;lt;c055ec58&amp;gt;] (mtd_write_oob) from [&amp;lt;c0564b8c&amp;gt;] (mtdchar_ioctl+0xa68/0x1400)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.652222] r4:0144a110&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.654808] [&amp;lt;c0564124&amp;gt;] (mtdchar_ioctl) from [&amp;lt;c056555c&amp;gt;] (mtdchar_unlocked_ioctl+0x38/0x50)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.663346] r10:00000000 r9:c3e54000 r8:00000007 r7:be92cac8 r6:c0304d18 r5:c3e40780&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.671301] r4:c0f35cc4&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.673887] [&amp;lt;c0565524&amp;gt;] (mtdchar_unlocked_ioctl) from [&amp;lt;c0230fc0&amp;gt;] (do_vfs_ioctl+0x9c/0xa64)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.682424] r7:c02319c4 r6:c3e40780 r5:de7f7ba8 r4:be92cac8&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.688195] [&amp;lt;c0230f24&amp;gt;] (do_vfs_ioctl) from [&amp;lt;c02319c4&amp;gt;] (SyS_ioctl+0x3c/0x64)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.695518] r10:00000000 r9:c3e54000 r8:be92cac8 r7:c0304d18 r6:c3e40780 r5:00000007&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.703473] r4:c3e40780&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.706055] [&amp;lt;c0231988&amp;gt;] (SyS_ioctl) from [&amp;lt;c0107e20&amp;gt;] (ret_fast_syscall+0x0/0x1c)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.713638] r9:c3e54000 r8:c0107fc4 r7:00000036 r6:00000001 r5:00000000 r4:01448838&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.721520] Code: 0a00000c 3a000002 e3530002 0a000000 (e7f001f2)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.727641] ---[ end trace 7b232f3f07a2af01 ]---&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;y :&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; ECC Strength : 8&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; Page Size in Bytes : 2112&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; Metadata size : 10&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; ECC Chunk Size in byte : 512&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; ECC Chunk count : 4&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; Block Mark Byte Offset : 1999&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; Block Mark Bit Offset : 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;====================================================&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: opened '/dev/mtd0' - '(null)'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: max_boot_stream_size_in_bytes = 4718592&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: boot_stream_size_in_bytes = 547983&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: boot_stream_size_in_pages = 268&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: #1 0x00100000 - 0x00580000 (0x00185c8f)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: #2 0x00580000 - 0x00a00000 (0x00605c8f)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FCB&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32Checksum = 0x00000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32FingerPrint = 0x20424346&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32Version = 0x01000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDTiming.m_u8DataSetup = 80&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDTiming.m_u8DataHold = 60&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDTiming.m_u8AddressSetup = 25&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDTiming.m_u8DSAMPLE_TIME = 6&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32PageDataSize = 2048&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32TotalPageSize = 2112&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32SectorsPerBlock = 64&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32NumberOfNANDs = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32TotalInternalDie = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32CellType = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32EccBlockNEccType = 4&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32EccBlock0Size = 512&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32EccBlockNSize = 512&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32EccBlock0EccType = 4&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32MetadataBytes = 10&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32NumEccBlocksPerPage = 3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32EccBlockNEccLevelSDK = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32EccBlock0SizeSDK = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32EccBlockNSizeSDK = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32EccBlock0EccLevelSDK = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32NumEccBlocksPerPageSDK = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32MetadataBytesSDK = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32EraseThreshold = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32Firmware1_startingPage = 512&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32Firmware2_startingPage = 2816&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32PagesInFirmware1 = 268&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32PagesInFirmware2 = 268&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32DBBTSearchAreaStartAddress = 256&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32BadBlockMarkerByte = 1999&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32BadBlockMarkerStartBit = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32BBMarkerPhysicalOffset = 2048&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32BCHType = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDTMTiming.m_u32TMTiming2_ReadLatency = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDTMTiming.m_u32TMTiming2_PreambleDelay = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDTMTiming.m_u32TMTiming2_CEDelay = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDTMTiming.m_u32TMTiming2_PostambleDelay = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDTMTiming.m_u32TMTiming2_CmdAddPause = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDTMTiming.m_u32TMTiming2_DataPause = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDTMTiming.m_u32TMSpeed = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDTMTiming.m_u32TMTiming1_BusyTimeout = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32DISBBM = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32BBMarkerPhysicalOffsetInSpareData = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32OnfiSyncEnable = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDONFITiming.m_u32ONFISpeed = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDONFITiming.m_u32ONFITiming_ReadLatency = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDONFITiming.m_u32ONFITiming_CEDelay = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDONFITiming.m_u32ONFITiming_PreambleDelay = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDONFITiming.m_u32ONFITiming_PostambleDelay = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDONFITiming.m_u32ONFITiming_CmdAddPause = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDONFITiming.m_u32ONFITiming_DataPause = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_NANDONFITiming.m_u32ONFITiming_BusyTimeout = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32DISBBSearch = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32RandomizerEnable = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32ReadRetryEnable = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32ReadRetrySeqLength = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DBBT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32Checksum = 0x00000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32FingerPrint = 0x54424244&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32Version = 0x01000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m_u32DBBTNumOfPages = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Firmware: image #0 @ 0x100000 size 0x86000 - available 0x480000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Firmware: image #1 @ 0x580000 size 0x86000 - available 0x480000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-------------- Start to write the [ FCB ] -----&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: erasing @0:0x0-0x20000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: Writing FCB0 [ @0:0x0 ] (840) *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: erasing @0:0x20000-0x40000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: Writing FCB1 [ @0:0x20000 ] (840) *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: erasing @0:0x40000-0x60000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: Writing FCB2 [ @0:0x40000 ] (840) *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: erasing @0:0x60000-0x80000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: Writing FCB3 [ @0:0x60000 ] (840) *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd_commit_bcb(FCB): status 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-------------- Start to write the [ DBBT ] -----&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: erasing @0:0x80000-0xa0000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: Writing DBBT0 [ @0:0x80000 ] (800) *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 185.850179] random: crng init done&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &lt;/EM&gt;Anybody knows what could be the issue here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mihaita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788592#M122208</guid>
      <dc:creator>mihaitaivascu</dc:creator>
      <dc:date>2018-07-02T15:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788593#M122209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you try with nxp releases and tools described on i.mx official software page&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW" title="https://www.nxp.com/support/developer-resources/software-development-tools/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW"&gt;i.MX Software|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 01:54:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788593#M122209</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-07-03T01:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788594#M122210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Andrew, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/andrewparlane"&gt;andrewparlane&lt;/A&gt;‌ &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/andrewparlane2"&gt;andrewparlane2&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am currently in the same situation for the Phytec SoM (&lt;A class="link-titled" href="https://www.phytec.de/produkt/system-on-modules/phycore-imx-6-ul/" title="https://www.phytec.de/produkt/system-on-modules/phycore-imx-6-ul/"&gt;i.MX 6UL NXP ARM Cortex-A7 System on Module | PHYTEC&lt;/A&gt;&amp;nbsp;). I am still not successful in booting the SPL from NAND.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Do you have further update or success with this problem of using kobs-ng with imx6UL?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Parthiban N&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2019 11:27:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788594#M122210</guid>
      <dc:creator>parthitce</dc:creator>
      <dc:date>2019-07-11T11:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788595#M122211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, we gave up and put some SPI flash on the board instead. There is (or was) no useful documentation on how to write bootable code to NAND flash, and I found no working code. Then nobody here had any useful tips either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully there's been some updates and you'll find something useful.&lt;/P&gt;&lt;P&gt;Sorry I couldn't help. Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:00:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788595#M122211</guid>
      <dc:creator>andrewparlane</dc:creator>
      <dc:date>2019-07-11T15:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788596#M122212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@&lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-userid="315637" data-username="parthitce" href="https://community.nxp.com/people/parthitce" rel="nofollow noopener noreferrer" target="_blank"&gt;Parthiban Nallathambi @&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;A _jive_internal="true" class="" data-avatarid="-1" data-userid="250804" data-username="mihaitaivascu" href="https://community.nxp.com/people/mihaitaivascu" rel="nofollow noopener noreferrer" target="_blank"&gt;Mihaita Ivascu&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You have to mount debugfs in order to use kobs-ng.&lt;/P&gt;&lt;P&gt;According to the error message "&lt;EM&gt;Cannot open BCH geometry node: &lt;/EM&gt;"&lt;EM&gt;/sys/kernel/debug/gpmi-nand/bch_geometry&lt;/EM&gt;" this has not been done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute the following command before running kobs-ng:&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;mount -t debugfs debugfs /sys/kernel/debug&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:05:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788596#M122212</guid>
      <dc:creator>mahi</dc:creator>
      <dc:date>2019-07-11T15:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788597#M122213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mahi"&gt;mahi&lt;/A&gt;‌ &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/andrewparlane"&gt;andrewparlane&lt;/A&gt;&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/andrewparlane2"&gt;andrewparlane2&lt;/A&gt;&amp;nbsp;Thanks for your response. The main problem here is, am using mainline Linux Kernel 4.19.58 for my custom board. I have debugfs mounted, but I don't have the fsl patches for gpmi-nand, which exports the fields needed by kobs-ng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I also see patches in imx-kobs which handles when there is no gpmi-nand (i.e kernel without fsl patch) here:&amp;nbsp;&lt;A class="link-titled" href="https://patchwork.openembedded.org/patch/127501/" title="https://patchwork.openembedded.org/patch/127501/"&gt;imx-kobs: Allow kobs-ng to flash the SPL on the 4.x kernel - Patchwork&lt;/A&gt;&amp;nbsp; This patch is already merged into kobs-ng tool, so I am not sure whether this is really problem or restriction to use fsl kernel alone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add, I am currently re-working on u-boot patch for a new command 'nandbcb' which handles to write the FCB and DBBT along with Firmware itself :&amp;nbsp;&lt;A class="link-titled" href="https://patchwork.ozlabs.org/patch/1115791/#2196351" title="https://patchwork.ozlabs.org/patch/1115791/#2196351"&gt;[U-Boot,v6,1/3] i.MX6: nand: add nandbcb command for imx - Patchwork&lt;/A&gt;&amp;nbsp;I see this patch supports imx6q, but not imx6ul still. Only difference between q and ul from TRM 8.5.2.2 is BCH/ECC is 40 bits for UL if I am not wrong. Adding to that, barebox already supports this feature of writing to NAND using&amp;nbsp;&lt;A class="link-titled" href="https://git.pengutronix.de/cgit/barebox/tree/common/imx-bbu-nand-fcb.c" title="https://git.pengutronix.de/cgit/barebox/tree/common/imx-bbu-nand-fcb.c"&gt;imx-bbu-nand-fcb.c\common - barebox - barebox master repository&lt;/A&gt;&amp;nbsp;&amp;nbsp;handler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 09:46:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788597#M122213</guid>
      <dc:creator>parthitce</dc:creator>
      <dc:date>2019-07-12T09:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788598#M122214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mahi"&gt;mahi&lt;/A&gt;‌ &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/andrewparlane"&gt;andrewparlane&lt;/A&gt;‌ &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/andrewparlane2"&gt;andrewparlane2&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;I have extended the support for nandbcb command in u-boot for imx6UL and imx6ULL and I have pushed the patch for review&amp;nbsp;&lt;A class="link-titled" href="https://patchwork.ozlabs.org/patch/1133690/" title="https://patchwork.ozlabs.org/patch/1133690/"&gt;[U-Boot,1/2] i.MX6: nand: extend nandbcb command for imx6UL(L) - Patchwork&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this patch together with it's dependency (&lt;A class="link-titled" href="https://patchwork.ozlabs.org/project/uboot/list/?series=113810" title="https://patchwork.ozlabs.org/project/uboot/list/?series=113810"&gt;U-Boot - Patchwork&lt;/A&gt;&amp;nbsp;) SPL can be flashed to nand using nandbcb command and worked fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 12:13:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788598#M122214</guid>
      <dc:creator>parthitce</dc:creator>
      <dc:date>2019-07-18T12:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788599#M122215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The nandbcb command is to be released in the 2019.10 version of U-Boot, correct? Is there (do you have/can you share) an example of how to use this command? (Much appreciated, btw!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 16:58:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788599#M122215</guid>
      <dc:creator>james_mccusker</dc:creator>
      <dc:date>2019-08-13T16:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788600#M122216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jamesmccusker"&gt;jamesmccusker&lt;/A&gt;&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/james.mccusker@us.bosch.com"&gt;james.mccusker@us.bosch.com&lt;/A&gt; You need to get the SPL into RAM (either using TFTP or SDP) from u-boot. I do this with TFTP. Sample commands below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;setenv autoload no&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dhcp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;setenv serverip xx.xx.xx.xx &lt;/STRONG&gt;(do this if your DHCP server is not providing the correct TFTP server)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tftp $loadaddr SPL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;setenv mtdparts "gpmi-nand:512k(spl),512k(uboot),512k(uboot-dup),-(ubi)" &lt;/STRONG&gt;(tune it as per your needs)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;nandbcb update $loadaddr spl $filesize &lt;/STRONG&gt;(here spl is the name of the MTD SPL partition)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the patch is not yet merged. But I already send v2 yesterday :&amp;nbsp;&lt;A class="link-titled" href="https://patchwork.ozlabs.org/project/uboot/list/?series=127032" title="https://patchwork.ozlabs.org/project/uboot/list/?series=127032"&gt;U-Boot - Patchwork&lt;/A&gt;&amp;nbsp;I hope it will be merged soon, but am not sure about stable release it will be in. As there isn't much dependency, you can cherry-pick them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2019 11:38:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788600#M122216</guid>
      <dc:creator>parthitce</dc:creator>
      <dc:date>2019-08-24T11:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788601#M122217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Parthiban,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've followed your instruction for flashing, u-boot v2019.10-rc2 with your patch to extend nandbcb for iMX6ULL.&lt;/P&gt;&lt;P&gt;But the ROM code fails to load the SPL, the page address which is loading from is 0. See bootlog below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81938iAD8C4FD0B5C93A62/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And artifacts of this this page can be found on address: 0x907400&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've dumped the nand contents from both u-boot and linux.&lt;/P&gt;&lt;P&gt;Linux tells me the (Firmware1_startingPage) byte 104 has value 0x00000080.&lt;/P&gt;&lt;P&gt;It looks like the iMX6UL(L) takes&amp;nbsp;Firmware2_startingPage to start, which is not present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because this is a bootlog when I use kobs-ng:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82548iFDB9C8A98B7F6524/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've highlighted the bytes below (104)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Page 00000000 dump:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [00] 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [10] 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [20] 40 fc&amp;nbsp; ff ff&amp;nbsp; 46&amp;nbsp; 43&amp;nbsp; 42&amp;nbsp; 20&amp;nbsp; 00 00 00 01 50 3c 19 06&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [30] 00 00 00 00 00 08 00 00&amp;nbsp; 40 08 00 00 40 00 00 00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [40] 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 04 00 00 00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [50] 00 02 00 00 00 02 00 00&amp;nbsp; 04 00 00 00 0a 00 00 00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [60] 03 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [70] 00 00 00 00 00 00 00 00&amp;nbsp; 00 00 00 00 00 00 00 00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [80] 00 00 00 00 00 00 00 00&amp;nbsp; &lt;STRONG&gt;80 00 00 00&lt;/STRONG&gt; 00 00 00 00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [90] 20 00 00 00 00 00 00 00&amp;nbsp; 01 00 00 00 cf 07 00 00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me what I'm looking at or why it could not boot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2019 14:26:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788601#M122217</guid>
      <dc:creator>maxvankessel1</dc:creator>
      <dc:date>2019-08-27T14:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788602#M122218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do this already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;UTP: received command '$ mount -t debugfs debugfs /sys/kernel/debug'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UTP: executing "mount -t debugfs debugfs /sys/kernel/debug"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UTP: sending Success to kernel for command $ mount -t debugfs debugfs /sys/kernel/debug.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.012666] utp_poll: pass returned.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UTP: received command '$ flash_erase /dev/mtd0 0 0'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UTP: executing "flash_erase /dev/mtd0 0 0"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Erasing 128 Kibyte @ 4100340[ 6.273122] utp_poll: pass returned.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Erasing 128 Kibyte @ 64004e0000 -- -1 % complete&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UTP: sending Success to kernel for command $ flash_erase /dev/mtd0 0 0.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UTP: received command 'send'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UTP: sending Success to kernel for command send.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UTP: received command '$ kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 $FILE'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;UTP: executing "kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 $FILE"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MTD CONFIG:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; chip_0_device_path = "/dev/mtd0"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; chip_1_device_path = "(null)"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; search_exponent = 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; data_setup_time = 80&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; data_hold_time = 60&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; address_setup_time = 25&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; data_sample_time = 6&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; row_address_size = 3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; column_address_size = 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; read_command_code1 = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; read_command_code2 = 48&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; boot_stream_major_version = 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; boot_stream_minor_version = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; boot_stream_sub_version = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; ncb_version = 3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; boot_stream_1_address = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; boot_stream_2_address = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; -- We add the 1k-padding to the uboot.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;.tmp_kobs_ng: verifying using key '00000000000000000000000000000000'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;.tmp_kobs_ng: is a valid bootstream for key '00000000000000000000000000000000'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: Linux 4.8&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: use new bch layout raw access mode&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mtd: opening: "/dev/mtd0"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Cannot open BCH geometry node: "/sys/kernel/debug/gpmi-nand/bch_geometry"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NFC geometry[ 6.447061] ------------[ cut here ]------------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.454235] Kernel BUG at c057cdfc [verbose debug info unavailable]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.460533] Internal error: Oops - BUG: 0 [#1] SMP ARM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.465696] Modules linked in:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.468812] CPU: 0 PID: 108 Comm: kobs-ng Not tainted 4.8.0 #18&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.474754] Hardware name: Freescale i.MX6 Ultralite (Device Tree)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.480962] task: c3d64800 task.stack: c3e66000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.485533] PC is at nand_fill_oob+0x44/0xac&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.489840] LR is at mtd_ooblayout_free+0x5c/0x74&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.494579] pc : [&amp;lt;c057cdfc&amp;gt;] lr : [&amp;lt;c055f88c&amp;gt;] psr: a0000013&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.494579] sp : c3e67ca0 ip : c3e67bf0 fp : c3e67cc4&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.506085] r10: c3d89800 r9 : 00000100 r8 : 00000000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.511339] r7 : 00000000 r6 : c3e67dc8 r5 : de42e0b8 r4 : 00000010&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.517893] r3 : c3e67c50 r2 : c3e67c50 r1 : 00000001 r0 : ffffffde&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.524448] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.531608] Control: 10c5387d Table: 83e6806a DAC: 00000051&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.537378] Process kobs-ng (pid: 108, stack limit = 0xc3e66210)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[ 6.543410] Stack: (0xc3e67ca0 to 0xc3e68000)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it must be another reason for the crash when running kobs-ng command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Mihaita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2019 07:36:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788602#M122218</guid>
      <dc:creator>mihaitaivascu</dc:creator>
      <dc:date>2019-09-25T07:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788603#M122219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could somebody give me some guidance in this topic still?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Mihaita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 10:47:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788603#M122219</guid>
      <dc:creator>mihaitaivascu</dc:creator>
      <dc:date>2019-09-26T10:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788604#M122220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Do you have any other idea why I could still get that crash even though debugfs is mounted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mihaita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 08:04:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788604#M122220</guid>
      <dc:creator>mihaitaivascu</dc:creator>
      <dc:date>2019-10-15T08:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788605#M122221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mihaitaivascu"&gt;mihaitaivascu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my side I have checked only with imx6UL + NAND and it worked fine. But I don't have imx6ULL + NAND based versions with me, so I couldn't check this. But this should ideally work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't recommend using kobs-ng with mainline kernel as the details which is required by the utility are specific to vendor kernel. I never had success with this utility so far (both in vendor kernel + mainline version). The way GPMI nand driver sees the value which are flashed is not the same between two kernels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the nandbcb command part, did you already check flashing using it in u-boot latest version? This patch is still not merged in mainline u-boot due to some errors with imx6q/dl versions. So flashing in u-boot and dump it in Linux using mtd-utils may not show the same values. Could you erase and re-flash using nandbcb and share the dump which in u-boot for the NAND?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I don't see any big difference in RM of UL and ULL regarding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Parthiban N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 10:11:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788605#M122221</guid>
      <dc:creator>parthitce</dc:creator>
      <dc:date>2019-10-15T10:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788606#M122222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the kernel Oops also happen also when trying to &lt;EM&gt;cat /sys/kernel/debug/gpmi-nand/bch_geometry&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps there is an issue in the kernel support for your specific flash device.&lt;BR /&gt;If you post the flash relevant parts of dmesg (e.g. &lt;EM&gt;dmesg | grep -i -A5 nand&lt;/EM&gt;), perhaps someone can tell more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 11:36:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788606#M122222</guid>
      <dc:creator>mahi</dc:creator>
      <dc:date>2019-10-15T11:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: kobs-ng / imx-kobs for IMX6UL</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788607#M122223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Thanks a lot for your reply. Could you give me a alternative command to kobs-ng? I try to flash on an mtd partition the barebox bootloader from MFGTools&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; and his kobs-ng utility always complains about NAND BCH geometry.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Do you have a working solution/script for imx6ul for NAND that I could use as an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I will try checking with nandbcb as suggested. Have not done anything so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Mihaita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2019 08:58:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kobs-ng-imx-kobs-for-IMX6UL/m-p/788607#M122223</guid>
      <dc:creator>mihaitaivascu</dc:creator>
      <dc:date>2019-10-17T08:58:44Z</dc:date>
    </item>
  </channel>
</rss>

