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-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 17:18   ` Albrecht Dreß
  0 siblings, 2 replies; 8+ messages in thread
From: Detlev Zundel @ 2008-09-01 14:42 UTC (permalink / raw)
  To: linuxppc-embedded

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

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.

Do not put any more effort in such an old kernel.

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@denx.de

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

* RE: Compile new kernel for 5200B w/ ELDK
  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ß
  1 sibling, 1 reply; 8+ messages in thread
From: Rajasekaran Kaliyaperumal,  Chennai @ 2008-09-01 15:40 UTC (permalink / raw)
  To: Detlev Zundel, linuxppc-embedded


Dear Detlev=2E=2E=2E
     Am working with PowerPc 8315rdb=2E=2E=2Eand ma using recend version of
the kernel 2=2E6=2E26=2E=2Ebut I found one problem with RTC m41t11=2E=
=2Ewhile 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=2E=2E can u=
 help
me to solve this issue,,,
 With Regards
 Rajasekaran=2E=2E
 HCLT=2EIndia=2E

-----Original Message-----
From: linuxppc-embedded-bounces+rajasekaran=2Ek=3Dhcl=2Ein@ozlabs=2Eorg
[mailto:linuxppc-embedded-bounces+rajasekaran=2Ek=3Dhcl=2Ein@ozlabs=2Eorg]=
 On
Behalf Of Detlev Zundel
Sent: Monday, September 01, 2008 8:12 PM
To: linuxppc-embedded@ozlabs=2Eorg
Subject: Re: Compile new kernel for 5200B w/ ELDK

Hi Albrecht,

> please excuse a probably really dumb question about compiling a new =20
> kernel for a Freescale 5200B using the ELDK 4=2E2=2E=2E=2E
>
> I am playing with a Lite5200B eval board=2E  The software coming from =20
> Freescale, including an older kernel (2=2E6=2E16=2E11-rt18), works fine=
=2E
>
> I installed ELDK 4=2E2 on a FC box, and first compiled u-boot 1=2E3=2E4=
=2E  =20
> Wrote it to flash, and it works nicely afaict=2E
>
> Then I compiled the 2=2E6=2E24=2E2 kernel coming with the ELDK, using the=
 =20
> commands "make ARCH=3Dpowerpc CROSS_COMPILE=3Dppc_6xx- lite5200_defconfig
; =20
> make ARCH=3Dpowerpc CROSS_COMPILE=3Dppc_6xx- uImage"=2E  The kernel=
 loads, =20
> decompresses, but then there is no output any more after
"Uncompressing =20
> Kernel Image =2E=2E=2E OK"=2E  The u-boot environment contains (quoted=
 from =20
> printenv) "bootargs=3Dconsole=3DttyPSC0,115200 root=3D/dev/mtdblock0 rw =
=20
> rootfstype=3Djffs2 verbose" (and, again, the Freescale kernel is not =20
> silent)=2E
>
> I found a message which stated that I should include
>
> <snip>
>          chosen {
>                  linux,stdout-path =3D "/soc5200@f0000000/serial@2000";
> 	};
> </snip>
>
> in the file arch/powerpc/boot/dts/lite5200=2Edts=2E  Recompiled, but =20
> without success=2E  I believe it's a minor tweak I need to add, but I =20
> don't have a clue what=2E  Unfortunately neither the wiki nor Google
gave =20
> answers=2E  Can anyone enlighten me??

Use a recent kernel version=2E  2=2E6=2E26 should work out of the box=
 without
too much hassle=2E  Some of the older versions had problems effectively
stalling Linux very early without any output on the console=2E

Do not put any more effort in such an old kernel=2E

Cheers
  Detlev

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr=2E5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu@denx=2Ede

_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs=2Eorg
https://ozlabs=2Eorg/mailman/listinfo/linuxppc-embedded

DISCLAIMER:
---------------------------------------------------------------------------=
--------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and=
 intended for the named recipient(s) only=2E
It shall not attach any liability on the originator or HCL or its=
 affiliates=2E Any views or opinions presented in=20
this email are solely those of the author and may not necessarily reflect=
 the opinions of HCL or its affiliates=2E
Any form of reproduction, dissemination, copying, disclosure, modification,=
 distribution and / or publication of=20
this message without the prior written consent of the author of this e-mail=
 is strictly prohibited=2E If you have
received this email in error please delete it and notify the sender=
 immediately=2E Before opening any mail and=20
attachments please check them for viruses and defect=2E

---------------------------------------------------------------------------=
--------------------------------------------

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

* Re: Compile new kernel for 5200B w/ ELDK
  2008-09-01 15:40   ` Rajasekaran Kaliyaperumal,  Chennai
@ 2008-09-02 10:55     ` Detlev Zundel
  0 siblings, 0 replies; 8+ messages in thread
From: Detlev Zundel @ 2008-09-02 10:55 UTC (permalink / raw)
  To: linuxppc-embedded

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@denx.de

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

* Re: Compile new kernel for 5200B w/ ELDK
  2008-09-01 14:42 ` Detlev Zundel
  2008-09-01 15:40   ` Rajasekaran Kaliyaperumal,  Chennai
@ 2008-09-02 17:18   ` Albrecht Dreß
  2008-09-03  5:18     ` Wolfgang Denk
  2008-09-03 11:30     ` Albrecht Dreß
  1 sibling, 2 replies; 8+ messages in thread
From: Albrecht Dreß @ 2008-09-02 17:18 UTC (permalink / raw)
  To: linuxppc-embedded

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

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

* Re: Compile new kernel for 5200B w/ ELDK
  2008-09-02 17:18   ` Albrecht Dreß
@ 2008-09-03  5:18     ` Wolfgang Denk
  2008-09-03 11:30     ` Albrecht Dreß
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2008-09-03  5:18 UTC (permalink / raw)
  To: Albrecht Dreß; +Cc: linuxppc-embedded

Dear Albrecht,

In message <1220375903l.5712l.0l@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
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).

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
A right is not what someone gives you; it's what no one can take from
you.                                                   - Ramsey Clark

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

* Re: Compile new kernel for 5200B w/ ELDK
  2008-09-02 17:18   ` Albrecht Dreß
  2008-09-03  5:18     ` Wolfgang Denk
@ 2008-09-03 11:30     ` Albrecht Dreß
  1 sibling, 0 replies; 8+ messages in thread
From: Albrecht Dreß @ 2008-09-03 11:30 UTC (permalink / raw)
  To: linuxppc-embedded

Hi Wolfgang:=20

> 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
>=20
> =09=3D> bootm 01000000 - <dtb_addr>
>=20
> 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 qu=
estions.  Reading more carefully through the wiki, I must admit that I *sho=
uld* 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 He=
rzschmerz, mehr Fernsehen! Erleben Sie 50 digitale TV Programme und optiona=
l 60 Pay TV Sender, einen elektronischen Programmf=FChrer mit Movie Star Be=
wertungen von TV Movie. Au=DFerdem, aktuelle Filmhits und spannende Dokus i=
n der Arcor-Videothek. Infos unter www.arcor.de/tv

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