element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
ZedBoard Hardware Design Unable to create bootable Linux image on sdcard for Zedboard/FMCOMMS2
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 5 replies
  • Subscribers 344 subscribers
  • Views 1205 views
  • Users 0 members are here
Related

Unable to create bootable Linux image on sdcard for Zedboard/FMCOMMS2

Former Member
Former Member over 11 years ago

Hi,

I am following the instructions on http://wiki.analog.com/resources/eval/user-guides/ad-fmcomms2-ebz to create a bootable Linux image on a SD Card for the Zedboard/FMCOMMS2, but despite putting linaro on the rootfs partition, and configuring u-boot to use that filesystem, u-boot keeps asking me for a uramdisk.image.gz. The full details are below, and I'd appreciate any guidance to overcome this problem.

Specifically, I did the following:

1. Built the reference HDL design using ISE 14.4 as described at http://wiki.analog.com/resources/eval/user-guides/ad-fmcomms2-ebz/reference_hdl . I used XPS with the system.xmp in "fpgahdl_xilinx/cf_ad9361_zed" and built a system.bit using Hardware -> Generate Bitstream

2. Built u-boot as described at http://www.wiki.xilinx.com/Build+U-Boot. I git cloned the code at git://github.com/Xilinx/u-boot-xlnx.git . I set CROSS_COMPILE to arm-xilinx-linux-gnueabi- , edited the last line of the "sdboot" section in include/configs/zynq_common.h to say "bootm 0x3000000 - 0x2A00000;" (my understanding is that the - tells u-boot not to look for a ramdisk), and did "make zynq_zed_config" followed by "make".

3. I built BOOT.BIN using the "build the boot image" instructions at http://wiki.analog.com/resources/eval/user-guides/ad-fmcomms2-ebz/software/linux/zynq. Specifically, I exported hardware platform information from XPS to SDK and built a Zynq FSBL as per instructions.

3. I added the u-boot-xlnx/tools/ directory to the path to make sure mkimage would be available in the path, and then cloned "https://github.com/analogdevicesinc/linux.git" to branch xcomm_zynq, exported ARCH=arm, CROSS_COMPILE=<path to Xilinx 14.4>/ISE_DS/EDK/gnu/arm/lin/bin/arm-xilinx-linux-gnueabi- and did "make zynq_xcomm_adv7511_defconfig" followed by "make uImage LOADADDR=0x00008000".

4. I then executed "make zynq-zed-adv7511-ad9361.dtb" and checked that the bootargs in the included arch/arm/boot/dts/zynq-zed.dtsi said "bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait devtmpfs.mount=0" (i.e. it boots from the second partition on the sdcard and does not expect ramdisk).

5. I initialized the rootfs partition by wgetting the linaro 12.11 tarball ("wget http://releases.linaro.org/12.11/ubuntu/precise-images/ubuntu-desktop/linaro-precise-ubuntu-desktop-20121124-560.tar.gz") and copying to the rootfs partition using the tar --strip command ("sudo tar --strip-components=3 -C <path to rootfs partition> -xzpf linaro-precise-ubuntu-desktop-20121124-560.tar.gz binary/boot/filesystem.dir")

6. I copied BOOT.BIN, uImage and devicetree.dtb to the BOOT partition on the sdcard.

I then synced all the file systems, and booted the zedboard with this sdcard.


The blue done LED lit up, but the HDMI display did not turn on.

When I connected to the zedboard using Minicom, I got the "zynq-uboot>" prompt. When I type "boot" at the prompt, I get the following message:

====
Device: zynq_sdhci
Manufacturer ID: 41
OEM: 3432
Name: SD8GB            
Tran Speed: 50000000 
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.4 GiB                                                              
Bus Width: 4-bit                                                               
reading uEnv.txt                                                               
** Unable to read file uEnv.txt **                                             
Copying Linux from SD to RAM...                                                
reading uImage                                                                 
3601048 bytes read in 326 ms (10.5 MiB/s)                                      
reading devicetree.dtb                                                         
16109 bytes read in 19 ms (827.1 KiB/s)                                        
reading uramdisk.image.gz                                                      
** Unable to read file uramdisk.image.gz **                                    
=====

I don't understand why u-boot is still looking for uramdisk, and what I should do to get past this? I would really appreciate any help on this.

Thanks,
Arun

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Unless you have a specific reason to re-compile the SD card files from scratch, I suggest that you write the entire 8 GB SD card image file as described starting on page 13 of the Getting Started Guide:

    http://www.zedboard.org/sites/default/files/documentations/GS-AES-ZSDR2-ADI-G-14_4-v2-kr-web.pdf

    Unfortunately the SD card image archive zed_fmcomm2_image_8gb.img.xz referenced in step 1 (page 13) has not yet been posted to Zedboard.org. In the interim, it is available for download here:

    https://avnet.egnyte.com/h-s/20131107/8e14e958844f41d4

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Thank you for the link to the sd card image. I copied it to a card and booted the zedboard/fmcomms2 using it. It starts up an IIO oscilloscope showing a capture device "cf-ad9361-lpc" and I am able to plot the voltage levels, frequency domain representation etc.

    However, this does not suffice for my purposes. I do need to build my own FPGA and Linux images, because I need to make significant modifications to both the programmable logic as well as the OS to add some baseband processing and MAC functionality respectively.

    After my earlier question, I succeeded in making the necessary modifications to get Linux to boot from the sd card, and also drive the HDMI monitor. However, when I installed the IIO oscilloscope (using the instructions in the "INSTALLATION" section of http://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope), it does not show the ad9361 as one of the devices in the "Capture" menu. This is despite the fact that the "fmcomms2/3" tab seems to indicate that it is communicating with a device as the hardware gain and RSSI on RX 1 and RX 2 in the Receive Chain box are changing. Also, the "Debug" tag seems to allow me to read values from registers when I select the "ad9361-phy" device in that tab. I tried "Settings->Connect"/"Local Devices". Under FRU infor, it says it found /sys/devices/fpga-axi.2/41620000.i2c/i2c-1/1-0050/eeprom with part number AD-FMCOMMS2-EBZ .

    Can you suggest what the problem might be? I would appreciate your help with this.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Also encountered "** Unable to read file uramdisk.image.gz **" could you please helping to tell how you fix it? Really appreciate!
    Thank you apillai :)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    I mean without adding uramdisk.image.gz in BOOT partition and mounting ubuntu from SD card. Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to Former Member

    I am also interested,
    thx in advance

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

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 © 2026 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

  • X
  • Facebook
  • linkedin
  • YouTube