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 Unable to run qemu
  • 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 7 replies
  • Subscribers 328 subscribers
  • Views 871 views
  • Users 0 members are here
Related

Unable to run qemu

Former Member
Former Member over 12 years ago

I am using the TRD 14.4 for development. I built the kernel with CONFIG_XILINX_FIXED_DEVTREE_ADDR=y"
I see the following warnings:
1. Warning: Neither atags nor dtb found
2. cma: CMA: failed to reserve 16 MiB
3. clk_divider_recalc_rate: Invalid divisor for clock 0x00000006 0x00000006
4. clk_divider_recalc_rate: Invalid divisor for clock 0x00000004 0x00000004

with these warnings the program hangs with the message:
"Calibrating delay loop..."

The device tree that i specify on the qemu command line is the same as the one used for an actual zedboard.

I am a newbie to linux and would appreciate help in understanding and resolving the issue.
The full log is as shown below.
Thanks
svv

-----------------------------------------
start_qemu.sh

./arm-softmmu/qemu-system-arm -M xilinx-zynq-a9 -m 1024 -serial null -serial mon:stdio -dtb ./devicetree.dtb -smp 2 -nographic -kernel ../linux-xlnx/arch/arm/boot/zImage -initrd ../ramdisk32M.image -net nic,model=cadence_gem -net user -tftp ~/ -redir tcp:10023::23 -redir tcp:10080::80 -redir tcp:10022::22 -redir tcp:10021::21 -redir tcp:1234::123

--------------------------------------------


svv@HP-LT:~/Xilinx/qemu$ ./start_qemu.sh
Uncompressing Linux... done, booting the kernel.
Warning: Neither atags nor dtb found
Booting Linux on physical CPU 0
Linux version 3.6.0-xilinx-dirty (svv@HP-LT) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-50) ) #1 SMP PREEMPT Mon Apr 29 00:03:44 EDT 2013
CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Xilinx Zynq Platform
Warning: Neither atags nor dtb found
bootconsole [earlycon0] enabled
cma: CMA: failed to reserve 16 MiB
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 7 pages/cpu @c05d2000 s7488 r8192 d12992 u32768
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: console=ttyPS0,115200n8 root=/dev/ram rw earlyprintk mtdparts=physmap-flash.0:512K(nor-fsbl),512K(nor-u-boot),5M(nor-linux),9M(nor-user),1M(nor-scratch),-(nor-rootfs)
PID hash table entries: 64 (order: -4, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 10316k/10316k available, 6068k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc1800000 - 0xff000000   ( 984 MB)
    lowmem  : 0xc0000000 - 0xc1000000   (  16 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0516218   (5177 kB)
      .init : 0xc0517000 - 0xc053dd40   ( 156 kB)
      .data : 0xc053e000 - 0xc05847c0   ( 282 kB)
       .bss : 0xc05847e4 - 0xc05ae9f0   ( 169 kB)
Preemptible hierarchical RCU implementation.
tDump stacks of tasks blocking RCU-preempt GP.
tRCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
NR_IRQS:512
Zynq clock init
clk_divider_recalc_rate: Invalid divisor for clock 0x00000006 0x00000006
clk_divider_recalc_rate: Invalid divisor for clock 0x00000004 0x00000004
Xilinx, no compatible timer found, using default
xlnx,ps7-ttc-1.00.a #0 at 0xc1800000, irq=43
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
Console: colour dummy device 80x30
Calibrating delay loop...

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

    From Xilinx:

    Problem solved: The qemu's '-initrd' switch expects a plain initrd/initramfs. Not one with a u-boot header. Stripping the u-boot header from the uramdisk.image.gz file works. I think I'll upload that file to the wiki later. To remove the u-boot header from the uramdisk.image.gz file use the following command:
    dd if=./uramdisk.image.gz of=./ramdisk.image.gz skip=16 bs=4
    And then use the file 'ramdisk.image.gz' to boot on qemu.

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

    From Xilinx:

    Problem solved: The qemu's '-initrd' switch expects a plain initrd/initramfs. Not one with a u-boot header. Stripping the u-boot header from the uramdisk.image.gz file works. I think I'll upload that file to the wiki later. To remove the u-boot header from the uramdisk.image.gz file use the following command:
    dd if=./uramdisk.image.gz of=./ramdisk.image.gz skip=16 bs=4
    And then use the file 'ramdisk.image.gz' to boot on qemu.

    • 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