• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » OMAP™ Applications Processors » OMAP 4 Forum » get panic in configure DDR to 2G BYTE
Share
OMAP™ Applications Processors
  • Forums
Options
  • Subscribe via RSS

get panic in configure DDR to 2G BYTE

get panic in configure DDR to 2G BYTE

This question is answered
sam liu1
Posted by sam liu1
on Jul 10 2012 01:29 AM
Intellectual270 points

Dear SIR
We use omap4470 and 4AI.1.4P1 software.
We try to enable 2GByte DDR in our system.
system get panic when we configure to 2Gbyte.
EMIF register setting seem good and we can see following log in uboot.
----------------------------------------------------------
U-Boot 1.1.4 (Jun 22 2012 - 15:59:27)

Load address: 0x80e80000
DRAM: 2048 MB
Flash: 0 kB
In: serial
Out: serial
Err: serial
----------------------------------------------------

we do following change in kernel code.
1.omap4_ion.h //arch/arm/mach-omap2
#define PHYS_ADDR_SMC_MEM (0x80000000 + SZ_2G - PHYS_ADDR_SMC_SIZE)

2.blaze_defconfig.h
CONFIG_CMDLINE="console=ttyO2,115200n8 mem=2G vmalloc=768M androidboot.console=ttyO2 omap_wdt.timer_margin=30"

but system always panic log as below
-------------------------------------------------------------------------
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: OMAP4 blaze board
*****TEST: size 0x2000000 addr0x0.
<6>Reserving 33554432 bytes SDRAM for VRAM
Memory policy: ECC disabled, Data cache writealloc
*****TEST: size 0x1000 addr0x0.
<0>Kernel panic - not syncing: ERROR: Failed to allocate 0x1000 bytes below 0x0.
--------------------------------------------------------------------------
kernel boot in 1Gbyte DDR setting is fine by modify blaze_defconfig.h
CONFIG_CMDLINE="console=ttyO2,115200n8 mem=1G vmalloc=768M androidboot.console=ttyO2 omap_wdt.timer_margin=30"

kernel panic only occur when we change to 2G setting
CONFIG_CMDLINE="console=ttyO2,115200n8 mem=2G vmalloc=768M androidboot.console=ttyO2 omap_wdt.timer_margin=30"

Please help:
1.Maybe DDR change from 1Gbyte to 2GByte need modify more code.Please adivce.
2.Where to configure system memory allocatioin table.
Thank you for taking the time to help.

Report Abuse
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Gina Glaser
    Posted by Gina Glaser
    on Jul 10 2012 08:14 AM
    Expert8055 points

    Sam,

    The default configuration in the Linux kernel, and in the 4AI.1.x releases, splits the available 4GB address space into a 3GB virtual memory space for user processes and a 1GB virtual memory space for the kernel.  Do you plan to change this split?  I believe you will be limited to 1GB in the kernel (actually 896 MB because 128 MB of the address space is occupied by kernel data structures).

    Regards,
    Gina 

    Please click the Verify Answer button on this post if it answers your question

    _______________________________________________________

    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ 

    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • sam liu1
    Posted by sam liu1
    on Jul 11 2012 06:30 AM
    Intellectual270 points

    Hi Gina,

    sorry for poor description.

    The SDRAM in 4470 tablet2 is 1GB and 4AI.1.4.x also setting system ddr to 1GB.after android system boot.we can see 6XXMB ram in setting .

    Now we have new board and SDRAM is 2GB .We need change code .the purpose is let  android system have  more RAM than 6XXMB (maybe16xxMB ) .

    Can you help to point out where need to modify.

    thanks

    SAM

    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gina Glaser
    Posted by Gina Glaser
    on Jul 24 2012 12:02 PM
    Verified Answer
    Verified by sam liu1
    Expert8055 points

    Hi Sam,

    Sorry for my delay.  

    Could you try without any "mem=" in the bootargs?  In the newer releases, including 4AI.1.4 I believe, the bootloader will pass the ATAG, including the memory descriptor, to the kernel.  Specifying a "mem=" in the bootargs will override whatever is being provided by the bootloader, which is not normally necessary. 

    Also, make sure to modify the kernel board file appropriately; in /arch/arm/mach-omap2/board-4430sdp.c, we have:

    1031 /*
    1032  * LPDDR2 Configuration Data for 4430/4460 SOMs:
    1033  * The memory organization is as below :
    1034  *      EMIF1 - CS0 -   2 Gb
    1035  *              CS1 -   2 Gb
    1036  *      EMIF2 - CS0 -   2 Gb
    1037  *              CS1 -   2 Gb
    1038  *      --------------------
    1039  *      TOTAL -         8 Gb
    1040  *
    1041  * Same devices installed on EMIF1 and EMIF2
    1042  */
    1043 static __initdata struct emif_device_details emif_devices = {
    1044         .cs0_device = &lpddr2_elpida_2G_S4_dev,
    1045         .cs1_device = &lpddr2_elpida_2G_S4_dev
    1046 };
    You will need to update this based on the configuration of your particular DDR part.
    Regards,
    Gina

    Please click the Verify Answer button on this post if it answers your question

    _______________________________________________________

    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ 

    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gina Glaser
    Posted by Gina Glaser
    on Aug 06 2012 11:36 AM
    Expert8055 points

    Sam,

    Is this working for you now?

    Regards,
    Gina 

    Please click the Verify Answer button on this post if it answers your question

    _______________________________________________________

    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ 

    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • sam liu1
    Posted by sam liu1
    on Aug 06 2012 21:06 PM
    Intellectual270 points

    Dear Gina,

    Sorry for forget to response this item.

    this is work for me .

    thanks.

    SAM

    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use