| Submitter | Jan Kobler |
|---|---|
| Date | April 8, 2011, 7:33 p.m. |
| Message ID | <1302291183-17622-1-git-send-email-eng1@koblersystems.de> |
| Download | mbox | patch |
| Permalink | /patch/2091/ |
| State | New, archived |
| Headers | show |
Comments
On 04/08/2011 12:33 PM, Jan Kobler wrote: > Freescale Development Kit TWR-MPC5125-KIT > > Vendor page: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TWR-MPC5125-KIT > > The name mpc5125-twr is used by Freescale in the Linux kernel for this board. > > Signed-off-by: Jan Kobler <eng1@koblersystems.de> First, the linux_VER.bb change should be part of the patch that bring in the patches for the board. Second, I see upstream there's a mpc512x_defconfig. How much of this platform works upstream with a more recent kernel? Thanks!
Hi, 1. I wanted to make a clear distinction between what I have written and what I have taken from http://www.freescale.com/files/soft_dev_tools/software/board_support_packages/TWRMPC5125LinuxBSP.rar which contains the Linux kernel 2.6.29-v2010041601 for the TWR-MPC5125-KIT. Therefore linux_VER.bb is in [mpc5125-twr 1/2], because I have changed it. Otherwise I would put it together in one patch. 2. I have tried to provide the same for Openembedded as Freescale is currently shipping on their web page http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TWR-MPC5125-KIT&fpsp=1&tab=Design_Tools_Tab. I have not tried to port it to a more recent kernel. Is there already a more recent kernel, which contains mpc5125-twr support? Best regards Jan
Hi, 1. I have described the usage and the current state of the BSP of the new machine mpc5125-twr in a tutorial and wanted to publish it on gentoo-wiki.com. Unfortunately gentoo-wiki.com is currently not accessible. Here is the tutorial in text form. 2. I can provide it also as html file, if someone wants it. 3. I would like to publish this tutorial under http://www.openembedded.org/index.php/Category:Machine because I think this would be the right place for it. How can I get write access to the openembedded-wiki? Best regards Jan
On 04/08/2011 01:02 PM, Jan Kobler wrote: > Hi, > > 1. I wanted to make a clear distinction between what I have written and > what I have taken from > http://www.freescale.com/files/soft_dev_tools/software/board_support_packages/TWRMPC5125LinuxBSP.rar > which contains the Linux kernel 2.6.29-v2010041601 for the TWR-MPC5125-KIT. > > Therefore linux_VER.bb is in [mpc5125-twr 1/2], because I have changed > it. Otherwise I would put it together in one patch. > > 2. I have tried to provide the same for Openembedded as Freescale is > currently shipping on their web page > http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TWR-MPC5125-KIT&fpsp=1&tab=Design_Tools_Tab. > I have not tried to port it to a more recent kernel. > > Is there already a more recent kernel, which contains mpc5125-twr support? It's possible that yes, this hardware is supported in 2.6.37.
Hi, you can find the tutorial on gentoo-wiki.com now: http://en.gentoo-wiki.com/wiki/Freescale_TWR-MPC5125/Openembedded It describes the usage and the current state of the BSP for the new machine mpc5125-twr. I hope it helps. Best regards Jan
on 08.04.2011 23:37 Tom Rini said the following: > On 04/08/2011 01:02 PM, Jan Kobler wrote: >> 2. I have tried to provide the same for Openembedded as Freescale is >> currently shipping on their web page >> http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TWR-MPC5125-KIT&fpsp=1&tab=Design_Tools_Tab. >> I have not tried to port it to a more recent kernel. >> >> Is there already a more recent kernel, which contains mpc5125-twr support? > > It's possible that yes, this hardware is supported in 2.6.37. > The support in 2.6.37 seems to be for the CPU Freescale MPC5121 and the board ADS512101. The support files for MPC5125 and TWR-MPC5125 are missing. The names TWR-MPC5125 or "mpc5125-twr are nowhere mentioned. E.g linux-2.6.29/arch/powerpc/boot/dts/mpc5125-twr.dts is missing in linux-2.6.37 linux-2.6.37/arch/powerpc/boot/dts/mpc5121ads.dts is different to linux-2.6.29/arch/powerpc/boot/dts/mpc5125-twr.dts The CPUs MPC5125 and MPC5121 are similar, but are not the same. Currently I don't know the exact differences and cannot decide which code for MPC5121 runs also on MPC5125. Best regards Jan
Patch
diff --git a/MAINTAINERS b/MAINTAINERS index 45e92d1..c0962cc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -141,7 +141,7 @@ Recipes: net-snmp, ebtables, ethtool, arpwatch, lib*-perl Person: Jan Kobler Mail: eng1@koblersystems.de Interests: embedded systems, powerpc, arm -Machines: pcm043 +Machines: mpc5125-twr, pcm043 Person: Jan Luebbe Mail: jluebbe@lasnet.de diff --git a/conf/distro/include/sane-feed.inc b/conf/distro/include/sane-feed.inc index 70fc7a9..821f5bf 100644 --- a/conf/distro/include/sane-feed.inc +++ b/conf/distro/include/sane-feed.inc @@ -156,6 +156,7 @@ FEED_ARCH_storcenter = "ppc603e" FEED_ARCH_turbostation = "ppc603e" FEED_ARCH_mpc8313e-rdb = "ppce300c3" FEED_ARCH_mpc8323e-rdb = "ppce300c2" +FEED_ARCH_mpc5125-twr = "ppce300c3" # strongarm machines, no EABI diff --git a/conf/machine/mpc5125-twr.conf b/conf/machine/mpc5125-twr.conf new file mode 100644 index 0000000..71432cd --- /dev/null +++ b/conf/machine/mpc5125-twr.conf @@ -0,0 +1,27 @@ +#@TYPE: Machine +#@Name: Freescale MPC5125-TWR +#@DESCRIPTION: Machine configuration for Freescale MPC5125-TWR + +# Vendor page: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TWR-MPC5125-KIT + +TARGET_ARCH = "powerpc" +PACKAGE_EXTRA_ARCHS = "ppc" +MACHINE_FEATURES = "kernel26 usbhost ext2" + +PREFERRED_PROVIDER_virtual/kernel = "linux" +PREFERRED_VERSION_linux = "2.6.29" +PREFERRED_VERSION_linux-libc-headers = "2.6.29" + +# used by sysvinit_2 +SERIAL_CONSOLE = "115200 ttyPSC0" + +IMAGE_FSTYPES += "tar.gz" + +KERNEL_IMAGETYPE = "uImage" +UBOOT_ENTRYPOINT = "0x0" +KERNEL_DEVICETREE_mpc5125-twr = "arch/${ARCH}/boot/dts/mpc5125-twr.dts" + +# used by opie-collections.inc +ROOT_FLASH_SIZE = "32" + +require conf/machine/include/tune-ppce300c3.inc diff --git a/contrib/angstrom/sort.sh b/contrib/angstrom/sort.sh index ca13ce2..3a0db52 100755 --- a/contrib/angstrom/sort.sh +++ b/contrib/angstrom/sort.sh @@ -112,7 +112,7 @@ case "$arch" in "ppce300c2") machines="mpc8323e-rdb" ;; "ppce300c3") - machines="boc01 mpc8313e-rdb mpc8315e-rdb" ;; + machines="boc01 mpc5125-twr mpc8313e-rdb mpc8315e-rdb" ;; "ppce500") machines="tqm8540" ;; "ppce500v2") diff --git a/recipes/linux/linux_2.6.29.bb b/recipes/linux/linux_2.6.29.bb index 2b80884..5d4809b 100644 --- a/recipes/linux/linux_2.6.29.bb +++ b/recipes/linux/linux_2.6.29.bb @@ -22,6 +22,12 @@ SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.29.tar.bz2;name=k ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${PV}.6.bz2;apply=yes;name=stablepatch \ file://defconfig" +# mpc5125-twr uses linux-2.6.29.1 +SRC_URI_mpc5125-twr = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.29.tar.bz2;name=kernel \ + ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${PV}.1.bz2;apply=yes;name=stablepatch1 \ + file://defconfig \ + file://mpc5125-twr.patch" + SRC_URI_append_boc01 = "\ file://boc01.dts \ file://boc01.dts.v1 \ @@ -91,3 +97,6 @@ SRC_URI[kernel.md5sum] = "64921b5ff5cdadbccfcd3820f03be7d8" SRC_URI[kernel.sha256sum] = "58a5ea16d499fe06f90fcbf1d687d1235d2cb9bc28bf979867bd3faadf38fc3f" SRC_URI[stablepatch.md5sum] = "0317760b52c9ac7a11de997da19a366e" SRC_URI[stablepatch.sha256sum] = "0294d475cbbc6cf43db25e64b92616309086cad6be4ee463f7f4b1d16d285c27" +# linux patch-2.6.29.1 +SRC_URI[stablepatch1.md5sum] = "87c6fbf4096b644d66d4da8bb00641a5" +SRC_URI[stablepatch1.sha256sum] = "0c44a41816082602f9d2bd45524d85f6e5fa8e4a6a9a15861048ca2aaf068d8f"
Freescale Development Kit TWR-MPC5125-KIT Vendor page: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TWR-MPC5125-KIT The name mpc5125-twr is used by Freescale in the Linux kernel for this board. Signed-off-by: Jan Kobler <eng1@koblersystems.de> --- MAINTAINERS | 2 +- conf/distro/include/sane-feed.inc | 1 + conf/machine/mpc5125-twr.conf | 27 +++++++++++++++++++++++++++ contrib/angstrom/sort.sh | 2 +- recipes/linux/linux_2.6.29.bb | 9 +++++++++ 5 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 conf/machine/mpc5125-twr.conf