Dear Andreas Bießmann, Andreas Bießmann <andreas.de...@googlemail.com> writes: >The new atmelimage converts a machine code BLOB to bootable ROM image. Atmel >ROM has no sophisticated image format, it only checks the first 7 ARM vectors. >The vectors can contain valid B or LDR opcodes, the 6'th vector contains the >image size to load. > >Additionally the PMECC header can be written by the atmelimage target. The >parameters must be given via the -n switch as a coma separated list. For >example: > >mkimage -T atmelimage \ > -n > usePmecc=1,sectorPerPage=4,sectorSize=512,spareSize=64,eccBits=4,eccOffset=36 > \ > -d spl/u-boot-spl.bin boot.bin > >A provided image can be checked for correct header setup. It prints out the >PMECC header parameters if it has one and the 6'th interrupt vector content. > >---8<--- >Image Type: ATMEL ROM-Boot Image with PMECC Header > PMECC header > ==================== > eccOffset: 36 > sectorSize: 512 > eccBitReq: 4 > spareSize: 64 > nbSectorPerPage: 4 > usePmecc: 1 > ==================== > 6'th vector has 17044 set >--->8--- > >A SPL binary modified with the atmelimage mkimage target was succesfully >booted on a sama5d34ek via MMC and NAND. > >Signed-off-by: Andreas Bießmann <andreas.de...@googlemail.com> >Cc: Bo Shen <voice.s...@atmel.com> >Cc: Heiko Schocher <h...@denx.de> >Tested-by: Bo Shen <voice.s...@atmel.com> >Acked-by: Bo Shen <voice.s...@atmel.com> > >--- >Changes in v3: >* remove check for 'usePmecc=y' > >Changes in v2: >* do not check filesize in atmelimage >* add PMECC header generation and printout >* add printout of 6'th vector > > common/image.c | 1 + > include/image.h | 1 + > tools/Makefile | 1 + > tools/atmelimage.c | 342 ++++++++++++++++++++++++++++++++++++++++++++++++++++ > tools/imagetool.c | 2 + > tools/imagetool.h | 1 + > 6 files changed, 348 insertions(+) > create mode 100644 tools/atmelimage.c
applied to u-boot-atmel/master, thanks! Best regards, Andreas Bießmann _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot