nxp-imx / imx-kobs

Tool to create and write Freescale/NXP I.MX NAND boot related boot data structure to nand flash
GNU General Public License v2.0
29 stars 26 forks source link

fail to boot imx7 from nand when using kobs-ng to update uboot onto nand flash #6

Open white00black opened 7 years ago

white00black commented 7 years ago

My kobs-ng version is 1.3 and ROM version is 5. My sequence listed as below:

Booting up my board with SD card, then do things as below:

kobs-ng init -v u-boot-nand.imx --search_exponent=1 --I got everything all fine except one warning like "Cannot open BCH geometry node: "/sys/kernel/debug/gpmi-nand/bch_geometry".

kobs-ng dump -v u-boot-nand.imx --I get error as below "mtd: fingerprints mismatch @0:0x0 mtd: fingerprints mismatch @0:0x20000 mtd: fingerprints mismatch @0:0x40000 mtd: fingerprints mismatch @0:0x60000 mtd: NCB0 not found mtd: fingerprints mismatch @0:0x80000 mtd: fingerprints mismatch @0:0xa0000 mtd: fingerprints mismatch @0:0xc0000 mtd: fingerprints mismatch @0:0xe0000 mtd: NCB1 not found mtd: neither NCB1 or NCB2 found ERROR Unable to load boot structures"

After applying, my board cannot boot any more, there is nothing coming out from debug console, after reboot my unit. Then I switch to SD boot and do some checks on nand as belows.

nand read $loadaddr 0x0 0x20000 under uboot prompt --I did not get the Fringerprint i.e 0x20424346, and Version i.e 0x01000000 of FCB, and the data look very weird. --but I got correct things of DBBT, just exact same info as listed in init stage.

Thanks a lot.

Kevin

allenxh commented 7 years ago

Please enable debugfs in your kernel config and retry