linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* booting Linux 2.6.15 using a ramdisk and greater than 512MB of DRAM
@ 2006-06-09 19:28 Scott Coulter
  2006-06-09 22:41 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Coulter @ 2006-06-09 19:28 UTC (permalink / raw)
  To: linuxppc-embedded



Hi everyone,

I am not sure if this is a linux question or a u-boot question.  I have
a custom MPC8540 board running U-boot 1.1.4.  With a NFS root
configuration, I have booted and run 2.6.15 with memory from 256MB to
2GB.  If I build a ramdisk image (or even if I use the ramdisk image
with the 85xx version of ELDK 4.0) and then combine it with the kernel
image (vmlinux.gz) using "mkimage", the linux boot blows out with an
oops if I boot the board with more that 512MB of DRAM.  From the U-boot
output, it looks like the ramdisk image is getting copied to the upper
portion of DRAM.  Is it possible that the kernel doesn't map enough DRAM
to allow the image to be read?

I haven't spent a lot of time debugging this once I saw that the 512MB
configuration worked OK.  Has anyone run into this?

Thanks,

Scott



___________________________________________________________________

  Scott N. Coulter
  Senior Software Engineer
 =20
  Cyclone Microsystems         =20
  370 James Street              Phone:  203.786.5536 ext. 118
  New Haven, CT 06513-3051      Email:  scott.coulter@cyclone.com
  U.S.A.                        Web:    http://www.cyclone.com
___________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: booting Linux 2.6.15 using a ramdisk and greater than 512MB of DRAM
       [not found] <43EB80E07C42E1408726E4905FB96B0466C6C1@CYBORG3.cyclone.com>
@ 2006-06-09 19:46 ` Xianghua Xiao
  0 siblings, 0 replies; 3+ messages in thread
From: Xianghua Xiao @ 2006-06-09 19:46 UTC (permalink / raw)
  To: Scott Coulter, linuxppc-embedded

I think it's a u-boot 'feature' and has nothing to do with the kernel.
xianghua

Scott Coulter wrote:

>Xianghua,
>
>That seems to have worked.
>
>Do you think that this is worth investigating?
>
>Thanks,
>
>
>Scott
>
>
>
>
>
>
>___________________________________________________________________
>
>  Scott N. Coulter
>  Senior Software Engineer
>  
>  Cyclone Microsystems          
>  370 James Street              Phone:  203.786.5536 ext. 118
>  New Haven, CT 06513-3051      Email:  scott.coulter@cyclone.com
>  U.S.A.                        Web:    http://www.cyclone.com
>___________________________________________________________________
>
>-----Original Message-----
>From: Xianghua Xiao [mailto:x.xiao@freescale.com] 
>Sent: Friday, June 09, 2006 3:37 PM
>To: Scott Coulter
>Subject: Re: booting Linux 2.6.15 using a ramdisk and greater than 512MB
>of DRAM
>
>try set initrd_high=0xffffffff under u-boot, see if it helps
>
>Scott Coulter wrote:
>
>  
>
>>Hi everyone,
>>
>>I am not sure if this is a linux question or a u-boot question.  I have
>>a custom MPC8540 board running U-boot 1.1.4.  With a NFS root
>>configuration, I have booted and run 2.6.15 with memory from 256MB to
>>2GB.  If I build a ramdisk image (or even if I use the ramdisk image
>>with the 85xx version of ELDK 4.0) and then combine it with the kernel
>>image (vmlinux.gz) using "mkimage", the linux boot blows out with an
>>oops if I boot the board with more that 512MB of DRAM.  From the U-boot
>>output, it looks like the ramdisk image is getting copied to the upper
>>portion of DRAM.  Is it possible that the kernel doesn't map enough
>>    
>>
>DRAM
>  
>
>>to allow the image to be read?
>>
>>I haven't spent a lot of time debugging this once I saw that the 512MB
>>configuration worked OK.  Has anyone run into this?
>>
>>Thanks,
>>
>>Scott
>>
>>
>>
>>___________________________________________________________________
>>
>> Scott N. Coulter
>> Senior Software Engineer
>> 
>> Cyclone Microsystems          
>> 370 James Street              Phone:  203.786.5536 ext. 118
>> New Haven, CT 06513-3051      Email:  scott.coulter@cyclone.com
>> U.S.A.                        Web:    http://www.cyclone.com
>>___________________________________________________________________
>>
>>_______________________________________________
>>Linuxppc-embedded mailing list
>>Linuxppc-embedded@ozlabs.org
>>https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>> 
>>
>>    
>>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: booting Linux 2.6.15 using a ramdisk and greater than 512MB of DRAM
  2006-06-09 19:28 Scott Coulter
@ 2006-06-09 22:41 ` Wolfgang Denk
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2006-06-09 22:41 UTC (permalink / raw)
  To: Scott Coulter; +Cc: linuxppc-embedded

Dear Scott,

in message <43EB80E07C42E1408726E4905FB96B0466C6C0@CYBORG3.cyclone.com> you wrote:
> 
> I am not sure if this is a linux question or a u-boot question.  I have
> a custom MPC8540 board running U-boot 1.1.4.  With a NFS root
> configuration, I have booted and run 2.6.15 with memory from 256MB to
> 2GB.  If I build a ramdisk image (or even if I use the ramdisk image
> with the 85xx version of ELDK 4.0) and then combine it with the kernel
> image (vmlinux.gz) using "mkimage", the linux boot blows out with an
> oops if I boot the board with more that 512MB of DRAM.  From the U-boot

Do you see something like

	mem_pieces_remove: [3fe32000,3ff93ec7) not in any region

in your boot messages?

> output, it looks like the ramdisk image is getting copied to the upper
> portion of DRAM.  Is it possible that the kernel doesn't map enough DRAM
> to allow the image to be read?
> 
> I haven't spent a lot of time debugging this once I saw that the 512MB
> configuration worked OK.  Has anyone run into this?

Yes. Normally you can use only use 0x30000000 (768MB)  RAM  (lowmem);
if  you  need  more  you  have  to  change your kernel configuration,
including shifting the kernel start address.

For example, on on a 1 GB system something like this could work:

	CONFIG_ADVANCED_OPTIONS=y
	CONFIG_LOWMEM_SIZE_BOOL=y
	CONFIG_LOWMEM_SIZE=0x40000000
	CONFIG_KERNEL_START_BOOL=y
	CONFIG_KERNEL_START=0xa0000000
	# CONFIG_CONSISTENT_START_BOOL is not set
	# CONFIG_CONSISTENT_SIZE_BOOL is not set
	# CONFIG_BOOT_LOAD_BOOL is not set


Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Disobedience:  The silver lining to the cloud of servitude.
- Ambrose Bierce

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-06-09 22:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <43EB80E07C42E1408726E4905FB96B0466C6C1@CYBORG3.cyclone.com>
2006-06-09 19:46 ` booting Linux 2.6.15 using a ramdisk and greater than 512MB of DRAM Xianghua Xiao
2006-06-09 19:28 Scott Coulter
2006-06-09 22:41 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).