linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Compile new kernel for 5200B w/ ELDK
@ 2008-08-26 17:01 Albrecht Dreß
  2008-09-01 14:42 ` Detlev Zundel
  0 siblings, 1 reply; 8+ messages in thread
From: Albrecht Dreß @ 2008-08-26 17:01 UTC (permalink / raw)
  To: LinuxPPC Embedded

[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]

Hi all,

please excuse a probably really dumb question about compiling a new  
kernel for a Freescale 5200B using the ELDK 4.2...

I am playing with a Lite5200B eval board.  The software coming from  
Freescale, including an older kernel (2.6.16.11-rt18), works fine.

I installed ELDK 4.2 on a FC box, and first compiled u-boot 1.3.4.   
Wrote it to flash, and it works nicely afaict.

Then I compiled the 2.6.24.2 kernel coming with the ELDK, using the  
commands "make ARCH=powerpc CROSS_COMPILE=ppc_6xx- lite5200_defconfig ;  
make ARCH=powerpc CROSS_COMPILE=ppc_6xx- uImage".  The kernel loads,  
decompresses, but then there is no output any more after "Uncompressing  
Kernel Image ... OK".  The u-boot environment contains (quoted from  
printenv) "bootargs=console=ttyPSC0,115200 root=/dev/mtdblock0 rw  
rootfstype=jffs2 verbose" (and, again, the Freescale kernel is not  
silent).

I found a message which stated that I should include

<snip>
         chosen {
                 linux,stdout-path = "/soc5200@f0000000/serial@2000";
	};
</snip>

in the file arch/powerpc/boot/dts/lite5200.dts.  Recompiled, but  
without success.  I believe it's a minor tweak I need to add, but I  
don't have a clue what.  Unfortunately neither the wiki nor Google gave  
answers.  Can anyone enlighten me??

Thanks,
Albrecht.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Compile new kernel for 5200B w/ ELDK
@ 2008-09-02 22:36 Laxmikant Rashinkar
  0 siblings, 0 replies; 8+ messages in thread
From: Laxmikant Rashinkar @ 2008-09-02 22:36 UTC (permalink / raw)
  To: Albrecht Dreß, linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1971 bytes --]

I had the same problem as you.

For what its worth, here is what I added to the end of my .dts file to get my console working for a MPC8347 embedded systems

chosen {
        linux,stdout-path = &serial0;
};

Also, since I use uboot and not OF, I load the cuImage file instead of the uImage file


thanks
LK


----- Original Message ----
From: Albrecht Dreß <albrecht.dress@arcor.de>
To: linuxppc-embedded@ozlabs.org
Sent: Tuesday, September 2, 2008 10:18:15 AM
Subject: Re: Compile new kernel for 5200B w/ ELDK

Hi Detlev:

Am 01.09.08 16:42 schrieb(en) Detlev Zundel:
> Use a recent kernel version.  2.6.26 should work out of the box  
> without too much hassle.  Some of the older versions had problems  
> effectively stalling Linux very early without any output on the  
> console.

Thanks a lot for your hint, but unfortunately it doesn't solve my  
problem:
- downloaded 2.6.26.3 from kernel.org;
- called "make ARCH=powerpc CROSS_COMPILE=ppc_6xx-  
52xx/lite5200b_defconfig";
- called "make ARCH=powerpc CROSS_COMPILE=ppc_6xx- uImage".

However, even with "console=ttyPSC0,115200 verbose panic=1" in the  
bootargs, the kernel simply doesn't say /anything/ after decompression:

<snip>
=> bootm
## Booting kernel from Legacy Image at 01000000 ...
    Image Name:   Linux-2.6.26.3
    Created:      2008-09-02   9:11:12 UTC
    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
    Data Size:    1341904 Bytes =  1.3 MB
    Load Address: 00000000
    Entry Point:  00000000
    Verifying Checksum ... OK
    Uncompressing Kernel Image ... OK
</snip>

Do I understand the remark in  
Documentation/powerpc/booting-without-of.txt, section "The /chosen  
node", correctly that it is *not* necessary to add it to the dts file  
as u-boot 1.3.4 should fill it in automatically?  Anyway, adding this  
section doesn't change anything...

HELP!  I'm really lost here...

Thanks, Albrecht.



      

[-- Attachment #2: Type: text/html, Size: 2757 bytes --]

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

end of thread, other threads:[~2008-09-03 11:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-26 17:01 Compile new kernel for 5200B w/ ELDK Albrecht Dreß
2008-09-01 14:42 ` Detlev Zundel
2008-09-01 15:40   ` Rajasekaran Kaliyaperumal,  Chennai
2008-09-02 10:55     ` Detlev Zundel
2008-09-02 17:18   ` Albrecht Dreß
2008-09-03  5:18     ` Wolfgang Denk
2008-09-03 11:30     ` Albrecht Dreß
  -- strict thread matches above, loose matches on Subject: below --
2008-09-02 22:36 Laxmikant Rashinkar

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).