
Hi,
Did anybody get 512MB DDR SDRAM working on MPC8313?
My board here didn't work. In u-boot source, I changed CFG_DDRCONFIG to handle the 512MB ICs, changed CFG_IBAT_0U and CFG_DBAT_0U to handle 512MB, defined CONFIG_VERY_LAGE_RAM and CONFIG_MAX_MEM_MAPPED. When I set the CFG_DDR_SIZE to 256 to use only half memory, u-boot and Linux kernel (2.6.23) worked fine on this board. When I change CFG_DDR_SIZE to 512 to use all the memory, u-boot seems happy without error reporting, but crashed when booting the kernel.
Any help is highly appreciated.
Following is the boot log:
U-Boot 1.3.0 (Dec 17 2009 - 15:04:24) MPC83XX
Reset Status: External/Internal Soft, External/Internal Hard
CPU: e300c3, MPC8313E, Rev: 21 at 333.333 MHz, CSB: 166 MHz Board: ePM8313 I2C: ready DRAM: 512 MB FLASH: 32 MB NAND: 64 MiB In: serial Out: serial Err: serial Net: TSEC0 [PRIME], TSEC1 Hit any key to stop autoboot: 0 ## Booting image at f8080000 ... Image Name: Linux-2.6.23 Created: 2009-12-02 18:38:53 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1685120 Bytes = 1.6 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK ## Loading RAMDisk Image at f8320000 ... Image Name: Ramdisk Image Created: 2009-10-29 0:30:48 UTC Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size: 5136056 Bytes = 4.9 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Booting using the fdt at 0xf8300000 Loading Ramdisk to 0fa52000, end 0ff37eb8 ... OK Loading Device Tree to 007fc000, end 007fefff ... OK Using ePM8313 machine description Linux version 2.6.23 (root@DavidLaptopDuo) (gcc version 4.2.2) #49 Wed Dec 2 10:38:51 PST 2009 Found initrd at 0xcfa52000:0xcff37eb8 console [udbg0] enabled setup_arch: bootmem epm8313e_setup_arch() arch: exit Zone PFN ranges: DMA 0 -> 131072 Normal 131072 -> 131072 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0 -> 131072 Built 1 zonelists in Zone order. Total pages: 130048 Kernel command line: root=/dev/ram rw ramdisk_size=81976 PID hash table entries: 2048 (order: 11, 8192 bytes) I-pipe 2.0-02: pipeline enabled. Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) Memory: 510592k/524288k available (3376k kernel code, 13300k reserved, 152k data, 212k bss, 160k init) Mount-cache hash table entries: 512 ------------[ cut here ]------------ Badness at c017e7b8 [verbose debug info unavailable] NIP: c017e7b8 LR: c000d6a8 CTR: 00000000 REGS: c0373e70 TRAP: 0700 Not tainted (2.6.23) MSR: 00029032 <EE,ME,IR,DR> CR: 84042048 XER: 00000000 TASK = c034f208[0] 'swapper' THREAD: c0372000 GPR00: 00000001 c0373f20 c034f208 dffff00c 00000000 00000000 dffe5e08 00000000 GPR08: 00000000 00000005 dffe8778 003fffff 24042022 100aec40 0fffb000 ffffffff GPR16: 00000000 007ffc00 004e5eb8 007ffbb0 f8320040 0ff37eb8 0fff7298 00000000 GPR24: 00000000 0fa52000 c037741c c034e000 dfffeee8 dfffef3a 00000000 dfffefd8 Call Trace: [c0373f20] [c00df258] (unreliable) [c0373f30] [c022f4dc] [c0373f40] [c00df324] [c0373f60] [c00df318] [c0373f80] [c00df318] [c0373fa0] [c00df48c] [c0373fb0] [c03385f8] [c0373fc0] [c03249c8] [c0373ff0] [00003438] Instruction dump: 409e0010 7c8903a6 4e800421 38000001 7c030378 80010014 38210010 7c0803a6 4e800020 80030000 7c000034 5400d97e <0f000000> 7d201828 31290001 7d20192d WARNING: Bad of_node_put() on Call Trace: [c0373ec0] [c0007b5c] (unreliable) [c0373f00] [c000db50] [c0373f20] [c017e794] [c0373f30] [c000d678] [c0373f40] [c00df390] [c0373f60] [c00df318] [c0373f80] [c00df318] [c0373fa0] [c00df48c] [c0373fb0] [c03385f8] [c0373fc0] [c03249c8] [c0373ff0] [00003438] ------------[ cut here ]------------ Badness at c017e7b8 [verbose debug info unavailable] NIP: c017e7b8 LR: c000d6a8 CTR: 00000009 REGS: c0373e90 TRAP: 0700 Not tainted (2.6.23) MSR: 00029032 <EE,ME,IR,DR> CR: 84042048 XER: 00000000 TASK = c034f208[0] 'swapper' THREAD: c0372000 GPR00: 00000001 c0373f40 c034f208 dffff0b4 dfffeee8 00000009 dffe5984 00000000 GPR08: dffe8888 00000004 dffe8778 0000006e 22042042 100aec40 0fffb000 ffffffff GPR16: 00000000 007ffc00 004e5eb8 007ffbb0 f8320040 0ff37eb8 0fff7298 00000000 GPR24: 00000000 0fa52000 c037741c c034e000 dfffecd8 dfffef3a dfffeee8 dffff080 Call Trace: [c0373f40] [c00df3b0] (unreliable) [c0373f50] [c022f4dc] [c0373f60] [c00df324] [c0373f80] [c00df318] [c0373fa0] [c00df48c] [c0373fb0] [c03385f8] [c0373fc0] [c03249c8] [c0373ff0] [00003438] Instruction dump: 409e0010 7c8903a6 4e800421 38000001 7c030378 80010014 38210010 7c0803a6 4e800020 80030000 7c000034 5400d97e <0f000000> 7d201828 31290001 7d20192d Unable to handle kernel paging request for data at address 0x00000000 Faulting instruction address: 0xc0014a08 Oops: Kernel access of bad area, sig: 11 [#1] ePM8313e Modules linked in: NIP: c0014a08 LR: c01810e8 CTR: 00000009 REGS: c0373e90 TRAP: 0300 Not tainted (2.6.23) MSR: 00009032 <EE,ME,IR,DR> CR: 84042044 XER: 20000000 DAR: 00000000, DSISR: 20000000 TASK = c034f208[0] 'swapper' THREAD: c0372000 GPR00: c00df33c c0373f40 c034f208 00000000 ffffffff 00000009 dffe5984 00000000 GPR08: dffe8888 00000000 dffe8778 0000006e 22042042 100aec40 0fffb000 ffffffff GPR16: 00000000 007ffc00 004e5eb8 007ffbb0 f8320040 0ff37eb8 0fff7298 00000000 GPR24: 00000000 0fa52000 c037741c c034e000 dfffecd8 0000002f dffe63e0 00000000 Call Trace: [c0373f40] [c000d678] (unreliable) [c0373f60] [c00df33c] [c0373f80] [c00df318] [c0373fa0] [c00df48c] [c0373fb0] [c03385f8] [c0373fc0] [c03249c8] [c0373ff0] [00003438] Instruction dump: 4082fff4 4e800020 38a3ffff 3884ffff 8c650001 2c830000 8c040001 7c601851 4d860020 4182ffec 4e800020 3883ffff <8c040001> 2c000000 4082fff8 7c632050 Kernel panic - not syncing: Attempted to kill the idle task! Rebooting in 180 seconds..
__________________________________________________________________ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.com.