Flashing BCB area using u-boot command

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flashing BCB area using u-boot command

505 Views
gnani
Contributor I
Dear All!
I have a custom board with an IMX6ULL on it.
It's set up to boot from NAND flash (MT29F2G08ABAGAWP)
 
I want to flash BCB area using u-boot command.
So I flashed BCB area as follow step

Step 1. Flash NAND boot(BCB) area using uuu command.

 

kobs-ng init -x -v --chip_0_device_path=/dev/mtd${NAND_uboot} /tmp/boot

 

Step 2. Update BCB area using u-boot command.

 

=> usb start
=> mw.b 0x81000000 0xFF 0x100000
=> fatload usb 0:1 0x81000000 u-boot.imx
=> nandbcb init 0x81000000 NAND_uboot ${filesize}​

 

 
But I found some dump value was different.
 (Compared uuu flashed hex dump value of BCB area with u-boot command hex dump value of BCB area)
  <uuu flashed hex dump value of BCB area>     <u-boot command hex dump value of BCB>
compare.png
 
These two nandbcb dump value is same like as belows

 

=> nandbcb dump NAND_uboot
device 0 offset 0x0, size 0x300000
NAND FCB read from 0x0 offset 0x400 read: OK
NAND FCB read from 0x20000 offset 0x400 read: OK
NAND FCB read from 0x40000 offset 0x400 read: OK
NAND FCB read from 0x60000 offset 0x400 read: OK
NAND DBBT read from 0x80000 offset 0x14 read: OK
NAND DBBT read from 0xa0000 offset 0x14 read: OK
NAND DBBT read from 0xc0000 offset 0x14 read: OK
NAND DBBT read from 0xe0000 offset 0x14 read: OK
FCB
  checksum = 0xfffffbec
  fingerprint = 0x20424346
  version = 0x01000000
  datasetup = 80
  datahold = 60
  addr_setup = 25
  dsample_time = 6
  pagesize = 2048
  oob_pagesize = 2176
  sectors = 64
  nr_nand = 0
  nr_die = 0
  celltype = 0
  ecc_type = 4
  ecc_nr = 512
  ecc_size = 512
  ecc_level = 4
  meta_size = 10
  nr_blocks = 3
  ecc_type_sdk = 0
  ecc_nr_sdk = 0
  ecc_size_sdk = 0
  ecc_level_sdk = 0
  nr_blocks_sdk = 0
  meta_size_sdk = 0
  erase_th = 0
  bootpatch = 0
  patch_size = 0
  fw1_start = 512
  fw2_start = 1024
  fw1_pages = 342
  fw2_pages = 342
  dbbt_start = 256
  bb_byte = 1999
  bb_start_bit = 0
  phy_offset = 2048
  bchtype = 0
  readlatency = 0
  predelay = 0
  cedelay = 0
  postdelay = 0
  cmdaddpause = 0
  datapause = 0
  tmspeed = 0
  busytimeout = 0
  disbbm = 0
  spare_offset = 0
  onfi_sync_enable = 0
  onfi_sync_speed = 0
  onfi_sync_nand_data = 0
  disbbm_search = 0
  disbbm_search_limit = 0
  read_retry_enable = 0
DBBT :
  checksum = 0x00000000
  fingerprint = 0x54424244
  version = 0x01000000
  dbbtpages = 0
Firmware: image #0 @ 0x200 size 0xab000
Firmware: image #1 @ 0x400 size 0xab000

 

 
============================================================== 
<Question>
 1. Why these two hex dump values are different?
 
 2. Device that BCB area is flashed by u-boot command is, OK?
    (I want to use this nandbcb command if this method is OK)
============================================================== 
 
Best Regards
gnani
0 Kudos
Reply
0 Replies