element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development Booting/InstallingLinux on Zedboard
  • Forums
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 8 replies
  • Subscribers 44 subscribers
  • Views 348 views
  • Users 0 members are here
Related

Booting/InstallingLinux on Zedboard

Former Member
Former Member over 5 years ago

Hi

I am very new with the embedded software world and I am currently trying to boot Linux Kernel on Zedboard from SD CARD. I had about a week back tried to install on a zybo board and it was working. I had followed the same steps but however ended up running into issues. Currently , I am able to connect to the uboot bootup console via usb-uart and the following is the log.

Further details on how I have done this:

1) Obtained the linux uImage

2) Compiled devicetree.dtb from linux-digilent-dev branch

3)Created a base design in Vivado consisting of the processing system and axi gpio. In the Xilinx SDK created a new zyng fsbl(didn't do any changes to any files). 

4) From Xilinx Tools , create boot image i added the systemwrapper.bit , the fsbl. elf and uboot.elf to create boot.bin.

5) Partioned the SD card into 4 mb space left at start, 1 gb fat partition and rest as ext4 partition.

6) Copied the uImage, boot.bin and devicetree.dtb with same names into the 1gb partition.

7) Set JP9 and JP8 to 3V3 amd JP7 ,JP8 and JP11 to GND.

8) Connected the usb-art ,inserted SD card in the slot and powered on.

9) I can see the following output via minicom console.

U-Boot 2014.01 (Aug 09 2016 - 17:17:22)
 
I2C:   ready
Memory: ECC disabled
DRAM:  512 MiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0 
Configure PL and booting Linux from TFTP...
Device: zynq_sdhci
Manufacturer ID: 3
OEM: 5344
Name: SU04G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 4-bit
Xilinx Device
Descriptor @ 0x1ffbaa54
Family:         Zynq PL
Interface type: Device configuration interface (Zynq)
Device Size:    4045564 bytes
Cookie:         0x20 (32)
Device name:    7z020
No Device Function Table.
Gem.e000b000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Gem.e000b000: No link.
fpga - loadable FPGA image support
 
Usage:
fpga [operation type] [device number] [image address] [image size]
fpga operations:
  dump  [dev]                   Load device to memory buffer
  info  [dev]                   list known device information
  load  [dev] [address] [size]  Load device from memory buffer
  loadp [dev] [address] [size]  Load device from memory buffer with partial bitstream
  loadb [dev] [address] [size]  Load device from bitstream buffer (Xilinx only)
  loadbp        [dev] [address] [size]  Load device from bitstream buffer with partial bitstream(Xilinx only)
  loadmk [dev] [address]        Load device generated with mkimage
        For loadmk operating on FIT format uImage address must include
        subimage unit name in the form of addr:<subimg_uname>
Load device from filesystem (FAT by default) (Xilinx only)
  loadfs [dev] [address] [image size] [blocksize] <interface>
        [<dev[:part]>] <filename>
 
Gem.e000b000:0 is connected to Gem.e000b000.  Reconnecting to Gem.e000b000
Gem.e000b000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Gem.e000b000: No link.
Gem.e000b000:0 is connected to Gem.e000b000.  Reconnecting to Gem.e000b000
Gem.e000b000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Gem.e000b000: No link.
Gem.e000b000:0 is connected to Gem.e000b000.  Reconnecting to Gem.e000b000
Gem.e000b000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Gem.e000b000: No link.
Wrong Image Format for bootm command
ERROR: can't get kernel image!
zynq-uboot> 
 
The bolded text above has got me wondering why is that it is saying loading from tftp despite i have setup jumpers to boot from sd card? I went to the zynq-common.h bootfile in uboot-digilent-dev-master-next and noticed that if it boots from sd_card the following needs to be done:
 
 
  sdboot=if mmcinfo; then " \
  "run uenvboot; " \
  "echo Copying Linux from SD to RAM... && " \
  "fatload mmc 0 0x3000000 ${kernel_image} && " \
  "fatload mmc 0 0x2A00000 ${devicetree_image} && " \
  "bootm 0x3000000 0x2000000 0x2A00000; " \
  "fi\0" \
   
  so something like copying linux from sd to ram should come up.  Can someone help me with this? I also wanted to know what exactly is being done in the uboot. Has the pl been initialized?
 
  • Reply
  • Cancel
  • Cancel
Parents
  • prasannakotrappa
    0 prasannakotrappa over 1 year ago

    Hi,

     

    I have the similar error and not able to resolve it, I am using zedboard, and I want to use my PL DDR instead of PS DDR, hence i changed the DDR address to 0x40000000 and I can see my DDR address using bd command,

     

    Zynq> bd

     

    arch_number = 0x00000000

    boot_params = 0x00000000

    DRAM bank = 0x00000000

    -> start = 0x40000000

    -> size = 0x10000000

    baudrate = 115200 bps

    TLB addr = 0x4fff0000

    relocaddr = 0x4ff2f000

    reloc off = 0x4bf2f000

    irq_sp = 0x4eb09130

    sp start = 0x4eb09120

    ARM frequency = 666 MHz

    DSP frequency = 0 MHz

    DDR frequency = 533 MHz

    Early malloc usage: 5f8 / 800

    fdt_blob = 0x4eb09148

    arch_number = 0x00000000

    boot_params = 0x00000000

    DRAM bank = 0x00000000

    -> start = 0x40000000

    -> size = 0x10000000

    baudrate = 115200 bps

    TLB addr = 0x4fff0000

    relocaddr = 0x4ff2f000

    reloc off = 0x4bf2f000

    irq_sp = 0x4eb09130

    sp start = 0x4eb09120

    ARM frequency = 666 MHz

    DSP frequency = 0 MHz

    DDR frequency = 533 MHz

    Early malloc usage: 5f8 / 800

    fdt_blob = 0x4eb09148

     

    my printenv:

     

    dfu_mmc=run dfu_mmc_info && dfu 0 mmc 0

    dfu_mmc_info=setenv dfu_alt_info ${kernel_image} fat 0 1\\;${devicetree_image} fat 0 1\\;${ramdisk_image} fat 0 1

    dfu_ram=run dfu_ram_info && dfu 0 ram 0

    dfu_ram_info=setenv dfu_alt_info ${kernel_image} ram 0x3000000 0x500000\\;${devicetree_image} ram 0x2A00000 0x20000\\;${ramdisk_image} ram 0x2000000 0x600000

    distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done

    efi_dtb_prefixes=/ /dtb/ /dtb/current/

    ethaddr=00:0a:35:00:1e:53

    fdt_addr_r=0x1f00000

    fdt_high=0x20000000

    fdtaddr=41420454

    fdtcontroladdr=4eb09148

    fileaddr=41000000

    filesize=af8e88

    initrd_high=0x20000000

    kernel_addr_r=0x2000000

     

    But in autoboot, when I run the below command, I get below error,

     

    Wrong Image Format for bootm command

    ERROR: can't get kernel image!

     

    Commands I executed:

     

    fatload mmc 0 0x3000000 uImage

    fatload mmc 0 0x2A00000 devicetree.dtb

    bootm 0x3000000 0x2A00000

     

    How to solve this issue?

     

    Regards,

    Prasanna

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
Reply
  • prasannakotrappa
    0 prasannakotrappa over 1 year ago

    Hi,

     

    I have the similar error and not able to resolve it, I am using zedboard, and I want to use my PL DDR instead of PS DDR, hence i changed the DDR address to 0x40000000 and I can see my DDR address using bd command,

     

    Zynq> bd

     

    arch_number = 0x00000000

    boot_params = 0x00000000

    DRAM bank = 0x00000000

    -> start = 0x40000000

    -> size = 0x10000000

    baudrate = 115200 bps

    TLB addr = 0x4fff0000

    relocaddr = 0x4ff2f000

    reloc off = 0x4bf2f000

    irq_sp = 0x4eb09130

    sp start = 0x4eb09120

    ARM frequency = 666 MHz

    DSP frequency = 0 MHz

    DDR frequency = 533 MHz

    Early malloc usage: 5f8 / 800

    fdt_blob = 0x4eb09148

    arch_number = 0x00000000

    boot_params = 0x00000000

    DRAM bank = 0x00000000

    -> start = 0x40000000

    -> size = 0x10000000

    baudrate = 115200 bps

    TLB addr = 0x4fff0000

    relocaddr = 0x4ff2f000

    reloc off = 0x4bf2f000

    irq_sp = 0x4eb09130

    sp start = 0x4eb09120

    ARM frequency = 666 MHz

    DSP frequency = 0 MHz

    DDR frequency = 533 MHz

    Early malloc usage: 5f8 / 800

    fdt_blob = 0x4eb09148

     

    my printenv:

     

    dfu_mmc=run dfu_mmc_info && dfu 0 mmc 0

    dfu_mmc_info=setenv dfu_alt_info ${kernel_image} fat 0 1\\;${devicetree_image} fat 0 1\\;${ramdisk_image} fat 0 1

    dfu_ram=run dfu_ram_info && dfu 0 ram 0

    dfu_ram_info=setenv dfu_alt_info ${kernel_image} ram 0x3000000 0x500000\\;${devicetree_image} ram 0x2A00000 0x20000\\;${ramdisk_image} ram 0x2000000 0x600000

    distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done

    efi_dtb_prefixes=/ /dtb/ /dtb/current/

    ethaddr=00:0a:35:00:1e:53

    fdt_addr_r=0x1f00000

    fdt_high=0x20000000

    fdtaddr=41420454

    fdtcontroladdr=4eb09148

    fileaddr=41000000

    filesize=af8e88

    initrd_high=0x20000000

    kernel_addr_r=0x2000000

     

    But in autoboot, when I run the below command, I get below error,

     

    Wrong Image Format for bootm command

    ERROR: can't get kernel image!

     

    Commands I executed:

     

    fatload mmc 0 0x3000000 uImage

    fatload mmc 0 0x2A00000 devicetree.dtb

    bootm 0x3000000 0x2A00000

     

    How to solve this issue?

     

    Regards,

    Prasanna

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
Children
No Data
Element14

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2022 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube