Compile new kernel for 5200B w/ ELDK
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.
Hi Albrecht,
Quoted 24 lines
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"; };
Quoted 6 lines
</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: [email protected]
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,
Quoted 5 lines
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
Quoted 2 lines
I installed ELDK 4=2E2 on a FC box, and first compiled u-boot 1=2E3=2E4=
=2E =20
Quoted 3 lines
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
Quoted 1 line
commands "make ARCH=3Dpowerpc CROSS_COMPILE=3Dppc_6xx-
lite5200_defconfig
; =20
Quoted 1 line
make ARCH=3Dpowerpc CROSS_COMPILE=3Dppc_6xx- uImage"=2E The kernel=
loads, =20
Quoted 1 line
decompresses, but then there is no output any more after
"Uncompressing =20
Quoted 1 line
Kernel Image =2E=2E=2E OK"=2E The u-boot environment contains (quoted=
from =20
Quoted 1 line
printenv) "bootargs=3Dconsole=3DttyPSC0,115200 root=3D/dev/mtdblock0 rw =
=20
Quoted 6 lines
rootfstype=3Djffs2 verbose" (and, again, the Freescale kernel is not =20 silent)=2E
I found a message which stated that I should include
<snip>
Quoted 8 lines
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
Quoted 1 line
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
---------------------------------------------------------------------------=
--------------------------------------------
Hi Rajasekaran,
Quoted 5 lines
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: [email protected]
Hi Detlev:
Am 01.09.08 16:42 schrieb(en) Detlev Zundel:
Quoted 1 line
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.
Dear Albrecht,
Quoted 7 lines · 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.
Quoted 10 lines
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
Quoted 5 lines
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
Signature · 5 lines
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: [email protected] A right is not what someone gives you; it's what no one can take from you. - Ramsey Clark
Hi Wolfgang:=20
Quoted 1 line
Missing step: build the device tree blob.
[snip]#
Quoted 7 lines
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