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 Linux Kernel Panic on boot with mem=256M
  • 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 4 replies
  • Subscribers 328 subscribers
  • Views 983 views
  • Users 0 members are here
Related

Linux Kernel Panic on boot with mem=256M

Former Member
Former Member over 12 years ago

Hello everyone,
I want to run linux kernel on ZedBoard on a portion of the entire memory, with the rest of the memory dedicated to a frame buffer. So i pass the parameter "mem=" at boot. Every number < 512M bring to kernel panic.
Here is the result:
-
-
## Booting kernel from Legacy Image at 08000000 ...
   Image Name:   Linux-3.5.0-14.3-build2-25241-ga
   Created:      2012-11-21  10:24:09 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2708368 Bytes = 2.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 09000000
   Booting using the fdt blob at 0x09000000
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 1fb64000, end 1fb68081 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Linux version 3.5.0-14.3-build2-25241-gaa09283-dirty (mgeromin@linuxserver2) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-50) ) #14 PREEMPT Wed Nov 21 11:24:04 CET 2012
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Xilinx Zynq Platform, model: Xilinx Zynq ZC702
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat c04f3c68, node_mem_map c0521000
  Normal zone: 512 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 65024 pages, LIFO batch:15
Unable to handle kernel paging request at virtual address dfb64000
pgd = c0004000
[dfb64000] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT ARM
Modules linked in:
CPU: 0    Not tainted  (3.5.0-14.3-build2-25241-gaa09283-dirty #14)
PC is at __unflatten_device_tree+0xd4/0x26c
LR is at 0x0
pc : [<c02b368c>]    lr : [<00000000>]    psr: 600001d3
sp : c04c3f78  ip : d00dfeed  fp : 00000000
r10: 00000000  r9 : 413fc090  r8 : c04c3fe4
r7 : c04cda20  r6 : c04fb960  r5 : c04a0fa8  r4 : dfb64000
r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : c04fb960
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment kernel
Control: 18c5387d  Table: 00004059  DAC: 00000015
Process swapper (pid: 0, stack limit = 0xc04c22e8)
Stack: (0xc04c3f78 to 0xc04c4000)
3f60:                                                       413fc090 00000000
3f80: 00000000 c051b8c8 40000001 c04b955c c05138a8 c0721840 c04cda20 c04b2518
3fa0: 00000000 c04a0c98 00000000 18c5387d c04cf98c c04cf98c c04fc500 c04ca000
3fc0: 00000001 c04cd954 00004059 c049d4f8 00000000 00000000 00000000 00000000
3fe0: 00000000 c04ba4dc 18c5387d c04ca04c c04ba4d8 0000803c 00000000 00000000
[<c02b368c>] (__unflatten_device_tree+0xd4/0x26c) from [<c04b2518>] (unflatten_device_tree+0x18/0x30)
[<c04b2518>] (unflatten_device_tree+0x18/0x30) from [<c04a0c98>] (setup_arch+0x6a8/0x7c4)
[<c04a0c98>] (setup_arch+0x6a8/0x7c4) from [<c049d4f8>] (start_kernel+0x6c/0x2d4)
[<c049d4f8>] (start_kernel+0x6c/0x2d4) from [<0000803c>] (0x803c)
Code: e6bf2f32 e59f1174 ebfbcb62 e59fc170 (e594e000)
---[ end trace 1b75b31a2719ed1c ]---
Kernel panic - not syncing: Attempted to kill the idle task!
-
-
Is there any particular configuration for the kernel to make it works with restricted memory?

Thanx in advance

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

    Hi,
    Today I solved my problem. The fact is that u-boot moves the device tree file to an address near 512MB during the boot process, so the kernel forced to use only 256M is unable to reach it.
    The solution is to set an enviroment variable in u-boot to tell the maximum address to move device tree.
    the variable is fdt_high. In my case i set it to 256M :

    fdt_high=0x10000000
    |
    I hope this would help people with the same issue

    Bye
    Matteo

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

    Thank you for this very helpful information!

    Bryan

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

    Wow, thank you for this, I was having the exact same problem limiting the memory to 400 MiB!

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

    Good job! That was exactly what I was looking for

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