about s3c2442

Yi Qingliang niqingliang2003 at gmail.com
Thu Jan 10 14:14:28 EST 2013


On Thursday, January 10, 2013 11:00:53 AM Juergen Beisert wrote:
> Hi Yi,
> 
> Yi Qingliang wrote:
> > On Thursday, January 10, 2013 10:14:07 AM Juergen Beisert wrote:
> > > Yi Qingliang wrote:
> > > > On Thursday, January 10, 2013 09:36:36 AM Juergen Beisert wrote:
> > > > > Yi Qingliang wrote:
> > > > > > 	I'm using barebox (based on mini2440) on my s3c2442 board,
> > > > > > 
> > > > > > 1. flash barebox into nand: can't start normally, but can see
> > > > > > early
> > > > > > output on serial.
> > > > > > 2. load it in sdram: can start normally into shell, and then I use
> > > > > > it to boot kernel (also in sdram, also based on mini2440).
> > > > > > the kernel hang, no output.
> > > > > > 
> > > > > > after dig into it, I found something: add "mem=64M" into the
> > > > > > kernel
> > > > > > paramer, then the kernel can start.
> > > > > > 
> > > > > > BUT:
> > > > > > the barebox doesn't pass that paramert to kernel for mini2440,
> > > > > > why the mini2440 kernel can start normally?
> > > > > > 
> > > > > > how does the kernel on 2440 get the sdram size?
> > > > > 
> > > > > There is no autodetection possible. Take a look into
> > > > > the "arch/arm/boards/friendlyarm-mini2440/lowlevel_init.S": This is
> > > > > the
> > 
> > I found it,
> > but:
> > md 0x48000028
> > 48000028: 000000b2 (represents is 128)
> > it looks like the lowlevel_init is not executed, what's the problem.
> 
> Is the symbol "CONFIG_MACH_DO_LOWLEVEL_INIT" enabled in your config?
enabled already, but when loaded in sdram, the barebox skipped the sdram init 
code. am i right?
> 
> Regards,
> Juergen



More information about the barebox mailing list