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 mem restriction -> wont boot
  • 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 0 replies
  • Subscribers 327 subscribers
  • Views 163 views
  • Users 0 members are here
Related

Linux mem restriction -> wont boot

Former Member
Former Member over 11 years ago

Hey,



I tried to restrict the linux memory to 500mb (Zedboard) via bootargs in the dts file, which looks like


bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait devtmpfs.mount=0 mem=500";


and I tried it with offsetting


bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait devtmpfs.mount=0 mem=500 memmap=500@12";



but both settings give me an error at boot time.



Copying Linux from SD to RAM...

reading uImage

3097944 bytes read in 280 ms (10.6 MiB/s)

reading devicetree.dtb

9658 bytes read in 20 ms (470.7 KiB/s)

## Booting kernel from Legacy Image at 03000000 ...

   Image Name:   Linux-3.13.0-gad9b7ee-dirty

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3097880 Bytes = 3 MiB

   Load Address: 00008000

   Entry Point:  00008000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 02a00000

   Booting using the fdt blob at 0x2a00000

   Loading Kernel Image ... OK

   Loading Device Tree to 1fb4c000, end 1fb515b9 ... OK



Starting kernel ...



Uncompressing Linux... done, booting the kernel.

Booting Linux on physical CPU 0x0

Linux version 3.13.0-gad9b7ee-dirty (root@localhost.localdomain) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-50) ) #1 SMP PREEMPT Fri May 2 16:27:52 CEST 2014

CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d

CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine model: Xilinx Zynq ZED

bootconsole [earlycon0] enabled

cma: CMA: failed to reserve 40 MiB

Memory policy: Data cache writealloc

Kernel panic - not syncing: ERROR: Failed to allocate 0x2000 bytes below 0x0.



CPU: 0 PID: 0 Comm: swapper Not tainted 3.13.0-gad9b7ee-dirty #1

[<c001357c>] (unwind_backtrace+0x0/0xe0) from [<c0010aa0>] (show_stack+0x10/0x14)

[<c0010aa0>] (show_stack+0x10/0x14) from [<c03b3ea0>] (dump_stack+0x7c/0xcc)

[<c03b3ea0>] (dump_stack+0x7c/0xcc) from [<c03b2690>] (panic+0x84/0x1d8)

[<c03b2690>] (panic+0x84/0x1d8) from [<c05671b8>] (memblock_alloc_base+0x2c/0x34)

[<c05671b8>] (memblock_alloc_base+0x2c/0x34) from [<c055eeac>] (early_alloc_aligned+0xc/0x2c)

[<c055eeac>] (early_alloc_aligned+0xc/0x2c) from [<c055faec>] (paging_init+0x574/0x840)

[<c055faec>] (paging_init+0x574/0x840) from [<c055c894>] (setup_arch+0x42c/0x858)

[<c055c894>] (setup_arch+0x42c/0x858) from [<c05597fc>] (start_kernel+0x80/0x3





I used the 3 Month old kernel and HDL from adi with some extra FLAGS in the kernel config, to support USB Camera and with a custom IP + VDMA in the PL region.



Does annyone know how I can get rid of the boot problem?

  • Sign in to reply
  • 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