public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Unable to boot the new FIT image
@ 2014-05-21 16:46 Harsha Kiran
  2014-05-22  1:12 ` Simon Glass
  0 siblings, 1 reply; 16+ messages in thread
From: Harsha Kiran @ 2014-05-21 16:46 UTC (permalink / raw)
  To: u-boot

Hi Simon,

I have added the next patch in the series i.e., (....../339610/) But the
result is still the same. This particular patch just created a device tree
In the arch/arm/dts folder For the beaglebone. I have already tried
creating for am335x-evmsk and was able to build the u-boot-dtb.bin.

I have noticed that MLO is configured to read only the u-boot.img not any
other binaries (eg U-boot.bin or u-boot-dtb.bin).
It gives me the following error..
spl_load_image_fat: error reading image u-boot.img, err - -1 Which part of
the configuration I should change so that MLO tries to read the
u-boot-dtb.bin as the third stage bootloader??
I tried loading MLO->u-boot.img first, but this time it reads the
u-boot.img but gives the following error..

reading u-boot.img
reading u-boot.img
No valid FDT found - please append one to U-Boot binary, use u-boot-dtb.bin
or define CONFIG_OF_EMBED. For sandbox, use -d <file.dtb> ### ERROR ###
Please RESET the board ###

I tried applying the next patch in the series to add that extra padding to
the image size (ie., .......org/patch/339611) But could not successfully
apply the patch..
harsha at harshakiran_kasha:/abb/Experiments/u-boot$ sudo patch -p1 -R <
patch3.patch patching file tools/fit_image.c Hunk #1 FAILED at 35.
Hunk #2 FAILED at 60.
Hunk #3 succeeded at 38 (offset -137 lines).
Hunk #4 FAILED at 210.
Hunk #5 succeeded at 115 (offset -123 lines).
3 out of 5 hunks FAILED -- saving rejects to file tools/fit_image.c.rej
patching file tools/image-host.c

and then the compilation gave the following errors..
harsha@harshakiran_kasha:/abb/Experiments/u-boot$ sudo make ARCH=arm
CROSS_COMPILE=/abb/compilers/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux/bin/arm-linux-gnueabihf-
-j8 DEV_TREE_BIN=./am335x-boneblack.dtb
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/generated/version_autogenerated.h
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/mkimage.o
tools/fit_image.c: In function ?fit_handle_file?:
tools/fit_image.c:74:3: error: ?destfd? undeclared (first use in this
function)   destfd = mmap_fdt(params->cmdname, params->keydest,
tools/fit_image.c:74:3: note: each undeclared identifier is reported only
once for each function it appears in
tools/fit_image.c:75:8: error: ?dest_blob? undeclared (first use in this
function)      &dest_blob, &sbuf, 1);
        ^
tools/fit_image.c:75:20: error: ?sbuf? undeclared (first use in this
function)
       &dest_blob, &sbuf, 1);
                    ^
tools/fit_image.c:78:3: error: ?destfd_size? undeclared (first use in this
function)
   destfd_size = sbuf.st_size;
   ^
tools/fit_image.c:81:2: error: ?tfd? undeclared (first use in this function)
  tfd = mmap_fdt(params->cmdname, tmpfile, &ptr, &sbuf, 1);
  ^
tools/fit_image.c:81:44: error: ?ptr? undeclared (first use in this
function)
  tfd = mmap_fdt(params->cmdname, tmpfile, &ptr, &sbuf, 1);
                                            ^
tools/fit_image.c:98:3: error: label ?err_add_timestamp? used but not
defined
   goto err_add_timestamp;
   ^
tools/fit_image.c:91:3: error: label ?err_add_hashes? used but not defined
   goto err_add_hashes;
   ^
tools/fit_image.c:83:3: error: label ?err_mmap? used but not defined
   goto err_mmap;
   ^
tools/fit_image.c:77:4: error: label ?err_keydest? used but not defined
 goto err_keydest;
    ^
tools/fit_image.c:42:6: warning: unused variable ?ret? [-Wunused-variable]
  int ret;
      ^
tools/fit_image.c:41:9: warning: unused variable ?size_inc?
[-Wunused-variable]
  size_t size_inc;
         ^
make[1]: *** [tools/fit_image.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [tools] Error 2

Sorry for deleting the previous messages. U-boot mailing list is rejecting
my emails If I include them

Thanks,
Harsha

--

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-06-06 19:58 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1400474115994.59811@us.abb.com>
2014-05-19  4:36 ` [U-Boot] Unable to boot the new FIT image KJ H. Kiran
2014-05-19 14:39   ` Jagan Teki
2014-05-19 15:43     ` Simon Glass
     [not found]       ` <b9dcc0f55ffd46ac94aaa2ef4b2616ac@DB3PR06MB185.eurprd06.prod.outlook.com>
2014-05-20  3:39         ` KJ H. Kiran
2014-05-20  4:23         ` Simon Glass
2014-05-21 16:46 Harsha Kiran
2014-05-22  1:12 ` Simon Glass
2014-05-24  0:08   ` Simon Glass
2014-05-25  6:15     ` Harsha Kiran
2014-05-27  3:24       ` Simon Glass
2014-05-31 13:45         ` Harsha Kiran
2014-06-03  4:46           ` Simon Glass
2014-06-04  2:29             ` Harsha Kiran
2014-06-04  2:58               ` Simon Glass
2014-06-04  4:40                 ` Harsha Kiran
2014-06-06 19:58                   ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox