[U-Boot] FIT tftp-autoupdate image

Andreas Friesen ndrs.frsn at googlemail.com
Tue Mar 22 08:48:27 CET 2011


Hello folks,

I'm trying to generate a FIT tftp-autoupdate image for MPC5200b Board.
I'm using u-boot 2010.12 / dtc 1.2.0. / Kernel 2.6.36.6 ;

Hier is my its file :
-------------- 8<--------------------
/dts-v1/;

/ {
  description = "Automatic Software Update: kernel, rootfs, FDT, FPGA ";
  timestamp = <1300774787>;
#address-cells = <1>;
  images {
   kernel at 0 {
  description = "linux kernel image";
  data = /incbin/("./uImage");
  arch = "ppc";
  type = "firmware";
  load = <0xFF000000>;
   compression = "none";
   hash at 1 {
  algo = "sha1";
  };
  };
   rootfs at 0 {
  description = "RootFS image";
  data = /incbin/("./rootfs.img");
  arch = "ppc";
  type = "firmware";
  load = <0xFF200000>;
  compression = "none";
   hash at 1 {
  algo = "sha1";
  };
  };
  fpga at 0 {
  description = "FPGA Firmware";
  data = /incbin/("./fpga.bin");
  arch = "ppc";
  compression = "none";
  type = "firmware";
  load = <0xFFF60000>;
  hash at 1 {
  algo = "sha1";
  };
  };
  fdt at 0 {
  description = "FDT binary";
  data = /incbin/("./mxa.dtb");
  arch = "ppc";
  compression = "none";
  type = "firmware";
  load = "<0xFFFE0000>"; <----------- !!!!!!!!!!!!!!!!!!!!!!
   hash at 1 {
   algo = "sha1";
  };
  };
  };

};
------------------------8<--------------------------
$ mkimage -f  mxa_autoupdate.its  mxa.itb
Registered Kirkwood Boot Image support
Registered Freescale i.MX 51 Boot Image support
Registered FIT Image support
Registered Default Image support
FIT format handling
Trying to execute "dtc -I dts -O dtb -p 500 mxa_autoupdate.its >
mxa_autoupdate.itb.tmp"
DTC: dts->dtb  on file "mxa_autoupdate.its"
Added timestamp successfully
FIT description: Automatic Software Update: kernel, rootfs, FDT, FPGA
Created:         Tue Mar 22 07:19:47 2011
 Image 0 (kernel at 0)
  Description:  linux kernel image
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    1222870 Bytes = 1194.21 kB = 1.17 MB
  Architecture: PowerPC
  Load Address: 0xff000000
  Hash node:    'hash at 1'
  Hash algo:    sha1
  Hash value:   e619b777d20246fe5b4f5b6ed2ad6ebe44c54fdf
  Hash len:     20
 Image 1 (rootfs at 0)
  Description:  RootFS image
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    753664 Bytes = 736.00 kB = 0.72 MB
  Architecture: PowerPC
  Load Address: 0xff200000
  Hash node:    'hash at 1'
  Hash algo:    sha1
  Hash value:   eaf7b46387c0a912b81cb1cd38f8af616ed746a6
  Hash len:     20
 Image 2 (fpga at 0)
  Description:  FPGA Firmware
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    212392 Bytes = 207.41 kB = 0.20 MB
  Architecture: PowerPC
  Load Address: 0xfff60000
  Hash node:    'hash at 1'
  Hash algo:    sha1
  Hash value:   65a54dc977a7287c499816108bc18eb19989aa0e
  Hash len:     20
 Image 3 (fdt at 0)
  Description:  FDT binary
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    20000 Bytes = 19.53 kB = 0.02 MB
  Architecture: PowerPC
  Load Address: 0x3c307846  <----------------- ???????????????????????
  Hash node:    'hash at 1'
  Hash algo:    sha1
  Hash value:   067d8484ef45bfb0efe9d3b1caf17e0f37748aa4
  Hash len:     20
Can't get configurations parent node '/configurations' (FDT_ERR_NOTFOUND)

--------- >8 --------------

Auto-update from TFTP: trying update file 'mxa.itb'
Using FEC device
TFTP from server 192.168.1.10; our IP address is 192.168.1.58
Filename 'mxa.itb'.
Load address: 0x100000
Loading: #################################################################
 #################################################################
 #####################
done
Bytes transferred = 2210382 (21ba4e hex)
Processing update 'kernel at 0' :sha1+
Erasing 0xff000000 - 0xff13ffff
.......... done
Erased 10 sectors
Copying to flash...done
Processing update 'rootfs at 0' :sha1+
Erasing 0xff200000 - 0xff2bffff
...... done
Erased 6 sectors
Copying to flash...done
Processing update 'fpga at 0' :sha1+
Erasing 0xfff60000 - 0xfff9ffff
.. done
Erased 2 sectors
Copying to flash...done
Processing update 'fdt at 0' :sha1+
Error: end address (0x3c30c665) not in flash! <-----------------
??????????????
Error: can't flash update, aborting
Hit any key to stop autoboot:  0

-------------------------------------8<---------------------

Does anyone know what the problem is?

Thanks in advance.

Andreas Friesen


More information about the U-Boot mailing list