nk.bin and nk.nb0



Trying to reply to the post below, but it appears to be deleted. Creating a
new post with the answers.
1. NB0 size is controlled by the ROMSIZE variable in config.bib. It should
almost always be larger than BIN size because it's a bit-for-bit
representation of flash, whereas the BIN file is a series of records
wrapping actual data. NB0s fill in the zero-padding around the actual data.


2. It was likely inserted by ROMImage.exe - it contains some initialization
code (which, at least on ARM, is just a jump instruction to the nk.exe entry
point) and some pointers to the TOC (both a virtual address and a physical
offset)


3. Yes. The NB0 is the complete representation of the image as it is laid
out on flash, so it contains everything in the BIN file, but in a flat file
instead of a record-based file.


Greg Prier [ms]

"starry night" <timetohug@xxxxxxxxxxx> wrote in message
news:<1165470505.617369.107150@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
Hello, everyone.
There are some questions about NK.bin and NK.nb0.

(1) As far as I see, nk.nb0 is a plain binary.
So the nk.nb0 doesn't contain the information that nk.bin does.
(Head and record information)
Anyway, I translated nk.bin to nk.nb0.
I expected that the size of nk.nb0 would be smaller than the
nk.bin.
Actually but nk.nb0 was bigger than nk.bin.
Why?

(2) I set the address of NK as 0x802F 0000 in the config.bib.
But I found that the start address of nk.bin was 0x802F 1000 by
using "viewbin" command.
Was this 4KB region inserted by the linker?
If so, is this region the jump page related to the vector table?

(3) nk.bin contains the ROMHDR and pTOC.
Does nk.nb0 not have those?


Thanks in advance.

Jang.




.



Relevant Pages

  • Re: MDValidateRomChain????
    ... So i open the bin file and change the image header and ROMHDR ponter address ... of the XIP Also in romhdr structure i change the start and End physical ... "Dean Ramsier" wrote: ...
    (microsoft.public.windowsce.embedded)
  • Re: PROM files: build .bin for daisy chain on the fly
    ... The plug-in cards configuration can be changed on the field so the bin ... Has anyone tried to build daisy-chain .bin file programmatically out ... What impact does is 'merging' the slave .BIT inside the master bit by ... Well at least that is how it work for serial configuration. ...
    (comp.arch.fpga)
  • Re: How can I read files from APPS.bin ???
    ... ability to decode the BIN file in your splash screen code (and, potentially, ... This should make writing the splash image display ... bin, etc successfully. ... in bootloader. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: licensed program install
    ... I would like to install product 5733SC1 using virtual optical unit. ... I've created BIN file from proper CD then FTP it to folder in IFS. ... I think you can create an ISO and rename it to bin, not sure if that´s the same format. ...
    (comp.sys.ibm.as400.misc)
  • Re: nk.bin and nk.nb0
    ... NB0s fill in the zero-padding around the actual ... initialization code (which, at least on ARM, is just a jump instruction to ... out on flash, so it contains everything in the BIN file, but in a flat ... (Head and record information) ...
    (microsoft.public.windowsce.embedded)