element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development Crash loading Ramdisk
  • 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 329 subscribers
  • Views 469 views
  • Users 0 members are here
Related

Crash loading Ramdisk

suppamax
suppamax over 10 years ago

Hi,

I have the following setup:

HW:
board: microzed + FMC carrier + FMCOMMS3
RTL: I took the reference design from here
http://wiki.analog.com/resources/fpga/docs/hdl
and ported it to microzed, remapping pins and removing unnecessary ports (i.e HDMI).

SW:
I got linux from
https://github.com/analogdevicesinc/linux
For the devicetree I used zynq-zed-adv7511-ad9361-fmcomms2-3.dts, also from ADI's linux distribution
The ramdisk is the one provided by Xilinx.

During boot I get

## Booting kernel from Legacy Image at 02080000 ...
   Image Name:   Linux-4.0.0-g86cfd8d
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3331976 Bytes = 3.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 04000000 ...
   Image Name:  
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5309954 Bytes = 5.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
   Loading Kernel Image ... OK
   Loading Ramdisk to 1faef000, end 1ffff602 ...

and the boot hangs.

Could you help with this issue?


Thanks,
Max

  • Sign in to reply
  • Cancel
Parents
  • zedhed
    0 zedhed over 10 years ago

    Hi suppamax,

    If you look at zynq-zed-adv7511-ad9361-fmcomms2-3.dts which is governed by the hierarchy defined in zynq-zed.dtsi and if you look through that file you will see the following bootargs defined:

    bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait";

    That tells me that a RAM disk image is not even needed for what you are trying to do because the EXT4 partition on the SD card serves as the root file system, not a RAM disk.

    My suggestion is to modify your U-boot just like jbattles did in this thread:

    http://microzed.org/content/microzed-custom-u-boot-environment-variables-being-overwritten-boot

    Using the U-boot command "bootm 0x3000000 - 0x2A00000" to bypass loading the RAMdisk into memory altogether.

    Regards,

    -Kevin

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

    Hi Kevin,

    thanks for your suggestion but I don't think the issue is related to u-boot nor ramdisk.

    I made some experiments and I don't have this ramdisk loading issue if I use the current uImage and DTB but a different BOOT.bin (the current boot.bin uses the same uboot as the working one).
    This suggests me that the problem is in hdl.

    What do you think?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • suppamax
    0 suppamax over 10 years ago in reply to zedhed

    Hi Kevin,

    thanks for your suggestion but I don't think the issue is related to u-boot nor ramdisk.

    I made some experiments and I don't have this ramdisk loading issue if I use the current uImage and DTB but a different BOOT.bin (the current boot.bin uses the same uboot as the working one).
    This suggests me that the problem is in hdl.

    What do you think?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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 © 2025 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