This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to use falcon mode in U-boot?

Hi all

I have one question about falcon mode in uboot for fast ubooting

I used am335x-evm and I used ti-processor-sdk-linux-am335x-evm-02.00.02.11.

I read below that uboot doc

- /doc/README.falcon
- /board/ti/am335x/README

I tried to modified uboot source code but I can't used falcon mod in uboot

===================================

if (!spl_start_uboot()) {
  /*
   * load parameter image
   * load to temp position since nand_spl_load_image reads
   * a whole block which is typically larger than
   * CONFIG_CMD_SPL_WRITE_SIZE therefore may overwrite
   * following sections like BSS
   */
  nand_spl_load_image(CONFIG_CMD_SPL_NAND_OFS,
   CONFIG_CMD_SPL_WRITE_SIZE,
   (void *)CONFIG_SYS_TEXT_BASE);

  /* copy to destintion */
  for (dst = (int *)CONFIG_SYS_SPL_ARGS_ADDR,
    src = (int *)CONFIG_SYS_TEXT_BASE;
    src < (int *)(CONFIG_SYS_TEXT_BASE +
    CONFIG_CMD_SPL_WRITE_SIZE);
    src++, dst++) {
   writel(readl(src), dst);
  }

  /* load linux */
  nand_spl_load_image(CONFIG_SYS_NAND_SPL_KERNEL_OFFS,
   sizeof(*header), (void *)header);
  
  spl_parse_image_header(header);

  if (header->ih_os == IH_OS_LINUX) {
   /* happy - was a linux */
   nand_spl_load_image(CONFIG_SYS_NAND_SPL_KERNEL_OFFS,
    spl_image.size, (void *)spl_image.load_addr);
   nand_deselect();
   return;
  } else {
   puts("The Expected Linux image was not "
    "found. Please check your NAND "
    "configuration.\n");
   puts("Trying to start u-boot now...\n");
  }

========================================

no problem to  nand_spl_load_image(/* load linux */) but problem occurrence next function (spl_parse_image_header)

IH_MAGIC is 0x27051956 (defied in Image.h)

but image_get_magic(header) is 0x0000a0e1.

so  put out "mkimage signature not found - ih_magic = e1a00000"

I think It seems wrong value to be compared with read value (zimage) and Image Magic Number.

Image Magic Number is just for uboot. not used zImage, zImage Magic number is e1a00000.

I can't go to next step...

I don't understand this situation.

Is there a need to create a new zImage for falcon mode?

#define CONFIG_CMD_SPL_NAND_OFS 0x00080000 /* os parameters */ <= what is os parameters? is this different to .dtb file?

How to use falcon mod in uboot?

Do I have remains to be more?

thank you your reply?