public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Booting ELDK 4.0 kernel on MPC8548CDS
@ 2006-11-22 18:55 Thomas Schafer
  2006-11-23  8:01 ` Demke Torsten-atd012
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Schafer @ 2006-11-22 18:55 UTC (permalink / raw)
  To: u-boot

Hi,

I'm using a MPC8548CDS eval system with u-boot 1.1.6 running on it. When
trying to boot an ELDK 4.0 kernel, the board hangs immediately after
decompression of the kernel. I've set the disable_of environment
variable to avoid usage of the flat device tree.

The same kernel boots properly when using u-boot 1.1.3 which is
delivered with the eval system.

Any hints would be appreciated.

Best regards,

Thomas Schafer

____________________________________

Kontron Modular Computers GmbH

Heinrich-Barth-Str. 1a
66115 Saarbrucken

Tel.: + 49 (0)681 / 95916 - 203
Fax:  + 49 (0)681 / 95916 - 100
E-mail: thomas.schaefer at kontron.com 

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [U-Boot-Users] Booting ELDK 4.0 kernel on MPC8548CDS
@ 2006-11-23 10:01 Thomas Schäfer
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Schäfer @ 2006-11-23 10:01 UTC (permalink / raw)
  To: u-boot

Hi Torsten, 

> I see a similar problem when using of-tree. My debugging 
> shows that the of-tree address given to the kernel is outside 
> the memory region that can be accessed by the kernel at 
> start-up (defined by CFG_BOOTMAPSZ), thus the kernel crashes 
> very early without any output.
> (IMHO this is a bug.)
> If you are using CONFIG_OF_FLAT_TREE _and_ "disable_of" ist 
> likely that you see the same behaviour, because in that case 
> the "bootm" code still uses the of-tree address (char 
> *of_flat_tree), after copying the standard bd_info data to 
> that address.
> You could check the pointer that is given to the kernel for 
> the board info data (line 967, parameter 1 of (*kernel) 
> (...)) (or change (*kernel) ((bd_t *)of_flat_tree,...
> to (*kernel) (kbd,...)

Thank you for the hint. As I don't want to use the of-tree, simply undefining the CONFIG_OF_FLAT_TREE switch does the job for me. The kernel is booting now.

Best regards,

Thomas

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [U-Boot-Users] Booting ELDK 4.0 kernel on MPC8548CDS
@ 2006-11-23 16:25 Thomas Schäfer
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Schäfer @ 2006-11-23 16:25 UTC (permalink / raw)
  To: u-boot

Kumar, 

> -----Original Message-----
> From: Kumar Gala [mailto:galak at kernel.crashing.org] 
> Sent: Thursday, November 23, 2006 3:52 PM
> To: Demke Torsten-atd012
> Cc: Thomas Sch?fer; u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] Booting ELDK 4.0 kernel on MPC8548CDS
> > If you are using CONFIG_OF_FLAT_TREE _and_ "disable_of" ist likely 
> > that you see the same behaviour, because in that case the 
> "bootm" code 
> > still uses the of-tree address (char *of_flat_tree), after 
> copying the 
> > standard bd_info data to that address.
> > You could check the pointer that is given to the kernel for 
> the board 
> > info data (line 967, parameter 1 of (*kernel) (...)) (or change 
> > (*kernel) ((bd_t *)of_flat_tree,...
> > to (*kernel) (kbd,...)
> >
> > Regards,
> > Torsten
> 
> This seems like a bug.
> 
> Looking at the code I'm confused how this works at all.  I 
> dont see of_flat_tree getting setting to anything at all.
> 
> Can you guys try out Grant's patch "[PATCH] Allow 
> CONFIG_OF_FLAT_TREE to boot a non-arch/powerpc kernel" and 
> see if that fixes the issue when building 
> w/CONFIG_OF_FLAT_TREE enabled.  His patch should make it so 
> that a bootm w/1 or 2 args that aren't a multiimage should 
> boot arch/ppc style.
> 

I applied Grant's patch, I can now boot arch/ppc style (with kernel and ramdisk image) both with CONFIG_OF_FLAT_TREE defined and not defined in my board config.

Best regards,

Thomas

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

end of thread, other threads:[~2006-11-27 18:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-22 18:55 [U-Boot-Users] Booting ELDK 4.0 kernel on MPC8548CDS Thomas Schafer
2006-11-23  8:01 ` Demke Torsten-atd012
2006-11-23 14:51   ` Kumar Gala
2006-11-23 19:38     ` Dan
2006-11-24 15:19       ` Kumar Gala
2006-11-27 18:56         ` Jon Loeliger
  -- strict thread matches above, loose matches on Subject: below --
2006-11-23 10:01 Thomas Schäfer
2006-11-23 16:25 Thomas Schäfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox