Stuck at U-Boot on Zynq platform












0















I am trying to boot Linaro on a Zynq board, but can't get past U-Boot. If I try to run "bootm" manually at the prompt I just get an error:



Zynq> bootm
Wrong Image Format for bootm command
ERROR: can't get kernel image!


I've been taking the u-boot.elf I generate from Xilinx's Petalinux SDK and generating BOOT.BIN with it using a shell script provided by ADI. uImage is a known good image provided by ADI, but I've also tried recompiling the kernel myself. I guess the actual question is why does it think the image is formatted wrong? How can I change the image format or change what uboot expects?



I've pasted the boot log below. I don't know why it tries to run the command "booti" at the end.



U-Boot 2018.01 (Feb 19 2019 - 13:41:17 -0800) Xilinx Zynq TE0720

Board: Xilinx Zynq
Silicon: v3.1
I2C: ready
DRAM: ECC disabled 1 GiB
MMC: sdhci@e0100000: 0 (SD), sdhci@e0101000: 1 (eMMC)
SF: Detected s25fl256s_64k with page size 256 Bytes, erase size 64 KiB, total 32 MiB
In: serial@e0000000
Out: serial@e0000000
Err: serial@e0000000
Board: Xilinx Zynq
Silicon: v3.1
Net: ZYNQ GEM: e000b000, phyaddr ffffffff, interface rgmii-id
eth0: ethernet@e000b000
Hit any key to stop autoboot: 0
reading uEnv.txt
381 bytes read in 10 ms (37.1 KiB/s)
Loaded environment from uEnv.txt
Importing environment from SD ...
Running uenvcmd ...
Copying Linux from SD to RAM...
reading uImage
4109416 bytes read in 237 ms (16.5 MiB/s)
reading devicetree.dtb
10436 bytes read in 16 ms (636.7 KiB/s)
** Unable to read file uramdisk.image.gz **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Device: sdhci@e0100000
Manufacturer ID: 1b
OEM: 534d
Name: 00000
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.5 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading uImage
4109416 bytes read in 237 ms (16.5 MiB/s)
Device: sdhci@e0100000
Manufacturer ID: 1b
OEM: 534d
Name: 00000
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.5 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading devicetree.dtb
10436 bytes read in 16 ms (636.7 KiB/s)
Unknown command 'booti' - try 'help'
Zynq>









share|improve this question









New contributor




Nick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I am trying to boot Linaro on a Zynq board, but can't get past U-Boot. If I try to run "bootm" manually at the prompt I just get an error:



    Zynq> bootm
    Wrong Image Format for bootm command
    ERROR: can't get kernel image!


    I've been taking the u-boot.elf I generate from Xilinx's Petalinux SDK and generating BOOT.BIN with it using a shell script provided by ADI. uImage is a known good image provided by ADI, but I've also tried recompiling the kernel myself. I guess the actual question is why does it think the image is formatted wrong? How can I change the image format or change what uboot expects?



    I've pasted the boot log below. I don't know why it tries to run the command "booti" at the end.



    U-Boot 2018.01 (Feb 19 2019 - 13:41:17 -0800) Xilinx Zynq TE0720

    Board: Xilinx Zynq
    Silicon: v3.1
    I2C: ready
    DRAM: ECC disabled 1 GiB
    MMC: sdhci@e0100000: 0 (SD), sdhci@e0101000: 1 (eMMC)
    SF: Detected s25fl256s_64k with page size 256 Bytes, erase size 64 KiB, total 32 MiB
    In: serial@e0000000
    Out: serial@e0000000
    Err: serial@e0000000
    Board: Xilinx Zynq
    Silicon: v3.1
    Net: ZYNQ GEM: e000b000, phyaddr ffffffff, interface rgmii-id
    eth0: ethernet@e000b000
    Hit any key to stop autoboot: 0
    reading uEnv.txt
    381 bytes read in 10 ms (37.1 KiB/s)
    Loaded environment from uEnv.txt
    Importing environment from SD ...
    Running uenvcmd ...
    Copying Linux from SD to RAM...
    reading uImage
    4109416 bytes read in 237 ms (16.5 MiB/s)
    reading devicetree.dtb
    10436 bytes read in 16 ms (636.7 KiB/s)
    ** Unable to read file uramdisk.image.gz **
    Wrong Image Format for bootm command
    ERROR: can't get kernel image!
    Device: sdhci@e0100000
    Manufacturer ID: 1b
    OEM: 534d
    Name: 00000
    Tran Speed: 50000000
    Rd Block Len: 512
    SD version 3.0
    High Capacity: Yes
    Capacity: 7.5 GiB
    Bus Width: 4-bit
    Erase Group Size: 512 Bytes
    reading uImage
    4109416 bytes read in 237 ms (16.5 MiB/s)
    Device: sdhci@e0100000
    Manufacturer ID: 1b
    OEM: 534d
    Name: 00000
    Tran Speed: 50000000
    Rd Block Len: 512
    SD version 3.0
    High Capacity: Yes
    Capacity: 7.5 GiB
    Bus Width: 4-bit
    Erase Group Size: 512 Bytes
    reading devicetree.dtb
    10436 bytes read in 16 ms (636.7 KiB/s)
    Unknown command 'booti' - try 'help'
    Zynq>









    share|improve this question









    New contributor




    Nick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I am trying to boot Linaro on a Zynq board, but can't get past U-Boot. If I try to run "bootm" manually at the prompt I just get an error:



      Zynq> bootm
      Wrong Image Format for bootm command
      ERROR: can't get kernel image!


      I've been taking the u-boot.elf I generate from Xilinx's Petalinux SDK and generating BOOT.BIN with it using a shell script provided by ADI. uImage is a known good image provided by ADI, but I've also tried recompiling the kernel myself. I guess the actual question is why does it think the image is formatted wrong? How can I change the image format or change what uboot expects?



      I've pasted the boot log below. I don't know why it tries to run the command "booti" at the end.



      U-Boot 2018.01 (Feb 19 2019 - 13:41:17 -0800) Xilinx Zynq TE0720

      Board: Xilinx Zynq
      Silicon: v3.1
      I2C: ready
      DRAM: ECC disabled 1 GiB
      MMC: sdhci@e0100000: 0 (SD), sdhci@e0101000: 1 (eMMC)
      SF: Detected s25fl256s_64k with page size 256 Bytes, erase size 64 KiB, total 32 MiB
      In: serial@e0000000
      Out: serial@e0000000
      Err: serial@e0000000
      Board: Xilinx Zynq
      Silicon: v3.1
      Net: ZYNQ GEM: e000b000, phyaddr ffffffff, interface rgmii-id
      eth0: ethernet@e000b000
      Hit any key to stop autoboot: 0
      reading uEnv.txt
      381 bytes read in 10 ms (37.1 KiB/s)
      Loaded environment from uEnv.txt
      Importing environment from SD ...
      Running uenvcmd ...
      Copying Linux from SD to RAM...
      reading uImage
      4109416 bytes read in 237 ms (16.5 MiB/s)
      reading devicetree.dtb
      10436 bytes read in 16 ms (636.7 KiB/s)
      ** Unable to read file uramdisk.image.gz **
      Wrong Image Format for bootm command
      ERROR: can't get kernel image!
      Device: sdhci@e0100000
      Manufacturer ID: 1b
      OEM: 534d
      Name: 00000
      Tran Speed: 50000000
      Rd Block Len: 512
      SD version 3.0
      High Capacity: Yes
      Capacity: 7.5 GiB
      Bus Width: 4-bit
      Erase Group Size: 512 Bytes
      reading uImage
      4109416 bytes read in 237 ms (16.5 MiB/s)
      Device: sdhci@e0100000
      Manufacturer ID: 1b
      OEM: 534d
      Name: 00000
      Tran Speed: 50000000
      Rd Block Len: 512
      SD version 3.0
      High Capacity: Yes
      Capacity: 7.5 GiB
      Bus Width: 4-bit
      Erase Group Size: 512 Bytes
      reading devicetree.dtb
      10436 bytes read in 16 ms (636.7 KiB/s)
      Unknown command 'booti' - try 'help'
      Zynq>









      share|improve this question









      New contributor




      Nick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am trying to boot Linaro on a Zynq board, but can't get past U-Boot. If I try to run "bootm" manually at the prompt I just get an error:



      Zynq> bootm
      Wrong Image Format for bootm command
      ERROR: can't get kernel image!


      I've been taking the u-boot.elf I generate from Xilinx's Petalinux SDK and generating BOOT.BIN with it using a shell script provided by ADI. uImage is a known good image provided by ADI, but I've also tried recompiling the kernel myself. I guess the actual question is why does it think the image is formatted wrong? How can I change the image format or change what uboot expects?



      I've pasted the boot log below. I don't know why it tries to run the command "booti" at the end.



      U-Boot 2018.01 (Feb 19 2019 - 13:41:17 -0800) Xilinx Zynq TE0720

      Board: Xilinx Zynq
      Silicon: v3.1
      I2C: ready
      DRAM: ECC disabled 1 GiB
      MMC: sdhci@e0100000: 0 (SD), sdhci@e0101000: 1 (eMMC)
      SF: Detected s25fl256s_64k with page size 256 Bytes, erase size 64 KiB, total 32 MiB
      In: serial@e0000000
      Out: serial@e0000000
      Err: serial@e0000000
      Board: Xilinx Zynq
      Silicon: v3.1
      Net: ZYNQ GEM: e000b000, phyaddr ffffffff, interface rgmii-id
      eth0: ethernet@e000b000
      Hit any key to stop autoboot: 0
      reading uEnv.txt
      381 bytes read in 10 ms (37.1 KiB/s)
      Loaded environment from uEnv.txt
      Importing environment from SD ...
      Running uenvcmd ...
      Copying Linux from SD to RAM...
      reading uImage
      4109416 bytes read in 237 ms (16.5 MiB/s)
      reading devicetree.dtb
      10436 bytes read in 16 ms (636.7 KiB/s)
      ** Unable to read file uramdisk.image.gz **
      Wrong Image Format for bootm command
      ERROR: can't get kernel image!
      Device: sdhci@e0100000
      Manufacturer ID: 1b
      OEM: 534d
      Name: 00000
      Tran Speed: 50000000
      Rd Block Len: 512
      SD version 3.0
      High Capacity: Yes
      Capacity: 7.5 GiB
      Bus Width: 4-bit
      Erase Group Size: 512 Bytes
      reading uImage
      4109416 bytes read in 237 ms (16.5 MiB/s)
      Device: sdhci@e0100000
      Manufacturer ID: 1b
      OEM: 534d
      Name: 00000
      Tran Speed: 50000000
      Rd Block Len: 512
      SD version 3.0
      High Capacity: Yes
      Capacity: 7.5 GiB
      Bus Width: 4-bit
      Erase Group Size: 512 Bytes
      reading devicetree.dtb
      10436 bytes read in 16 ms (636.7 KiB/s)
      Unknown command 'booti' - try 'help'
      Zynq>






      boot u-boot petalinux






      share|improve this question









      New contributor




      Nick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Nick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 8 mins ago







      Nick













      New contributor




      Nick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 30 mins ago









      NickNick

      1




      1




      New contributor




      Nick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Nick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Nick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Nick is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f501987%2fstuck-at-u-boot-on-zynq-platform%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Nick is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Nick is a new contributor. Be nice, and check out our Code of Conduct.













          Nick is a new contributor. Be nice, and check out our Code of Conduct.












          Nick is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f501987%2fstuck-at-u-boot-on-zynq-platform%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          宮崎県

          濃尾地震

          シテ島