AnsweredAssumed Answered

write an alternate bootstream with kobs-ng

Question asked by Birger Bauch on Sep 3, 2013
Latest reply on Sep 6, 2013 by Birger Bauch
Branched to a new discussion

Reading the iMX28 Reference Manual, it should be possible to load an alternate bootimage using the ROM_SECONDARY_BOOT persistent bit. The normal write prozess with kobs-ng always write both bootimages.

 

root@imx28evk /boot$ kobs-ng -z -v imx28_ivt_linux.sb

...

mtd: opened '/dev/mtd0' - '(null)'

mtd: max_boot_stream_size_in_bytes = 9961472

mtd: boot_stream_size_in_bytes = 2529872

mtd: #1 0x00100000 - 0x00a80000 (0x00369a50)

mtd: #2 0x00a80000 - 0x01400000 (0x00ce9a50)

  m_u32Checksum = 0

  m_u32FingerPrint = 541213510

  m_u32Version = 16777216

FCB

...

Firmware: image #0 @ 0x100000 size 0x26a000 - available 0x980000

Firmware: image #1 @ 0xa80000 size 0x26a000 - available 0x980000

...

mtd: Writing FCB3 @0:0x60000(840)

mtd_commit_bcb(FCB): status 0

...

mtd: Writing DBBT3 @0:0xe0000(800)

mtd_commit_bcb(DBBT): status 0

...

mtd: Writting firmware image #0 @0: 0x00100000 - 0x0036a000

...

mtd: Writting firmware image #1 @0: 0x00a80000 - 0x00cea000

 

 

But we want to write different images as bootstream 0 and bootstream1 using

 

root@imx28evk /boot$ kobs-ng update -z -1 imx28_ivt_linux.sb

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

Unable to perform bootstream update

 

These failes. Here we got the same errors like "kobs-ng dump"

 

What can we do? Is there an updated kobs-ng version available? We are using kobs-ng from L2.6.35_1.1.0_130130_source.

 

Regards,

Birger

Outcomes