AnsweredAssumed Answered

NAND, flashing bootloader(u-boot.bin) with kobs-ng tool error.

Question asked by Yamil Garcia on Sep 17, 2013
Latest reply on Apr 14, 2014 by Raana
Branched to a new discussion

I'm working with a custom board based in  sabrelite platform, basically it is a sabrelite with NAND support.

When I try to flash the bootloader(u-boot.bin) with kobs-ng tool, it always prompt me an error.

The kernel GPMI driver find the NAND device successfully and partitions are created correctly as shown below:

 

Kernel GPMI driver output:

 

ONFI flash detected

ONFI param page 0 valid

NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron MT29F8G08ADADAH4)

gpmi-nand imx6q-gpmi-nand.0: enable asynchronous EDO mode 5

3 cmdlinepart partitions found on MTD device gpmi-nand

Creating 3 MTD partitions on "gpmi-nand":

0x000000000000-0x000000100000 : "boot"

0x000000100000-0x000000500000 : "kernel"

0x000000500000-0x000040000000 : "rootfs"

GPMI NAND driver registered. (IMX)

 

mtd partitions:

 

root@freescale /$ cat /proc/mtd

dev:    size   erasesize  name

mtd0: 00100000 00020000 "boot"

mtd1: 00400000 00020000 "kernel"

mtd2: 3fb00000 00020000 "rootfs"

 

kobs-ng output:

 

root@freescale /$ kobs-ng init -v u-boot.bin

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

u-boot.bin: verifying using key '00000000000000000000000000000000'

u-boot.bin: is a valid bootstream for key '00000000000000000000000000000000'

mtd: opening: "/dev/mtd0"

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: bootstream too large

mtd_init failed!

 

 

Can someone give a hint on this, please?

Thanks in advance.

Outcomes