Detlev Zundel | 1 Sep 2008 16:42
Picon
Picon
Picon
Favicon

Re: Compile new kernel for 5200B w/ ELDK

Hi Albrecht,

> 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 <at> f0000000/serial <at> 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  
(Continue reading)

Albrecht Dreß | 2 Sep 2008 19:18
Picon
Favicon

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>
(Continue reading)

Albrecht Dreß | 3 Sep 2008 13:30
Picon
Favicon

Re: Compile new kernel for 5200B w/ ELDK

Hi Wolfgang: 

> Missing step: build the device tree blob.
[snip]#
> The "bootm" command without arguments does just start the Linux kernel
> image. In this form, it does NOT pass the device tree to the Linux
> kernel. You must use
> 
> 	=> bootm 01000000 - <dtb_addr>
> 
> instead (after downloading the DTB to the <dtb_addr> address).

Bingo!  Now the kernel comes up, and I can reach out for the next stupid questions.  Reading more carefully
through the wiki, I must admit that I *should* have been able to figure that out myself (I come from ARM
development where it wasn't necessary with u-boot, if you want to hear a stupid excuse...).

Thanks again,
Albrecht.

Jetzt komfortabel bei Arcor-Digital TV einsteigen: Mehr Happy Ends, mehr Herzschmerz, mehr Fernsehen!
Erleben Sie 50 digitale TV Programme und optional 60 Pay TV Sender, einen elektronischen
Programmführer mit Movie Star Bewertungen von TV Movie. Außerdem, aktuelle Filmhits und spannende
Dokus in der Arcor-Videothek. Infos unter www.arcor.de/tv
Wolfgang Denk | 3 Sep 2008 07:18
Picon
Picon
Favicon

Re: Compile new kernel for 5200B w/ ELDK

Dear Albrecht,

In message <1220375903l.5712l.0l <at> antares> you wrote:
> 
> 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".

Missing step: build the device tree blob.

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

The "bootm" command without arguments does just start the Linux kernel
(Continue reading)

Picon
Favicon

RE: Compile new kernel for 5200B w/ ELDK


Dear Detlev...
     Am working with PowerPc 8315rdb...and ma using recend version of
the kernel 2.6.26..but I found one problem with RTC m41t11..while trying
to read or set RTC which is already opened while booting itself,,,its
return the error message as resourse busy  with error no 29.. can u help
me to solve this issue,,,
 With Regards
 Rajasekaran..
 HCLT.India.

-----Original Message-----
From: linuxppc-embedded-bounces+rajasekaran.k=hcl.in <at> ozlabs.org
[mailto:linuxppc-embedded-bounces+rajasekaran.k=hcl.in <at> ozlabs.org] On
Behalf Of Detlev Zundel
Sent: Monday, September 01, 2008 8:12 PM
To: linuxppc-embedded <at> ozlabs.org
Subject: Re: Compile new kernel for 5200B w/ ELDK

Hi Albrecht,

> 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.
>
(Continue reading)

Detlev Zundel | 2 Sep 2008 12:55
Picon
Picon
Picon
Favicon

Re: Compile new kernel for 5200B w/ ELDK

Hi Rajasekaran,

>      Am working with PowerPc 8315rdb...and ma using recend version of
> the kernel 2.6.26..but I found one problem with RTC m41t11..while trying
> to read or set RTC which is already opened while booting itself,,,its
> return the error message as resourse busy  with error no 29.. can u help
> me to solve this issue,,,

Actually, I cannot help you right now, as I do not understand the
problem.  Can you perhaps show some log files and source code exhibiting
the problem?

What exactly are you trying to do?  Did you try enabling RTC_DEBUG in
the configuration (Device Drivers -> Real Time Clock -> RTC Debug
support)?  What do the kernel messages look like?

Cheers
  Detlev

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu <at> denx.de

Gmane